Bitcoin ABC  0.24.7
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
HelpMessageDialog::showOrPrint
void showOrPrint()
Definition: utilitydialog.cpp:123
HelpMessageDialog
"Help message" dialog box
Definition: utilitydialog.h:20
ShutdownWindow::ShutdownWindow
ShutdownWindow(QWidget *parent=nullptr)
"Shutdown" window
Definition: utilitydialog.cpp:139
ShutdownWindow::closeEvent
void closeEvent(QCloseEvent *event) override
Definition: utilitydialog.cpp:164
ShutdownWindow
"Shutdown" window
Definition: utilitydialog.h:39
HelpMessageDialog::HelpMessageDialog
HelpMessageDialog(QWidget *parent, bool about)
"Help message" or "About" dialog box
Definition: utilitydialog.cpp:33
HelpMessageDialog::printToConsole
void printToConsole()
Definition: utilitydialog.cpp:117
Ui
Definition: addressbookpage.h:14
HelpMessageDialog::ui
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:31
ShutdownWindow::showShutdownWindow
static QWidget * showShutdownWindow(QMainWindow *window)
Definition: utilitydialog.cpp:149
HelpMessageDialog::on_okButton_accepted
void on_okButton_accepted()
Definition: utilitydialog.cpp:134
HelpMessageDialog::~HelpMessageDialog
~HelpMessageDialog()
Definition: utilitydialog.cpp:113
HelpMessageDialog::text
QString text
Definition: utilitydialog.h:32