compile with Exiv2 < 0.18
[kdegraphics.git] / kgamma / kcmkgamma / kgamma.h
blob877d4319d552f16582652705e2cfee969b0c9812
1 /***************************************************************************
2 kgamma.h - description
3 -------------------
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 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
17 #ifndef KGAMMA_H_
18 #define KGAMMA_H_
20 #include <kcmodule.h>
21 //Added by qt3to4:
22 #include <QList>
24 class GammaCtrl;
25 class QCheckBox;
26 class QComboBox;
27 class XVidExtWrap;
28 class K3Process;
30 class KGamma: public KCModule
32 Q_OBJECT
33 public:
34 KGamma(QWidget* parent_P, const QVariantList &args );
35 virtual ~KGamma();
37 void load();
38 void save();
39 void defaults();
40 int buttons();
41 QString quickHelp() const;
43 protected: // Protected methods
44 /** The user interface */
45 void setupUI();
46 /** Decides if to load settings from user or system config */
47 bool loadSettings();
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();
55 private slots:
56 /** Called if the user changesd something */
57 void Changed() { emit changed(true); }
58 /** Called if the user marked or unmarked the XF86Config checkbox */
59 void changeConfig();
60 /** Called if the user marked or unmarked the sync screen checkbox */
61 void SyncScreens();
62 /** Called if the user chooses a new screen */
63 void changeScreen(int sn);
65 private:
66 bool saved, GammaCorrection;
67 int ScreenCount, currentScreen;
68 QStringList rgamma, ggamma, bgamma;
69 QList<int> assign;
70 QList<float> rbak, gbak, bbak;
71 GammaCtrl *gctrl, *rgctrl, *ggctrl, *bgctrl;
72 QCheckBox *xf86cfgbox, *syncbox;
73 QComboBox *screenselect;
74 K3Process *rootProcess;
75 XVidExtWrap *xv;
78 #endif