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 PIRDocumentationForm;
17 class PIRKeysetManager;
18 class PIRPanelManager;
24 class MainWindow : public QMainWindow
29 enum ScreenOrientation {
30 ScreenOrientationLockPortrait,
31 ScreenOrientationLockLandscape,
35 explicit MainWindow(QWidget *parent = 0);
36 virtual ~MainWindow();
38 // Note that this will only have an effect on Symbian and Fremantle.
39 void setOrientation(ScreenOrientation orientation);
55 const QString &displayName);
61 // Favorites panel actions:
62 void addCurrentKeyset(
65 void removeFavoriteKeyset(
72 unsigned int keysetID,
75 void buttonReleased();
78 void receivedExternalWarning(
81 void selectPrevFavKeyset();
82 void selectNextFavKeyset();
84 void keysetSelectionChanged(
85 QListWidgetItem *item);
88 void on_actionSelectKeyset_triggered();
89 void on_actionSelect_Device_By_Name_triggered();
90 void on_actionArrange_Button_Panels_triggered();
91 void on_actionAbout_triggered();
92 void on_actionDocumentation_triggered();
94 void on_prevPanelButton_clicked();
95 void on_nextPanelButton_clicked();
96 void on_selectPanelComboBox_currentIndexChanged(int index);
102 void populateFavorites();
107 PIRSelectKeysetForm *selectKeysetForm;
108 PIRSelectDeviceForm *selectDeviceForm;
109 PIRPanelSelectionForm *panelSelectionForm;
110 PIRDocumentationForm *documentationForm;
111 PIRAboutForm *aboutForm;
113 PIRKeysetManager *myKeysets;
114 PIRPanelManager *myPanels;
116 unsigned int currentKeyset;
118 PIRModprobe modprobeObj;
122 #endif // MAINWINDOW_H