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>
6
class
QWidget;
7
8
struct
PushButtonInterface
{
9
virtual
~PushButtonInterface
()
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
PushButtonInterface
Definition
pushbuttoninterface.h:8
PushButtonInterface::init
virtual void init(const QString &buttonName, bool isEnable)=0
PushButtonInterface::checked
virtual bool checked()=0
PushButtonInterface::checkable
virtual bool checkable()=0
PushButtonInterface::pressed_t
std::function< void()> pressed_t
Definition
pushbuttoninterface.h:13
PushButtonInterface::~PushButtonInterface
virtual ~PushButtonInterface()
Definition
pushbuttoninterface.h:9
PushButtonInterface::setChecked
virtual void setChecked(bool checked)=0
PushButtonInterface::setDisabled
virtual void setDisabled(bool state)=0
PushButtonInterface::isEnabled
virtual bool isEnabled()=0
PushButtonInterface::setCheckable
virtual void setCheckable(bool checked)=0
PushButtonInterface::mainWidget
virtual QWidget * mainWidget()=0
PushButtonInterface::pressedCbk
virtual void pressedCbk(const pressed_t &cb)=0
src
common
guiinterface
pushbuttoninterface.h
Generated by
1.9.8