main_window.hpp
Go to the documentation of this file.
1 
8 #ifndef QTUTORIALS_MAIN_WINDOW_H
9 #define QTUTORIALS_MAIN_WINDOW_H
10 
11 /*****************************************************************************
12 ** Includes
13 *****************************************************************************/
14 
15 #include <QtGui/QMainWindow>
16 
17 #ifndef Q_MOC_RUN
18 #include "common/ui_main_window.h"
19 #include "qnode.hpp"
20 #endif
21 
22 /*****************************************************************************
23 ** Interface [MainWindow]
24 *****************************************************************************/
28 class MainWindow : public QMainWindow {
29 Q_OBJECT
30 
31 public:
32  MainWindow(QNode *node, QWidget *parent = 0);
33  ~MainWindow();
34 
35  void ReadSettings(); // Load up qt program settings at startup
36  void WriteSettings(); // Save qt program settings when closing
37 
38  void closeEvent(QCloseEvent *event); // Overloaded function
39  void showNoMasterMessage();
40 
41 public Q_SLOTS:
42  // Put automatically triggered slots here (because of connectSlotsByName())
43  // void on_button_enable_clicked(bool check); // example only
45  void on_button_connect_clicked(bool check );
47 
48  /******************************************
49  ** Manual connections
50  *******************************************/
51  void updateLoggingView(); // no idea why this can't connect automatically
52 
53 private:
54  Ui::MainWindowDesign ui;
56 };
57 
58 #endif // QTUTORIALS_MAIN_WINDOW_H
void on_button_connect_clicked(bool check)
Definition: main_window.cpp:69
ROSCPP_DECL bool check()
void showNoMasterMessage()
Definition: main_window.cpp:57
QNode * qnode
Definition: main_window.hpp:55
MainWindow(QNode *node, QWidget *parent=0)
Definition: main_window.cpp:23
void closeEvent(QCloseEvent *event)
Ui::MainWindowDesign ui
Definition: main_window.hpp:54
void on_checkbox_use_environment_stateChanged(int state)
Definition: main_window.cpp:90
void on_actionAbout_triggered()
Definition: qnode.hpp:31
void updateLoggingView()
void WriteSettings()
Qt central, all operations relating to the view part here.
Definition: main_window.hpp:28
void ReadSettings()


qt_tutorials
Author(s): Daniel Stonier
autogenerated on Wed Mar 11 2020 03:12:20