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

#include <topbar.h>

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

Public Slots

void updateBalances (const interfaces::WalletBalances &newBalance)
 
void updateDisplayUnit ()
 
void setNumConnections (int count)
 
void setNumBlocks (int count)
 
void setNetworkActive (bool active)
 
void setStakingStatusActive (bool fActive)
 
void updateStakingStatus ()
 
void updateHDState (const bool upgraded, const QString &upgradeError)
 
void showUpgradeDialog (const QString &message)
 

Signals

void themeChanged (bool isLight)
 
void walletSynced (bool isSync)
 
void tierTwoSynced (bool isSync)
 
void onShowHideColdStakingChanged (bool show)
 
- 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

 TopBar (PIVXGUI *_mainWindow, QWidget *parent=nullptr)
 
 ~TopBar ()
 
void showTop ()
 
void showBottom ()
 
void loadWalletModel () override
 
void loadClientModel () override
 
void openPassPhraseDialog (AskPassphraseDialog::Mode mode, AskPassphraseDialog::Context ctx)
 
void encryptWallet ()
 
void run (int type) override
 
void onError (QString error, int type) override
 
void unlockWallet ()
 
- 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 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 Member Functions

void resizeEvent (QResizeEvent *event) override
 
- Protected Member Functions inherited from PWidget
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)
 

Private Slots

void onBtnReceiveClicked ()
 
void onBtnBalanceInfoClicked ()
 
void onThemeClicked ()
 
void onBtnLockClicked ()
 
void lockDropdownMouseLeave ()
 
void lockDropdownClicked (const StateClicked &)
 
void refreshStatus ()
 
void openLockUnlock ()
 
void onColdStakingClicked ()
 
void refreshProgressBarSize ()
 
void expandSync ()
 

Private Member Functions

void updateTorIcon ()
 
void connectUpgradeBtnAndDialogTimer (const QString &message)
 

Private Attributes

Ui::TopBar * ui
 
LockUnlocklockUnlockWidget = nullptr
 
QProgressBar * progressBar = nullptr
 
int nDisplayUnit = -1
 
QTimer * timerStakingIcon = nullptr
 
bool isInitializing = true
 
BalanceBubblebalanceBubble = nullptr
 

Additional Inherited Members

- Protected Slots inherited from PWidget
virtual void changeTheme (bool isLightTheme, QString &theme)
 
void onChangeTheme (bool isLightTheme, QString &theme)
 
- Protected Attributes inherited from PWidget
PIVXGUIwindow = nullptr
 
ClientModelclientModel = nullptr
 
WalletModelwalletModel = nullptr
 

Detailed Description

Definition at line 26 of file topbar.h.

Constructor & Destructor Documentation

◆ TopBar()

TopBar::TopBar ( PIVXGUI _mainWindow,
QWidget *  parent = nullptr 
)
explicit

Definition at line 53 of file topbar.cpp.

Here is the call graph for this function:

◆ ~TopBar()

TopBar::~TopBar ( )

Definition at line 408 of file topbar.cpp.

Member Function Documentation

◆ connectUpgradeBtnAndDialogTimer()

void TopBar::connectUpgradeBtnAndDialogTimer ( const QString &  message)
private

Definition at line 608 of file topbar.cpp.

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

◆ encryptWallet()

void TopBar::encryptWallet ( )

Definition at line 234 of file topbar.cpp.

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

◆ expandSync

void TopBar::expandSync ( )
privateslot

Definition at line 712 of file topbar.cpp.

◆ loadClientModel()

void TopBar::loadClientModel ( )
overridevirtual

Reimplemented from PWidget.

Definition at line 416 of file topbar.cpp.

Here is the call graph for this function:

◆ loadWalletModel()

void TopBar::loadWalletModel ( )
overridevirtual

Reimplemented from PWidget.

Definition at line 575 of file topbar.cpp.

Here is the call graph for this function:

◆ lockDropdownClicked

void TopBar::lockDropdownClicked ( const StateClicked state)
privateslot

Definition at line 250 of file topbar.cpp.

Here is the caller graph for this function:

◆ lockDropdownMouseLeave

void TopBar::lockDropdownMouseLeave ( )
privateslot

Definition at line 315 of file topbar.cpp.

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

◆ onBtnBalanceInfoClicked

void TopBar::onBtnBalanceInfoClicked ( )
privateslot

Definition at line 343 of file topbar.cpp.

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

◆ onBtnLockClicked

void TopBar::onBtnLockClicked ( )
privateslot

Definition at line 178 of file topbar.cpp.

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

◆ onBtnReceiveClicked

void TopBar::onBtnReceiveClicked ( )
privateslot

Definition at line 325 of file topbar.cpp.

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

◆ onColdStakingClicked

void TopBar::onColdStakingClicked ( )
privateslot

Definition at line 380 of file topbar.cpp.

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

◆ onError()

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

Reimplemented from PWidget.

Definition at line 759 of file topbar.cpp.

Here is the call graph for this function:

◆ onShowHideColdStakingChanged

void TopBar::onShowHideColdStakingChanged ( bool  show)
signal
Here is the caller graph for this function:

◆ onThemeClicked

void TopBar::onThemeClicked ( )
privateslot

Definition at line 159 of file topbar.cpp.

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

◆ openLockUnlock

void TopBar::openLockUnlock ( )
privateslot

Definition at line 205 of file topbar.cpp.

Here is the call graph for this function:

◆ openPassPhraseDialog()

void TopBar::openPassPhraseDialog ( AskPassphraseDialog::Mode  mode,
AskPassphraseDialog::Context  ctx 
)

Definition at line 220 of file topbar.cpp.

Here is the caller graph for this function:

◆ refreshProgressBarSize

void TopBar::refreshProgressBarSize ( )
privateslot

Definition at line 707 of file topbar.cpp.

Here is the caller graph for this function:

◆ refreshStatus

void TopBar::refreshStatus ( )
privateslot

Definition at line 638 of file topbar.cpp.

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

◆ resizeEvent()

void TopBar::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 701 of file topbar.cpp.

Here is the call graph for this function:

◆ run()

void TopBar::run ( int  type)
overridevirtual

Reimplemented from PWidget.

Definition at line 745 of file topbar.cpp.

Here is the call graph for this function:

◆ setNetworkActive

void TopBar::setNetworkActive ( bool  active)
slot

Definition at line 472 of file topbar.cpp.

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

◆ setNumBlocks

void TopBar::setNumBlocks ( int  count)
slot
Todo:
: Show out of sync warning
Todo:
: MN progress..

Definition at line 484 of file topbar.cpp.

Here is the caller graph for this function:

◆ setNumConnections

void TopBar::setNumConnections ( int  count)
slot

Definition at line 455 of file topbar.cpp.

Here is the caller graph for this function:

◆ setStakingStatusActive

void TopBar::setStakingStatusActive ( bool  fActive)
slot

Definition at line 434 of file topbar.cpp.

Here is the caller graph for this function:

◆ showBottom()

void TopBar::showBottom ( )

Definition at line 372 of file topbar.cpp.

Here is the caller graph for this function:

◆ showTop()

void TopBar::showTop ( )

Definition at line 362 of file topbar.cpp.

Here is the caller graph for this function:

◆ showUpgradeDialog

void TopBar::showUpgradeDialog ( const QString &  message)
slot

Definition at line 559 of file topbar.cpp.

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

◆ themeChanged

void TopBar::themeChanged ( bool  isLight)
signal
Here is the caller graph for this function:

◆ tierTwoSynced

void TopBar::tierTwoSynced ( bool  isSync)
signal
Here is the caller graph for this function:

◆ unlockWallet()

void TopBar::unlockWallet ( )

Definition at line 239 of file topbar.cpp.

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

◆ updateBalances

void TopBar::updateBalances ( const interfaces::WalletBalances newBalance)
slot
Todo:
move this to the signal properly in the future..

Definition at line 677 of file topbar.cpp.

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

◆ updateDisplayUnit

void TopBar::updateDisplayUnit ( )
slot

Definition at line 667 of file topbar.cpp.

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

◆ updateHDState

void TopBar::updateHDState ( const bool  upgraded,
const QString &  upgradeError 
)
slot

Definition at line 721 of file topbar.cpp.

Here is the call graph for this function:

◆ updateStakingStatus

void TopBar::updateStakingStatus ( )
slot

Definition at line 444 of file topbar.cpp.

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

◆ updateTorIcon()

void TopBar::updateTorIcon ( )
private

Definition at line 617 of file topbar.cpp.

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

◆ walletSynced

void TopBar::walletSynced ( bool  isSync)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ balanceBubble

BalanceBubble* TopBar::balanceBubble = nullptr
private

Definition at line 89 of file topbar.h.

◆ isInitializing

bool TopBar::isInitializing = true
private

Definition at line 86 of file topbar.h.

◆ lockUnlockWidget

LockUnlock* TopBar::lockUnlockWidget = nullptr
private

Definition at line 81 of file topbar.h.

◆ nDisplayUnit

int TopBar::nDisplayUnit = -1
private

Definition at line 84 of file topbar.h.

◆ progressBar

QProgressBar* TopBar::progressBar = nullptr
private

Definition at line 82 of file topbar.h.

◆ timerStakingIcon

QTimer* TopBar::timerStakingIcon = nullptr
private

Definition at line 85 of file topbar.h.

◆ ui

Ui::TopBar* TopBar::ui
private

Definition at line 80 of file topbar.h.


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