Adding Macros!
[pierogi] / dialogs / pircreatecommanddialog.h
index 2c7d699..acfe046 100644 (file)
@@ -3,7 +3,17 @@
 
 #include <QDialog>
 
-class MainWindow;
+#include "pirkeynames.h"
+
+class QComboBox;
+
+enum CommandType
+{
+  No_Command,
+  Key_Command,
+  Keyset_Command,
+  Pause_Command
+};
 
 namespace Ui {
 class PIRCreateCommandDialog;
@@ -16,12 +26,50 @@ class PIRCreateCommandDialog : public QDialog
 public:
 //  explicit PIRCreateCommandDialog(QWidget *parent = 0);
 
-  PIRCreateCommandDialog(
-    MainWindow *mw);
+  PIRCreateCommandDialog();
 
   ~PIRCreateCommandDialog();
+
+  QComboBox *getKeysetComboBox();
+
+  CommandType getCommandType();
+
+  QString getKeysetName();
+
+  unsigned int getKeysetID();
+
+  PIRKeyName getKeyName();
+
+  unsigned int getTimeToWait();
+
+  void init();
   
 private:
+  void setupPowerKeys(
+    QComboBox *cb);
+
+  void setupNumericKeys(
+    QComboBox *cb);
+
+  void setupChannelKeys(
+    QComboBox *cb);
+
+  void setupVolumeKeys(
+    QComboBox *cb);
+
+  void setupMenuKeys(
+    QComboBox *cb);
+
+  void setupMediaKeys(
+    QComboBox *cb);
+
+  void setupInputKeys(
+    QComboBox *cb);
+
+  void setupKey(
+    QComboBox *cb,
+    PIRKeyName keyName);
+
   Ui::PIRCreateCommandDialog *ui;
 };