Fabcoin Core  0.16.2
P2P Digital Currency
abiparamitem.h
Go to the documentation of this file.
1 #ifndef ABIPARAMITEM_H
2 #define ABIPARAMITEM_H
3 
4 #include <QWidget>
5 #include <QToolButton>
6 #include <qvalidatedlineedit.h>
7 
8 class PlatformStyle;
9 class ParameterABI;
10 
11 class ABIParamItem : public QWidget
12 {
13  Q_OBJECT
14 public:
15 
16  explicit ABIParamItem(const PlatformStyle *platformStyle, const ParameterABI &param, QWidget *parent = 0);
17 
18  QString getValue();
19  void setFixed(bool isFixed);
20 
21  int getPosition() const;
22  void setPosition(int position);
23 
24  bool getIsDeleted() const;
25  void setIsDeleted(bool isLast);
26 
27  bool isValid();
28 
29 Q_SIGNALS:
30  void on_addItemClicked(int position);
31  void on_removeItemClicked(int position);
32 
33 public Q_SLOTS:
34  void on_addItemClicked();
35  void on_removeItemClicked();
36 
37 private:
38  QToolButton *m_buttonAdd;
39  QToolButton *m_buttonRemove;
43 };
44 
45 #endif // ABIPARAMITEM_H
QValidatedLineEdit * m_itemValue
Definition: abiparamitem.h:40
QToolButton * m_buttonAdd
Definition: abiparamitem.h:38
Line edit that can be marked as "invalid" to show input validation feedback.
bool getIsDeleted() const
QToolButton * m_buttonRemove
Definition: abiparamitem.h:39
int getPosition() const
ABIParamItem(const PlatformStyle *platformStyle, const ParameterABI &param, QWidget *parent=0)
Definition: abiparamitem.cpp:8
bool m_isDeleted
Definition: abiparamitem.h:42
QString getValue()
void setFixed(bool isFixed)
void on_removeItemClicked()
void setIsDeleted(bool isLast)
void setPosition(int position)
void on_addItemClicked()