mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020, The Monero Project.
|
||
|
|
||
|
#ifndef FEATHER_TXCONFADVDIALOG_H
|
||
|
#define FEATHER_TXCONFADVDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QStandardItemModel>
|
||
|
#include <QAbstractButton>
|
||
|
#include <QMenu>
|
||
|
|
||
|
#include "libwalletqt/PendingTransaction.h"
|
||
|
#include "appcontext.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class TxConfAdvDialog;
|
||
|
}
|
||
|
|
||
|
class TxConfAdvDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit TxConfAdvDialog(AppContext *ctx, const QString &description, QWidget *parent = nullptr);
|
||
|
~TxConfAdvDialog() override;
|
||
|
|
||
|
void setTransaction(PendingTransaction *tx);
|
||
|
void setUnsignedTransaction(UnsignedTransaction *utx);
|
||
|
|
||
|
private:
|
||
|
void setupConstructionData(ConstructionInfo *ci);
|
||
|
void signTransaction();
|
||
|
void broadcastTransaction();
|
||
|
void closeDialog();
|
||
|
|
||
|
void unsignedCopy();
|
||
|
void unsignedQrCode();
|
||
|
void unsignedSaveFile();
|
||
|
|
||
|
void signedCopy();
|
||
|
void signedQrCode();
|
||
|
void signedSaveFile();
|
||
|
|
||
|
Ui::TxConfAdvDialog *ui;
|
||
|
AppContext *m_ctx;
|
||
|
PendingTransaction *m_tx = nullptr;
|
||
|
UnsignedTransaction *m_utx = nullptr;
|
||
|
QMenu *m_exportUnsignedMenu;
|
||
|
QMenu *m_exportSignedMenu;
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
#endif //FEATHER_TXCONFADVDIALOG_H
|