/***************************************************************************

    QtGPIO
    Copyright © 2013-2022 christoph holzheuer
    chris@sourceworx.org

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

***************************************************************************/


#ifndef QPIGPIOMAIN_H
#define QPIGPIOMAIN_H

#include <QMainWindow>
#include <ui_QtGPIOMain.h>
#include <pigrotarydial.h>



class QtGPIOMain : public QMainWindow, private Ui_QtGPIOMain
{
    Q_OBJECT

public:

    QtGPIOMain( QWidget* parent = nullptr );
    virtual ~QtGPIOMain();

    void on_state_changed( bool state );
    void on_value_changed( int value );


protected:

    pigRotaryDial _pigDial;


};

#endif // QPIGPIOMAIN_H
