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