#include <QtGui/QLineEdit>
#include <QtGui/QScrollArea>
#include <QtGui/QLabel>
+#include <QtGui/QTableWidget>
/* Verbiste */
#include <iostream>
#include <vector>
#include <string.h>
#include <verbiste/FrenchVerbDictionary.h>
+#include "gui/conjugation.h"
using namespace verbiste;
namespace Ui {
class MainWindow;
+ class ResultPage;
}
+class ResultPage
+{
+public:
+ QScrollArea *page;
+ QTableWidget *table;
+
+ ResultPage();
+ // No destructor because this object does not own the two widgets.
+};
+
class MainWindow : public QMainWindow
{
Q_OBJECT
Ui::MainWindow *ui;
QWidget *cent; // Central widget
QVBoxLayout *mlayout; // Main layout
+ QTabWidget *resultPages;
QHBoxLayout *btlayout; // Layout to pack the functional buttons
QPushButton *btnClear; // Clear button
QLineEdit *wordinput; // Word input
QLabel *labVerb;
std::string langCode;
FrenchVerbDictionary *freVerbDic;
+
+ ResultPage* addResultPage(const std::string &labelText);
+
+private slots:
+ void clearResults();
};
+
#endif // MAINWINDOW_H