4 #include <QtGui/QMainWindow>
6 #include "pirkeynames.h"
7 #include "pirpanelnames.h"
8 #include "pirmodprobe.h"
11 class QListWidgetItem;
14 class PIRSelectKeysetForm;
15 class PIRSelectDeviceForm;
16 class PIRPreferencesForm;
17 class PIRDocumentationForm;
20 class PIRKeysetManager;
21 class PIRPanelManager;
27 class MainWindow : public QMainWindow
32 enum ScreenOrientation {
33 ScreenOrientationLockPortrait,
34 ScreenOrientationLockLandscape,
38 explicit MainWindow(QWidget *parent = 0);
39 virtual ~MainWindow();
41 // Note that this will only have an effect on Symbian and Fremantle.
42 void setOrientation(ScreenOrientation orientation);
51 unsigned int keysetID);
55 // Favorites panel actions:
56 void addCurrentKeyset(
59 void removeFavoriteKeyset(
64 // Preferences actions:
66 void useAltMainPanel();
68 QString getCurrentMake();
69 QString getCurrentName();
71 unsigned int getCurrentKeyset()
76 void insertCornerButton();
77 void disableUpdates();
83 void setupTabs(PIRTabBarName name);
87 unsigned int keysetID,
90 void buttonReleased();
93 void receivedExternalWarning(
96 void selectPrevFavKeyset();
97 void selectNextFavKeyset();
99 void keysetSelectionChanged(
100 QListWidgetItem *item);
103 void on_actionSelectKeyset_triggered();
104 void on_actionSelect_Device_By_Name_triggered();
105 void on_actionPreferences_triggered();
106 void on_actionAbout_triggered();
107 void on_actionDocumentation_triggered();
113 void populateFavorites();
117 PIRSelectKeysetForm *selectKeysetForm;
118 PIRSelectDeviceForm *selectDeviceForm;
119 PIRPreferencesForm *preferencesForm;
120 PIRDocumentationForm *documentationForm;
121 PIRAboutForm *aboutForm;
123 PIRKeysetManager *myKeysets;
124 PIRPanelManager *myPanels;
126 unsigned int currentKeyset;
128 PIRModprobe modprobeObj;
132 #endif // MAINWINDOW_H