Rename PluginMgr to DecorationPlugin
It's about the decorations not just *the* plugin.
This commit is contained in:
parent
0fb27fd12e
commit
32be37bce3
4 changed files with 10 additions and 10 deletions
10
plugins.cpp
10
plugins.cpp
|
@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
PluginMgr::PluginMgr()
|
||||
DecorationPlugin::DecorationPlugin()
|
||||
: KDecorationPlugins(KGlobal::config())
|
||||
, m_noDecoration(false)
|
||||
{
|
||||
|
@ -45,24 +45,24 @@ PluginMgr::PluginMgr()
|
|||
#endif
|
||||
}
|
||||
|
||||
void PluginMgr::error(const QString &error_msg)
|
||||
void DecorationPlugin::error(const QString &error_msg)
|
||||
{
|
||||
qWarning("%s", QString(i18n("KWin: ") + error_msg).toLocal8Bit().data());
|
||||
|
||||
setNoDecoration(true);
|
||||
}
|
||||
|
||||
bool PluginMgr::provides(Requirement)
|
||||
bool DecorationPlugin::provides(Requirement)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void PluginMgr::setNoDecoration(bool noDecoration)
|
||||
void DecorationPlugin::setNoDecoration(bool noDecoration)
|
||||
{
|
||||
m_noDecoration = noDecoration;
|
||||
}
|
||||
|
||||
bool PluginMgr::hasNoDecoration() const
|
||||
bool DecorationPlugin::hasNoDecoration() const
|
||||
{
|
||||
return m_noDecoration;
|
||||
}
|
||||
|
|
|
@ -27,11 +27,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
class PluginMgr
|
||||
class DecorationPlugin
|
||||
: public KDecorationPlugins
|
||||
{
|
||||
public:
|
||||
PluginMgr();
|
||||
DecorationPlugin();
|
||||
virtual bool provides(Requirement);
|
||||
/**
|
||||
* @returns @c true if there is no decoration plugin.
|
||||
|
|
|
@ -159,7 +159,7 @@ Workspace::Workspace(bool restore)
|
|||
reparseConfigFuture.waitForFinished();
|
||||
options->loadConfig();
|
||||
options->loadCompositingConfig(false);
|
||||
mgr = new PluginMgr;
|
||||
mgr = new DecorationPlugin;
|
||||
default_colormap = DefaultColormap(display(), screen_number);
|
||||
installed_colormap = default_colormap;
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace KWin
|
|||
class Client;
|
||||
class Outline;
|
||||
class RootInfo;
|
||||
class PluginMgr;
|
||||
class DecorationPlugin;
|
||||
class Rules;
|
||||
class UserActionsMenu;
|
||||
class WindowRules;
|
||||
|
@ -592,7 +592,7 @@ private:
|
|||
bool global_shortcuts_disabled;
|
||||
bool global_shortcuts_disabled_for_client;
|
||||
|
||||
PluginMgr* mgr;
|
||||
DecorationPlugin* mgr;
|
||||
|
||||
RootInfo* rootInfo;
|
||||
QWidget* supportWindow;
|
||||
|
|
Loading…
Reference in a new issue