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"
24 using namespace verbiste;
38 // No destructor because this object does not own the two widgets.
45 class MainWindow : public QMainWindow
49 enum ScreenOrientation {
50 ScreenOrientationLockPortrait,
51 ScreenOrientationLockLandscape,
55 explicit MainWindow(QWidget *parent = 0);
56 virtual ~MainWindow();
58 // Setup UI by coding, not by QtDesigner
61 // Note that this will only have an effect on Symbian and Fremantle.
62 void setOrientation(ScreenOrientation orientation);
66 QVBoxLayout* makeResultCell(const VVS &tenseIterator,
67 const std::string &tenseName,
68 const std::string &inputWord,
69 FrenchVerbDictionary *verbDict);
76 QWidget *cent; // Central widget
77 QVBoxLayout *mlayout; // Main layout
78 QTabWidget *resultPages;
79 QHBoxLayout *btlayout; // Layout to pack the functional buttons
80 QPushButton *btnClear; // Clear button
81 QLineEdit *wordinput; // Word input
82 QPushButton *btnLookup; // Lookup button
84 FrenchVerbDictionary *freVerbDic;
86 ResultPage* addResultPage(const std::string &labelText);
94 #endif // MAINWINDOW_H