Subversion Repositories Code-Repo

Rev

Rev 354 | Rev 362 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "GlobalDefines.h"
#include "SerialWidget.h"
#include "MacroWidget.h"
#include "SerialIOWidget.h"

class MainWindow : public QMainWindow
{
        Q_OBJECT
    public:
        MainWindow(QWidget *parent = 0);
        ~MainWindow();

    public slots:
        void UpdateStatus(QString string);
        void UpdateSerialStatus(QString string);

    signals:
        void Serial_TransmitByteArray(QByteArray data);

    protected:

    private:
        QWidget *centralWidget;

        // Serial controller + UI
        SerialWidget *serialInitWidget;
        QGroupBox *groupSerialInit;
        QPushButton *btnSerialConnect;

        // Serial data
        SerialIOWidget *serialIOWidget;
        QGroupBox *groupSerialData;

        // Macro controller + UI
        MacroWidget *macroWidget;
        QDockWidget *macroDockWidget;
        QGroupBox *groupMacro;
        QPushButton *btnMacro;

        // Status bar
        QLabel *labelSerialStatus;

};

#endif // MAINWINDOW_H