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

#include <masternodeswidget.h>

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

Public Member Functions

 MasterNodesWidget (PIVXGUI *parent=nullptr)
 
 ~MasterNodesWidget ()
 
void resetCoinControl ()
 
void setMNModel (MNModel *_mnModel)
 
void run (int type) override
 
void onError (QString error, int type) override
 
void showEvent (QShowEvent *event) override
 
void hideEvent (QHideEvent *event) 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 onCoinControlClicked ()
 
void onCreateMNClicked ()
 
void onStartAllClicked (int type)
 
void changeTheme (bool isLightTheme, QString &theme) override
 
void onMNClicked (const QModelIndex &index)
 
void onEditMNClicked ()
 
void onDeleteMNClicked ()
 
void onInfoMNClicked ()
 
void updateListState ()
 
void updateModelAndInform (const QString &informText)
 

Private Member Functions

bool checkMNsNetwork ()
 
void startAlias (const QString &strAlias)
 
bool startAll (QString &failedMN, bool onlyMissing)
 

Private Attributes

Ui::MasterNodesWidget * ui
 
FurAbstractListItemDelegatedelegate
 
MNModelmnModel = nullptr
 
TooltipMenumenu = nullptr
 
QModelIndex index
 
QTimer * timer = nullptr
 
CoinControlDialogcoinControlDialog = nullptr
 
std::atomic< bool > isLoading
 

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 ()
 
virtual void loadWalletModel ()
 
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 29 of file masternodeswidget.h.

Constructor & Destructor Documentation

◆ MasterNodesWidget()

MasterNodesWidget::MasterNodesWidget ( PIVXGUI parent = nullptr)
explicit

Definition at line 57 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ ~MasterNodesWidget()

MasterNodesWidget::~MasterNodesWidget ( )

Definition at line 430 of file masternodeswidget.cpp.

Member Function Documentation

◆ changeTheme

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

Definition at line 409 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ checkMNsNetwork()

bool MasterNodesWidget::checkMNsNetwork ( )
private

Definition at line 188 of file masternodeswidget.cpp.

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

◆ hideEvent()

void MasterNodesWidget::hideEvent ( QHideEvent *  event)
override

Definition at line 137 of file masternodeswidget.cpp.

◆ onCoinControlClicked

void MasterNodesWidget::onCoinControlClicked ( )
privateslot

Definition at line 414 of file masternodeswidget.cpp.

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

◆ onCreateMNClicked

void MasterNodesWidget::onCreateMNClicked ( )
privateslot

Definition at line 361 of file masternodeswidget.cpp.

Here is the caller graph for this function:

◆ onDeleteMNClicked

void MasterNodesWidget::onDeleteMNClicked ( )
privateslot

Definition at line 334 of file masternodeswidget.cpp.

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

◆ onEditMNClicked

void MasterNodesWidget::onEditMNClicked ( )
privateslot

Definition at line 195 of file masternodeswidget.cpp.

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

◆ onError()

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

Implements Runnable.

Definition at line 288 of file masternodeswidget.cpp.

◆ onInfoMNClicked

void MasterNodesWidget::onInfoMNClicked ( )
privateslot

Definition at line 296 of file masternodeswidget.cpp.

Here is the caller graph for this function:

◆ onMNClicked

void MasterNodesWidget::onMNClicked ( const QModelIndex &  index)
privateslot

Definition at line 158 of file masternodeswidget.cpp.

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

◆ onStartAllClicked

void MasterNodesWidget::onStartAllClicked ( int  type)
privateslot

Definition at line 243 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ resetCoinControl()

void MasterNodesWidget::resetCoinControl ( )

Definition at line 423 of file masternodeswidget.cpp.

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

◆ run()

void MasterNodesWidget::run ( int  type)
overridevirtual

Implements Runnable.

Definition at line 275 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ setMNModel()

void MasterNodesWidget::setMNModel ( MNModel _mnModel)

Definition at line 142 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ showEvent()

void MasterNodesWidget::showEvent ( QShowEvent *  event)
override

Definition at line 127 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ startAlias()

void MasterNodesWidget::startAlias ( const QString &  strAlias)
private

Definition at line 218 of file masternodeswidget.cpp.

Here is the call graph for this function:

◆ startAll()

bool MasterNodesWidget::startAll ( QString &  failedMN,
bool  onlyMissing 
)
private

Definition at line 263 of file masternodeswidget.cpp.

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

◆ updateListState

void MasterNodesWidget::updateListState ( )
privateslot

Definition at line 150 of file masternodeswidget.cpp.

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

◆ updateModelAndInform

void MasterNodesWidget::updateModelAndInform ( const QString &  informText)
privateslot

Definition at line 237 of file masternodeswidget.cpp.

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

Member Data Documentation

◆ coinControlDialog

CoinControlDialog* MasterNodesWidget::coinControlDialog = nullptr
private

Definition at line 65 of file masternodeswidget.h.

◆ delegate

FurAbstractListItemDelegate* MasterNodesWidget::delegate
private

Definition at line 60 of file masternodeswidget.h.

◆ index

QModelIndex MasterNodesWidget::index
private

Definition at line 63 of file masternodeswidget.h.

◆ isLoading

std::atomic<bool> MasterNodesWidget::isLoading
private

Definition at line 67 of file masternodeswidget.h.

◆ menu

TooltipMenu* MasterNodesWidget::menu = nullptr
private

Definition at line 62 of file masternodeswidget.h.

◆ mnModel

MNModel* MasterNodesWidget::mnModel = nullptr
private

Definition at line 61 of file masternodeswidget.h.

◆ timer

QTimer* MasterNodesWidget::timer = nullptr
private

Definition at line 64 of file masternodeswidget.h.

◆ ui

Ui::MasterNodesWidget* MasterNodesWidget::ui
private

Definition at line 59 of file masternodeswidget.h.


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