mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-28 12:07:32 -03:00
96b733e996
Adds a `-version` or `--version` option to print just the version of the program for bitcoind, bitcoin-cli and bitcoin-qt. Also make it that `-help` can be used to display the help (as well as existing `--help`). Up to now, `-help` was the only option that didn't work with either one or two dashes.
66 lines
1.2 KiB
C++
66 lines
1.2 KiB
C++
// Copyright (c) 2011-2014 The Bitcoin developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef UTILITYDIALOG_H
|
|
#define UTILITYDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QObject>
|
|
|
|
class BitcoinGUI;
|
|
class ClientModel;
|
|
|
|
namespace Ui {
|
|
class AboutDialog;
|
|
class HelpMessageDialog;
|
|
}
|
|
|
|
/** "About" dialog box */
|
|
class AboutDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AboutDialog(QWidget *parent);
|
|
~AboutDialog();
|
|
|
|
void setModel(ClientModel *model);
|
|
|
|
private:
|
|
Ui::AboutDialog *ui;
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
};
|
|
|
|
/** "Help message" dialog box */
|
|
class HelpMessageDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HelpMessageDialog(QWidget *parent, bool versionOnly);
|
|
~HelpMessageDialog();
|
|
|
|
void printToConsole();
|
|
void showOrPrint();
|
|
|
|
private:
|
|
Ui::HelpMessageDialog *ui;
|
|
|
|
private slots:
|
|
void on_okButton_accepted();
|
|
};
|
|
|
|
|
|
/** "Shutdown" window */
|
|
class ShutdownWindow : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static void showShutdownWindow(BitcoinGUI *window);
|
|
};
|
|
|
|
#endif // UTILITYDIALOG_H
|