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

Last change on this file since 161 was 151, checked in by laleppa, 14 years ago

Changed 2010 to 2011 in the source code copyrights.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id URL
File size: 2.2 KB
RevLine 
[116]1/*!
2 * \file settingsdialog.h
[151]3 * \author Copyright &copy; 2007-2011 Lёppa <contacts[at]oleksii[dot]name>
[116]4 *
5 *  $Id: settingsdialog.h 151 2011-01-19 22:27:49Z laleppa $
6 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/settingsdialog.h $
7 *
8 * \brief Defines SettingsDialog class.
9 *
10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
12 *  This file is part of TSPSG.
13 *
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.
18 *
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.
23 *
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/>.
26 */
27
28#ifndef SETTINGSDIALOG_H
29#define SETTINGSDIALOG_H
30
31#include "globals.h"
32
33#include "ui_settingsdialog.h"
34
35/*!
36 * \brief Class for handling Settings Dialog UI and logic.
[151]37 * \author Copyright &copy; 2007-2011 Lёppa <contacts[at]oleksii[dot]name>
[116]38 */
39class SettingsDialog: public QDialog, Ui::SettingsDialog
40{
[149]41    Q_OBJECT
[116]42public:
[149]43    SettingsDialog(QWidget *parent = 0);
44    bool colorChanged() const;
45    bool fontChanged() const;
46    qint8 translucencyChanged() const;
[116]47
48private:
[149]49    bool _newFont;
50    bool _newColor;
51    qint8 _translucency;
[116]52
[149]53    QColor color;
54    QFont font;
[116]55
[149]56    QSettings *settings;
57    QHBoxLayout *layoutCitiesLimit;
[150]58#ifndef HANDHELD
[149]59    QCheckBox *cbUseTranslucency;
[150]60#endif // HANDHELD
[149]61    QCheckBox *cbCheck4Updates;
62    QSpinBox *spinUpdateCheckInterval;
[127]63#ifndef QT_NO_PRINTER
[149]64    QCheckBox *cbHQGraph;
[127]65#endif
[141]66#ifdef Q_WS_WINCE_WM
[149]67    QRect currentGeometry;
[121]68#elif !defined(HANDHELD)
[149]69    QCheckBox *cbSaveState;
70    QLabel *imgIcon;
71    QFrame *lineVertical;
72    QLabel *labelHint;
[116]73
[143]74#ifndef QT_NO_STATUSTIP
[149]75    bool event(QEvent *ev);
[143]76#endif // QT_NO_STATUSTIP
[141]77#endif // Q_WS_WINCE_WM
[116]78
79private slots:
[149]80    void accept();
81    void buttonColorClicked();
82    void buttonFontClicked();
[141]83#ifdef Q_WS_WINCE_WM
[149]84    void desktopResized(int screen);
85    void showEvent(QShowEvent *ev);
[141]86#endif // Q_WS_WINCE_WM
[149]87    void spinRandMinValueChanged(int val);
[116]88};
89
90#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.