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>
11 #include <QtGui/QTableWidget>
17 #include <verbiste/FrenchVerbDictionary.h>
18 #include "gui/conjugation.h"
19 using namespace verbiste;
33 // No destructor because this object does not own the two widgets.
36 class MainWindow : public QMainWindow
40 enum ScreenOrientation {
41 ScreenOrientationLockPortrait,
42 ScreenOrientationLockLandscape,
46 explicit MainWindow(QWidget *parent = 0);
47 virtual ~MainWindow();
49 // Setup UI by coding, not by QtDesigner
52 // Note that this will only have an effect on Symbian and Fremantle.
53 void setOrientation(ScreenOrientation orientation);
63 QWidget *cent; // Central widget
64 QVBoxLayout *mlayout; // Main layout
65 QTabWidget *resultPages;
66 QHBoxLayout *btlayout; // Layout to pack the functional buttons
67 QPushButton *btnClear; // Clear button
68 QLineEdit *wordinput; // Word input
69 QPushButton *btnLookup; // Lookup button
72 FrenchVerbDictionary *freVerbDic;
74 ResultPage* addResultPage(const std::string &labelText);
81 #endif // MAINWINDOW_H