Bitcoin Core  27.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 
11 QT_BEGIN_NAMESPACE
12 class QMainWindow;
13 QT_END_NAMESPACE
14 
15 namespace Ui {
16  class HelpMessageDialog;
17 }
18 
20 class HelpMessageDialog : public QDialog
21 {
22  Q_OBJECT
23 
24 public:
25  explicit HelpMessageDialog(QWidget *parent, bool about);
27 
28  void printToConsole();
29  void showOrPrint();
30 
31 private:
32  Ui::HelpMessageDialog *ui;
33  QString text;
34 
35 private Q_SLOTS:
36  void on_okButton_accepted();
37 };
38 
39 
41 class ShutdownWindow : public QWidget
42 {
43  Q_OBJECT
44 
45 public:
46  explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
47  static QWidget* showShutdownWindow(QMainWindow* window);
48 
49 protected:
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)