main_window.hpp
Go to the documentation of this file.
1 
8 #ifndef %(package)s_MAIN_WINDOW_H
9 #define %(package)s_MAIN_WINDOW_H
10 
11 /*****************************************************************************
12 ** Includes
13 *****************************************************************************/
14 
15 #include <QtGui/QMainWindow>
16 #include "ui_main_window.h"
17 #include "qnode.hpp"
18 
19 /*****************************************************************************
20 ** Namespace
21 *****************************************************************************/
22 
23 namespace %(package)s {
24 
25 /*****************************************************************************
26 ** Interface [MainWindow]
27 *****************************************************************************/
31 class MainWindow : public QMainWindow {
32 Q_OBJECT
33 
34 public:
35  MainWindow(int argc, char** argv, QWidget *parent = 0);
36  ~MainWindow();
37 
38  void ReadSettings(); // Load up qt program settings at startup
39  void WriteSettings(); // Save qt program settings when closing
40 
41  void closeEvent(QCloseEvent *event); // Overloaded function
42  void showNoMasterMessage();
43 
44 public Q_SLOTS:
45  /******************************************
46  ** Auto-connections (connectSlotsByName())
47  *******************************************/
48  void on_actionAbout_triggered();
49  void on_button_connect_clicked(bool check );
50  void on_checkbox_use_environment_stateChanged(int state);
51 
52  /******************************************
53  ** Manual connections
54  *******************************************/
55  void updateLoggingView(); // no idea why this can't connect automatically
56 
57 private:
58  Ui::MainWindowDesign ui;
60 };
61 
62 } // namespace %(package)s
63 
64 #endif // %(package)s_MAIN_WINDOW_H
#define package
Definition: main_window.hpp:9
Ui::MainWindowDesign ui
Definition: main_window.hpp:58
Qt central, all operations relating to the view part here.
Definition: main_window.hpp:31


qt_create
Author(s): Daniel Stonier
autogenerated on Wed Mar 11 2020 03:12:19