14 #include <QHBoxLayout> 20 platformStyle(_platformStyle)
23 QHBoxLayout *walletFrameLayout =
new QHBoxLayout(
this);
24 setContentsMargins(0,0,0,0);
26 walletFrameLayout->setContentsMargins(0,0,0,0);
29 QLabel *noWallet =
new QLabel(tr(
"No wallet has been loaded."));
30 noWallet->setAlignment(Qt::AlignCenter);
60 connect(walletView, SIGNAL(showNormalIfMinimized()),
gui, SLOT(showNormalIfMinimized()));
64 connect(walletView, SIGNAL(currentChanged(
int)),
this, SLOT(
pageChanged(
int)));
92 QMap<QString, WalletView*>::const_iterator i;
110 QMap<QString, WalletView*>::const_iterator i;
112 i.value()->showOutOfSyncWarning(fShow);
117 QMap<QString, WalletView*>::const_iterator i;
119 i.value()->gotoOverviewPage();
124 QMap<QString, WalletView*>::const_iterator i;
126 i.value()->gotoHistoryPage();
131 QMap<QString, WalletView*>::const_iterator i;
133 i.value()->gotoSendTokenPage();
138 QMap<QString, WalletView*>::const_iterator i;
140 i.value()->gotoReceiveTokenPage();
145 QMap<QString, WalletView*>::const_iterator i;
147 i.value()->gotoAddTokenPage();
152 QMap<QString, WalletView*>::const_iterator i;
154 i.value()->gotoReceiveCoinsPage();
159 QMap<QString, WalletView*>::const_iterator i;
161 i.value()->gotoSendCoinsPage(addr);
166 QMap<QString, WalletView*>::const_iterator i;
168 i.value()->gotoCreateContractPage();
173 QMap<QString, WalletView*>::const_iterator i;
175 i.value()->gotoSendToContractPage();
180 QMap<QString, WalletView*>::const_iterator i;
182 i.value()->gotoCallContractPage();
229 QObject*
object = sender();
230 QString objectName =
object ?
object->objectName() :
"";
231 bool fromMenu = objectName ==
"unlockWalletAction";
273 QObject* obj = sender();
274 if(obj->inherits(
"WalletView"))
277 if(walletView->count() > index)
279 QWidget* currentPage = walletView->widget(index);
280 QObject* info = currentPage->findChild<
TabBarInfo *>(
"");
void unlockWallet(bool fromMenu=false)
Ask for passphrase to unlock wallet temporarily.
void lockWallet()
Lock the wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
bool setCurrentWallet(const QString &name)
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void gotoAddTokenPage()
Switch to Add Token page.
void restoreWallet()
Restore the wallet.
void usedSendingAddresses()
Show used sending addresses.
WalletView * currentWalletView()
ClientModel * clientModel
void changePassphrase()
Change encrypted wallet passphrase.
void gotoCreateContractPage()
Switch to create contract page.
void usedReceivingAddresses()
Show used receiving addresses.
QStackedWidget * walletStack
void encryptWallet(bool status)
Encrypt the wallet.
void outOfSyncWarningClicked()
Pass on signal over requested out-of-sync-warning information.
QMap< QString, WalletView * > mapWalletViews
void gotoSendTokenPage()
Switch to Send Token page.
void updateEncryptionStatus()
Re-emit encryption status signal.
void gotoCallContractPage()
Switch to call contract page.
void showOutOfSyncWarning(bool fShow)
void gotoHistoryPage()
Switch to history (transactions) page.
void gotoOverviewPage()
Switch to overview (home) page.
void usedReceivingAddresses()
Show used receiving addresses.
void setClientModel(ClientModel *clientModel)
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
bool addWallet(const QString &name, WalletModel *walletModel)
WalletFrame(const PlatformStyle *platformStyle, FabcoinGUI *_gui=0)
void restoreWallet()
Restore the wallet.
void changePassphrase()
Change encrypted wallet passphrase.
Model for Fabcoin network client.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void backupWallet()
Backup the wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void gotoOverviewPage()
Switch to overview (home) page.
void requestedSyncWarningInfo()
Notify that the user has requested more information about the out-of-sync warning.
void pageChanged(int index)
const PlatformStyle * platformStyle
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void gotoReceiveCoinsPage()
Switch to receive coins page.
void setTabBarInfo(QObject *into)
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void setFabcoinGUI(FabcoinGUI *gui)
Interface to Fabcoin wallet from Qt view code.
bool fWalletUnlockStakingOnly
void lockWallet()
Lock the wallet.
bool removeWallet(const QString &name)
void setClientModel(ClientModel *clientModel)
Set the client model.
The TabBarInfo class Class for informations about tabs.
void backupWallet()
Backup the wallet.
void gotoSendToContractPage()
Switch to send contract page.
void encryptWallet(bool status)
Encrypt the wallet.
void usedSendingAddresses()
Show used sending addresses.
void showOutOfSyncWarning(bool fShow)
void gotoReceiveTokenPage()
Switch to Receive Token page.