00001 00028 #ifndef SETTINGSDIALOG_H 00029 #define SETTINGSDIALOG_H 00030 00031 #include "globals.h" 00032 00033 #include "ui_settingsdialog.h" 00034 00039 class SettingsDialog: public QDialog, Ui::SettingsDialog 00040 { 00041 Q_OBJECT 00042 public: 00043 SettingsDialog(QWidget *parent = 0); 00044 bool colorChanged() const; 00045 bool fontChanged() const; 00046 qint8 translucencyChanged() const; 00047 00048 private: 00049 bool _newFont; 00050 bool _newColor; 00051 qint8 _translucency; 00052 00053 QColor color; 00054 QFont font; 00055 00056 QSettings *settings; 00057 QHBoxLayout *layoutCitiesLimit; 00058 #ifdef Q_OS_WIN32 00059 QCheckBox *cbUseTranslucency; 00060 #endif // Q_OS_WIN32 00061 #ifdef Q_OS_WINCE 00062 QRect currentGeometry; 00063 #elif !defined(Q_OS_SYMBIAN) 00064 QCheckBox *cbSaveState; 00065 QLabel *imgIcon; 00066 QFrame *lineVertical; 00067 QLabel *labelHint; 00068 00069 bool event(QEvent *ev); 00070 #endif // Q_OS_WINCE 00071 00072 private slots: 00073 void accept(); 00074 void buttonColorClicked(); 00075 void buttonFontClicked(); 00076 #ifdef Q_OS_WINCE 00077 void desktopResized(int screen); 00078 void showEvent(QShowEvent *ev); 00079 #endif // Q_OS_WINCE 00080 void spinRandMinValueChanged(int val); 00081 }; 00082 00083 #endif // SETTINGSDIALOG_H