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

#include <dashboardwidget.h>

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

Public Slots

void walletSynced (bool isSync)
 
void processNewTransaction (const QModelIndex &parent, int start, int)
 Show incoming transaction notification for new transactions. More...
 

Signals

void incomingTransaction (const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address)
 Notify that a new transaction appeared. More...
 
- 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)
 

Public Member Functions

 DashboardWidget (PIVXGUI *_window)
 
 ~DashboardWidget ()
 
void loadWalletModel () override
 
void loadChart ()
 
void run (int type) override
 
void onError (QString error, int type) 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 handleTransactionClicked (const QModelIndex &index)
 
void changeTheme (bool isLightTheme, QString &theme) override
 
void onSortChanged (const QString &)
 
void onSortTypeChanged (const QString &value)
 
void updateDisplayUnit ()
 
void showList ()
 
void onTxArrived (const QString &hash, const bool isCoinStake, const bool isMNReward, const bool isCSAnyType)
 

Private Member Functions

void changeSort (int nSortIndex)
 

Private Attributes

Ui::DashboardWidget * ui {nullptr}
 
FurAbstractListItemDelegatetxViewDelegate {nullptr}
 
TransactionFilterProxyfilter {nullptr}
 
TxViewHoldertxHolder {nullptr}
 
TransactionTableModeltxModel {nullptr}
 
int nDisplayUnit {-1}
 
bool isSync {false}
 

Additional Inherited Members

- 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 94 of file dashboardwidget.h.

Constructor & Destructor Documentation

◆ DashboardWidget()

DashboardWidget::DashboardWidget ( PIVXGUI _window)
explicit

Definition at line 26 of file dashboardwidget.cpp.

Here is the call graph for this function:

◆ ~DashboardWidget()

DashboardWidget::~DashboardWidget ( )

Definition at line 941 of file dashboardwidget.cpp.

Member Function Documentation

◆ changeSort()

void DashboardWidget::changeSort ( int  nSortIndex)
private

Definition at line 272 of file dashboardwidget.cpp.

Here is the caller graph for this function:

◆ changeTheme

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

Definition at line 343 of file dashboardwidget.cpp.

Here is the call graph for this function:

◆ handleTransactionClicked

void DashboardWidget::handleTransactionClicked ( const QModelIndex &  index)
privateslot

Definition at line 157 of file dashboardwidget.cpp.

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

◆ incomingTransaction

void DashboardWidget::incomingTransaction ( const QString &  date,
int  unit,
const CAmount amount,
const QString &  type,
const QString &  address 
)
signal

Notify that a new transaction appeared.

Here is the caller graph for this function:

◆ loadChart()

void DashboardWidget::loadChart ( )

◆ loadWalletModel()

void DashboardWidget::loadWalletModel ( )
overridevirtual

Reimplemented from PWidget.

Definition at line 174 of file dashboardwidget.cpp.

Here is the call graph for this function:

◆ onError()

void DashboardWidget::onError ( QString  error,
int  type 
)
overridevirtual

Implements Runnable.

Definition at line 919 of file dashboardwidget.cpp.

Here is the call graph for this function:

◆ onSortChanged

void DashboardWidget::onSortChanged ( const QString &  value)
privateslot

Definition at line 261 of file dashboardwidget.cpp.

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

◆ onSortTypeChanged

void DashboardWidget::onSortTypeChanged ( const QString &  value)
privateslot

Definition at line 310 of file dashboardwidget.cpp.

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

◆ onTxArrived

void DashboardWidget::onTxArrived ( const QString &  hash,
const bool  isCoinStake,
const bool  isMNReward,
const bool  isCSAnyType 
)
privateslot

Definition at line 223 of file dashboardwidget.cpp.

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

◆ processNewTransaction

void DashboardWidget::processNewTransaction ( const QModelIndex &  parent,
int  start,
int   
)
slot

Show incoming transaction notification for new transactions.

The new items are those between start and end inclusive, under the given parent item.

Definition at line 924 of file dashboardwidget.cpp.

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

◆ run()

void DashboardWidget::run ( int  type)
overridevirtual

Implements Runnable.

Definition at line 909 of file dashboardwidget.cpp.

◆ showList

void DashboardWidget::showList ( )
privateslot

Definition at line 237 of file dashboardwidget.cpp.

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

◆ updateDisplayUnit

void DashboardWidget::updateDisplayUnit ( )
privateslot

Definition at line 252 of file dashboardwidget.cpp.

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

◆ walletSynced

void DashboardWidget::walletSynced ( bool  isSync)
slot

Definition at line 331 of file dashboardwidget.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ filter

TransactionFilterProxy* DashboardWidget::filter {nullptr}
private

Definition at line 138 of file dashboardwidget.h.

◆ isSync

bool DashboardWidget::isSync {false}
private

Definition at line 142 of file dashboardwidget.h.

◆ nDisplayUnit

int DashboardWidget::nDisplayUnit {-1}
private

Definition at line 141 of file dashboardwidget.h.

◆ txHolder

TxViewHolder* DashboardWidget::txHolder {nullptr}
private

Definition at line 139 of file dashboardwidget.h.

◆ txModel

TransactionTableModel* DashboardWidget::txModel {nullptr}
private

Definition at line 140 of file dashboardwidget.h.

◆ txViewDelegate

FurAbstractListItemDelegate* DashboardWidget::txViewDelegate {nullptr}
private

Definition at line 137 of file dashboardwidget.h.

◆ ui

Ui::DashboardWidget* DashboardWidget::ui {nullptr}
private

Definition at line 136 of file dashboardwidget.h.


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