wowlet/src/calcwidget.h

42 lines
750 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
#ifndef CALC_H
#define CALC_H
#include <QMainWindow>
#include "appcontext.h"
namespace Ui {
class CalcWidget;
}
class CalcWidget : public QWidget
{
Q_OBJECT
public:
explicit CalcWidget(QWidget *parent = nullptr);
2020-12-28 04:39:20 +00:00
~CalcWidget() override;
signals:
void closed();
public slots:
void fromChanged(const QString& data);
void toChanged(const QString& data);
void toComboChanged(const QString& data);
void initFiat();
void initCrypto();
void skinChanged();
private:
Ui::CalcWidget *ui;
AppContext *m_ctx;
bool m_comboBoxInit = false;
void initComboBox();
bool m_changing = false;
};
#endif // CALC_H