4 #include <QtGui/QMainWindow>
5 #include <QtGui/QTextEdit>
6 #include <QtGui/QPushButton>
7 #include <QtGui/QVBoxLayout>
8 #include <QtGui/QLineEdit>
9 #include <QtGui/QScrollArea>
10 #include <QtGui/QLabel>
16 class MainWindow : public QMainWindow
20 enum ScreenOrientation {
21 ScreenOrientationLockPortrait,
22 ScreenOrientationLockLandscape,
26 explicit MainWindow(QWidget *parent = 0);
27 virtual ~MainWindow();
29 // Setup UI by coding, not by QtDesigner
32 // Note that this will only have an effect on Symbian and Fremantle.
33 void setOrientation(ScreenOrientation orientation);
42 QWidget *cent; // Central widget
43 QVBoxLayout *mlayout; // Main layout
44 QHBoxLayout *btlayout; // Layout to pack the functional buttons
45 QPushButton *btnClear; // Clear button
46 QLineEdit *wordinput; // Word input
47 QPushButton *btnLookup; // Lookup button
51 #endif // MAINWINDOW_H