main_window_dabo_coop.hpp
Go to the documentation of this file.
00001 
00008 #ifndef tibi_dabo_gui_MAIN_WINDOW_H
00009 #define tibi_dabo_gui_MAIN_WINDOW_H
00010 
00011 /*****************************************************************************
00012 ** Includes
00013 *****************************************************************************/
00014 
00015 #include <QtGui/QMainWindow>
00016 #include "ui_main_window_dabo_coop.h"
00017 #include "qnode_dabo_coop.hpp"
00018 
00019 /*****************************************************************************
00020 ** Namespace
00021 *****************************************************************************/
00022 
00023 namespace tibi_dabo_gui {
00024 
00025 /*****************************************************************************
00026 ** Interface [MainWindow]
00027 *****************************************************************************/
00031 class MainWindow : public QMainWindow {
00032 Q_OBJECT
00033 
00034 public:
00035     MainWindow(int argc, char** argv, QWidget *parent = 0);
00036     ~MainWindow();
00037 
00038     void ReadSettings(); // Load up qt program settings at startup
00039     void WriteSettings(); // Save qt program settings when closing
00040 
00041     void closeEvent(QCloseEvent *event); // Overloaded function
00042 
00043 public Q_SLOTS:
00044     /******************************************
00045     ** Auto-connections (connectSlotsByName())
00046     *******************************************/
00047     void on_actionAbout_triggered();
00048     void on_button_cat_clicked(bool check);
00049     void on_button_eng_clicked(bool check);
00050     void on_button_esp_clicked(bool check);
00051     void on_button_demo_exit_clicked(bool check);
00052 
00053     /******************************************
00054     ** Manual connections
00055     *******************************************/
00056     void setLanguage(int index);
00057     void timerDone();
00058 
00059 private:
00060     Ui::MainWindowDesign_dabo_coop ui;
00061     QNode qnode;
00062     std::vector< std::vector<std::string> > tabs;
00063     std::vector< std::vector<std::string> > info;
00064     std::vector< std::vector<std::string> > goals;
00065     std::vector< std::vector<std::string> > sentences;
00066     int lastLanguage;
00067     int currentGoalIndex;
00068 
00069     void getGoals();
00070     void loadTexts();
00071 };
00072 
00073 
00074 }  // namespace tibi_dabo_gui
00075 
00076 #endif // tibi_dabo_gui_MAIN_WINDOW_H


tibi_dabo_gui
Author(s): fherrero
autogenerated on Fri Dec 6 2013 22:01:34