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_car_coop.h" 00017 #include "qnode_car_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_go_clicked(bool check); 00052 00053 /****************************************** 00054 ** Manual connections 00055 *******************************************/ 00056 void setLanguage(int index); 00057 void timerDone(); 00058 00059 private: 00060 Ui::MainWindowDesign_car_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 int lastLanguage; 00066 int currentGoalIndex; 00067 00068 void getGoals(); 00069 void loadTexts(); 00070 }; 00071 00072 00073 } // namespace tibi_dabo_gui 00074 00075 #endif // tibi_dabo_gui_MAIN_WINDOW_H