summaryrefslogtreecommitdiffstats
path: root/src/gui/profileDialog.h
diff options
context:
space:
mode:
authorJohann Latocha2010-11-17 20:21:30 +0100
committerJohann Latocha2010-11-17 20:21:30 +0100
commit1db4bdcc019001c6bb8f72eb540d6ad29845623c (patch)
treeb3f6b79dc7066405fa2871f864f8a3805c1042c1 /src/gui/profileDialog.h
parentÄnderungen, Umbenennungen in der Dokustruktur. (diff)
downloadpvs-1db4bdcc019001c6bb8f72eb540d6ad29845623c.tar.gz
pvs-1db4bdcc019001c6bb8f72eb540d6ad29845623c.tar.xz
pvs-1db4bdcc019001c6bb8f72eb540d6ad29845623c.zip
[PVSMGR] New profile management
Diffstat (limited to 'src/gui/profileDialog.h')
-rw-r--r--src/gui/profileDialog.h44
1 files changed, 13 insertions, 31 deletions
diff --git a/src/gui/profileDialog.h b/src/gui/profileDialog.h
index 5caebfa..58a3de6 100644
--- a/src/gui/profileDialog.h
+++ b/src/gui/profileDialog.h
@@ -2,45 +2,27 @@
#define PROFILEDIALOG_H_
#include <QtGui>
-#include <QDialog>
-#include <src/gui/mainWindow.h>
+#include "ui_profileDialog.h"
+#include "mainWindow.h"
-namespace Ui
+class profileDialog: public QDialog, private Ui::ProfileDialogClass
{
-class Dialog;
-}
-
-class MainWindow;
-
-class profileDialog : public QDialog
-{
- Q_OBJECT
+Q_OBJECT
public:
- profileDialog(QWidget * parent = 0);
- virtual ~profileDialog();
-
- void setUpProfile();
-
-
+ profileDialog(QWidget * parent = 0);
+ ~profileDialog();
-signals:
- void selectionChanged (const QItemSelection &selected);
+public Q_SLOTS:
+ void add();
+ void remove();
+ void save();
+ void load();
private:
- Ui::Dialog *uidiag;
- QTableView *content;
- QAbstractItemModel *model;
- QItemSelectionModel *selectionModel;
- QList<QString> ProfilList;
+ QSettings *_profiles;
+ QString _current;
-private Q_SLOTS:
- void AddProfile();
- void removeProfile();
- void onNew();
- void onLoad();
- void selectionChange(const QModelIndex & index);
- void close();
};
#endif /* PROFILEDIALOG_H_ */