source: tspsg/src/settingsdialog.h @ caef58b531

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since caef58b531 was caef58b531, checked in by Oleksii Serdiuk, 15 years ago

More code documentation.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[caef58b531]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>
[5515c2c2a7]5 *
[bb994a7ff8]6 *  $Id$
7 *  $URL$
[f99964aa0b]8 *
[caef58b531]9 *  <b>TSPSG: TSP Solver and Generator</b>
10 *
[bb994a7ff8]11 *  This file is part of TSPSG.
[5515c2c2a7]12 *
[bb994a7ff8]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.
[5515c2c2a7]17 *
[bb994a7ff8]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.
[5515c2c2a7]22 *
[bb994a7ff8]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/>.
[5515c2c2a7]25 */
26
27#ifndef SETTINGSDIALOG_H
28#define SETTINGSDIALOG_H
29
[993d5af6f6]30#include "globals.h"
[bc1b8837b6]31
[281303f1f7]32#include "ui_settingsdialog.h"
[5515c2c2a7]33
[caef58b531]34class SettingsDialog: public QDialog, Ui::SettingsDialog
[5515c2c2a7]35{
36        Q_OBJECT
37public:
38        SettingsDialog(QWidget *parent = 0);
[430bd7f7e9]39        bool colorChanged() const;
[281303f1f7]40        bool fontChanged() const;
41
[7836f136eb]42private:
[aecdf994f9]43        QColor color;
[281303f1f7]44        QFont font;
[430bd7f7e9]45        bool newFont;
46        bool newColor;
[281303f1f7]47        QSettings *settings;
[aecdf994f9]48#ifndef Q_OS_WINCE
[7836f136eb]49        bool event(QEvent *);
[caef58b531]50
51        QCheckBox *cbSaveState;
52        QLabel *imgIcon;
53        QLabel *labelHint;
54        QFrame *lineVertical;
55#endif // Q_OS_WINCE
[7836f136eb]56
[5515c2c2a7]57private slots:
[aecdf994f9]58        void accept();
59        void buttonColorClicked();
[281303f1f7]60        void buttonFontClicked();
[caef58b531]61        void spinRandMinValueChanged(int);
[5515c2c2a7]62};
63
[67e53c96d7]64#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.