Fabcoin Core  0.16.2
P2P Digital Currency
abiparam.h
Go to the documentation of this file.
1 #ifndef CONTRACTPARAMFIELD_H
2 #define CONTRACTPARAMFIELD_H
3 
4 #include <QWidget>
5 #include <QLabel>
6 #include <QVBoxLayout>
7 #include <qvalidatedlineedit.h>
8 #include <contractabi.h>
9 #include <abiparamitem.h>
10 
11 class PlatformStyle;
12 class ParameterABI;
16 class ABIParam : public QWidget
17 {
18  Q_OBJECT
19 public:
26  explicit ABIParam(const PlatformStyle *platformStyle, int ID, const ParameterABI &param, QWidget *parent = 0);
27 
32  QStringList getValue();
33 
34  bool isValid();
36 
37 Q_SIGNALS:
38 
39 public Q_SLOTS:
40  void addNewParamItem(int position);
41  void removeParamItem(int position);
42 
43 private:
44  int m_ParamID;
45  QLabel *m_paramName;
46  QHBoxLayout *m_mainLayout;
47  QVBoxLayout *m_paramItemsLayout;
49  QList<ABIParamItem*> m_listParamItems;
51  QSpacerItem *m_vSpacer;
52  QSpacerItem *m_hSpacer;
53 };
54 
55 #endif // CONTRACTPARAMFIELD_H
int m_ParamID
Definition: abiparam.h:44
void updateParamItemsPosition()
Definition: abiparam.cpp:102
void removeParamItem(int position)
Definition: abiparam.cpp:135
QSpacerItem * m_vSpacer
Definition: abiparam.h:51
bool isValid()
Definition: abiparam.cpp:91
QLabel * m_paramName
Definition: abiparam.h:45
ABIParam(const PlatformStyle *platformStyle, int ID, const ParameterABI &param, QWidget *parent=0)
ABIParam Constructor.
Definition: abiparam.cpp:9
const PlatformStyle * m_platformStyle
Definition: abiparam.h:50
The ABIParam class ABI parameter widget.
Definition: abiparam.h:16
QStringList getValue()
getValue Get the value of the parameter
Definition: abiparam.cpp:80
void addNewParamItem(int position)
Definition: abiparam.cpp:110
ParameterABI m_param
Definition: abiparam.h:48
QList< ABIParamItem * > m_listParamItems
Definition: abiparam.h:49
QHBoxLayout * m_mainLayout
Definition: abiparam.h:46
QVBoxLayout * m_paramItemsLayout
Definition: abiparam.h:47
QSpacerItem * m_hSpacer
Definition: abiparam.h:52