Back to index

kdeartwork  4.3.2
Public Member Functions | Public Attributes
Glow::GlowClientConfig Class Reference

#include <glowclient.h>

List of all members.

Public Member Functions

 GlowClientConfig ()
void load (KDecorationFactory *factory)

Public Attributes

QColor stickyButtonGlowColor
QColor helpButtonGlowColor
QColor iconifyButtonGlowColor
QColor maximizeButtonGlowColor
QColor closeButtonGlowColor
bool showResizeHandle
int titlebarGradientType
QString themeName

Detailed Description

Definition at line 94 of file glowclient.h.


Constructor & Destructor Documentation

Definition at line 57 of file glowclient.cpp.

{
       themeName = "default";
}

Member Function Documentation

void Glow::GlowClientConfig::load ( KDecorationFactory *  factory)

Definition at line 62 of file glowclient.cpp.

{
       KConfig conf("kwinglowrc");
       conf.setGroup("General");

       const QColor defaultCloseButtonColor(DEFAULT_CLOSE_BUTTON_COLOR);
       const QColor defaultMaximizeButtonColor(DEFAULT_MAXIMIZE_BUTTON_COLOR);
       const QColor defaultIconifyButtonColor(DEFAULT_ICONIFY_BUTTON_COLOR);
       const QColor defaultHelpButtonColor(DEFAULT_HELP_BUTTON_COLOR);
       const QColor defaultStickyButtonColor(DEFAULT_STICKY_BUTTON_COLOR);

       stickyButtonGlowColor = conf.readColorEntry(
              "stickyButtonGlowColor", &defaultStickyButtonColor);

       helpButtonGlowColor = conf.readColorEntry(
              "helpButtonGlowColor", &defaultHelpButtonColor);

       iconifyButtonGlowColor = conf.readColorEntry(
              "iconifyButtonGlowColor", &defaultIconifyButtonColor);

       maximizeButtonGlowColor = conf.readColorEntry(
              "maximizeButtonGlowColor", &defaultMaximizeButtonColor);

       closeButtonGlowColor = conf.readColorEntry(
              "closeButtonGlowColor", &defaultCloseButtonColor);

       showResizeHandle = conf.readEntry("showResizeHandle", true);
       titlebarGradientType = conf.readNumEntry("titlebarGradientType",
              KPixmapEffect::DiagonalGradient);

       themeName = conf.readEntry ("themeName", "default");

       switch(KDecoration::options()->preferredBorderSize (factory)) {
       case KDecoration::BorderLarge:
              SIDE_MARGIN = 8;
              BOTTOM_MARGIN = 6;
              RESIZE_HANDLE_HEIGHT = 10;
              break;
       case KDecoration::BorderVeryLarge:
              SIDE_MARGIN = 12;
              BOTTOM_MARGIN = 12;
              RESIZE_HANDLE_HEIGHT = 18;
              break;
       case KDecoration::BorderHuge:
              SIDE_MARGIN = 18;
              BOTTOM_MARGIN = 18;
              RESIZE_HANDLE_HEIGHT = 27;
              break;
       case KDecoration::BorderVeryHuge:
              SIDE_MARGIN = 27;
              BOTTOM_MARGIN = 27;
              RESIZE_HANDLE_HEIGHT = 40;
              break;
       case KDecoration::BorderOversized:
              SIDE_MARGIN = 40;
              BOTTOM_MARGIN = 40;
              RESIZE_HANDLE_HEIGHT = 60;
              break;
       case KDecoration::BorderNormal:
       default:
              SIDE_MARGIN = 4;
              BOTTOM_MARGIN = 2;
              RESIZE_HANDLE_HEIGHT = 4;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 105 of file glowclient.h.

Definition at line 102 of file glowclient.h.

Definition at line 103 of file glowclient.h.

Definition at line 104 of file glowclient.h.

Definition at line 106 of file glowclient.h.

Definition at line 101 of file glowclient.h.

Definition at line 108 of file glowclient.h.

Definition at line 107 of file glowclient.h.


The documentation for this class was generated from the following files: