mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
68 lines
1.6 KiB
C++
68 lines
1.6 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: The Monero Project
|
|
|
|
#ifndef FEATHER_SENDWIDGET_H
|
|
#define FEATHER_SENDWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class Wallet;
|
|
|
|
namespace Ui {
|
|
class SendWidget;
|
|
}
|
|
|
|
class SendWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SendWidget(Wallet *wallet, QWidget *parent = nullptr);
|
|
void fill(const QString &address, const QString &description, double amount = 0, bool overrideDescription = true);
|
|
void fill(double amount);
|
|
void clearFields();
|
|
void payToMany();
|
|
~SendWidget() override;
|
|
|
|
public slots:
|
|
void skinChanged();
|
|
void scanClicked();
|
|
void sendClicked();
|
|
void clearClicked();
|
|
void aliasClicked();
|
|
void btnMaxClicked();
|
|
void amountEdited(const QString &text);
|
|
void addressEdited();
|
|
void currencyComboChanged(int index);
|
|
void fillAddress(const QString &address);
|
|
void updateConversionLabel();
|
|
void onOpenAliasResolved(const QString &openAlias, const QString &address, bool dnssecValid);
|
|
void onPreferredFiatCurrencyChanged();
|
|
void setWebsocketEnabled(bool enabled);
|
|
|
|
void setManualFeeSelectionEnabled(bool enabled);
|
|
void setSubtractFeeFromAmountEnabled(bool enabled);
|
|
|
|
void disableSendButton();
|
|
void enableSendButton();
|
|
|
|
void disallowSending();
|
|
|
|
private slots:
|
|
void onDataFromQR(const QString &data);
|
|
|
|
private:
|
|
void setupComboBox();
|
|
double amountDouble();
|
|
bool keyImageSync(bool sendAll, quint64 amount);
|
|
|
|
quint64 amount();
|
|
double conversionAmount();
|
|
|
|
QScopedPointer<Ui::SendWidget> ui;
|
|
Wallet *m_wallet;
|
|
bool m_disallowSending = false;
|
|
};
|
|
|
|
#endif // FEATHER_SENDWIDGET_H
|