class QListWidget;
class QListWidgetItem;
class QDialog;
+class QKeyEvent;
+
+//class PIRTabWidget;
class PIRSelectKeysetForm;
class PIRSelectDeviceForm;
class PIRAboutForm;
class PIRFavoritesDialog;
class PIRKeysetWidgetItem;
+class PIRMacroPack;
class PIRKeysetManager;
class PIRPanelManager;
+class PIRMacroManager;
namespace Ui {
class MainWindow;
void showExpanded();
- void startRepeating(
+ bool startRepeating(
PIRKeyName name);
- void startRepeating(
+ bool startRepeating(
PIRKeyName name,
unsigned int keysetID);
QString getCurrentMake();
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();
QString label);
void setupTabs(PIRTabBarName name);
+ bool selectNextKeyset();
+ bool selectPrevKeyset();
+ bool selectFirstKeyset();
+ void openCurrentKeysetDialog();
+
+ 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,
private slots:
void on_actionSelectKeyset_triggered();
- void on_actionSelect_Device_By_Name_triggered();
+ void on_actionBrowse_Device_List_triggered();
void on_actionPreferences_triggered();
void on_actionAbout_triggered();
void on_actionDocumentation_triggered();
void finalCleanup();
private:
+// void keyPressEvent(
+// QKeyEvent *event);
+
+// void keyReleaseEvent(
+// QKeyEvent *event);
+
void populateFavorites();
Ui::MainWindow *ui;
+// PIRTabWidget *myTabWidget;
+
PIRSelectKeysetForm *selectKeysetForm;
PIRSelectDeviceForm *selectDeviceForm;
PIRPreferencesForm *preferencesForm;
PIRKeysetManager *myKeysets;
PIRPanelManager *myPanels;
+ PIRMacroManager *myMacros;
unsigned int currentKeyset;