updated to modern VTK
[engrid-github.git] / src / libengrid / guisettingstab.h
bloba427565327fe1ee12392c3d3ef2f231700359e4a
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
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. +
11 // + +
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. +
16 // + +
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/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef SETTINGSTAB_H
22 #define SETTINGSTAB_H
24 #include <QWidget>
25 #include <QString>
26 #include <QtGui>
27 #include <QVector>
28 #include <QSpinBox>
29 #include <QCheckBox>
32 #include "dialoglineedit.h"
33 ///\todo fix problems with more than one boolean + general tab stuff
35 /**
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
46 Q_OBJECT;
48 public:
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
68 public:
69 //constructors
70 /**
71 * Constructor using the (org,app) pair to determine QSettings
72 * @param org organization
73 * @param app application
74 * @param group group
75 * @param parent Parent QWidget
77 GuiSettingsTab(QString org, QString app, QString group, QWidget *parent = 0);
81 #endif