• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • workspace API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
Global_p.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser/Library General Public License version 2,
6  * or (at your option) any later version, as published by the Free
7  * Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser/Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Lesser/Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef GLOBAL_P_H
21 #define GLOBAL_P_H
22 
23 #include "Global.h"
24 
25 #include <QSet>
26 
27 #include <KGlobal>
28 #include <KStandardDirs>
29 
30 #include <Plasma/Theme>
31 
32 namespace Lancelot
33 {
34 
35 // Group
36 class GroupPrivate {
37 public:
38  GroupPrivate();
39  ~GroupPrivate();
40  void setObjectProperty(QObject * object,
41  const QString & property, const QVariant & value);
42  void copyFrom(GroupPrivate * d);
43  void reset();
44  KConfigGroup confGroupTheme();
45 
46  QString name;
47  QMap < QString, QVariant > properties;
48  QSet < QString > persistentProperties;
49 
50  QSet < QObject * > objects;
51 
52  Group::ColorScheme foregroundColor;
53  Group::ColorScheme backgroundColor;
54  Plasma::FrameSvg * backgroundSvg;
55 
56  bool ownsBackgroundSvg : 1;
57  bool loaded : 1;
58 };
59 
60 class Global::Private: public QObject {
61  Q_OBJECT
62 public:
63  Private();
64 
65  ~Private();
66 
67  static Global * instance;
68 
69  QMap < QString, Group * > groups;
70 
71  KConfig * confMain;
72  KConfig * confTheme;
73 
74  Plasma::ImmutabilityType immutability;
75 
76  void createConfTheme();
77 
78 public Q_SLOTS:
79  void loadAllGroups(bool clearFirst = true);
80  void themeChanged();
81  void objectDeleted(QObject * object);
82 };
83 
84 } // namespace Lancelot
85 
86 #endif /* GLOBAL_P_H */
Lancelot::GroupPrivate::backgroundColor
Group::ColorScheme backgroundColor
Definition: Global_p.h:53
Lancelot::Global::Private::groups
QMap< QString, Group * > groups
Definition: Global_p.h:69
Lancelot::Global::Private::objectDeleted
void objectDeleted(QObject *object)
Definition: Global.cpp:327
QMap< QString, QVariant >
Lancelot::Global::Private::confMain
KConfig * confMain
Definition: Global_p.h:71
Lancelot::GroupPrivate::confGroupTheme
KConfigGroup confGroupTheme()
Definition: Global.cpp:125
Lancelot::GroupPrivate::objects
QSet< QObject * > objects
Definition: Global_p.h:50
Lancelot::GroupPrivate
Definition: Global_p.h:36
Lancelot::GroupPrivate::loaded
bool loaded
Definition: Global_p.h:57
Lancelot::GroupPrivate::ownsBackgroundSvg
bool ownsBackgroundSvg
Definition: Global_p.h:56
Lancelot::Global::Private::confTheme
KConfig * confTheme
Definition: Global_p.h:72
Lancelot::Global::Private::Private
Private()
Definition: Global.cpp:315
Lancelot::Global::Private::immutability
Plasma::ImmutabilityType immutability
Definition: Global_p.h:74
Lancelot::GroupPrivate::properties
QMap< QString, QVariant > properties
Definition: Global_p.h:47
Lancelot::Global::Private::~Private
~Private()
Definition: Global.cpp:323
QObject
Lancelot::GroupPrivate::persistentProperties
QSet< QString > persistentProperties
Definition: Global_p.h:48
Lancelot::Global::Private::themeChanged
void themeChanged()
Definition: Global.cpp:378
Lancelot::GroupPrivate::backgroundSvg
Plasma::FrameSvg * backgroundSvg
Definition: Global_p.h:54
QSet< QString >
Global.h
QString
Lancelot::GroupPrivate::GroupPrivate
GroupPrivate()
Definition: Global.cpp:42
Lancelot::Global::Private::loadAllGroups
void loadAllGroups(bool clearFirst=true)
Definition: Global.cpp:384
Lancelot::GroupPrivate::name
QString name
Definition: Global_p.h:46
Lancelot::GroupPrivate::copyFrom
void copyFrom(GroupPrivate *d)
Definition: Global.cpp:95
Lancelot::GroupPrivate::~GroupPrivate
~GroupPrivate()
Definition: Global.cpp:51
Lancelot::Group::ColorScheme
This class contains the triplet od colors for three standard object states - normal, disabled and active.
Definition: Global.h:71
Lancelot::Global::Private::instance
static Global * instance
Definition: Global_p.h:67
Lancelot::Global::Private::createConfTheme
void createConfTheme()
Definition: Global.cpp:335
Lancelot::Global
Global object represents one instance of Lancelot-based process inside a main application.
Definition: Global.h:184
Lancelot::GroupPrivate::foregroundColor
Group::ColorScheme foregroundColor
Definition: Global_p.h:52
Lancelot::GroupPrivate::setObjectProperty
void setObjectProperty(QObject *object, const QString &property, const QVariant &value)
Definition: Global.cpp:61
Lancelot::Global::Private
Definition: Global_p.h:60
Lancelot::GroupPrivate::reset
void reset()
Definition: Global.cpp:68
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       GroupingDesktop
  •     liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal