source: tspsg-svn/trunk/src/settingsdialog.h @ 65

Last change on this file since 65 was 65, checked in by laleppa, 15 years ago

More code documentation.

  • Property svn:keywords set to Id URL
File size: 1.6 KB
RevLine 
[65]1/*!
2 * \class SettingsDialog
3 * \brief Class for handling Settings Dialog UI and logic.
4 * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
[1]5 *
[6]6 *  $Id: settingsdialog.h 65 2009-10-20 19:38:01Z 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
[31]30#include "globals.h"
[64]31
[56]32#include "ui_settingsdialog.h"
[1]33
[65]34class SettingsDialog: public QDialog, Ui::SettingsDialog
[1]35{
36        Q_OBJECT
37public:
38        SettingsDialog(QWidget *parent = 0);
[56]39        bool colorChanged() const;
[42]40        bool fontChanged() const;
[9]41
42private:
[56]43        QColor color;
[21]44        QFont font;
[42]45        bool newFont;
46        bool newColor;
[56]47        QSettings *settings;
[21]48#ifndef Q_OS_WINCE
[9]49        bool event(QEvent *);
50
[65]51        QCheckBox *cbSaveState;
52        QLabel *imgIcon;
53        QLabel *labelHint;
54        QFrame *lineVertical;
55#endif // Q_OS_WINCE
56
[1]57private slots:
[21]58        void accept();
[56]59        void buttonColorClicked();
60        void buttonFontClicked();
[65]61        void spinRandMinValueChanged(int);
[1]62};
63
[12]64#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.