mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#ifndef FEATHER_TXCONFADVDIALOG_H
|
|
#define FEATHER_TXCONFADVDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QMenu>
|
|
#include <QStandardItemModel>
|
|
#include <QTextCharFormat>
|
|
|
|
#include "components.h"
|
|
#include "libwalletqt/PendingTransaction.h"
|
|
#include "libwalletqt/Wallet.h"
|
|
|
|
namespace Ui {
|
|
class TxConfAdvDialog;
|
|
}
|
|
|
|
class TxConfAdvDialog : public WindowModalDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TxConfAdvDialog(Wallet *wallet, const QString &description, QWidget *parent = nullptr);
|
|
~TxConfAdvDialog() override;
|
|
|
|
void setTransaction(PendingTransaction *tx, bool isSigned = true); // #TODO: have libwallet return a UnsignedTransaction, this is just dumb
|
|
void setUnsignedTransaction(UnsignedTransaction *utx);
|
|
|
|
private:
|
|
void setupConstructionData(ConstructionInfo *ci);
|
|
void signTransaction();
|
|
void broadcastTransaction();
|
|
void closeDialog();
|
|
void setAmounts(quint64 amount, quint64 fee);
|
|
|
|
void unsignedCopy();
|
|
void unsignedQrCode();
|
|
void unsignedSaveFile();
|
|
|
|
void signedCopy();
|
|
void signedQrCode();
|
|
void signedSaveFile();
|
|
|
|
void txKeyCopy();
|
|
|
|
QScopedPointer<Ui::TxConfAdvDialog> ui;
|
|
Wallet *m_wallet;
|
|
PendingTransaction *m_tx = nullptr;
|
|
UnsignedTransaction *m_utx = nullptr;
|
|
QMenu *m_exportUnsignedMenu;
|
|
QMenu *m_exportSignedMenu;
|
|
QMenu *m_exportTxKeyMenu;
|
|
QString m_txid;
|
|
};
|
|
|
|
#endif //FEATHER_TXCONFADVDIALOG_H
|