Bitcoin ABC 0.30.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
11QT_BEGIN_NAMESPACE
12class QMainWindow;
13QT_END_NAMESPACE
14
15namespace Ui {
17}
18
20class HelpMessageDialog : public QDialog {
21 Q_OBJECT
22
23public:
24 explicit HelpMessageDialog(QWidget *parent, bool about);
26
27 void printToConsole();
28 void showOrPrint();
29
30private:
31 Ui::HelpMessageDialog *ui;
32 QString text;
33
34private Q_SLOTS:
36};
37
39class ShutdownWindow : public QWidget {
40 Q_OBJECT
41
42public:
43 explicit ShutdownWindow(QWidget *parent = nullptr);
44 static QWidget *showShutdownWindow(QMainWindow *window);
45
46protected:
47 void closeEvent(QCloseEvent *event) override;
48};
49
50#endif // BITCOIN_QT_UTILITYDIALOG_H
"Help message" dialog box
Definition: utilitydialog.h:20
HelpMessageDialog(QWidget *parent, bool about)
"Help message" or "About" dialog box
Ui::HelpMessageDialog * ui
Definition: utilitydialog.h:31
"Shutdown" window
Definition: utilitydialog.h:39
void closeEvent(QCloseEvent *event) override
static QWidget * showShutdownWindow(QMainWindow *window)
ShutdownWindow(QWidget *parent=nullptr)
"Shutdown" window