2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 // + This file is part of enGrid. +
6 // + Copyright 2008,2009 Oliver Gloth +
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. +
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. +
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/>. +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
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
;
57 * Constructor using the (org,app) pair to determine QSettings
58 * @param org organization
59 * @param app application
61 * @param parent Parent QWidget
63 GuiSettingsTab(QString org
,QString app
,QString group
,QWidget
*parent
= 0);