Bitcoin Core  0.18.99
P2P Digital Currency
utilitydialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 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 <QObject>
10 
11 class BitcoinGUI;
12 
13 namespace interfaces {
14  class Node;
15 }
16 
17 namespace Ui {
18  class HelpMessageDialog;
19 }
20 
22 class HelpMessageDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  explicit HelpMessageDialog(interfaces::Node& node, QWidget *parent, bool about);
29 
30  void printToConsole();
31  void showOrPrint();
32 
33 private:
34  Ui::HelpMessageDialog *ui;
35  QString text;
36 
37 private Q_SLOTS:
38  void on_okButton_accepted();
39 };
40 
41 
43 class ShutdownWindow : public QWidget
44 {
45  Q_OBJECT
46 
47 public:
48  explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
49  static QWidget *showShutdownWindow(BitcoinGUI *window);
50 
51 protected:
52  void closeEvent(QCloseEvent *event);
53 };
54 
55 #endif // BITCOIN_QT_UTILITYDIALOG_H
Bitcoin GUI main class.
Definition: bitcoingui.h:64
"Shutdown" window
Definition: utilitydialog.h:43
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:34
"Help message" dialog box
Definition: utilitydialog.h:22
Top-level interface for a bitcoin node (bitcoind process).
Definition: node.h:38