Use an .ini config file for environment vars in bitcoin-util-test.py
[bitcoinplatinum.git] / src / qt / utilitydialog.h
blob1b6781c5fc285d135c97338e6cd58f75ac4d72c1
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;
12 class ClientModel;
14 namespace Ui {
15 class HelpMessageDialog;
18 /** "Help message" dialog box */
19 class HelpMessageDialog : public QDialog
21 Q_OBJECT
23 public:
24 explicit HelpMessageDialog(QWidget *parent, bool about);
25 ~HelpMessageDialog();
27 void printToConsole();
28 void showOrPrint();
30 private:
31 Ui::HelpMessageDialog *ui;
32 QString text;
34 private Q_SLOTS:
35 void on_okButton_accepted();
39 /** "Shutdown" window */
40 class ShutdownWindow : public QWidget
42 Q_OBJECT
44 public:
45 ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0);
46 static QWidget *showShutdownWindow(BitcoinGUI *window);
48 protected:
49 void closeEvent(QCloseEvent *event);
52 #endif // BITCOIN_QT_UTILITYDIALOG_H