2016-12-31 19:01:21 +01:00
|
|
|
// Copyright (c) 2011-2016 The Bitcoin Core developers
|
2014-12-13 05:09:33 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2014-01-16 16:05:44 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_UTILITYDIALOG_H
|
|
|
|
#define BITCOIN_QT_UTILITYDIALOG_H
|
2014-01-16 16:05:44 +01:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class BitcoinGUI;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class HelpMessageDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** "Help message" dialog box */
|
|
|
|
class HelpMessageDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-06-11 21:44:47 +02:00
|
|
|
explicit HelpMessageDialog(QWidget *parent, bool about);
|
2014-01-16 16:05:44 +01:00
|
|
|
~HelpMessageDialog();
|
|
|
|
|
|
|
|
void printToConsole();
|
|
|
|
void showOrPrint();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::HelpMessageDialog *ui;
|
2014-06-11 21:44:47 +02:00
|
|
|
QString text;
|
2014-01-16 16:05:44 +01:00
|
|
|
|
2015-07-14 13:59:05 +02:00
|
|
|
private Q_SLOTS:
|
2014-01-16 16:05:44 +01:00
|
|
|
void on_okButton_accepted();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** "Shutdown" window */
|
2014-09-22 10:08:47 +02:00
|
|
|
class ShutdownWindow : public QWidget
|
2014-01-16 16:05:44 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-08-01 12:22:41 +02:00
|
|
|
explicit ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0);
|
2016-11-19 14:28:55 +01:00
|
|
|
static QWidget *showShutdownWindow(BitcoinGUI *window);
|
2014-09-22 10:08:47 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *event);
|
2014-01-16 16:05:44 +01:00
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_UTILITYDIALOG_H
|