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

#include <contractbookpage.h>

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

Public Types

enum  ColumnWidths { LABEL_COLUMN_WIDTH = 180, ADDRESS_COLUMN_WIDTH = 380 }
 

Public Slots

void done (int retval)
 

Public Member Functions

 ContractBookPage (const PlatformStyle *platformStyle, QWidget *parent=0)
 
 ~ContractBookPage ()
 
void setModel (ContractTableModel *model)
 
const QString & getAddressValue () const
 
const QString & getABIValue () const
 

Private Slots

void on_deleteContractInfo_clicked ()
 Delete currently selected contract info entry. More...
 
void on_newContractInfo_clicked ()
 Create a new contract info. More...
 
void on_copyAddress_clicked ()
 Copy address of currently selected contract info entry to clipboard. More...
 
void onCopyNameAction ()
 Copy label of currently selected contract info entry to clipboard (no button) More...
 
void onCopyABIAction ()
 Copy ABI of currently selected contract info entry to clipboard (no button) More...
 
void onEditAction ()
 Edit currently selected contract info entry (no button) More...
 
void on_exportButton_clicked ()
 Export button clicked. More...
 
void selectionChanged ()
 Set button states based on selection. More...
 
void contextualMenu (const QPoint &point)
 Spawn contextual menu (right mouse menu) for contract info book entry. More...
 
void selectNewContractInfo (const QModelIndex &parent, int begin, int)
 New entry/entries were added to contract info table. More...
 

Private Attributes

Ui::ContractBookPageui
 
ContractTableModelmodel
 
QString addressValue
 
QString ABIValue
 
QSortFilterProxyModel * proxyModel
 
QMenu * contextMenu
 
QString newContractInfoToSelect
 

Detailed Description

Definition at line 17 of file contractbookpage.h.

Member Enumeration Documentation

Enumerator
LABEL_COLUMN_WIDTH 
ADDRESS_COLUMN_WIDTH 

Definition at line 25 of file contractbookpage.h.

Constructor & Destructor Documentation

ContractBookPage::ContractBookPage ( const PlatformStyle platformStyle,
QWidget *  parent = 0 
)
explicit

Definition at line 15 of file contractbookpage.cpp.

Here is the call graph for this function:

ContractBookPage::~ContractBookPage ( )

Definition at line 74 of file contractbookpage.cpp.

Member Function Documentation

void ContractBookPage::contextualMenu ( const QPoint &  point)
privateslot

Spawn contextual menu (right mouse menu) for contract info book entry.

Definition at line 250 of file contractbookpage.cpp.

Here is the caller graph for this function:

void ContractBookPage::done ( int  retval)
slot

Definition at line 201 of file contractbookpage.cpp.

Here is the call graph for this function:

const QString& ContractBookPage::getABIValue ( ) const
inline

Definition at line 32 of file contractbookpage.h.

const QString& ContractBookPage::getAddressValue ( ) const
inline

Definition at line 31 of file contractbookpage.h.

Here is the caller graph for this function:

void ContractBookPage::on_copyAddress_clicked ( )
privateslot

Copy address of currently selected contract info entry to clipboard.

Definition at line 125 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ContractBookPage::on_deleteContractInfo_clicked ( )
privateslot

Delete currently selected contract info entry.

Definition at line 161 of file contractbookpage.cpp.

Here is the caller graph for this function:

void ContractBookPage::on_exportButton_clicked ( )
privateslot

Export button clicked.

Definition at line 226 of file contractbookpage.cpp.

Here is the call graph for this function:

void ContractBookPage::on_newContractInfo_clicked ( )
privateslot

Create a new contract info.

Definition at line 148 of file contractbookpage.cpp.

Here is the call graph for this function:

void ContractBookPage::onCopyABIAction ( )
privateslot

Copy ABI of currently selected contract info entry to clipboard (no button)

Definition at line 120 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ContractBookPage::onCopyNameAction ( )
privateslot

Copy label of currently selected contract info entry to clipboard (no button)

Definition at line 115 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ContractBookPage::onEditAction ( )
privateslot

Edit currently selected contract info entry (no button)

Definition at line 130 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ContractBookPage::selectionChanged ( )
privateslot

Set button states based on selection.

Definition at line 182 of file contractbookpage.cpp.

Here is the caller graph for this function:

void ContractBookPage::selectNewContractInfo ( const QModelIndex &  parent,
int  begin,
int   
)
privateslot

New entry/entries were added to contract info table.

Definition at line 259 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ContractBookPage::setModel ( ContractTableModel model)

Definition at line 79 of file contractbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QString ContractBookPage::ABIValue
private

Definition at line 42 of file contractbookpage.h.

QString ContractBookPage::addressValue
private

Definition at line 41 of file contractbookpage.h.

QMenu* ContractBookPage::contextMenu
private

Definition at line 44 of file contractbookpage.h.

ContractTableModel* ContractBookPage::model
private

Definition at line 40 of file contractbookpage.h.

QString ContractBookPage::newContractInfoToSelect
private

Definition at line 45 of file contractbookpage.h.

QSortFilterProxyModel* ContractBookPage::proxyModel
private

Definition at line 43 of file contractbookpage.h.

Ui::ContractBookPage* ContractBookPage::ui
private

Definition at line 39 of file contractbookpage.h.


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