X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;fp=mainwindow.h;h=e3d55029462f0b767788bced9deb28ef79151673;hb=6b71b328a4ed0cc4e8236fc27f4dd0dc392e1c34;hp=fec96940f73d260437f12cd45e502de275f93e55;hpb=c592baecbda14091d59a1dc1ba0776de02e59f5d;p=mverbiste diff --git a/mainwindow.h b/mainwindow.h index fec9694..e3d5502 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -8,6 +8,7 @@ #include #include #include +#include /* Verbiste */ #include @@ -19,8 +20,19 @@ 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 @@ -50,6 +62,7 @@ private: 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 @@ -57,6 +70,12 @@ private: QLabel *labVerb; std::string langCode; FrenchVerbDictionary *freVerbDic; + + ResultPage* addResultPage(const std::string &labelText); + +private slots: + void clearResults(); }; + #endif // MAINWINDOW_H