Dash Core  0.12.2.1
P2P Digital Currency
UnitDisplayStatusBarControl Class Reference

#include <bitcoingui.h>

+ Inheritance diagram for UnitDisplayStatusBarControl:

Public Member Functions

 UnitDisplayStatusBarControl (const PlatformStyle *platformStyle)
 
void setOptionsModel (OptionsModel *optionsModel)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Private Slots

void updateDisplayUnit (int newUnits)
 
void onMenuSelection (QAction *action)
 

Private Member Functions

void onDisplayUnitsClicked (const QPoint &point)
 
void createContextMenu ()
 

Private Attributes

OptionsModeloptionsModel
 
QMenu * menu
 

Detailed Description

Definition at line 285 of file bitcoingui.h.

Constructor & Destructor Documentation

◆ UnitDisplayStatusBarControl()

UnitDisplayStatusBarControl::UnitDisplayStatusBarControl ( const PlatformStyle platformStyle)
explicit

Definition at line 1462 of file bitcoingui.cpp.

Member Function Documentation

◆ createContextMenu()

void UnitDisplayStatusBarControl::createContextMenu ( )
private

Creates context menu, its actions, and wires up all the relevant signals for mouse events.

Definition at line 1487 of file bitcoingui.cpp.

Referenced by UnitDisplayStatusBarControl().

◆ mousePressEvent()

void UnitDisplayStatusBarControl::mousePressEvent ( QMouseEvent *  event)
protected

So that it responds to left-button clicks

So that it responds to button clicks

Definition at line 1481 of file bitcoingui.cpp.

◆ onDisplayUnitsClicked()

void UnitDisplayStatusBarControl::onDisplayUnitsClicked ( const QPoint &  point)
private

Shows context menu with Display Unit options by the mouse coordinates

Definition at line 1521 of file bitcoingui.cpp.

Referenced by mousePressEvent().

◆ onMenuSelection

void UnitDisplayStatusBarControl::onMenuSelection ( QAction *  action)
privateslot

Tells underlying optionsModel to update its current display unit.

Definition at line 1528 of file bitcoingui.cpp.

Referenced by createContextMenu().

◆ setOptionsModel()

void UnitDisplayStatusBarControl::setOptionsModel ( OptionsModel optionsModel)

Lets the control know about the Options Model (and its signals)

Definition at line 1500 of file bitcoingui.cpp.

Referenced by BitcoinGUI::setClientModel().

◆ updateDisplayUnit

void UnitDisplayStatusBarControl::updateDisplayUnit ( int  newUnits)
privateslot

When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar

Definition at line 1515 of file bitcoingui.cpp.

Referenced by setOptionsModel().

Member Data Documentation

◆ menu

QMenu* UnitDisplayStatusBarControl::menu
private

Definition at line 300 of file bitcoingui.h.

Referenced by createContextMenu(), and onDisplayUnitsClicked().

◆ optionsModel

OptionsModel* UnitDisplayStatusBarControl::optionsModel
private

Definition at line 299 of file bitcoingui.h.

Referenced by onMenuSelection(), and setOptionsModel().


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