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