mirror of
https://github.com/feather-wallet/feather.git
synced 2025-02-04 12:16:36 +00:00
42 lines
914 B
C
42 lines
914 B
C
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020-2021, The Monero Project.
|
||
|
|
||
|
#ifndef FEATHER_ACCOUNTSWITCHERDIALOG_H
|
||
|
#define FEATHER_ACCOUNTSWITCHERDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include "appcontext.h"
|
||
|
|
||
|
#include "model/SubaddressAccountModel.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class AccountSwitcherDialog;
|
||
|
}
|
||
|
|
||
|
class AccountSwitcherDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit AccountSwitcherDialog(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
|
||
|
~AccountSwitcherDialog() override;
|
||
|
|
||
|
private slots:
|
||
|
void showContextMenu(const QPoint& point);
|
||
|
void updateSelection();
|
||
|
|
||
|
private:
|
||
|
void switchAccount();
|
||
|
void copyLabel();
|
||
|
void copyBalance();
|
||
|
void editLabel();
|
||
|
|
||
|
Monero::SubaddressAccountRow* currentEntry();
|
||
|
|
||
|
Ui::AccountSwitcherDialog *ui;
|
||
|
QSharedPointer<AppContext> m_ctx;
|
||
|
SubaddressAccountModel *m_model;
|
||
|
};
|
||
|
|
||
|
#endif //FEATHER_ACCOUNTSWITCHERDIALOG_H
|