2020-04-16 13:14:08 -04:00
|
|
|
// Copyright (c) 2011-2020 The Bitcoin Core developers
|
2014-12-13 12:09:33 +08: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>
|
2020-01-31 00:50:23 +00:00
|
|
|
#include <QWidget>
|
2014-01-16 16:05:44 +01:00
|
|
|
|
2020-01-31 00:50:23 +00:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QMainWindow;
|
|
|
|
QT_END_NAMESPACE
|
2014-01-16 16:05:44 +01:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class HelpMessageDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** "Help message" dialog box */
|
|
|
|
class HelpMessageDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-08-23 13:42:31 -04: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:
|
2018-07-31 14:02:34 -04:00
|
|
|
explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
|
2020-01-31 00:50:23 +00:00
|
|
|
static QWidget* showShutdownWindow(QMainWindow* window);
|
2014-09-22 10:08:47 +02:00
|
|
|
|
|
|
|
protected:
|
2020-03-14 08:49:59 +02:00
|
|
|
void closeEvent(QCloseEvent *event) override;
|
2014-01-16 16:05:44 +01:00
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_UTILITYDIALOG_H
|