KDEUI
kglobalsettings.cpp
Go to the documentation of this file.
215 QDBusConnection::sessionBus().connect( QString(), "/KGlobalSettings", "org.kde.KGlobalSettings",
384 return g.readEntry( "allowDefaultBackgroundImages", KDE_DEFAULT_ALLOW_DEFAULT_BACKGROUND_IMAGES );
494 static const unsigned int PreferredFontNamesCount = sizeof(PreferredFontNames)/sizeof(const char*);
658 const QString xdgUserDirs = KGlobal::dirs()->localxdgconfdir() + QLatin1String( "user-dirs.dirs" );
827 QDBusMessage message = QDBusMessage::createSignal("/KGlobalSettings", "org.kde.KGlobalSettings", "notifyChange" );
933 0 != (QString(kde_overrideStyle + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive)) {
950 0 == (QString(styleStr + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive) ||
968 0 != (QString(kde_overrideStyle + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive)) {
1024 palette.setColor( state, QPalette::Midlight, schemeWindow.shade( KColorScheme::MidlightShade ) );
1029 palette.setBrush( state, QPalette::AlternateBase, schemeView.background( KColorScheme::AlternateBackground) );
1031 palette.setBrush( state, QPalette::LinkVisited, schemeView.foreground( KColorScheme::VisitedText ) );
1100 _graphicEffects = ((GraphicEffects) g.readEntry("GraphicEffectsLevel", QVariant((int) NoEffects)).toInt());
1159 bool showIcons = cg.readEntry("ShowIconsInMenuItems", !QApplication::testAttribute(Qt::AA_DontShowIconsInMenus));
static bool shadeSortColumn()
Returns if the sorted column in a K3ListView shall be drawn with a shaded background color...
Definition: kglobalsettings.cpp:375
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QString readPathEntry(const QString &pKey, const QString &aDefault) const
static QString downloadPath()
The path where download are stored of the current user.
Definition: kglobalsettings.cpp:652
GUI with complex animations enabled.
Definition: kglobalsettings.h:468
static void emitChange(ChangeType changeType, int arg=0)
Notifies all KDE applications on the current display of a change.
Definition: kglobalsettings.cpp:825
The light color is lighter than dark() or shadow() and contrasts with the base color.
Definition: kcolorscheme.h:280
static bool allowDefaultBackgroundImages()
Returns if default background images are allowed by the color scheme.
Definition: kglobalsettings.cpp:381
static bool singleClick()
Returns whether KDE runs in single (default) or double click mode.
Definition: kglobalsettings.cpp:233
static QPalette createNewApplicationPalette(const KSharedConfigPtr &config=KSharedConfigPtr())
Used to obtain the QPalette that will be used to set the application palette.
Definition: kglobalsettings.cpp:980
static QString desktopPath()
The path to the desktop directory of the current user.
Definition: kglobalsettings.cpp:626
#define K_GLOBAL_STATIC(TYPE, NAME)
KStandardDirs * dirs()
static QColor inactiveTitleColor()
The default color to use for inactive titles.
Definition: kglobalsettings.cpp:317
static bool opaqueResize()
Whether the user wishes to use opaque resizing.
Definition: kglobalsettings.cpp:813
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
static bool showContextMenusOnPress()
Returns the KDE setting for context menus.
Definition: kglobalsettings.cpp:280
static KGlobalSettings * self()
Return the KGlobalSettings singleton.
Definition: kglobalsettings.cpp:188
static KGlobalSettings::GraphicEffects _graphicEffects
Definition: kglobalsettings.cpp:77
KSharedConfigPtr config()
The dark color is in between mid() and shadow().
Definition: kcolorscheme.h:292
The midlight color is in between base() and light().
Definition: kcolorscheme.h:284
static QColor activeTitleColor()
The default color to use for active titles.
Definition: kglobalsettings.cpp:339
static QString videosPath()
The path where videos are stored of the current user.
Definition: kglobalsettings.cpp:676
static QPalette createApplicationPalette(const KSharedConfigPtr &config=KSharedConfigPtr())
Used to obtain the QPalette that will be used to set the application palette.
Definition: kglobalsettings.cpp:975
static qreal contrastF(const KSharedConfigPtr &config=KSharedConfigPtr())
Returns the contrast for borders as a floating point value.
Definition: kglobalsettings.cpp:366
void reparseConfiguration()
static int buttonLayout()
The layout scheme to use for dialog buttons.
Definition: kglobalsettings.cpp:819
QString protocol() const
static bool wheelMouseZooms()
Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wh...
Definition: kglobalsettings.cpp:707
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not...
Definition: kglobalsettings.h:130
Alternate background; for example, for use in lists.
Definition: kcolorscheme.h:141
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Definition: kstandardaction.cpp:314
static QColor activeTextColor()
The default color to use for active texts.
Definition: kglobalsettings.cpp:350
static QFont windowTitleFont()
Returns the default window title font.
Definition: kglobalsettings.cpp:462
The shadow color is darker than light() or midlight() and contrasts the base color.
Definition: kcolorscheme.h:297
static GraphicEffects graphicEffectsLevelDefault()
This function determines the default level of effects on the GUI depending on the system capabilities...
Definition: kglobalsettings.cpp:797
QString localxdgconfdir() const
static bool showIconsOnPushButtons()
This function determines if the user wishes to see icons on the push buttons.
Definition: kglobalsettings.cpp:768
static QString documentPath()
The path where documents are stored of the current user.
Definition: kglobalsettings.cpp:646
static bool showFilePreview(const QString &protocol)
static const KFontData DefaultFontData[KGlobalSettingsData::FontTypesCount]
Definition: kglobalsettings.cpp:404
static QString autostartPath()
The path to the autostart directory of the current user.
Definition: kglobalsettings.cpp:633
Make all globally applicable settings take effect.
Definition: kglobalsettings.h:568
Lists all possible matches in a popup list-box to choose from.
Definition: kglobalsettings.h:199
KLocale * locale()
static QFont largeFont(const QString &text=QString())
Returns a font of approx.
Definition: kglobalsettings.cpp:540
static bool changeCursorOverIcon()
Checks whether the cursor changes over icons.
Definition: kglobalsettings.cpp:255
static QColor inactiveTextColor()
The default color to use for inactive texts.
Definition: kglobalsettings.cpp:328
static int contextMenuKey()
Returns the KDE setting for the shortcut key to open context menus.
Definition: kglobalsettings.cpp:287
static QRect splashScreenDesktopGeometry()
This function returns the desktop geometry for an application's splash screen.
Definition: kglobalsettings.cpp:713
#define KDE_DEFAULT_ALLOW_DEFAULT_BACKGROUND_IMAGES
Definition: kglobalsettings.h:42
void reparseConfiguration()
static TearOffHandle insertTearOffHandle()
Returns whether tear-off handles are inserted in KMenus.
Definition: kglobalsettings.cpp:245
static bool isMultiHead()
Returns if the user specified multihead.
Definition: kglobalsettings.cpp:694
static int autoSelectDelay()
Returns the KDE setting for the auto-select option.
Definition: kglobalsettings.cpp:261
KAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to one of the KStandardAction::StandardAction actions, which is connected to the given object and slot, and is owned by parent.
Definition: kstandardaction.cpp:82
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition: kglobalsettings.h:179
QString localkdedir() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void activate()
Makes all globally applicable settings take effect and starts listening for changes to these settings...
Definition: kglobalsettings.cpp:204
static KMouseSettings & mouseSettings()
This returns the current mouse settings.
Definition: kglobalsettings.cpp:613
static GraphicEffects graphicEffectsLevel()
This function determines the desired level of effects on the GUI.
Definition: kglobalsettings.cpp:782
static bool showFilePreview(const KUrl &)
This function determines if the user wishes to see previews for the selected url. ...
Definition: kglobalsettings.cpp:805
static Completion completionMode()
Returns the preferred completion mode setting.
Definition: kglobalsettings.cpp:267
static QString picturesPath()
The path where pictures are stored of the current user.
Definition: kglobalsettings.cpp:682
#define KDE_DEFAULT_INSERTTEAROFFHANDLES
Definition: kglobalsettings.h:29
static int dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
Definition: kglobalsettings.cpp:227
T readEntry(const QString &key, const T &aDefault) const
static QFont smallestReadableFont()
Returns the smallest readable font.
Definition: kglobalsettings.cpp:470
Lists all possible matches in a popup list-box to choose from, and automatically fill the result when...
Definition: kglobalsettings.h:204
Listen for changes to the settings.
Definition: kglobalsettings.h:569
static QString musicPath()
The path where music are stored of the current user.
Definition: kglobalsettings.cpp:688
static bool smoothScroll()
Returns if item views should force smooth scrolling.
Definition: kglobalsettings.cpp:239
#define KDE_DEFAULT_ICON_ON_PUSHBUTTON
Definition: kglobalsettings.h:35
static bool naturalSorting()
Returns true, if user visible strings should be sorted in a natural way: image 1.jpg image 2...
Definition: kglobalsettings.cpp:775
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.