Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
12class QMainWindow;
14
15namespace Ui {
17}
18
20class HelpMessageDialog : public QDialog {
22
23public:
24 explicit HelpMessageDialog(QWidget *parent, bool about);
26
27 void printToConsole();
28 void showOrPrint();
29
30private:
31 Ui::HelpMessageDialog *ui;
33
34private Q_SLOTS:
36};
37
39class ShutdownWindow : public QWidget {
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
Ui::HelpMessageDialog * ui
"Shutdown" window
void closeEvent(QCloseEvent *event) override
static QWidget * showShutdownWindow(QMainWindow *window)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85