main_window.hpp
Go to the documentation of this file.
00001 
00008 #ifndef QTUTORIALS_MAIN_WINDOW_H
00009 #define QTUTORIALS_MAIN_WINDOW_H
00010 
00011 /*****************************************************************************
00012 ** Includes
00013 *****************************************************************************/
00014 
00015 #include <QtGui/QMainWindow>
00016 #include "common/ui_main_window.h"
00017 #include "qnode.hpp"
00018 
00019 /*****************************************************************************
00020 ** Interface [MainWindow]
00021 *****************************************************************************/
00025 class MainWindow : public QMainWindow {
00026 Q_OBJECT
00027 
00028 public:
00029         MainWindow(QNode *node, QWidget *parent = 0);
00030         ~MainWindow();
00031 
00032         void ReadSettings(); // Load up qt program settings at startup
00033         void WriteSettings(); // Save qt program settings when closing
00034 
00035         void closeEvent(QCloseEvent *event); // Overloaded function
00036         void showNoMasterMessage();
00037 
00038 public Q_SLOTS:
00039         // Put automatically triggered slots here (because of connectSlotsByName())
00040         // void on_button_enable_clicked(bool check); // example only
00041         void on_actionAbout_triggered();
00042         void on_button_connect_clicked(bool check );
00043         void on_checkbox_use_environment_stateChanged(int state);
00044 
00045     /******************************************
00046     ** Manual connections
00047     *******************************************/
00048     void updateLoggingView(); // no idea why this can't connect automatically
00049 
00050 private:
00051     Ui::MainWindowDesign ui;
00052     QNode *qnode;
00053 };
00054 
00055 #endif // QTUTORIALS_MAIN_WINDOW_H


qt_tutorials
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 03:58:04