Bitcoin ABC  0.22.13
P2P Digital Currency
utilitydialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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  Q_OBJECT
22 
23 public:
24  explicit HelpMessageDialog(QWidget *parent, bool about);
26 
27  void printToConsole();
28  void showOrPrint();
29 
30 private:
31  Ui::HelpMessageDialog *ui;
32  QString text;
33 
34 private Q_SLOTS:
35  void on_okButton_accepted();
36 };
37 
39 class ShutdownWindow : public QWidget {
40  Q_OBJECT
41 
42 public:
43  explicit ShutdownWindow(QWidget *parent = nullptr);
44  static QWidget *showShutdownWindow(QMainWindow *window);
45 
46 protected:
47  void closeEvent(QCloseEvent *event) override;
48 };
49 
50 #endif // BITCOIN_QT_UTILITYDIALOG_H
"Shutdown" window
Definition: utilitydialog.h:39
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:31
"Help message" dialog box
Definition: utilitydialog.h:20