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 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #ifndef SETTINGSVIEWER_H
24 #define SETTINGSVIEWER_H
29 #include "guisettingstab.h"
34 // class QTreeWidgetItem;
37 * Creates a QWidget with one tab per main group found in the specified QSettingsm file. each of those tabs is a SettingsTab .
39 class GuiSettingsViewer
: public QDialog
47 * Constructor using the (org,app) pair to determine QSettings
48 * @param org organization
49 * @param app application
51 * @param parent Parent QWidget
53 GuiSettingsViewer(QString org
, QString app
,QWidget
*parent
= 0);
55 * Constructor taking a QSettings argument to build the widget.
56 * @param Set QSettings to use
58 * @param parent Parent QWidget
60 GuiSettingsViewer(QSettings
* Set
,QWidget
*parent
= 0);
67 void addChildSettings();
71 QPushButton
*openButton
;
72 QPushButton
*saveButton
;
73 QPushButton
*closeButton
;
76 QVector
<GuiSettingsTab
> tabs
;