CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
lineeditinterface.h
Go to the documentation of this file.
1#ifndef LINEEDITINTERFACE_H
2#define LINEEDITINTERFACE_H
3
4#include <QString>
5#include <functional>
6class QWidget;
7
10 {
11 }
12
13 typedef std::function<void()> textChanged_t;
14 virtual void editingFinishedCbk(const textChanged_t& cb) = 0;
15 virtual void textChangedCbk(const textChanged_t& cb) = 0;
16 virtual QWidget* mainWidget() = 0;
17 virtual void init(const QString& placeholderText, QValidator* qValidator) = 0;
18 virtual void setPlaceholderText(const QString& placeholderText) = 0;
19 virtual void setDisabled(bool state) = 0;
20 virtual int getTextLength() = 0;
21 virtual const QString getText() = 0;
22 virtual void setText(const QString& text) = 0;
23};
24#endif // LINEEDITINTERFACE_H
Definition lineeditinterface.h:8
virtual QWidget * mainWidget()=0
virtual ~LineEditInterface()
Definition lineeditinterface.h:9
virtual int getTextLength()=0
virtual const QString getText()=0
virtual void setPlaceholderText(const QString &placeholderText)=0
virtual void setText(const QString &text)=0
std::function< void()> textChanged_t
Definition lineeditinterface.h:13
virtual void setDisabled(bool state)=0
virtual void editingFinishedCbk(const textChanged_t &cb)=0
virtual void textChangedCbk(const textChanged_t &cb)=0
virtual void init(const QString &placeholderText, QValidator *qValidator)=0