Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ABIFunctionField Class Reference

The ABIFunctionField class ABI functions widget. More...

#include <abifunctionfield.h>

Inheritance diagram for ABIFunctionField:
[legend]
Collaboration diagram for ABIFunctionField:
[legend]

Public Types

enum  FunctionType { Create, SendTo, Call }
 The FunctionType enum Function type to display. More...
 

Public Slots

void on_currentIndexChanged ()
 

Signals

void functionChanged ()
 

Public Member Functions

 ABIFunctionField (const PlatformStyle *platformStyle, FunctionType type, QWidget *parent=0)
 ABIFunctionField Constructor. More...
 
void setContractABI (ContractABI *contractABI)
 setContractABI Set the contract ABI (list of functions from the contract) More...
 
QStringList getParamValue (int paramID)
 getParamValue Get the value of the parameter with the id from the currently selected function More...
 
QList< QStringList > getParamsValues ()
 getParamsValues Get the values of the whole list of input parameters for the selected function More...
 
std::vector< std::vector< std::string > > getValuesVector ()
 getValuesVector Get params values vector List of all parameters that can be sent to a function. More...
 
int getSelectedFunction () const
 getSelectedFunction Get the ABI for the selected function from the contract More...
 
bool isValid ()
 

Protected Member Functions

void paintEvent (QPaintEvent *)
 

Private Member Functions

void updateABIFunctionField ()
 updateABIFunctionField Populate the GUI control with functions More...
 
void clear ()
 clear Clear the GUI control More...
 

Private Attributes

ContractABIm_contractABI
 
QWidget * m_func
 
QComboBox * m_comboBoxFunc
 
QLabel * m_labelFunction
 
QStackedWidget * m_paramsField
 
QVector< int > m_abiFunctionList
 
FunctionType m_functionType
 
const PlatformStylem_platformStyle
 

Detailed Description

The ABIFunctionField class ABI functions widget.

Definition at line 17 of file abifunctionfield.h.

Member Enumeration Documentation

The FunctionType enum Function type to display.

Enumerator
Create 
SendTo 
Call 

Definition at line 25 of file abifunctionfield.h.

Constructor & Destructor Documentation

ABIFunctionField::ABIFunctionField ( const PlatformStyle platformStyle,
FunctionType  type,
QWidget *  parent = 0 
)

ABIFunctionField Constructor.

Parameters
typeFunction type to display
parentParent windows for the GUI control

Definition at line 12 of file abifunctionfield.cpp.

Here is the call graph for this function:

Member Function Documentation

void ABIFunctionField::clear ( )
private

clear Clear the GUI control

Definition at line 101 of file abifunctionfield.cpp.

Here is the caller graph for this function:

void ABIFunctionField::functionChanged ( )
signal

Definition at line 143 of file moc_abifunctionfield.cpp.

Here is the caller graph for this function:

QList< QStringList > ABIFunctionField::getParamsValues ( )

getParamsValues Get the values of the whole list of input parameters for the selected function

Returns
Values of the parameters

Definition at line 135 of file abifunctionfield.cpp.

Here is the caller graph for this function:

QStringList ABIFunctionField::getParamValue ( int  paramID)

getParamValue Get the value of the parameter with the id from the currently selected function

Parameters
paramIDId of the input parameter
Returns
Parameter value

Definition at line 127 of file abifunctionfield.cpp.

int ABIFunctionField::getSelectedFunction ( ) const

getSelectedFunction Get the ABI for the selected function from the contract

Returns
Selected function ABI

Definition at line 160 of file abifunctionfield.cpp.

Here is the caller graph for this function:

std::vector< std::vector< std::string > > ABIFunctionField::getValuesVector ( )

getValuesVector Get params values vector List of all parameters that can be sent to a function.

The parameter can be single value or list.

Returns
Values of the parameters

Definition at line 143 of file abifunctionfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ABIFunctionField::isValid ( )

Definition at line 170 of file abifunctionfield.cpp.

Here is the caller graph for this function:

void ABIFunctionField::on_currentIndexChanged ( )
slot

Definition at line 178 of file abifunctionfield.cpp.

Here is the caller graph for this function:

void ABIFunctionField::paintEvent ( QPaintEvent *  )
protected

Definition at line 113 of file abifunctionfield.cpp.

void ABIFunctionField::setContractABI ( ContractABI contractABI)

setContractABI Set the contract ABI (list of functions from the contract)

Parameters
contractABIContract ABI

Definition at line 121 of file abifunctionfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ABIFunctionField::updateABIFunctionField ( )
private

updateABIFunctionField Populate the GUI control with functions

Definition at line 48 of file abifunctionfield.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QVector<int> ABIFunctionField::m_abiFunctionList
private

Definition at line 97 of file abifunctionfield.h.

QComboBox* ABIFunctionField::m_comboBoxFunc
private

Definition at line 94 of file abifunctionfield.h.

ContractABI* ABIFunctionField::m_contractABI
private

Definition at line 92 of file abifunctionfield.h.

QWidget* ABIFunctionField::m_func
private

Definition at line 93 of file abifunctionfield.h.

FunctionType ABIFunctionField::m_functionType
private

Definition at line 98 of file abifunctionfield.h.

QLabel* ABIFunctionField::m_labelFunction
private

Definition at line 95 of file abifunctionfield.h.

QStackedWidget* ABIFunctionField::m_paramsField
private

Definition at line 96 of file abifunctionfield.h.

const PlatformStyle* ABIFunctionField::m_platformStyle
private

Definition at line 99 of file abifunctionfield.h.


The documentation for this class was generated from the following files: