CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
pushbuttoninterface.h
Go to the documentation of this file.
1#ifndef PUSHBUTTONINTERFACE_H
2#define PUSHBUTTONINTERFACE_H
3
4#include <QString>
5#include <functional>
6class QWidget;
7
10 {
11 }
12
13 typedef std::function<void()> pressed_t;
14 virtual void pressedCbk(const pressed_t& cb) = 0;
15 virtual QWidget* mainWidget() = 0;
16 virtual void init(const QString& buttonName, bool isEnable) = 0;
17 virtual void setDisabled(bool state) = 0;
18 virtual bool isEnabled() = 0;
19 virtual void setCheckable(bool checked) = 0;
20 virtual bool checkable() = 0;
21 virtual bool checked() = 0;
22 virtual void setChecked(bool checked) = 0;
23};
24#endif // PUSHBUTTONINTERFACE_H
Definition pushbuttoninterface.h:8
virtual void init(const QString &buttonName, bool isEnable)=0
virtual bool checked()=0
virtual bool checkable()=0
std::function< void()> pressed_t
Definition pushbuttoninterface.h:13
virtual ~PushButtonInterface()
Definition pushbuttoninterface.h:9
virtual void setChecked(bool checked)=0
virtual void setDisabled(bool state)=0
virtual bool isEnabled()=0
virtual void setCheckable(bool checked)=0
virtual QWidget * mainWidget()=0
virtual void pressedCbk(const pressed_t &cb)=0