mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
![Wladimir J. van der Laan](/assets/img/avatar_default.png)
This commit squashes all the changes in the Qt5 branch relative to master. Backward compatibility with Qt4 is retained. Original authors: - Philip Kaufmann <phil.kaufmann@t-online.de> - Jonas Schnelli <jonas.schnelli@include7.ch>
74 lines
No EOL
1.8 KiB
C++
74 lines
No EOL
1.8 KiB
C++
/*
|
|
* Qt4 bitcoin GUI.
|
|
*
|
|
* W.J. van der Laan 2011-2012
|
|
* The Bitcoin Developers 2011-2013
|
|
*/
|
|
#ifndef WALLETFRAME_H
|
|
#define WALLETFRAME_H
|
|
|
|
#include <QFrame>
|
|
|
|
class BitcoinGUI;
|
|
class ClientModel;
|
|
class WalletModel;
|
|
class WalletStack;
|
|
|
|
class WalletFrame : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WalletFrame(BitcoinGUI *_gui = 0);
|
|
~WalletFrame();
|
|
|
|
void setClientModel(ClientModel *clientModel);
|
|
|
|
bool addWallet(const QString& name, WalletModel *walletModel);
|
|
bool setCurrentWallet(const QString& name);
|
|
|
|
void removeAllWallets();
|
|
|
|
bool handleURI(const QString &uri);
|
|
|
|
void showOutOfSyncWarning(bool fShow);
|
|
|
|
private:
|
|
BitcoinGUI *gui;
|
|
ClientModel *clientModel;
|
|
WalletStack *walletStack;
|
|
|
|
public slots:
|
|
/** Switch to overview (home) page */
|
|
void gotoOverviewPage();
|
|
/** Switch to history (transactions) page */
|
|
void gotoHistoryPage();
|
|
/** Switch to address book page */
|
|
void gotoAddressBookPage();
|
|
/** Switch to receive coins page */
|
|
void gotoReceiveCoinsPage();
|
|
/** Switch to send coins page */
|
|
void gotoSendCoinsPage(QString addr = "");
|
|
|
|
/** Show Sign/Verify Message dialog and switch to sign message tab */
|
|
void gotoSignMessageTab(QString addr = "");
|
|
/** Show Sign/Verify Message dialog and switch to verify message tab */
|
|
void gotoVerifyMessageTab(QString addr = "");
|
|
|
|
/** Encrypt the wallet */
|
|
void encryptWallet(bool status);
|
|
/** Backup the wallet */
|
|
void backupWallet();
|
|
/** Change encrypted wallet passphrase */
|
|
void changePassphrase();
|
|
/** Ask for passphrase to unlock wallet temporarily */
|
|
void unlockWallet();
|
|
|
|
/** Set the encryption status as shown in the UI.
|
|
@param[in] status current encryption status
|
|
@see WalletModel::EncryptionStatus
|
|
*/
|
|
void setEncryptionStatus();
|
|
};
|
|
|
|
#endif // WALLETFRAME_H
|