Adding Macros!
[pierogi] / dialogs / pircreatecommanddialog.h
1 #ifndef PIRCREATECOMMANDDIALOG_H
2 #define PIRCREATECOMMANDDIALOG_H
3
4 #include <QDialog>
5
6 #include "pirkeynames.h"
7
8 class QComboBox;
9
10 enum CommandType
11 {
12   No_Command,
13   Key_Command,
14   Keyset_Command,
15   Pause_Command
16 };
17
18 namespace Ui {
19 class PIRCreateCommandDialog;
20 }
21
22 class PIRCreateCommandDialog : public QDialog
23 {
24   Q_OBJECT
25   
26 public:
27 //  explicit PIRCreateCommandDialog(QWidget *parent = 0);
28
29   PIRCreateCommandDialog();
30
31   ~PIRCreateCommandDialog();
32
33   QComboBox *getKeysetComboBox();
34
35   CommandType getCommandType();
36
37   QString getKeysetName();
38
39   unsigned int getKeysetID();
40
41   PIRKeyName getKeyName();
42
43   unsigned int getTimeToWait();
44
45   void init();
46   
47 private:
48   void setupPowerKeys(
49     QComboBox *cb);
50
51   void setupNumericKeys(
52     QComboBox *cb);
53
54   void setupChannelKeys(
55     QComboBox *cb);
56
57   void setupVolumeKeys(
58     QComboBox *cb);
59
60   void setupMenuKeys(
61     QComboBox *cb);
62
63   void setupMediaKeys(
64     QComboBox *cb);
65
66   void setupInputKeys(
67     QComboBox *cb);
68
69   void setupKey(
70     QComboBox *cb,
71     PIRKeyName keyName);
72
73   Ui::PIRCreateCommandDialog *ui;
74 };
75
76 #endif // PIRCREATECOMMANDDIALOG_H