Subversion Repositories Code-Repo

Rev

Rev 353 | Blame | Last modification | View Log | RSS feed

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "GlobalDefines.h"
#include "SerialWidget.h"
#include "MacroWidget.h"
#include "TextIOWidget.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
        TextIOWidget *textIOWidget;
        QGroupBox *groupSerialData;

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

        // Status bar
        QLabel *labelSerialStatus;

};

#endif // MAINWINDOW_H