source: tspsg/src/settingsdialog.h @ e51c78af27

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since e51c78af27 was 1babbd6ba3, checked in by Oleksii Serdiuk, 14 years ago

+ Added Installation Guide.

  • Updated translations.
  • Updated documentaion.
  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[caef58b531]1/*!
[e0fcac5f2c]2 * \file settingsdialog.h
[1757eb594b]3 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[5515c2c2a7]4 *
[bb994a7ff8]5 *  $Id$
6 *  $URL$
[f99964aa0b]7 *
[e0fcac5f2c]8 * \brief Defines SettingsDialog class.
9 *
[caef58b531]10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
[bb994a7ff8]12 *  This file is part of TSPSG.
[5515c2c2a7]13 *
[bb994a7ff8]14 *  TSPSG is free software: you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License as published by
16 *  the Free Software Foundation, either version 3 of the License, or
17 *  (at your option) any later version.
[5515c2c2a7]18 *
[bb994a7ff8]19 *  TSPSG is distributed in the hope that it will be useful,
20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 *  GNU General Public License for more details.
[5515c2c2a7]23 *
[bb994a7ff8]24 *  You should have received a copy of the GNU General Public License
25 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
[5515c2c2a7]26 */
27
28#ifndef SETTINGSDIALOG_H
29#define SETTINGSDIALOG_H
30
[993d5af6f6]31#include "globals.h"
[bc1b8837b6]32
[281303f1f7]33#include "ui_settingsdialog.h"
[5515c2c2a7]34
[e0fcac5f2c]35/*!
36 * \brief Class for handling Settings Dialog UI and logic.
[1757eb594b]37 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[e0fcac5f2c]38 */
[caef58b531]39class SettingsDialog: public QDialog, Ui::SettingsDialog
[5515c2c2a7]40{
41        Q_OBJECT
42public:
43        SettingsDialog(QWidget *parent = 0);
[430bd7f7e9]44        bool colorChanged() const;
[281303f1f7]45        bool fontChanged() const;
[11086c2def]46        qint8 translucencyChanged() const;
[281303f1f7]47
[7836f136eb]48private:
[11086c2def]49        bool _newFont;
50        bool _newColor;
51        qint8 _translucency;
52
[aecdf994f9]53        QColor color;
[281303f1f7]54        QFont font;
[11086c2def]55
[281303f1f7]56        QSettings *settings;
[1fbf016a09]57        QHBoxLayout *layoutCitiesLimit;
[11086c2def]58#ifdef Q_OS_WIN32
59        QCheckBox *cbUseTranslucency;
60#endif // Q_OS_WIN32
[1babbd6ba3]61#ifdef Q_OS_WINCE_WM
[b2bf8e3b6b]62        QRect currentGeometry;
63#elif !defined(Q_OS_SYMBIAN)
[caef58b531]64        QCheckBox *cbSaveState;
65        QLabel *imgIcon;
66        QFrame *lineVertical;
[6beb157497]67        QLabel *labelHint;
[e0fcac5f2c]68
[0ac9690913]69        bool event(QEvent *ev);
[1babbd6ba3]70#endif // Q_OS_WINCE_WM
[7836f136eb]71
[5515c2c2a7]72private slots:
[aecdf994f9]73        void accept();
74        void buttonColorClicked();
[281303f1f7]75        void buttonFontClicked();
[1babbd6ba3]76#ifdef Q_OS_WINCE_WM
[b2bf8e3b6b]77        void desktopResized(int screen);
[278bc7818f]78        void showEvent(QShowEvent *ev);
[1babbd6ba3]79#endif // Q_OS_WINCE_WM
[0ac9690913]80        void spinRandMinValueChanged(int val);
[5515c2c2a7]81};
82
[67e53c96d7]83#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.