Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EditAddressDialog Class Reference

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

#include <editaddressdialog.h>

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

Public Types

enum  Mode { NewSendingAddress , EditReceivingAddress , EditSendingAddress }
 

Public Slots

void accept () override
 

Public Member Functions

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

Private Member Functions

bool saveCurrentRow ()
 
QString getDuplicateAddressWarning () const
 Return a descriptive string when adding an already-existing address fails. More...
 

Private Attributes

Ui::EditAddressDialog * ui
 
QDataWidgetMapper * mapper {nullptr}
 
Mode mode
 
AddressTableModelmodel {nullptr}
 
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
NewSendingAddress 
EditReceivingAddress 
EditSendingAddress 

Definition at line 27 of file editaddressdialog.h.

Constructor & Destructor Documentation

◆ EditAddressDialog()

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

Definition at line 17 of file editaddressdialog.cpp.

Here is the call graph for this function:

◆ ~EditAddressDialog()

EditAddressDialog::~EditAddressDialog ( )

Definition at line 50 of file editaddressdialog.cpp.

Member Function Documentation

◆ accept

void EditAddressDialog::accept ( )
overrideslot

Definition at line 96 of file editaddressdialog.cpp.

Here is the call graph for this function:

◆ getAddress()

QString EditAddressDialog::getAddress ( ) const

Definition at line 157 of file editaddressdialog.cpp.

Here is the caller graph for this function:

◆ getDuplicateAddressWarning()

QString EditAddressDialog::getDuplicateAddressWarning ( ) const
private

Return a descriptive string when adding an already-existing address fails.

Definition at line 138 of file editaddressdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadRow()

void EditAddressDialog::loadRow ( int  row)

Definition at line 66 of file editaddressdialog.cpp.

◆ saveCurrentRow()

bool EditAddressDialog::saveCurrentRow ( )
private

Definition at line 71 of file editaddressdialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAddress()

void EditAddressDialog::setAddress ( const QString &  address)

Definition at line 162 of file editaddressdialog.cpp.

◆ setModel()

void EditAddressDialog::setModel ( AddressTableModel model)

Definition at line 55 of file editaddressdialog.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ address

QString EditAddressDialog::address
private

Definition at line 56 of file editaddressdialog.h.

◆ mapper

QDataWidgetMapper* EditAddressDialog::mapper {nullptr}
private

Definition at line 52 of file editaddressdialog.h.

◆ mode

Mode EditAddressDialog::mode
private

Definition at line 53 of file editaddressdialog.h.

◆ model

AddressTableModel* EditAddressDialog::model {nullptr}
private

Definition at line 54 of file editaddressdialog.h.

◆ ui

Ui::EditAddressDialog* EditAddressDialog::ui
private

Definition at line 51 of file editaddressdialog.h.


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