X-Git-Url: http://git.maemo.org/git/?p=mverbiste;a=blobdiff_plain;f=mainwindow.h;h=c47b619e1ee2d4150da6c5ed45901076d85ee894;hp=d09491d68a4e466e683e4c4e6de02366b048bc66;hb=HEAD;hpb=0f544c4b78f242a3ac985c69874c6e41493cb8f0 diff --git a/mainwindow.h b/mainwindow.h index d09491d..c47b619 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -4,11 +4,14 @@ #include #include #include +#include #include #include #include #include #include +#include +#include /* Verbiste */ #include @@ -16,6 +19,13 @@ #include #include #include "gui/conjugation.h" +#include "about.h" + +#ifndef QT_NO_DEBUG +#include +#include +#endif + using namespace verbiste; namespace Ui { @@ -59,12 +69,13 @@ public: void showExpanded(); void initverbiste(); QVBoxLayout* makeResultCell(const VVS &tenseIterator, - const std::string &tenseName, - const std::string &inputWord, - FrenchVerbDictionary *verbDict); + const std::string &tenseName, + const std::string &inputWord, + FrenchVerbDictionary *verbDict); public slots: void startLookup(); + void switchLang(); private: Ui::MainWindow *ui; @@ -73,16 +84,24 @@ private: QTabWidget *resultPages; QHBoxLayout *btlayout; // Layout to pack the functional buttons QPushButton *btnClear; // Clear button + QCheckBox *btnPron; QLineEdit *wordinput; // Word input QPushButton *btnLookup; // Lookup button - QLabel *labVerb; + QAction *filFrench; + QAction *filItalian; + QMessageBox *msgbox; std::string langCode; FrenchVerbDictionary *freVerbDic; + AboutDialog *aboutDialog; ResultPage* addResultPage(const std::string &labelText); +#ifndef QT_NO_DEBUG + QElapsedTimer timer; +#endif private slots: void clearResults(); + void startAgain(); };