1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + This file is part of enGrid. +
5 // + Copyright 2008-2014 enGits GmbH +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29 #include "dialoglineedit.h"
30 ///\todo fix problems with more than one boolean + general tab stuff
33 * Creates a QWidget listing all key/value pairs contained in the group "group"
34 * of the QSettings file corresponding to the (org,app) pair.
35 * integers appear in spinboxes
36 * doubles appear in line edit boxes
37 * booleans appear in checkboxes
38 * \todo fix problems with more than one boolean + general tab stuff
40 class GuiSettingsTab
: public QWidget
47 QVector
<QString
> spinbox_name
;///< vector of the label texts of the QSpinBox widgets
48 QVector
<QSpinBox
*> spinbox
;///< vector of pointers to the QSpinBox widgets
50 QVector
<QString
> checkbox_name
;///< vector of the label texts of the QCheckBox widgets
51 QVector
<QCheckBox
*> checkbox
;///< vector of pointers to the QCheckBox widgets
53 QVector
<QString
> double_lineedit_name
;///< vector of the label texts of the double QLineEdit widgets
54 QVector
<QLineEdit
*> double_lineedit
;///< vector of pointers to the double QLineEdit widgets
56 QVector
<QString
> string_lineedit_name
;///< vector of the label texts of the string QLineEdit widgets
57 QVector
<QLineEdit
*> string_lineedit
;///< vector of pointers to the string QLineEdit widgets
59 QVector
<QString
> filename_dialoglineedit_name
;///< vector of the label texts of the filename DialogLineEdit widgets
60 QVector
<DialogLineEdit
*> filename_dialoglineedit
;///< vector of pointers to the filename DialogLineEdit widgets
62 QVector
<QString
> directory_dialoglineedit_name
;///< vector of the label texts of the directory DialogLineEdit widgets
63 QVector
<DialogLineEdit
*> directory_dialoglineedit
;///< vector of pointers to the directory DialogLineEdit widgets
68 * Constructor using the (org,app) pair to determine QSettings
69 * @param org organization
70 * @param app application
72 * @param parent Parent QWidget
74 GuiSettingsTab(QString org
, QString app
, QString group
, QWidget
*parent
= 0);