Adding per-keyset editable data
[pierogi] / dialogs / pireditkeysetdialog.h
1 #ifndef PIREDITKEYSETDIALOG_H
2 #define PIREDITKEYSETDIALOG_H
3
4 #include <QDialog>
5
6 class PIRKeysetWidgetItem;
7 class MainWindow;
8
9 namespace Ui {
10 class PIREditKeysetDialog;
11 }
12
13 class PIREditKeysetDialog : public QDialog
14 {
15   Q_OBJECT
16   
17 public:
18 //  explicit PIREditKeysetDialog(QWidget *parent = 0);
19
20   PIREditKeysetDialog(
21     MainWindow *mw);
22
23   ~PIREditKeysetDialog();
24
25   void setupDialog(
26     PIRKeysetWidgetItem *kwi);
27   
28 private slots:
29   void enactChanges();
30
31 private:
32   void updateQSettingsNickname();
33   void removeQSettingsNickname();
34
35   Ui::PIREditKeysetDialog *ui;
36
37   MainWindow *mainWindow;
38   PIRKeysetWidgetItem *keysetItem;
39 };
40
41 #endif // PIREDITKEYSETDIALOG_H