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);
49 unsigned int keysetID);
63 const QString &displayName);
69 // Favorites panel actions:
70 void addCurrentKeyset(
73 void removeFavoriteKeyset(
78 // Preferences actions:
80 void useAltMainPanel();
82 QString getCurrentMake();
83 QString getCurrentName();
85 unsigned int getCurrentKeyset()
92 unsigned int keysetID,
95 void buttonReleased();
98 void receivedExternalWarning(
101 void selectPrevFavKeyset();
102 void selectNextFavKeyset();
104 void keysetSelectionChanged(
105 QListWidgetItem *item);
108 void on_actionSelectKeyset_triggered();
109 void on_actionSelect_Device_By_Name_triggered();
110 void on_actionArrange_Button_Panels_triggered();
111 void on_actionPreferences_triggered();
112 void on_actionAbout_triggered();
113 void on_actionDocumentation_triggered();
115 void on_prevPanelButton_clicked();
116 void on_nextPanelButton_clicked();
117 void on_selectPanelComboBox_currentIndexChanged(int index);
123 void populateFavorites();
128 PIRSelectKeysetForm *selectKeysetForm;
129 PIRSelectDeviceForm *selectDeviceForm;
130 PIRPanelSelectionForm *panelSelectionForm;
131 PIRPreferencesForm *preferencesForm;
132 PIRDocumentationForm *documentationForm;
133 PIRAboutForm *aboutForm;
135 PIRKeysetManager *myKeysets;
136 PIRPanelManager *myPanels;
138 unsigned int currentKeyset;
140 PIRModprobe modprobeObj;
144 #endif // MAINWINDOW_H