class QListWidget;
class QListWidgetItem;
class QDialog;
+class QKeyEvent;
+
+//class PIRTabWidget;
class PIRSelectKeysetForm;
class PIRSelectDeviceForm;
class PIRPreferencesForm;
class PIRDocumentationForm;
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);
void stopRepeating();
// Favorites panel actions:
- void addCurrentKeyset(
- QListWidget *qlw);
+ void addToFavorites(
+ PIRKeysetWidgetItem *kwi);
- void removeFavoriteKeyset(
- QListWidget *qlw);
+ void removeFromFavorites(
+ unsigned int keysetID);
void enableButtons();
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;
}
- void insertCornerButton();
+ bool findKeysetID(
+ QString make,
+ QString name,
+ unsigned int &id);
+
+ void insertCornerButtons();
void disableUpdates();
void enableUpdates();
void clearTabs();
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;
PIRDocumentationForm *documentationForm;
PIRAboutForm *aboutForm;
+ PIRFavoritesDialog *favoritesDialog;
PIRKeysetManager *myKeysets;
PIRPanelManager *myPanels;
+ PIRMacroManager *myMacros;
unsigned int currentKeyset;