00001 #ifndef MAIN_WINDOW_H 00002 #define MAIN_WINDOW_H 00003 00004 #include <QThread> 00005 #include "ui_main-window.h" 00006 #include "opcoes.h" 00007 #include "ajuda.h" 00008 #include "info.h" 00009 #include "stat.h" 00010 #include "mundoqt.h" 00011 00012 class MainWindow : public QMainWindow, private Ui::MainWindow 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 MainWindow(QMainWindow *parent = 0, Qt::WFlags f = 0); 00018 00019 00020 inline void abrirMundo(FILE *arq) { widget->abrirMundo(arq); } 00021 00022 inline static MainWindow* getInstance() { return instance; } 00023 00024 public slots: 00025 00026 void startStop(); 00027 00028 private: 00029 static MainWindow *instance; 00030 00031 /* timers */ 00032 QTimer *timerP; 00033 QTimer *timerA; 00034 QTimer *timerS; 00035 00036 /* formularios */ 00037 Opcoes *opcoes; 00038 Ajuda *ajuda; 00039 Info *info; 00040 Stat *stat; 00041 }; 00042 00043 #endif