X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;fp=mainwindow.h;h=e173610da93b5cb0a95f291358e98d3e71d99d0c;hb=afbbd0cd07a3f63c95969633bae56fcdd58c71b8;hp=c27aedf71bcaf5ffc9e2f4251e8453a2f61d6955;hpb=6331b1b21bde2a80e6a0895d9cce865c8b558bc5;p=pierogi diff --git a/mainwindow.h b/mainwindow.h index c27aedf..e173610 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -10,6 +10,7 @@ class QListWidget; class QListWidgetItem; class QDialog; +class QKeyEvent; class PIRSelectKeysetForm; class PIRSelectDeviceForm; @@ -18,9 +19,11 @@ class PIRDocumentationForm; class PIRAboutForm; class PIRFavoritesDialog; class PIRKeysetWidgetItem; +class PIRMacroPack; class PIRKeysetManager; class PIRPanelManager; +class PIRMacroManager; namespace Ui { class MainWindow; @@ -71,11 +74,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 +110,28 @@ 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); + signals: void buttonPressed( unsigned int keysetID, @@ -121,6 +160,9 @@ private slots: void finalCleanup(); private: + void keyPressEvent( + QKeyEvent *event); + void populateFavorites(); Ui::MainWindow *ui; @@ -134,6 +176,7 @@ private: PIRKeysetManager *myKeysets; PIRPanelManager *myPanels; + PIRMacroManager *myMacros; unsigned int currentKeyset;