Bitcoin Core  0.20.99
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 interfaces {
16  class Node;
17 }
18 
19 namespace Ui {
20  class HelpMessageDialog;
21 }
22 
24 class HelpMessageDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  explicit HelpMessageDialog(interfaces::Node& node, QWidget *parent, bool about);
31 
32  void printToConsole();
33  void showOrPrint();
34 
35 private:
36  Ui::HelpMessageDialog *ui;
37  QString text;
38 
39 private Q_SLOTS:
40  void on_okButton_accepted();
41 };
42 
43 
45 class ShutdownWindow : public QWidget
46 {
47  Q_OBJECT
48 
49 public:
50  explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
51  static QWidget* showShutdownWindow(QMainWindow* window);
52 
53 protected:
54  void closeEvent(QCloseEvent *event) override;
55 };
56 
57 #endif // BITCOIN_QT_UTILITYDIALOG_H
"Shutdown" window
Definition: utilitydialog.h:45
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:36
"Help message" dialog box
Definition: utilitydialog.h:24
Top-level interface for a bitcoin node (bitcoind process).
Definition: node.h:43