TSP Solver and Generator
src/settingsdialog.h
Go to the documentation of this file.
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 #ifndef HANDHELD
00059     QCheckBox *cbUseTranslucency;
00060 #endif // HANDHELD
00061     QCheckBox *cbCheck4Updates;
00062     QSpinBox *spinUpdateCheckInterval;
00063 #ifndef QT_NO_PRINTER
00064     QCheckBox *cbHQGraph;
00065 #endif
00066 #ifdef Q_WS_WINCE_WM
00067     QRect currentGeometry;
00068 #elif !defined(HANDHELD)
00069     QCheckBox *cbSaveState;
00070     QLabel *imgIcon;
00071     QFrame *lineVertical;
00072     QLabel *labelHint;
00073 
00074 #ifndef QT_NO_STATUSTIP
00075     bool event(QEvent *ev);
00076 #endif // QT_NO_STATUSTIP
00077 #endif // Q_WS_WINCE_WM
00078 
00079 private slots:
00080     void accept();
00081     void buttonColorClicked();
00082     void buttonFontClicked();
00083 #ifdef Q_WS_WINCE_WM
00084     void desktopResized(int screen);
00085     void showEvent(QShowEvent *ev);
00086 #endif // Q_WS_WINCE_WM
00087     void spinRandMinValueChanged(int val);
00088 };
00089 
00090 #endif // SETTINGSDIALOG_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines