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