[tests] Add -blocknotify functional test
[bitcoinplatinum.git] / src / qt / utilitydialog.h
blob738eeed136a655eb625a21fb4fcf031aec4904a0
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.
5 #ifndef BITCOIN_QT_UTILITYDIALOG_H
6 #define BITCOIN_QT_UTILITYDIALOG_H
8 #include <QDialog>
9 #include <QObject>
11 class BitcoinGUI;
13 namespace Ui {
14 class HelpMessageDialog;
17 /** "Help message" dialog box */
18 class HelpMessageDialog : public QDialog
20 Q_OBJECT
22 public:
23 explicit HelpMessageDialog(QWidget *parent, bool about);
24 ~HelpMessageDialog();
26 void printToConsole();
27 void showOrPrint();
29 private:
30 Ui::HelpMessageDialog *ui;
31 QString text;
33 private Q_SLOTS:
34 void on_okButton_accepted();
38 /** "Shutdown" window */
39 class ShutdownWindow : public QWidget
41 Q_OBJECT
43 public:
44 explicit ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0);
45 static QWidget *showShutdownWindow(BitcoinGUI *window);
47 protected:
48 void closeEvent(QCloseEvent *event);
51 #endif // BITCOIN_QT_UTILITYDIALOG_H