PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
AddressesWidget Class Reference

#include <addresseswidget.h>

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

Public Member Functions

 AddressesWidget (PIVXGUI *parent)
 
 ~AddressesWidget ()
 
void loadWalletModel () override
 
- Public Member Functions inherited from PWidget
 PWidget (PIVXGUI *_window=nullptr, QWidget *parent=nullptr)
 
 PWidget (PWidget *parent=nullptr)
 
void setClientModel (ClientModel *model)
 
void setWalletModel (WalletModel *model)
 
PIVXGUIgetWindow ()
 
void run (int type) override
 
void onError (QString error, int type) override
 
void inform (const QString &message)
 
void emitMessage (const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
 
QString translate (const char *msg) override
 

Private Slots

void handleAddressClicked (const QModelIndex &index)
 
void onStoreContactClicked ()
 
void onEditClicked ()
 
void onDeleteClicked ()
 
void onCopyClicked ()
 
void onAddContactShowHideClicked ()
 
void onSortChanged (int idx)
 
void onSortOrderChanged (int idx)
 
void changeTheme (bool isLightTheme, QString &theme) override
 

Private Member Functions

void updateListView ()
 
void sortAddresses ()
 

Private Attributes

Ui::AddressesWidget * ui
 
FurAbstractListItemDelegatedelegate = nullptr
 
AddressTableModeladdressTablemodel = nullptr
 
AddressFilterProxyModelfilter = nullptr
 
TooltipMenumenu = nullptr
 
QModelIndex index
 
AddressTableModel::ColumnIndex sortType = AddressTableModel::Label
 
Qt::SortOrder sortOrder = Qt::AscendingOrder
 

Additional Inherited Members

- Signals inherited from PWidget
void message (const QString &title, const QString &body, unsigned int style, bool *ret=nullptr)
 
void showHide (bool show)
 
bool execDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 
- Protected Slots inherited from PWidget
virtual void changeTheme (bool isLightTheme, QString &theme)
 
void onChangeTheme (bool isLightTheme, QString &theme)
 
- Protected Member Functions inherited from PWidget
virtual void loadClientModel ()
 
void showHideOp (bool show)
 
bool execute (int type, std::unique_ptr< WalletModel::UnlockContext > pctx=nullptr)
 
void warn (const QString &title, const QString &message)
 
bool ask (const QString &title, const QString &message)
 
void showDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 
- Protected Attributes inherited from PWidget
PIVXGUIwindow = nullptr
 
ClientModelclientModel = nullptr
 
WalletModelwalletModel = nullptr
 

Detailed Description

Definition at line 27 of file addresseswidget.h.

Constructor & Destructor Documentation

◆ AddressesWidget()

AddressesWidget::AddressesWidget ( PIVXGUI parent)
explicit

Definition at line 62 of file addresseswidget.cpp.

Here is the call graph for this function:

◆ ~AddressesWidget()

AddressesWidget::~AddressesWidget ( )

Definition at line 304 of file addresseswidget.cpp.

Member Function Documentation

◆ changeTheme

void AddressesWidget::changeTheme ( bool  isLightTheme,
QString &  theme 
)
overrideprivateslot

Definition at line 299 of file addresseswidget.cpp.

Here is the call graph for this function:

◆ handleAddressClicked

void AddressesWidget::handleAddressClicked ( const QModelIndex &  index)
privateslot

Definition at line 134 of file addresseswidget.cpp.

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

◆ loadWalletModel()

void AddressesWidget::loadWalletModel ( )
overridevirtual

Reimplemented from PWidget.

Definition at line 158 of file addresseswidget.cpp.

Here is the call graph for this function:

◆ onAddContactShowHideClicked

void AddressesWidget::onAddContactShowHideClicked ( )
privateslot

Definition at line 270 of file addresseswidget.cpp.

Here is the caller graph for this function:

◆ onCopyClicked

void AddressesWidget::onCopyClicked ( )
privateslot

Definition at line 264 of file addresseswidget.cpp.

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

◆ onDeleteClicked

void AddressesWidget::onDeleteClicked ( )
privateslot

Definition at line 248 of file addresseswidget.cpp.

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

◆ onEditClicked

void AddressesWidget::onEditClicked ( )
privateslot

Definition at line 230 of file addresseswidget.cpp.

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

◆ onSortChanged

void AddressesWidget::onSortChanged ( int  idx)
privateslot

Definition at line 281 of file addresseswidget.cpp.

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

◆ onSortOrderChanged

void AddressesWidget::onSortOrderChanged ( int  idx)
privateslot

Definition at line 287 of file addresseswidget.cpp.

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

◆ onStoreContactClicked

void AddressesWidget::onStoreContactClicked ( )
privateslot

Definition at line 181 of file addresseswidget.cpp.

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

◆ sortAddresses()

void AddressesWidget::sortAddresses ( )
private

Definition at line 293 of file addresseswidget.cpp.

Here is the caller graph for this function:

◆ updateListView()

void AddressesWidget::updateListView ( )
private

Definition at line 174 of file addresseswidget.cpp.

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

Member Data Documentation

◆ addressTablemodel

AddressTableModel* AddressesWidget::addressTablemodel = nullptr
private

Definition at line 52 of file addresseswidget.h.

◆ delegate

FurAbstractListItemDelegate* AddressesWidget::delegate = nullptr
private

Definition at line 51 of file addresseswidget.h.

◆ filter

AddressFilterProxyModel* AddressesWidget::filter = nullptr
private

Definition at line 53 of file addresseswidget.h.

◆ index

QModelIndex AddressesWidget::index
private

Definition at line 58 of file addresseswidget.h.

◆ menu

TooltipMenu* AddressesWidget::menu = nullptr
private

Definition at line 55 of file addresseswidget.h.

◆ sortOrder

Qt::SortOrder AddressesWidget::sortOrder = Qt::AscendingOrder
private

Definition at line 62 of file addresseswidget.h.

◆ sortType

AddressTableModel::ColumnIndex AddressesWidget::sortType = AddressTableModel::Label
private

Definition at line 61 of file addresseswidget.h.

◆ ui

Ui::AddressesWidget* AddressesWidget::ui
private

Definition at line 49 of file addresseswidget.h.


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