A couple of UI additions
[pierogi] / pirpreferencesform.h
1 #ifndef PIRPREFERENCESFORM_H
2 #define PIRPREFERENCESFORM_H
3
4 #include <QWidget>
5
6 class MainWindow;
7 class PIRKeysetManager;
8
9 namespace Ui {
10 class PIRPreferencesForm;
11 }
12
13 class PIRPreferencesForm : public QWidget
14 {
15   Q_OBJECT
16   
17 public:
18   PIRPreferencesForm(
19     QWidget *parent,
20     const PIRKeysetManager *keysetManager);
21
22   ~PIRPreferencesForm();
23
24   unsigned int getDefaultKeyset()
25   {
26     return defaultKeyset;
27   }
28
29   bool defaultControlsVolume()
30   {
31     return useDefaultForVolume;
32   }
33   
34 private slots:
35   void on_setDefaultButton_clicked();
36   void on_clearDefaultButton_clicked();
37   void on_useDefaultCheckBox_stateChanged(int arg1);
38   void on_altMainCheckBox_stateChanged(int arg1);
39
40 private:
41   Ui::PIRPreferencesForm *ui;
42
43   MainWindow *mainWindow;
44
45   unsigned int defaultKeyset;
46   bool useDefaultForVolume;
47 };
48
49 #endif // PIRPREFERENCESFORM_H