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

#include <pwidget.h>

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

Signals

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

 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
 

Protected Slots

virtual void changeTheme (bool isLightTheme, QString &theme)
 
void onChangeTheme (bool isLightTheme, QString &theme)
 

Protected Member Functions

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

PIVXGUIwindow = nullptr
 
ClientModelclientModel = nullptr
 
WalletModelwalletModel = nullptr
 

Private Slots

void errorString (QString, int)
 

Private Member Functions

void init ()
 

Private Attributes

QSharedPointer< WorkerTasktask
 

Detailed Description

Definition at line 29 of file pwidget.h.

Constructor & Destructor Documentation

◆ PWidget() [1/2]

PWidget::PWidget ( PIVXGUI _window = nullptr,
QWidget *  parent = nullptr 
)
explicit

Definition at line 12 of file pwidget.cpp.

Here is the call graph for this function:

◆ PWidget() [2/2]

PWidget::PWidget ( PWidget parent = nullptr)
explicit

Definition at line 13 of file pwidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ ask()

bool PWidget::ask ( const QString &  title,
const QString &  message 
)
protected

Definition at line 55 of file pwidget.cpp.

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

◆ changeTheme

void PWidget::changeTheme ( bool  isLightTheme,
QString &  theme 
)
protectedvirtualslot

Reimplemented in ContactsDropdown.

Definition at line 132 of file pwidget.cpp.

Here is the caller graph for this function:

◆ emitMessage()

void PWidget::emitMessage ( const QString &  title,
const QString &  message,
unsigned int  style,
bool *  ret = nullptr 
)

Definition at line 67 of file pwidget.cpp.

Here is the caller graph for this function:

◆ errorString

void PWidget::errorString ( QString  error,
int  type 
)
privateslot

Definition at line 119 of file pwidget.cpp.

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

◆ execDialog

bool PWidget::execDialog ( QDialog *  dialog,
int  xDiv = 3,
int  yDiv = 5 
)
signal
Here is the caller graph for this function:

◆ execute()

bool PWidget::execute ( int  type,
std::unique_ptr< WalletModel::UnlockContext pctx = nullptr 
)
protected

Definition at line 94 of file pwidget.cpp.

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

◆ getWindow()

PIVXGUI* PWidget::getWindow ( )
inline

Definition at line 39 of file pwidget.h.

◆ inform()

void PWidget::inform ( const QString &  message)

Definition at line 45 of file pwidget.cpp.

Here is the call graph for this function:

◆ init()

void PWidget::init ( )
private

Definition at line 15 of file pwidget.cpp.

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

◆ loadClientModel()

void PWidget::loadClientModel ( )
protectedvirtual

Reimplemented in TopBar, SettingsWalletOptionsWidget, SettingsWidget, SettingsInformationWidget, SettingsDisplayOptionsWidget, SettingsConsoleWidget, SendWidget, and GovernanceWidget.

Definition at line 130 of file pwidget.cpp.

Here is the caller graph for this function:

◆ loadWalletModel()

void PWidget::loadWalletModel ( )
protectedvirtual

Reimplemented in TopBar, SettingsWalletOptionsWidget, SettingsWidget, SendMultiRow, SendWidget, ReceiveWidget, NavMenuWidget, GovernanceWidget, DashboardWidget, ColdStakingWidget, and AddressesWidget.

Definition at line 131 of file pwidget.cpp.

Here is the caller graph for this function:

◆ message

void PWidget::message ( const QString &  title,
const QString &  body,
unsigned int  style,
bool *  ret = nullptr 
)
signal
Here is the caller graph for this function:

◆ onChangeTheme

void PWidget::onChangeTheme ( bool  isLightTheme,
QString &  theme 
)
protectedslot

Definition at line 33 of file pwidget.cpp.

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

◆ onError()

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

Implements Runnable.

Reimplemented in TopBar, SettingsInformationWidget, and SendWidget.

Definition at line 134 of file pwidget.cpp.

Here is the caller graph for this function:

◆ run()

void PWidget::run ( int  type)
overridevirtual

Implements Runnable.

Reimplemented in TopBar, SettingsInformationWidget, and SendWidget.

Definition at line 133 of file pwidget.cpp.

◆ setClientModel()

void PWidget::setClientModel ( ClientModel model)

Definition at line 21 of file pwidget.cpp.

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

◆ setWalletModel()

void PWidget::setWalletModel ( WalletModel model)

Definition at line 27 of file pwidget.cpp.

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

◆ showDialog()

void PWidget::showDialog ( QDialog *  dialog,
int  xDiv = 3,
int  yDiv = 5 
)
protected

Definition at line 62 of file pwidget.cpp.

◆ showHide

void PWidget::showHide ( bool  show)
signal
Here is the caller graph for this function:

◆ showHideOp()

void PWidget::showHideOp ( bool  show)
protected

Definition at line 40 of file pwidget.cpp.

Here is the caller graph for this function:

◆ translate()

QString PWidget::translate ( const char *  msg)
inlineoverride

Definition at line 47 of file pwidget.h.

◆ warn()

void PWidget::warn ( const QString &  title,
const QString &  message 
)
protected

Definition at line 50 of file pwidget.cpp.

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

Member Data Documentation

◆ clientModel

ClientModel* PWidget::clientModel = nullptr
protected

Definition at line 60 of file pwidget.h.

◆ task

QSharedPointer<WorkerTask> PWidget::task
private

Definition at line 73 of file pwidget.h.

◆ walletModel

WalletModel* PWidget::walletModel = nullptr
protected

Definition at line 61 of file pwidget.h.

◆ window

PIVXGUI* PWidget::window = nullptr
protected

Definition at line 59 of file pwidget.h.


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