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

Anoncoin GUI main class. More...

#include <anoncoingui.h>

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

Public Slots

void setNumConnections (int count)
 Set number of connections shown in the UI. More...
 
void setNumBlocks (int count)
 Set number of blocks shown in the UI. More...
 
void message (const QString &title, const QString &message, unsigned int style, bool *ret=NULL)
 Notify the user of an event from the core network or transaction handling code. More...
 

Signals

void receivedURI (const QString &uri)
 Signal raised when a URI was entered or dragged to the GUI. More...
 

Public Member Functions

 AnoncoinGUI (bool fIsTestnet=false, QWidget *parent=0)
 
 ~AnoncoinGUI ()
 
void setClientModel (ClientModel *clientModel)
 Set the client model. More...
 

Static Public Attributes

static const QString DEFAULT_WALLET = "~Default"
 

Protected Member Functions

void changeEvent (QEvent *e)
 
void closeEvent (QCloseEvent *event)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dropEvent (QDropEvent *event)
 
bool eventFilter (QObject *object, QEvent *event)
 

Private Slots

void optionsClicked ()
 Show configuration dialog. More...
 
void aboutClicked ()
 Show about dialog. More...
 
void showHelpMessageClicked ()
 Show help message dialog. More...
 
void trayIconActivated (QSystemTrayIcon::ActivationReason reason)
 Handle tray icon clicked. More...
 
void showNormalIfMinimized (bool fToggleHidden=false)
 Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true. More...
 
void toggleHidden ()
 Simply calls showNormalIfMinimized(true) for use in SLOT() macro. More...
 
void detectShutdown ()
 called by a timer to check if fRequestShutdown has been set More...
 

Private Member Functions

void createActions (bool fIsTestnet)
 Create the main UI actions. More...
 
void createMenuBar ()
 Create the menu bar and sub-menus. More...
 
void createToolBars ()
 Create the toolbars. More...
 
void createTrayIcon (bool fIsTestnet)
 Create system tray icon and notification. More...
 
void createTrayIconMenu ()
 Create system tray menu (or setup the dock menu) More...
 
void setWalletActionsEnabled (bool enabled)
 Enable or disable all wallet-related actions. More...
 
void subscribeToCoreSignals ()
 Connect core signals to GUI client. More...
 
void unsubscribeFromCoreSignals ()
 Disconnect core signals from GUI client. More...
 

Private Attributes

ClientModelclientModel
 
WalletFramewalletFrame
 
UnitDisplayStatusBarControlunitDisplayControl
 
QLabel * labelEncryptionIcon
 
QLabel * labelConnectionsIcon
 
QLabel * labelBlocksIcon
 
QLabel * progressBarLabel
 
QProgressBar * progressBar
 
QMenuBar * appMenuBar
 
QAction * overviewAction
 
QAction * historyAction
 
QAction * quitAction
 
QAction * sendCoinsAction
 
QAction * usedSendingAddressesAction
 
QAction * usedReceivingAddressesAction
 
QAction * signMessageAction
 
QAction * verifyMessageAction
 
QAction * aboutAction
 
QAction * receiveCoinsAction
 
QAction * optionsAction
 
QAction * toggleHideAction
 
QAction * encryptWalletAction
 
QAction * backupWalletAction
 
QAction * changePassphraseAction
 
QAction * aboutQtAction
 
QAction * openRPCConsoleAction
 
QAction * openAction
 
QAction * showHelpMessageAction
 
QSystemTrayIcon * trayIcon
 
Notificatornotificator
 
RPCConsolerpcConsole
 
int prevBlocks
 Keep track of previous number of blocks, to detect progress. More...
 
int spinnerFrame
 

Detailed Description

Anoncoin GUI main class.

This class represents the main window of the Anoncoin UI. It communicates with both the client and wallet models to give the user an up-to-date view of the current core state.

Definition at line 47 of file anoncoingui.h.

Constructor & Destructor Documentation

AnoncoinGUI::AnoncoinGUI ( bool  fIsTestnet = false,
QWidget *  parent = 0 
)
explicit

Definition at line 67 of file anoncoingui.cpp.

Here is the call graph for this function:

AnoncoinGUI::~AnoncoinGUI ( )

Definition at line 226 of file anoncoingui.cpp.

Here is the call graph for this function:

Member Function Documentation

void AnoncoinGUI::aboutClicked ( )
privateslot

Show about dialog.

Definition at line 605 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::changeEvent ( QEvent *  e)
protected

Definition at line 880 of file anoncoingui.cpp.

Here is the call graph for this function:

void AnoncoinGUI::closeEvent ( QCloseEvent *  event)
protected

Definition at line 899 of file anoncoingui.cpp.

Here is the call graph for this function:

void AnoncoinGUI::createActions ( bool  fIsTestnet)
private

Create the main UI actions.

Definition at line 240 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::createMenuBar ( )
private

Create the menu bar and sub-menus.

Definition at line 356 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::createToolBars ( )
private

Create the toolbars.

Definition at line 401 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::createTrayIcon ( bool  fIsTestnet)
private

Create system tray icon and notification.

Definition at line 522 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::createTrayIconMenu ( )
private

Create system tray menu (or setup the dock menu)

Definition at line 544 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::detectShutdown ( )
privateslot

called by a timer to check if fRequestShutdown has been set

Definition at line 1032 of file anoncoingui.cpp.

Here is the call graph for this function:

void AnoncoinGUI::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 930 of file anoncoingui.cpp.

void AnoncoinGUI::dropEvent ( QDropEvent *  event)
protected

Definition at line 937 of file anoncoingui.cpp.

bool AnoncoinGUI::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 949 of file anoncoingui.cpp.

void AnoncoinGUI::message ( const QString &  title,
const QString &  message,
unsigned int  style,
bool *  ret = NULL 
)
slot

Notify the user of an event from the core network or transaction handling code.

Parameters
[in]titlethe message box / notification title
[in]messagethe displayed text
[in]stylemodality and style definitions (icon and used buttons - buttons only for message boxes)
See also
CClientUIInterface::MessageBoxFlags
Parameters
[in]retpointer to a bool that will be modified to whether Ok was clicked (modal only)

Definition at line 817 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::optionsClicked ( )
privateslot

Show configuration dialog.

Definition at line 592 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::receivedURI ( const QString &  uri)
signal

Signal raised when a URI was entered or dragged to the GUI.

Definition at line 257 of file moc_anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::setClientModel ( ClientModel clientModel)

Set the client model.

The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic.

Definition at line 415 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::setNumBlocks ( int  count)
slot

Set number of blocks shown in the UI.

Definition at line 710 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::setNumConnections ( int  count)
slot

Set number of connections shown in the UI.

Definition at line 667 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::setWalletActionsEnabled ( bool  enabled)
private

Enable or disable all wallet-related actions.

Definition at line 506 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::showHelpMessageClicked ( )
privateslot

Show help message dialog.

Definition at line 615 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::showNormalIfMinimized ( bool  fToggleHidden = false)
privateslot

Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true.

Definition at line 1005 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::subscribeToCoreSignals ( )
private

Connect core signals to GUI client.

Definition at line 1108 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::toggleHidden ( )
privateslot

Simply calls showNormalIfMinimized(true) for use in SLOT() macro.

Definition at line 1027 of file anoncoingui.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AnoncoinGUI::trayIconActivated ( QSystemTrayIcon::ActivationReason  reason)
privateslot

Handle tray icon clicked.

Definition at line 582 of file anoncoingui.cpp.

Here is the caller graph for this function:

void AnoncoinGUI::unsubscribeFromCoreSignals ( )
private

Disconnect core signals from GUI client.

Definition at line 1117 of file anoncoingui.cpp.

Here is the caller graph for this function:

Member Data Documentation

QAction* AnoncoinGUI::aboutAction
private

Definition at line 104 of file anoncoingui.h.

QAction* AnoncoinGUI::aboutQtAction
private

Definition at line 111 of file anoncoingui.h.

QMenuBar* AnoncoinGUI::appMenuBar
private

Definition at line 95 of file anoncoingui.h.

QAction* AnoncoinGUI::backupWalletAction
private

Definition at line 109 of file anoncoingui.h.

QAction* AnoncoinGUI::changePassphraseAction
private

Definition at line 110 of file anoncoingui.h.

ClientModel* AnoncoinGUI::clientModel
private

Definition at line 80 of file anoncoingui.h.

const QString AnoncoinGUI::DEFAULT_WALLET = "~Default"
static

Definition at line 52 of file anoncoingui.h.

QAction* AnoncoinGUI::encryptWalletAction
private

Definition at line 108 of file anoncoingui.h.

QAction* AnoncoinGUI::historyAction
private

Definition at line 97 of file anoncoingui.h.

QLabel* AnoncoinGUI::labelBlocksIcon
private

Definition at line 86 of file anoncoingui.h.

QLabel* AnoncoinGUI::labelConnectionsIcon
private

Definition at line 85 of file anoncoingui.h.

QLabel* AnoncoinGUI::labelEncryptionIcon
private

Definition at line 84 of file anoncoingui.h.

Notificator* AnoncoinGUI::notificator
private

Definition at line 117 of file anoncoingui.h.

QAction* AnoncoinGUI::openAction
private

Definition at line 113 of file anoncoingui.h.

QAction* AnoncoinGUI::openRPCConsoleAction
private

Definition at line 112 of file anoncoingui.h.

QAction* AnoncoinGUI::optionsAction
private

Definition at line 106 of file anoncoingui.h.

QAction* AnoncoinGUI::overviewAction
private

Definition at line 96 of file anoncoingui.h.

int AnoncoinGUI::prevBlocks
private

Keep track of previous number of blocks, to detect progress.

Definition at line 121 of file anoncoingui.h.

QProgressBar* AnoncoinGUI::progressBar
private

Definition at line 93 of file anoncoingui.h.

QLabel* AnoncoinGUI::progressBarLabel
private

Definition at line 92 of file anoncoingui.h.

QAction* AnoncoinGUI::quitAction
private

Definition at line 98 of file anoncoingui.h.

QAction* AnoncoinGUI::receiveCoinsAction
private

Definition at line 105 of file anoncoingui.h.

RPCConsole* AnoncoinGUI::rpcConsole
private

Definition at line 118 of file anoncoingui.h.

QAction* AnoncoinGUI::sendCoinsAction
private

Definition at line 99 of file anoncoingui.h.

QAction* AnoncoinGUI::showHelpMessageAction
private

Definition at line 114 of file anoncoingui.h.

QAction* AnoncoinGUI::signMessageAction
private

Definition at line 102 of file anoncoingui.h.

int AnoncoinGUI::spinnerFrame
private

Definition at line 122 of file anoncoingui.h.

QAction* AnoncoinGUI::toggleHideAction
private

Definition at line 107 of file anoncoingui.h.

QSystemTrayIcon* AnoncoinGUI::trayIcon
private

Definition at line 116 of file anoncoingui.h.

UnitDisplayStatusBarControl* AnoncoinGUI::unitDisplayControl
private

Definition at line 83 of file anoncoingui.h.

QAction* AnoncoinGUI::usedReceivingAddressesAction
private

Definition at line 101 of file anoncoingui.h.

QAction* AnoncoinGUI::usedSendingAddressesAction
private

Definition at line 100 of file anoncoingui.h.

QAction* AnoncoinGUI::verifyMessageAction
private

Definition at line 103 of file anoncoingui.h.

WalletFrame* AnoncoinGUI::walletFrame
private

Definition at line 81 of file anoncoingui.h.


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