![]() |
Feathercoin
0.5.0
P2P Digital Currency
|
Bitcoin GUI main class. More...
#include <bitcoingui.h>
Public Slots | |
void | setNumConnections (int count) |
Set number of connections shown in the UI. More... | |
void | setNumBlocks (int count, int nTotalBlocks) |
Set number of blocks shown in the UI. More... | |
void | setEncryptionStatus (int status) |
Set the encryption status as 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... | |
void | askFee (qint64 nFeeRequired, bool *payFee) |
Asks the user whether to pay the transaction fee or to cancel the transaction. More... | |
void | handleURI (QString strURI) |
void | incomingTransaction (const QString &date, int unit, qint64 amount, const QString &type, const QString &address) |
Show incoming transaction notification for new transactions. More... | |
Public Member Functions | |
BitcoinGUI (QWidget *parent=0) | |
~BitcoinGUI () | |
void | setClientModel (ClientModel *clientModel) |
Set the client model. More... | |
bool | addWallet (const QString &name, WalletModel *walletModel) |
Set the wallet model. More... | |
bool | setCurrentWallet (const QString &name) |
void | removeAllWallets () |
QAction * | getOverviewAction () |
Used by WalletView to allow access to needed QActions. More... | |
QAction * | getHistoryAction () |
QAction * | getAddressBookAction () |
QAction * | getReceiveCoinsAction () |
QAction * | getSendCoinsAction () |
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 | gotoOverviewPage () |
Switch to overview (home) page. More... | |
void | gotoHistoryPage () |
Switch to history (transactions) page. More... | |
void | gotoAddressBookPage () |
Switch to address book page. More... | |
void | gotoReceiveCoinsPage () |
Switch to receive coins page. More... | |
void | gotoSendCoinsPage (QString addr="") |
Switch to send coins page. More... | |
void | gotoSignMessageTab (QString addr="") |
Show Sign/Verify Message dialog and switch to sign message tab. More... | |
void | gotoVerifyMessageTab (QString addr="") |
Show Sign/Verify Message dialog and switch to verify message tab. More... | |
void | optionsClicked () |
Show configuration dialog. More... | |
void | aboutClicked () |
Show about 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 () |
Create the main UI actions. More... | |
void | createMenuBar () |
Create the menu bar and sub-menus. More... | |
void | createToolBars () |
Create the toolbars. More... | |
void | createTrayIcon () |
Create system tray icon and notification. More... | |
void | createTrayIconMenu () |
Create system tray menu (or setup the dock menu) More... | |
void | saveWindowGeometry () |
Save window size and position. More... | |
void | restoreWindowGeometry () |
Restore window size and position. More... | |
void | setWalletActionsEnabled (bool enabled) |
Enable or disable all wallet-related actions. More... | |
Private Attributes | |
ClientModel * | clientModel |
WalletFrame * | walletFrame |
QLabel * | labelEncryptionIcon |
QLabel * | labelConnectionsIcon |
QLabel * | labelBlocksIcon |
QLabel * | progressBarLabel |
QProgressBar * | progressBar |
QMenuBar * | appMenuBar |
QAction * | overviewAction |
QAction * | historyAction |
QAction * | quitAction |
QAction * | sendCoinsAction |
QAction * | addressBookAction |
QAction * | signMessageAction |
QAction * | verifyMessageAction |
QAction * | aboutAction |
QAction * | receiveCoinsAction |
QAction * | optionsAction |
QAction * | toggleHideAction |
QAction * | encryptWalletAction |
QAction * | backupWalletAction |
QAction * | changePassphraseAction |
QAction * | aboutQtAction |
QAction * | openRPCConsoleAction |
QSystemTrayIcon * | trayIcon |
Notificator * | notificator |
TransactionView * | transactionView |
RPCConsole * | rpcConsole |
QMovie * | syncIconMovie |
int | prevBlocks |
Keep track of previous number of blocks, to detect progress. More... | |
Bitcoin GUI main class.
This class represents the main window of the Bitcoin 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 39 of file bitcoingui.h.
|
explicit |
Definition at line 60 of file bitcoingui.cpp.
BitcoinGUI::~BitcoinGUI | ( | ) |
Definition at line 154 of file bitcoingui.cpp.
|
privateslot |
Show about dialog.
Definition at line 468 of file bitcoingui.cpp.
bool BitcoinGUI::addWallet | ( | const QString & | name, |
WalletModel * | walletModel | ||
) |
Set the wallet model.
The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending functionality.
Definition at line 345 of file bitcoingui.cpp.
|
slot |
Asks the user whether to pay the transaction fee or to cancel the transaction.
It is currently not possible to pass a return value to another thread through BlockingQueuedConnection, so an indirected pointer is used. https://bugreports.qt-project.org/browse/QTBUG-10440
[in] | nFeeRequired | the required fee |
[out] | payFee | true to pay the fee, false to not pay the fee |
Definition at line 704 of file bitcoingui.cpp.
|
protected |
Definition at line 670 of file bitcoingui.cpp.
|
protected |
Definition at line 689 of file bitcoingui.cpp.
|
private |
Create the main UI actions.
Definition at line 165 of file bitcoingui.cpp.
|
private |
Create the menu bar and sub-menus.
Definition at line 258 of file bitcoingui.cpp.
|
private |
Create the toolbars.
Definition at line 289 of file bitcoingui.cpp.
|
private |
Create system tray icon and notification.
Definition at line 376 of file bitcoingui.cpp.
|
private |
Create system tray menu (or setup the dock menu)
Definition at line 389 of file bitcoingui.cpp.
|
privateslot |
called by a timer to check if fRequestShutdown has been set
Definition at line 835 of file bitcoingui.cpp.
|
protected |
Definition at line 729 of file bitcoingui.cpp.
|
protected |
Definition at line 736 of file bitcoingui.cpp.
|
protected |
Definition at line 759 of file bitcoingui.cpp.
|
inline |
Definition at line 67 of file bitcoingui.h.
|
inline |
Definition at line 66 of file bitcoingui.h.
|
inline |
Used by WalletView to allow access to needed QActions.
Definition at line 65 of file bitcoingui.h.
|
inline |
Definition at line 68 of file bitcoingui.h.
|
inline |
Definition at line 69 of file bitcoingui.h.
|
privateslot |
Switch to address book page.
Definition at line 485 of file bitcoingui.cpp.
|
privateslot |
Switch to history (transactions) page.
Definition at line 480 of file bitcoingui.cpp.
|
privateslot |
Switch to overview (home) page.
Definition at line 475 of file bitcoingui.cpp.
|
privateslot |
Switch to receive coins page.
Definition at line 490 of file bitcoingui.cpp.
|
privateslot |
Switch to send coins page.
Definition at line 495 of file bitcoingui.cpp.
|
privateslot |
Show Sign/Verify Message dialog and switch to sign message tab.
Definition at line 500 of file bitcoingui.cpp.
|
privateslot |
Show Sign/Verify Message dialog and switch to verify message tab.
Definition at line 505 of file bitcoingui.cpp.
|
slot |
Definition at line 771 of file bitcoingui.cpp.
|
slot |
Show incoming transaction notification for new transactions.
Definition at line 715 of file bitcoingui.cpp.
|
slot |
Notify the user of an event from the core network or transaction handling code.
[in] | title | the message box / notification title |
[in] | message | the displayed text |
[in] | style | modality and style definitions (icon and used buttons - buttons only for message boxes) |
[in] | ret | pointer to a bool that will be modified to whether Ok was clicked (modal only) |
Definition at line 619 of file bitcoingui.cpp.
|
privateslot |
Show configuration dialog.
Definition at line 459 of file bitcoingui.cpp.
void BitcoinGUI::removeAllWallets | ( | ) |
Definition at line 356 of file bitcoingui.cpp.
|
private |
Restore window size and position.
Definition at line 444 of file bitcoingui.cpp.
|
private |
Save window size and position.
Definition at line 437 of file bitcoingui.cpp.
void BitcoinGUI::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 300 of file bitcoingui.cpp.
bool BitcoinGUI::setCurrentWallet | ( | const QString & | name | ) |
Definition at line 351 of file bitcoingui.cpp.
|
slot |
Set the encryption status as shown in the UI.
[in] | status | current encryption status |
Definition at line 779 of file bitcoingui.cpp.
|
slot |
Set number of blocks shown in the UI.
Definition at line 525 of file bitcoingui.cpp.
|
slot |
Set number of connections shown in the UI.
Definition at line 510 of file bitcoingui.cpp.
|
private |
Enable or disable all wallet-related actions.
Definition at line 362 of file bitcoingui.cpp.
|
privateslot |
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true.
Definition at line 808 of file bitcoingui.cpp.
|
privateslot |
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
Definition at line 830 of file bitcoingui.cpp.
|
privateslot |
Handle tray icon clicked.
Definition at line 427 of file bitcoingui.cpp.
|
private |
Definition at line 96 of file bitcoingui.h.
|
private |
Definition at line 103 of file bitcoingui.h.
|
private |
Definition at line 93 of file bitcoingui.h.
|
private |
Definition at line 88 of file bitcoingui.h.
|
private |
Definition at line 101 of file bitcoingui.h.
|
private |
Definition at line 102 of file bitcoingui.h.
|
private |
Definition at line 79 of file bitcoingui.h.
|
static |
Definition at line 44 of file bitcoingui.h.
|
private |
Definition at line 100 of file bitcoingui.h.
|
private |
Definition at line 90 of file bitcoingui.h.
|
private |
Definition at line 84 of file bitcoingui.h.
|
private |
Definition at line 83 of file bitcoingui.h.
|
private |
Definition at line 82 of file bitcoingui.h.
|
private |
Definition at line 107 of file bitcoingui.h.
|
private |
Definition at line 104 of file bitcoingui.h.
|
private |
Definition at line 98 of file bitcoingui.h.
|
private |
Definition at line 89 of file bitcoingui.h.
|
private |
Keep track of previous number of blocks, to detect progress.
Definition at line 113 of file bitcoingui.h.
|
private |
Definition at line 86 of file bitcoingui.h.
|
private |
Definition at line 85 of file bitcoingui.h.
|
private |
Definition at line 91 of file bitcoingui.h.
|
private |
Definition at line 97 of file bitcoingui.h.
|
private |
Definition at line 109 of file bitcoingui.h.
|
private |
Definition at line 92 of file bitcoingui.h.
|
private |
Definition at line 94 of file bitcoingui.h.
|
private |
Definition at line 111 of file bitcoingui.h.
|
private |
Definition at line 99 of file bitcoingui.h.
|
private |
Definition at line 108 of file bitcoingui.h.
|
private |
Definition at line 106 of file bitcoingui.h.
|
private |
Definition at line 95 of file bitcoingui.h.
|
private |
Definition at line 80 of file bitcoingui.h.