1 #ifndef MARNAV_QTNMEADIAG_MAINWINDOW_HPP
2 #define MARNAV_QTNMEADIAG_MAINWINDOW_HPP
15 namespace marnav_example
17 class MainWindow
: public QMainWindow
23 virtual ~MainWindow();
25 void open_file(QString filename
);
33 void on_sentence_selection();
37 void create_actions();
40 void add_item(QString raw_sentence
);
41 void read_sentences_from_file(QString filename
);
43 QAction
* action_exit
= nullptr;
44 QAction
* action_about
= nullptr;
45 QAction
* action_about_qt
= nullptr;
46 QAction
* action_open_port
= nullptr;
47 QAction
* action_close_port
= nullptr;
48 QAction
* action_open_file
= nullptr;
50 QLineEdit
* port_name
= nullptr;
51 QComboBox
* cb_baudrate
= nullptr;
52 QListWidget
* sentence_list
= nullptr;
53 QLabel
* sentence_desc
= nullptr;
55 QSerialPort
* port
= nullptr;
57 std::string received_data
;