Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Dialog for editing an address and associated information. More...

#include <editaddressdialog.h>

+ Inheritance diagram for EditAddressDialog:
+ Collaboration diagram for EditAddressDialog:

Public Types

enum  Mode { NewReceivingAddress, NewSendingAddress, EditReceivingAddress, EditSendingAddress }
 

Public Slots

void accept ()
 

Public Member Functions

 EditAddressDialog (Mode mode, QWidget *parent)
 
 ~EditAddressDialog ()
 
void setModel (AddressTableModel *model)
 
void loadRow (int row)
 
QString getAddress () const
 
void setAddress (const QString &address)
 

Private Member Functions

bool saveCurrentRow ()
 

Private Attributes

Ui::EditAddressDialog * ui
 
QDataWidgetMapper * mapper
 
Mode mode
 
AddressTableModelmodel
 
QString address
 

Detailed Description

Dialog for editing an address and associated information.

Definition at line 22 of file editaddressdialog.h.

Member Enumeration Documentation

◆ Mode

Enumerator
NewReceivingAddress 
NewSendingAddress 
EditReceivingAddress 
EditSendingAddress 

Definition at line 27 of file editaddressdialog.h.

Constructor & Destructor Documentation

◆ EditAddressDialog()

EditAddressDialog::EditAddressDialog ( Mode  mode,
QWidget *  parent 
)
explicit

◆ ~EditAddressDialog()

EditAddressDialog::~EditAddressDialog ( )

Definition at line 50 of file editaddressdialog.cpp.

References ui.

Member Function Documentation

◆ accept

◆ getAddress()

QString EditAddressDialog::getAddress ( ) const

Definition at line 138 of file editaddressdialog.cpp.

References address.

Referenced by AddressBookPage::on_newAddress_clicked().

◆ loadRow()

void EditAddressDialog::loadRow ( int  row)

Definition at line 66 of file editaddressdialog.cpp.

References mapper.

Referenced by TransactionView::editLabel(), and AddressBookPage::onEditAction().

◆ saveCurrentRow()

bool EditAddressDialog::saveCurrentRow ( )
private

◆ setAddress()

void EditAddressDialog::setAddress ( const QString &  address)

Definition at line 143 of file editaddressdialog.cpp.

References address, and ui.

Referenced by TransactionView::editLabel().

◆ setModel()

Member Data Documentation

◆ address

QString EditAddressDialog::address
private

Definition at line 54 of file editaddressdialog.h.

Referenced by getAddress(), saveCurrentRow(), and setAddress().

◆ mapper

QDataWidgetMapper* EditAddressDialog::mapper
private

Definition at line 50 of file editaddressdialog.h.

Referenced by EditAddressDialog(), loadRow(), saveCurrentRow(), and setModel().

◆ mode

Mode EditAddressDialog::mode
private

Definition at line 51 of file editaddressdialog.h.

Referenced by EditAddressDialog(), and saveCurrentRow().

◆ model

AddressTableModel* EditAddressDialog::model
private

Definition at line 52 of file editaddressdialog.h.

Referenced by accept(), saveCurrentRow(), and setModel().

◆ ui

Ui::EditAddressDialog* EditAddressDialog::ui
private

The documentation for this class was generated from the following files:
Released under the MIT license