Allow to display a dot in the category list when settings has changed from default. CCBUG: 426775remotes/origin/work/screencast-fencing
parent
cc763e063c
commit
d11daecce5
5 changed files with 154 additions and 53 deletions
@ -0,0 +1,59 @@ |
||||
/*
|
||||
KWin - the KDE window manager |
||||
This file is part of the KDE project. |
||||
|
||||
SPDX-FileCopyrightText: 2020 Cyril Rossi <cyril.rossi@enioka.com> |
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later |
||||
*/ |
||||
|
||||
#include "kwintabboxdata.h" |
||||
|
||||
#include "kwintabboxsettings.h" |
||||
#include "kwinswitcheffectsettings.h" |
||||
#include "kwinpluginssettings.h" |
||||
|
||||
namespace KWin |
||||
{ |
||||
namespace TabBox |
||||
{ |
||||
|
||||
KWinTabboxData::KWinTabboxData(QObject *parent, const QVariantList &args) |
||||
: KCModuleData(parent, args) |
||||
, m_tabBoxConfig(new TabBoxSettings(QStringLiteral("TabBox"), this)) |
||||
, m_tabBoxAlternativeConfig(new TabBoxSettings(QStringLiteral("TabBoxAlternative"), this)) |
||||
, m_coverSwitchConfig(new SwitchEffectSettings(QStringLiteral("Effect-CoverSwitch"), this)) |
||||
, m_flipSwitchConfig(new SwitchEffectSettings(QStringLiteral("Effect-FlipSwitch"), this)) |
||||
, m_pluginsConfig(new PluginsSettings(this)) |
||||
{ |
||||
autoRegisterSkeletons(); |
||||
} |
||||
|
||||
TabBoxSettings *KWinTabboxData::tabBoxConfig() const |
||||
{ |
||||
return m_tabBoxConfig; |
||||
} |
||||
|
||||
TabBoxSettings *KWinTabboxData::tabBoxAlternativeConfig() const |
||||
{ |
||||
return m_tabBoxAlternativeConfig; |
||||
} |
||||
|
||||
SwitchEffectSettings *KWinTabboxData::coverSwitchConfig() const |
||||
{ |
||||
return m_coverSwitchConfig; |
||||
} |
||||
|
||||
SwitchEffectSettings *KWinTabboxData::flipSwitchConfig() const |
||||
{ |
||||
return m_flipSwitchConfig; |
||||
} |
||||
|
||||
PluginsSettings *KWinTabboxData::pluginsConfig() const |
||||
{ |
||||
return m_pluginsConfig; |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,50 @@ |
||||
/*
|
||||
KWin - the KDE window manager |
||||
This file is part of the KDE project. |
||||
|
||||
SPDX-FileCopyrightText: 2020 Cyril Rossi <cyril.rossi@enioka.com> |
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later |
||||
*/ |
||||
|
||||
#ifndef KWINTABBOXDATA_H |
||||
#define KWINTABBOXDATA_H |
||||
|
||||
#include <QObject> |
||||
|
||||
#include <KCModuleData> |
||||
|
||||
namespace KWin |
||||
{ |
||||
namespace TabBox |
||||
{ |
||||
class TabBoxSettings; |
||||
class SwitchEffectSettings; |
||||
class PluginsSettings; |
||||
|
||||
class KWinTabboxData : public KCModuleData |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
explicit KWinTabboxData(QObject *parent = nullptr, const QVariantList &args = QVariantList()); |
||||
|
||||
TabBoxSettings *tabBoxConfig() const; |
||||
TabBoxSettings *tabBoxAlternativeConfig() const; |
||||
SwitchEffectSettings *coverSwitchConfig() const; |
||||
SwitchEffectSettings *flipSwitchConfig() const; |
||||
PluginsSettings *pluginsConfig() const; |
||||
|
||||
private: |
||||
TabBoxSettings *m_tabBoxConfig; |
||||
TabBoxSettings *m_tabBoxAlternativeConfig; |
||||
SwitchEffectSettings *m_coverSwitchConfig; |
||||
SwitchEffectSettings *m_flipSwitchConfig; |
||||
PluginsSettings *m_pluginsConfig; |
||||
}; |
||||
|
||||
} |
||||
|
||||
} |
||||
|
||||
#endif // KWINTABBOXDATA_H
|
||||
Loading…
Reference in new issue