4 #include <QtGui/QMainWindow>
6 #include "pirkeynames.h"
7 #include "pirpanelnames.h"
8 #include "pirmodprobe.h"
11 class QListWidgetItem;
12 class PIRSelectKeysetForm;
13 class PIRSelectDeviceForm;
14 class PIRPanelSelectionForm;
15 class PIRPreferencesForm;
16 class PIRDocumentationForm;
18 class PIRKeysetManager;
19 class PIRPanelManager;
25 class MainWindow : public QMainWindow
30 enum ScreenOrientation {
31 ScreenOrientationLockPortrait,
32 ScreenOrientationLockLandscape,
36 explicit MainWindow(QWidget *parent = 0);
37 virtual ~MainWindow();
39 // Note that this will only have an effect on Symbian and Fremantle.
40 void setOrientation(ScreenOrientation orientation);
59 const QString &displayName);
65 // Favorites panel actions:
66 void addCurrentKeyset(
69 void removeFavoriteKeyset(
74 // Preferences actions:
76 void useAltMainPanel();
80 unsigned int keysetID,
83 void buttonReleased();
86 void receivedExternalWarning(
89 void selectPrevFavKeyset();
90 void selectNextFavKeyset();
92 void keysetSelectionChanged(
93 QListWidgetItem *item);
96 void on_actionSelectKeyset_triggered();
97 void on_actionSelect_Device_By_Name_triggered();
98 void on_actionArrange_Button_Panels_triggered();
99 void on_actionPreferences_triggered();
100 void on_actionAbout_triggered();
101 void on_actionDocumentation_triggered();
103 void on_prevPanelButton_clicked();
104 void on_nextPanelButton_clicked();
105 void on_selectPanelComboBox_currentIndexChanged(int index);
111 void populateFavorites();
116 PIRSelectKeysetForm *selectKeysetForm;
117 PIRSelectDeviceForm *selectDeviceForm;
118 PIRPanelSelectionForm *panelSelectionForm;
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