|
|
@ -77,10 +77,15 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) :
|
|
|
|
setUnifiedTitleAndToolBarOnMac(true);
|
|
|
|
setUnifiedTitleAndToolBarOnMac(true);
|
|
|
|
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
|
|
|
|
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Create wallet frame and make it the central widget
|
|
|
|
|
|
|
|
walletFrame = new WalletFrame(this);
|
|
|
|
|
|
|
|
setCentralWidget(walletFrame);
|
|
|
|
|
|
|
|
|
|
|
|
// Accept D&D of URIs
|
|
|
|
// Accept D&D of URIs
|
|
|
|
setAcceptDrops(true);
|
|
|
|
setAcceptDrops(true);
|
|
|
|
|
|
|
|
|
|
|
|
// Create actions for the toolbar, menu bar and tray/dock icon
|
|
|
|
// Create actions for the toolbar, menu bar and tray/dock icon
|
|
|
|
|
|
|
|
// Needs walletFrame to be initialized
|
|
|
|
createActions();
|
|
|
|
createActions();
|
|
|
|
|
|
|
|
|
|
|
|
// Create application menu bar
|
|
|
|
// Create application menu bar
|
|
|
@ -92,10 +97,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) :
|
|
|
|
// Create system tray icon and notification
|
|
|
|
// Create system tray icon and notification
|
|
|
|
createTrayIcon();
|
|
|
|
createTrayIcon();
|
|
|
|
|
|
|
|
|
|
|
|
// Create wallet frame and make it the central widget
|
|
|
|
|
|
|
|
walletFrame = new WalletFrame(this);
|
|
|
|
|
|
|
|
setCentralWidget(walletFrame);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Create status bar
|
|
|
|
// Create status bar
|
|
|
|
statusBar();
|
|
|
|
statusBar();
|
|
|
|
|
|
|
|
|
|
|
@ -246,9 +247,9 @@ void BitcoinGUI::createActions()
|
|
|
|
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
|
|
|
|
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
|
|
|
|
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
|
|
|
|
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
|
|
|
|
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
|
|
|
|
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
|
|
|
|
connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));
|
|
|
|
connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool)));
|
|
|
|
connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));
|
|
|
|
connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet()));
|
|
|
|
connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));
|
|
|
|
connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase()));
|
|
|
|
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));
|
|
|
|
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));
|
|
|
|
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));
|
|
|
|
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -794,26 +795,6 @@ void BitcoinGUI::setEncryptionStatus(int status)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::encryptWallet(bool status)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
walletFrame->encryptWallet(status);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::backupWallet()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
walletFrame->backupWallet();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::changePassphrase()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
walletFrame->changePassphrase();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::unlockWallet()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
walletFrame->unlockWallet();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden)
|
|
|
|
void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// activateWindow() (sometimes) helps with keyboard focus on Windows
|
|
|
|
// activateWindow() (sometimes) helps with keyboard focus on Windows
|
|
|
|