Advanced Settings Panel
[pierogi] / mainwindow.h
index c27aedf..c42c5ec 100644 (file)
@@ -10,6 +10,9 @@
 class QListWidget;
 class QListWidgetItem;
 class QDialog;
+class QKeyEvent;
+
+//class PIRTabWidget;
 
 class PIRSelectKeysetForm;
 class PIRSelectDeviceForm;
@@ -18,9 +21,11 @@ class PIRDocumentationForm;
 class PIRAboutForm;
 class PIRFavoritesDialog;
 class PIRKeysetWidgetItem;
+class PIRMacroPack;
 
 class PIRKeysetManager;
 class PIRPanelManager;
+class PIRMacroManager;
 
 namespace Ui {
     class MainWindow;
@@ -71,11 +76,25 @@ public:
   QString getCurrentName();
   QString getCurrentFullName();
 
+  QString getKeysetMake(
+    unsigned int id);
+
+  QString getKeysetName(
+    unsigned int id);
+
+  QString getFullKeysetName(
+    unsigned int id);
+
   unsigned int getCurrentKeyset()
   {
     return currentKeyset;
   }
 
+  bool findKeysetID(
+    QString make,
+    QString name,
+    unsigned int &id);
+
   void insertCornerButtons();
   void disableUpdates();
   void enableUpdates();
@@ -93,6 +112,41 @@ public:
   void updateKeysetSelection(
     unsigned int targetID);
 
+  PIRMacroPack *getUserPack();
+  PIRMacroPack *getMultitapPack();
+
+  bool hasMacroButton(
+    unsigned int buttonID);
+
+  QString getMacroButtonText(
+    unsigned int buttonID);
+
+  void executeMacroButton(
+    unsigned int buttonID);
+
+  void updateUserButtons(); // Should this be a slot?
+
+  void storeMacros();
+
+  void setMacroKbdFocus(
+    int index);
+
+  void setMacroBtnFocus(
+    int index);
+
+  void switchToTab(
+    int tabNumber);
+
+  void handleKeypress(
+    char key);
+
+//  void handleKeyRelease(
+//    char Key);
+
+  void gotoPreviousTabs();
+
+  void gotoNextTabs();
+
 signals:
   void buttonPressed(
     unsigned int keysetID,
@@ -121,10 +175,18 @@ private slots:
   void finalCleanup();
 
 private:
+//  void keyPressEvent(
+//    QKeyEvent *event);
+
+//  void keyReleaseEvent(
+//    QKeyEvent *event);
+
   void populateFavorites();
 
   Ui::MainWindow *ui;
 
+//  PIRTabWidget *myTabWidget;
+
   PIRSelectKeysetForm *selectKeysetForm;
   PIRSelectDeviceForm *selectDeviceForm;
   PIRPreferencesForm *preferencesForm;
@@ -134,6 +196,7 @@ private:
 
   PIRKeysetManager *myKeysets;
   PIRPanelManager *myPanels;
+  PIRMacroManager *myMacros;
 
   unsigned int currentKeyset;