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/psbtoperationsdialog.h
Normal file
54
src/qt/psbtoperationsdialog.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
// Copyright (c) 2011-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_PSBTOPERATIONSDIALOG_H
|
||||
#define DIGIBYTE_QT_PSBTOPERATIONSDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include <psbt.h>
|
||||
#include <qt/clientmodel.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
namespace Ui {
|
||||
class PSBTOperationsDialog;
|
||||
}
|
||||
|
||||
/** Dialog showing transaction details. */
|
||||
class PSBTOperationsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PSBTOperationsDialog(QWidget* parent, WalletModel* walletModel, ClientModel* clientModel);
|
||||
~PSBTOperationsDialog();
|
||||
|
||||
void openWithPSBT(PartiallySignedTransaction psbtx);
|
||||
|
||||
public Q_SLOTS:
|
||||
void signTransaction();
|
||||
void broadcastTransaction();
|
||||
void copyToClipboard();
|
||||
void saveTransaction();
|
||||
|
||||
private:
|
||||
Ui::PSBTOperationsDialog* m_ui;
|
||||
PartiallySignedTransaction m_transaction_data;
|
||||
WalletModel* m_wallet_model;
|
||||
ClientModel* m_client_model;
|
||||
|
||||
enum class StatusLevel {
|
||||
INFO,
|
||||
WARN,
|
||||
ERR
|
||||
};
|
||||
|
||||
size_t couldSignInputs(const PartiallySignedTransaction &psbtx);
|
||||
void updateTransactionDisplay();
|
||||
std::string renderTransaction(const PartiallySignedTransaction &psbtx);
|
||||
void showStatus(const QString &msg, StatusLevel level);
|
||||
void showTransactionStatus(const PartiallySignedTransaction &psbtx);
|
||||
};
|
||||
|
||||
#endif // DIGIBYTE_QT_PSBTOPERATIONSDIALOG_H
|
||||
Loading…
Reference in a new issue