Subversion Repositories Code-Repo

Rev

Go to most recent revision | 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"
354 Kevin 5
#include "SerialWidget.h"
6
#include "MacroWidget.h"
7
#include "TextIOWidget.h"
344 Kevin 8
 
9
class MainWindow : public QMainWindow
10
{
11
        Q_OBJECT
12
    public:
354 Kevin 13
        MainWindow(QWidget *parent = 0);
344 Kevin 14
        ~MainWindow();
15
 
16
    public slots:
351 Kevin 17
        void UpdateStatus(QString string);
18
        void UpdateSerialStatus(QString string);
19
 
344 Kevin 20
    signals:
354 Kevin 21
        void Serial_TransmitByteArray(QByteArray data);
344 Kevin 22
 
345 Kevin 23
    protected:
24
 
344 Kevin 25
    private:
26
        QWidget *centralWidget;
27
 
345 Kevin 28
        // Serial controller + UI
354 Kevin 29
        SerialWidget *serialInitWidget;
344 Kevin 30
        QGroupBox *groupSerialInit;
31
        QPushButton *btnSerialConnect;
32
 
351 Kevin 33
        // Serial data
354 Kevin 34
        TextIOWidget *textIOWidget;
344 Kevin 35
        QGroupBox *groupSerialData;
36
 
345 Kevin 37
        // Macro controller + UI
354 Kevin 38
        MacroWidget *macroWidget;
348 Kevin 39
        QDockWidget *macroDockWidget;
345 Kevin 40
        QGroupBox *groupMacro;
41
        QPushButton *btnMacro;
42
 
353 Kevin 43
        // Status bar
44
        QLabel *labelSerialStatus;
351 Kevin 45
 
344 Kevin 46
};
47
 
48
#endif // MAINWINDOW_H