1 /***************************************************************************
4 begin : Sun Dec 16 13:52:24 CET 2001
5 copyright : (C) 2001 by Michael v.Ostheim
6 email : MvOstheim@web.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
30 class KGamma
: public KCModule
34 KGamma(QWidget
* parent_P
, const QVariantList
&args
);
41 QString
quickHelp() const;
43 protected: // Protected methods
44 /** The user interface */
46 /** Decides if to load settings from user or system config */
48 /** Load settings from kgammarc */
49 bool loadUserSettings();
50 /** Load settings from XF86Config */
51 bool loadSystemSettings();
52 /** Validate the loaded gamma values */
53 bool validateGammaValues();
56 /** Called if the user changesd something */
57 void Changed() { emit
changed(true); }
58 /** Called if the user marked or unmarked the XF86Config checkbox */
60 /** Called if the user marked or unmarked the sync screen checkbox */
62 /** Called if the user chooses a new screen */
63 void changeScreen(int sn
);
66 bool saved
, GammaCorrection
;
67 int ScreenCount
, currentScreen
;
68 QStringList rgamma
, ggamma
, bgamma
;
70 QList
<float> rbak
, gbak
, bbak
;
71 GammaCtrl
*gctrl
, *rgctrl
, *ggctrl
, *bgctrl
;
72 QCheckBox
*xf86cfgbox
, *syncbox
;
73 QComboBox
*screenselect
;
74 K3Process
*rootProcess
;