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;
19 class PIRFavoritesDialog;
20 class PIRKeysetWidgetItem;
22 class PIRKeysetManager;
23 class PIRPanelManager;
29 class MainWindow : public QMainWindow
34 enum ScreenOrientation {
35 ScreenOrientationLockPortrait,
36 ScreenOrientationLockLandscape,
40 explicit MainWindow(QWidget *parent = 0);
41 virtual ~MainWindow();
43 // Note that this will only have an effect on Symbian and Fremantle.
44 void setOrientation(ScreenOrientation orientation);
53 unsigned int keysetID);
57 // Favorites panel actions:
59 PIRKeysetWidgetItem *kwi);
61 void removeFromFavorites(
62 unsigned int keysetID);
66 // Preferences actions:
68 void useAltMainPanel();
70 QString getCurrentMake();
71 QString getCurrentName();
73 unsigned int getCurrentKeyset()
78 void insertCornerButtons();
79 void disableUpdates();
85 void setupTabs(PIRTabBarName name);
89 unsigned int keysetID,
92 void buttonReleased();
95 void receivedExternalWarning(
98 void selectPrevFavKeyset();
99 void selectNextFavKeyset();
101 void keysetSelectionChanged(
102 QListWidgetItem *item);
105 void on_actionSelectKeyset_triggered();
106 void on_actionSelect_Device_By_Name_triggered();
107 void on_actionPreferences_triggered();
108 void on_actionAbout_triggered();
109 void on_actionDocumentation_triggered();
115 void populateFavorites();
119 PIRSelectKeysetForm *selectKeysetForm;
120 PIRSelectDeviceForm *selectDeviceForm;
121 PIRPreferencesForm *preferencesForm;
122 PIRDocumentationForm *documentationForm;
123 PIRAboutForm *aboutForm;
124 PIRFavoritesDialog *favoritesDialog;
126 PIRKeysetManager *myKeysets;
127 PIRPanelManager *myPanels;
129 unsigned int currentKeyset;
131 PIRModprobe modprobeObj;
135 #endif // MAINWINDOW_H