Bitcoin Core 28.99.0
P2P Digital Currency
utilitydialog.h
Go to the documentation of this file.
1// Copyright (c) 2011-2020 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_UTILITYDIALOG_H
6#define BITCOIN_QT_UTILITYDIALOG_H
7
8#include <QDialog>
9#include <QWidget>
10
11QT_BEGIN_NAMESPACE
12class QMainWindow;
13QT_END_NAMESPACE
14
15namespace Ui {
17}
18
20class HelpMessageDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 explicit HelpMessageDialog(QWidget *parent, bool about);
27
28 void printToConsole();
29 void showOrPrint();
30
31private:
32 Ui::HelpMessageDialog *ui;
33 QString text;
34
35private Q_SLOTS:
37};
38
39
41class ShutdownWindow : public QWidget
42{
43 Q_OBJECT
44
45public:
46 explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
47 static QWidget* showShutdownWindow(QMainWindow* window);
48
49protected:
50 void closeEvent(QCloseEvent *event) override;
51};
52
53#endif // BITCOIN_QT_UTILITYDIALOG_H
"Help message" dialog box
Definition: utilitydialog.h:21
HelpMessageDialog(QWidget *parent, bool about)
"Help message" or "About" dialog box
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:32
"Shutdown" window
Definition: utilitydialog.h:42
ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget)
"Shutdown" window
void closeEvent(QCloseEvent *event) override
static QWidget * showShutdownWindow(QMainWindow *window)