Fabcoin Core  0.16.2
P2P Digital Currency
abiparamsfield.h
Go to the documentation of this file.
1 #ifndef CONTRACTFUNCTIONFIELD_H
2 #define CONTRACTFUNCTIONFIELD_H
3 
4 #include <QWidget>
5 #include <QList>
6 #include <QVBoxLayout>
7 
8 #include <contractabi.h>
9 
10 class PlatformStyle;
11 class ABIParam;
12 
16 class ABIParamsField : public QWidget
17 {
18  Q_OBJECT
19 public:
24  explicit ABIParamsField(const PlatformStyle *platformStyle, QWidget *parent = 0);
25 
30  void updateParamsField(const FunctionABI &function);
31 
37  QStringList getParamValue(int paramID);
38 
43  QList<QStringList> getParamsValues();
44 
45  bool isValid();
46 
47 Q_SIGNALS:
48 
49 public Q_SLOTS:
50 
51 private:
52  QVBoxLayout *m_mainLayout;
53  QList<ABIParam*> m_listParams;
55 };
56 
57 #endif // CONTRACTFUNCTIONFIELD_H
QStringList getParamValue(int paramID)
getParamValue Get the value of a specific parameter
QList< ABIParam * > m_listParams
QVBoxLayout * m_mainLayout
QList< QStringList > getParamsValues()
getParamsValues Get the values of the whole list of input parameters
The ABIParam class ABI parameter widget.
Definition: abiparam.h:16
The ABIParamsField class List of parameters for contract function.
const PlatformStyle * m_platfromStyle
void updateParamsField(const FunctionABI &function)
updateParamsField Populate the GUI control with function parameters
ABIParamsField(const PlatformStyle *platformStyle, QWidget *parent=0)
ABIParamsField Constructor.