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

Dialog for editing a contract information. More...

#include <editcontractinfodialog.h>

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

Public Types

enum  Mode { NewContractInfo, EditContractInfo }
 

Public Slots

void accept ()
 
void on_newContractABI ()
 

Public Member Functions

 EditContractInfoDialog (Mode mode, QWidget *parent=0)
 
 ~EditContractInfoDialog ()
 
bool isValidContractAddress ()
 
bool isValidInterfaceABI ()
 
bool isDataValid ()
 
void setModel (ContractTableModel *model)
 
void loadRow (int row)
 
QString getAddress () const
 
void setAddress (const QString &address)
 
QString getABI () const
 
void setABI (const QString &ABI)
 

Private Member Functions

bool saveCurrentRow ()
 

Private Attributes

Ui::EditContractInfoDialogui
 
QDataWidgetMapper * mapper
 
Mode mode
 
ContractTableModelmodel
 
ContractABIm_contractABI
 
QString address
 
QString ABI
 

Detailed Description

Dialog for editing a contract information.

Definition at line 19 of file editcontractinfodialog.h.

Member Enumeration Documentation

Enumerator
NewContractInfo 
EditContractInfo 

Definition at line 24 of file editcontractinfodialog.h.

Constructor & Destructor Documentation

EditContractInfoDialog::EditContractInfoDialog ( Mode  mode,
QWidget *  parent = 0 
)
explicit

Definition at line 13 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

EditContractInfoDialog::~EditContractInfoDialog ( )

Definition at line 52 of file editcontractinfodialog.cpp.

Member Function Documentation

void EditContractInfoDialog::accept ( )
slot

Definition at line 127 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

QString EditContractInfoDialog::getABI ( ) const

Definition at line 182 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

QString EditContractInfoDialog::getAddress ( ) const

Definition at line 171 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

bool EditContractInfoDialog::isDataValid ( )

Definition at line 70 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool EditContractInfoDialog::isValidContractAddress ( )

Definition at line 58 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool EditContractInfoDialog::isValidInterfaceABI ( )

Definition at line 64 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void EditContractInfoDialog::loadRow ( int  row)

Definition at line 94 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

void EditContractInfoDialog::on_newContractABI ( )
slot

Definition at line 157 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool EditContractInfoDialog::saveCurrentRow ( )
private

Definition at line 99 of file editcontractinfodialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void EditContractInfoDialog::setABI ( const QString &  ABI)

Definition at line 187 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

void EditContractInfoDialog::setAddress ( const QString &  address)

Definition at line 176 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

void EditContractInfoDialog::setModel ( ContractTableModel model)

Definition at line 82 of file editcontractinfodialog.cpp.

Here is the caller graph for this function:

Member Data Documentation

QString EditContractInfoDialog::ABI
private

Definition at line 58 of file editcontractinfodialog.h.

QString EditContractInfoDialog::address
private

Definition at line 57 of file editcontractinfodialog.h.

ContractABI* EditContractInfoDialog::m_contractABI
private

Definition at line 55 of file editcontractinfodialog.h.

QDataWidgetMapper* EditContractInfoDialog::mapper
private

Definition at line 52 of file editcontractinfodialog.h.

Mode EditContractInfoDialog::mode
private

Definition at line 53 of file editcontractinfodialog.h.

ContractTableModel* EditContractInfoDialog::model
private

Definition at line 54 of file editcontractinfodialog.h.

Ui::EditContractInfoDialog* EditContractInfoDialog::ui
private

Definition at line 51 of file editcontractinfodialog.h.


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