some gui changes
[engrid.git] / guisettingstab.h
blob14bc0d356b8fb7b1ec5a580b6947adea446091b4
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008,2009 Oliver Gloth +
7 // + +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
12 // + +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
17 // + +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 // + +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #ifndef SETTINGSTAB_H
24 #define SETTINGSTAB_H
26 #include <QWidget>
27 #include <QString>
28 #include <QtGui>
29 #include <QVector>
31 /**
32 * Creates a QWidget listing all key/value pairs contained in the group "group"
33 * of the QSettings file corresponding to the (org,app) pair.
34 * integers appear in spinboxes
35 * doubles appear in line edit boxes
36 * booleans appear in checkboxes
38 class GuiSettingsTab : public QWidget
41 Q_OBJECT;
43 public:
45 QVector<QString> spinbox_name;
46 QVector<QSpinBox*> spinbox;
48 QVector<QString> checkbox_name;
49 QVector<QCheckBox*> checkbox;
51 QVector<QString> lineedit_name;
52 QVector<QLineEdit*> lineedit;
54 public:
55 //constructors
56 /**
57 * Constructor using the (org,app) pair to determine QSettings
58 * @param org organization
59 * @param app application
60 * @param group group
61 * @param parent Parent QWidget
63 GuiSettingsTab(QString org,QString app,QString group,QWidget *parent = 0);
67 #endif