Changeset View
Changeset View
Standalone View
Standalone View
src/qt/utilitydialog.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <qt/guiutil.h> | |||||
#include <qt/utilitydialog.h> | #include <qt/utilitydialog.h> | ||||
#include <clientversion.h> | #include <clientversion.h> | ||||
#include <init.h> | #include <init.h> | ||||
#include <network.h> | #include <network.h> | ||||
#include <qt/forms/ui_helpmessagedialog.h> | #include <qt/forms/ui_helpmessagedialog.h> | ||||
#ifdef ENABLE_BIP70 | #ifdef ENABLE_BIP70 | ||||
#include <qt/paymentrequestplus.h> | #include <qt/paymentrequestplus.h> | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | if (about) { | ||||
cursor.insertTable(1, 2, tf); | cursor.insertTable(1, 2, tf); | ||||
} | } | ||||
} | } | ||||
ui->helpMessage->moveCursor(QTextCursor::Start); | ui->helpMessage->moveCursor(QTextCursor::Start); | ||||
ui->scrollArea->setVisible(false); | ui->scrollArea->setVisible(false); | ||||
ui->aboutLogo->setVisible(false); | ui->aboutLogo->setVisible(false); | ||||
} | } | ||||
GUIUtil::handleCloseWindowShortcut(this); | |||||
} | } | ||||
HelpMessageDialog::~HelpMessageDialog() { | HelpMessageDialog::~HelpMessageDialog() { | ||||
delete ui; | delete ui; | ||||
} | } | ||||
void HelpMessageDialog::printToConsole() { | void HelpMessageDialog::printToConsole() { | ||||
// On other operating systems, the expected action is to print the message | // On other operating systems, the expected action is to print the message | ||||
Show All 18 Lines | |||||
/** "Shutdown" window */ | /** "Shutdown" window */ | ||||
ShutdownWindow::ShutdownWindow(QWidget *parent) : QWidget(parent) { | ShutdownWindow::ShutdownWindow(QWidget *parent) : QWidget(parent) { | ||||
QVBoxLayout *layout = new QVBoxLayout(); | QVBoxLayout *layout = new QVBoxLayout(); | ||||
layout->addWidget(new QLabel( | layout->addWidget(new QLabel( | ||||
tr("%1 is shutting down...").arg(PACKAGE_NAME) + "<br /><br />" + | tr("%1 is shutting down...").arg(PACKAGE_NAME) + "<br /><br />" + | ||||
tr("Do not shut down the computer until this window disappears."))); | tr("Do not shut down the computer until this window disappears."))); | ||||
setLayout(layout); | setLayout(layout); | ||||
GUIUtil::handleCloseWindowShortcut(this); | |||||
} | } | ||||
QWidget *ShutdownWindow::showShutdownWindow(QMainWindow *window) { | QWidget *ShutdownWindow::showShutdownWindow(QMainWindow *window) { | ||||
assert(window != nullptr); | assert(window != nullptr); | ||||
// Show a simple window indicating shutdown status | // Show a simple window indicating shutdown status | ||||
QWidget *shutdownWindow = new ShutdownWindow(); | QWidget *shutdownWindow = new ShutdownWindow(); | ||||
shutdownWindow->setWindowTitle(window->windowTitle()); | shutdownWindow->setWindowTitle(window->windowTitle()); | ||||
Show All 12 Lines |