Initial Vexta Core v0.1.0 release
This commit is contained in:
commit
25c454329d
2481 changed files with 689289 additions and 0 deletions
54
src/qt/utilitydialog.h
Normal file
54
src/qt/utilitydialog.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
// Copyright (c) 2009-2020 The Bitcoin Core developers
|
||||
// Copyright (c) 2014-2020 The DigiByte Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef DIGIBYTE_QT_UTILITYDIALOG_H
|
||||
#define DIGIBYTE_QT_UTILITYDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QMainWindow;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Ui {
|
||||
class HelpMessageDialog;
|
||||
}
|
||||
|
||||
/** "Help message" dialog box */
|
||||
class HelpMessageDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit HelpMessageDialog(QWidget *parent, bool about);
|
||||
~HelpMessageDialog();
|
||||
|
||||
void printToConsole();
|
||||
void showOrPrint();
|
||||
|
||||
private:
|
||||
Ui::HelpMessageDialog *ui;
|
||||
QString text;
|
||||
|
||||
private Q_SLOTS:
|
||||
void on_okButton_accepted();
|
||||
};
|
||||
|
||||
|
||||
/** "Shutdown" window */
|
||||
class ShutdownWindow : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
|
||||
static QWidget* showShutdownWindow(QMainWindow* window);
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
};
|
||||
|
||||
#endif // DIGIBYTE_QT_UTILITYDIALOG_H
|
||||
Loading…
Reference in a new issue