Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
344 Kevin 1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
 
4
#include "GlobalDefines.h"
5
#include "SerialController.h"
345 Kevin 6
#include "MacroController.h"
344 Kevin 7
 
8
class MainWindow : public QMainWindow
9
{
10
        Q_OBJECT
11
 
12
    public:
13
        explicit MainWindow(QWidget *parent = 0);
14
        ~MainWindow();
15
 
16
    public slots:
351 Kevin 17
        void Serial_PrepareTransmit(QString string = "");
344 Kevin 18
        void Serial_ReceivedString(QString string);
19
        void Serial_ClearBtn(void);
20
 
351 Kevin 21
        void UpdateStatus(QString string);
22
        void UpdateSerialStatus(QString string);
23
 
344 Kevin 24
    signals:
25
        void Serial_TransmitString(QString string);
26
 
345 Kevin 27
    protected:
28
 
344 Kevin 29
    private:
30
        QWidget *centralWidget;
31
 
345 Kevin 32
        // Serial controller + UI
33
        SerialController *serialController;
344 Kevin 34
        QGroupBox *groupSerialInit;
35
        QPushButton *btnSerialConnect;
36
 
351 Kevin 37
        // Serial data
344 Kevin 38
        QGroupBox *groupSerialData;
39
        QTextEdit *textSerialData;
40
        QLineEdit *textSerialTransmit;
41
        QPushButton *btnSerialTransmit;
42
        QPushButton *btnSerialClear;
43
 
345 Kevin 44
        // Macro controller + UI
45
        MacroController *macroController;
348 Kevin 46
        QDockWidget *macroDockWidget;
345 Kevin 47
 
48
        QGroupBox *groupMacro;
49
        QPushButton *btnMacro;
50
 
351 Kevin 51
        QLabel *statusSerial;
52
 
344 Kevin 53
};
54
 
55
#endif // MAINWINDOW_H