DeleteSetOfPoints function working
[engrid.git] / guisettingsviewer.h
blob1a09cf55da4358d6fe2416801324ce85117855bf
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008,2009 Oliver Gloth +
7 // + +
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. +
12 // + +
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. +
17 // + +
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/>. +
20 // + +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #ifndef SETTINGSVIEWER_H
24 #define SETTINGSVIEWER_H
26 #include <QDialog>
27 #include <QtGui>
29 #include "guisettingstab.h"
31 // class QPushButton;
32 // class QSettings;
33 // class QTreeWidget;
34 // class QTreeWidgetItem;
36 /**
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
41 Q_OBJECT
43 public:
45 // constructors
46 /**
47 * Constructor using the (org,app) pair to determine QSettings
48 * @param org organization
49 * @param app application
50 * @param group group
51 * @param parent Parent QWidget
53 GuiSettingsViewer(QString org, QString app,QWidget *parent = 0);
54 /**
55 * Constructor taking a QSettings argument to build the widget.
56 * @param Set QSettings to use
57 * @param group group
58 * @param parent Parent QWidget
60 GuiSettingsViewer(QSettings* Set,QWidget *parent = 0);
62 private slots:
63 void open();
64 void save();
65 void CreateViewer();
66 void readSettings();
67 void addChildSettings();
69 private:
71 QPushButton *openButton;
72 QPushButton *saveButton;
73 QPushButton *closeButton;
75 QTabWidget tabWidget;
76 QVector<GuiSettingsTab> tabs;
78 QString organization;
79 QString application;
80 QSettings* settings;
83 #endif