main_window_tibi_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_tibi_coop.h"
00017 #include "qnode_tibi_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_goal_1_clicked(bool check);
00052     void on_button_goal_2_clicked(bool check);
00053     void on_button_goal_3_clicked(bool check);
00054 
00055     /******************************************
00056     ** Manual connections
00057     *******************************************/
00058     void setLanguage(int index);
00059     void timerDone();
00060 private:
00061         Ui::MainWindowDesign_tibi_coop ui;
00062         QNode qnode;
00063     std::vector< std::vector<std::string> > tabs;
00064     std::vector< std::vector<std::string> > info;
00065     std::vector< std::vector<std::string> > goals;
00066     int lastLanguage;
00067 
00068     void getGoals();
00069     void loadTexts();
00070 };
00071 
00072 }  // namespace tibi_dabo_gui
00073 
00074 #endif // tibi_dabo_gui_MAIN_WINDOW_H


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