a free Monero desktop wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020-2021, The Monero Project.
#include <QWidget>
#include "appcontext.h"
#include "widgets/CCSWidget.h"
namespace Ui {
class SendWidget;
class SendWidget : public QWidget
explicit SendWidget(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
void fill(const QString &address, const QString &description, double amount = 0);
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 onOpenAliasResolveError(const QString &err);
void onOpenAliasResolved(const QString &openAlias, const QString &address, bool dnssecValid);
void onPreferredFiatCurrencyChanged();
void onInitiateTransaction();
void onEndTransaction();
private slots:
void onDataPasted(const QString &data);
void setupComboBox();
double amountDouble();
QScopedPointer<Ui::SendWidget> ui;
QSharedPointer<AppContext> m_ctx;
quint64 amount();
double conversionAmount();