[65] | 1 | /*! |
---|
| 2 | * \class SettingsDialog |
---|
| 3 | * \brief Class for handling Settings Dialog UI and logic. |
---|
| 4 | * \author Copyright © 2007-2009 Lёppa <contacts[at]oleksii[dot]name> |
---|
[1] | 5 | * |
---|
[6] | 6 | * $Id: settingsdialog.h 66 2009-10-21 12:48:49Z laleppa $ |
---|
| 7 | * $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/settingsdialog.h $ |
---|
[3] | 8 | * |
---|
[65] | 9 | * <b>TSPSG: TSP Solver and Generator</b> |
---|
| 10 | * |
---|
[6] | 11 | * This file is part of TSPSG. |
---|
[1] | 12 | * |
---|
[6] | 13 | * TSPSG is free software: you can redistribute it and/or modify |
---|
| 14 | * it under the terms of the GNU General Public License as published by |
---|
| 15 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 16 | * (at your option) any later version. |
---|
[1] | 17 | * |
---|
[6] | 18 | * TSPSG is distributed in the hope that it will be useful, |
---|
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 21 | * GNU General Public License for more details. |
---|
[1] | 22 | * |
---|
[6] | 23 | * You should have received a copy of the GNU General Public License |
---|
| 24 | * along with TSPSG. If not, see <http://www.gnu.org/licenses/>. |
---|
[1] | 25 | */ |
---|
| 26 | |
---|
| 27 | #ifndef SETTINGSDIALOG_H |
---|
| 28 | #define SETTINGSDIALOG_H |
---|
| 29 | |
---|
[66] | 30 | /*! |
---|
| 31 | * \file settingsdialog.h |
---|
| 32 | * \brief Defines SettingsDialog class. |
---|
| 33 | */ |
---|
| 34 | |
---|
[31] | 35 | #include "globals.h" |
---|
[64] | 36 | |
---|
[56] | 37 | #include "ui_settingsdialog.h" |
---|
[1] | 38 | |
---|
[65] | 39 | class SettingsDialog: public QDialog, Ui::SettingsDialog |
---|
[1] | 40 | { |
---|
| 41 | Q_OBJECT |
---|
| 42 | public: |
---|
| 43 | SettingsDialog(QWidget *parent = 0); |
---|
[56] | 44 | bool colorChanged() const; |
---|
[42] | 45 | bool fontChanged() const; |
---|
[9] | 46 | |
---|
| 47 | private: |
---|
[56] | 48 | QColor color; |
---|
[21] | 49 | QFont font; |
---|
[42] | 50 | bool newFont; |
---|
| 51 | bool newColor; |
---|
[56] | 52 | QSettings *settings; |
---|
[21] | 53 | #ifndef Q_OS_WINCE |
---|
[9] | 54 | bool event(QEvent *); |
---|
| 55 | |
---|
[65] | 56 | QCheckBox *cbSaveState; |
---|
| 57 | QLabel *imgIcon; |
---|
| 58 | QLabel *labelHint; |
---|
| 59 | QFrame *lineVertical; |
---|
| 60 | #endif // Q_OS_WINCE |
---|
| 61 | |
---|
[1] | 62 | private slots: |
---|
[21] | 63 | void accept(); |
---|
[56] | 64 | void buttonColorClicked(); |
---|
| 65 | void buttonFontClicked(); |
---|
[65] | 66 | void spinRandMinValueChanged(int); |
---|
[1] | 67 | }; |
---|
| 68 | |
---|
[12] | 69 | #endif // SETTINGSDIALOG_H |
---|