feather/src/dialog/AccountSwitcherDialog.h

46 lines
996 B
C
Raw Normal View History

2021-05-22 13:42:26 +00:00
// SPDX-License-Identifier: BSD-3-Clause
2023-01-02 19:30:11 +00:00
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
2021-05-22 13:42:26 +00:00
#ifndef FEATHER_ACCOUNTSWITCHERDIALOG_H
#define FEATHER_ACCOUNTSWITCHERDIALOG_H
#include <QDialog>
#include "libwalletqt/Wallet.h"
2021-10-22 17:19:56 +00:00
#include "components.h"
2021-05-22 13:42:26 +00:00
#include "model/SubaddressAccountModel.h"
namespace Ui {
class AccountSwitcherDialog;
}
2021-10-22 17:19:56 +00:00
class AccountSwitcherDialog : public WindowModalDialog
2021-05-22 13:42:26 +00:00
{
Q_OBJECT
public:
explicit AccountSwitcherDialog(Wallet *wallet, QWidget *parent = nullptr);
2021-05-22 13:42:26 +00:00
~AccountSwitcherDialog() override;
void update();
2021-05-22 13:42:26 +00:00
private slots:
void showContextMenu(const QPoint& point);
void updateSelection();
private:
void switchAccount();
void copyLabel();
void copyBalance();
void editLabel();
AccountRow* currentEntry();
2021-05-22 13:42:26 +00:00
2021-06-27 12:13:05 +00:00
QScopedPointer<Ui::AccountSwitcherDialog> ui;
Wallet *m_wallet;
2021-05-22 13:42:26 +00:00
SubaddressAccountModel *m_model;
2021-05-25 22:08:32 +00:00
SubaddressAccountProxyModel *m_proxyModel;
2021-05-22 13:42:26 +00:00
};
#endif //FEATHER_ACCOUNTSWITCHERDIALOG_H