Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
UnitDisplayStatusBarControl Class Reference

#include <anoncoingui.h>

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

Public Member Functions

 UnitDisplayStatusBarControl ()
 
void setOptionsModel (OptionsModel *optionsModel)
 Lets the control know about the Options Model (and its signals) More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 So that it responds to left-button clicks. More...
 

Private Slots

void updateDisplayUnit (int newUnits)
 When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar. More...
 
void onMenuSelection (QAction *action)
 Tells underlying optionsModel to update its current display unit. More...
 

Private Member Functions

void onDisplayUnitsClicked (const QPoint &point)
 Shows context menu with Display Unit options by the mouse coordinates. More...
 
void createContextMenu ()
 Creates context menu, its actions, and wires up all the relevant signals for mouse events. More...
 

Private Attributes

OptionsModeloptionsModel
 
QMenu * menu
 

Detailed Description

Definition at line 222 of file anoncoingui.h.

Constructor & Destructor Documentation

UnitDisplayStatusBarControl::UnitDisplayStatusBarControl ( )
explicit

Definition at line 1126 of file anoncoingui.cpp.

Here is the call graph for this function:

Member Function Documentation

void UnitDisplayStatusBarControl::createContextMenu ( )
private

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

Definition at line 1141 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void UnitDisplayStatusBarControl::mousePressEvent ( QMouseEvent *  event)
protected

So that it responds to left-button clicks.

Definition at line 1135 of file anoncoingui.cpp.

Here is the call graph for this function:

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

Shows context menu with Display Unit options by the mouse coordinates.

Definition at line 1179 of file anoncoingui.cpp.

Here is the caller graph for this function:

void UnitDisplayStatusBarControl::onMenuSelection ( QAction *  action)
privateslot

Tells underlying optionsModel to update its current display unit.

Definition at line 1186 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void UnitDisplayStatusBarControl::setOptionsModel ( OptionsModel optionsModel)

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

Definition at line 1158 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 1173 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QMenu* UnitDisplayStatusBarControl::menu
private

Definition at line 237 of file anoncoingui.h.

OptionsModel* UnitDisplayStatusBarControl::optionsModel
private

Definition at line 236 of file anoncoingui.h.


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