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 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32 #include "dialoglineedit.h"
33 ///\todo fix problems with more than one boolean + general tab stuff
36 * Creates a QWidget listing all key/value pairs contained in the group "group"
37 * of the QSettings file corresponding to the (org,app) pair.
38 * integers appear in spinboxes
39 * doubles appear in line edit boxes
40 * booleans appear in checkboxes
41 * \todo fix problems with more than one boolean + general tab stuff
43 class GuiSettingsTab
: public QWidget
50 QVector
<QString
> spinbox_name
;///< vector of the label texts of the QSpinBox widgets
51 QVector
<QSpinBox
*> spinbox
;///< vector of pointers to the QSpinBox widgets
53 QVector
<QString
> checkbox_name
;///< vector of the label texts of the QCheckBox widgets
54 QVector
<QCheckBox
*> checkbox
;///< vector of pointers to the QCheckBox widgets
56 QVector
<QString
> double_lineedit_name
;///< vector of the label texts of the double QLineEdit widgets
57 QVector
<QLineEdit
*> double_lineedit
;///< vector of pointers to the double QLineEdit widgets
59 QVector
<QString
> string_lineedit_name
;///< vector of the label texts of the string QLineEdit widgets
60 QVector
<QLineEdit
*> string_lineedit
;///< vector of pointers to the string QLineEdit widgets
62 QVector
<QString
> filename_dialoglineedit_name
;///< vector of the label texts of the filename DialogLineEdit widgets
63 QVector
<DialogLineEdit
*> filename_dialoglineedit
;///< vector of pointers to the filename DialogLineEdit widgets
65 QVector
<QString
> directory_dialoglineedit_name
;///< vector of the label texts of the directory DialogLineEdit widgets
66 QVector
<DialogLineEdit
*> directory_dialoglineedit
;///< vector of pointers to the directory DialogLineEdit widgets
71 * Constructor using the (org,app) pair to determine QSettings
72 * @param org organization
73 * @param app application
75 * @param parent Parent QWidget
77 GuiSettingsTab(QString org
, QString app
, QString group
, QWidget
*parent
= 0);