mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 09:17:36 +00:00
Widgets: rename & cleanup
This commit is contained in:
parent
e5ac996ae5
commit
531cc5f980
30 changed files with 121 additions and 117 deletions
|
@ -1,14 +1,15 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "CalcWidget.h"
|
||||
#include "ui_CalcWidget.h"
|
||||
|
||||
#include <QList>
|
||||
|
||||
#include "calcwidget.h"
|
||||
#include "ui_calcwidget.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "utils/config.h"
|
||||
#include "dialog/CalcConfigDialog.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "utils/config.h"
|
||||
|
||||
CalcWidget::CalcWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
|
@ -1,12 +1,11 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "calcwindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "CalcWindow.h"
|
||||
#include "ui_CalcWindow.h"
|
||||
|
||||
#include "ui_calcwindow.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
CalcWindow::CalcWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
|
@ -37,7 +37,7 @@
|
|||
<customwidget>
|
||||
<class>CalcWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>calcwidget.h</header>
|
||||
<header>CalcWidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
|
@ -1,22 +1,21 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "coinswidget.h"
|
||||
#include "ui_coinswidget.h"
|
||||
#include "dialog/OutputInfoDialog.h"
|
||||
#include "dialog/OutputSweepDialog.h"
|
||||
#include "mainwindow.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "CoinsWidget.h"
|
||||
#include "ui_CoinsWidget.h"
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "dialog/OutputInfoDialog.h"
|
||||
#include "dialog/OutputSweepDialog.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
CoinsWidget::CoinsWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::CoinsWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
, m_headerMenu(new QMenu(this))
|
||||
, m_copyMenu(new QMenu("Copy",this))
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::CoinsWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
, m_headerMenu(new QMenu(this))
|
||||
, m_copyMenu(new QMenu("Copy",this))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -4,15 +4,15 @@
|
|||
#ifndef FEATHER_COINSWIDGET_H
|
||||
#define FEATHER_COINSWIDGET_H
|
||||
|
||||
#include <QMenu>
|
||||
#include <QWidget>
|
||||
#include <QtSvg/QSvgWidget>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "model/CoinsModel.h"
|
||||
#include "model/CoinsProxyModel.h"
|
||||
#include "libwalletqt/Coins.h"
|
||||
|
||||
#include <QMenu>
|
||||
#include <QWidget>
|
||||
#include <QtSvg/QSvgWidget>
|
||||
|
||||
namespace Ui {
|
||||
class CoinsWidget;
|
||||
}
|
|
@ -1,20 +1,20 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "contactswidget.h"
|
||||
#include "ui_contactswidget.h"
|
||||
#include "dialog/ContactsDialog.h"
|
||||
#include "model/ModelUtils.h"
|
||||
#include "mainwindow.h"
|
||||
#include "libwalletqt/AddressBook.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "ContactsWidget.h"
|
||||
#include "ui_ContactsWidget.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "dialog/ContactsDialog.h"
|
||||
#include "libwalletqt/AddressBook.h"
|
||||
#include "model/ModelUtils.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
ContactsWidget::ContactsWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::ContactsWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::ContactsWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -4,13 +4,13 @@
|
|||
#ifndef FEATHER_CONTACTSWIDGET_H
|
||||
#define FEATHER_CONTACTSWIDGET_H
|
||||
|
||||
#include "model/AddressBookModel.h"
|
||||
#include "model/AddressBookProxyModel.h"
|
||||
#include "appcontext.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QMenu>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "model/AddressBookModel.h"
|
||||
#include "model/AddressBookProxyModel.h"
|
||||
|
||||
namespace Ui {
|
||||
class ContactsWidget;
|
||||
}
|
|
@ -1,23 +1,24 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "historywidget.h"
|
||||
#include "ui_historywidget.h"
|
||||
#include "dialog/TxInfoDialog.h"
|
||||
#include "dialog/TxProofDialog.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "utils/config.h"
|
||||
#include "appcontext.h"
|
||||
#include "HistoryWidget.h"
|
||||
#include "ui_HistoryWidget.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "dialog/TxInfoDialog.h"
|
||||
#include "dialog/TxProofDialog.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
HistoryWidget::HistoryWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::HistoryWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
, m_contextMenu(new QMenu(this))
|
||||
, m_copyMenu(new QMenu("Copy", this))
|
||||
, m_model(m_ctx->wallet->historyModel())
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::HistoryWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
, m_contextMenu(new QMenu(this))
|
||||
, m_copyMenu(new QMenu("Copy", this))
|
||||
, m_model(m_ctx->wallet->historyModel())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
m_contextMenu->addMenu(m_copyMenu);
|
|
@ -4,15 +4,15 @@
|
|||
#ifndef FEATHER_HISTORYWIDGET_H
|
||||
#define FEATHER_HISTORYWIDGET_H
|
||||
|
||||
#include "model/TransactionHistoryModel.h"
|
||||
#include "model/TransactionHistoryProxyModel.h"
|
||||
#include "libwalletqt/Coins.h"
|
||||
#include "libwalletqt/Wallet.h"
|
||||
#include "appcontext.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QMenu>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "libwalletqt/Coins.h"
|
||||
#include "libwalletqt/Wallet.h"
|
||||
#include "model/TransactionHistoryModel.h"
|
||||
#include "model/TransactionHistoryProxyModel.h"
|
||||
|
||||
namespace Ui {
|
||||
class HistoryWidget;
|
||||
}
|
|
@ -1,38 +1,38 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "MainWindow.h"
|
||||
#include "ui_MainWindow.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "config-feather.h"
|
||||
#include "dialog/TxConfDialog.h"
|
||||
#include "dialog/TxConfAdvDialog.h"
|
||||
#include "dialog/DebugInfoDialog.h"
|
||||
#include "dialog/WalletInfoDialog.h"
|
||||
#include "dialog/TorInfoDialog.h"
|
||||
#include "dialog/ViewOnlyDialog.h"
|
||||
#include "dialog/TxBroadcastDialog.h"
|
||||
#include "dialog/TxImportDialog.h"
|
||||
#include "dialog/PasswordDialog.h"
|
||||
#include "constants.h"
|
||||
#include "dialog/AccountSwitcherDialog.h"
|
||||
#include "dialog/BalanceDialog.h"
|
||||
#include "dialog/DebugInfoDialog.h"
|
||||
#include "dialog/PasswordDialog.h"
|
||||
#include "dialog/TorInfoDialog.h"
|
||||
#include "dialog/TxBroadcastDialog.h"
|
||||
#include "dialog/TxConfAdvDialog.h"
|
||||
#include "dialog/TxConfDialog.h"
|
||||
#include "dialog/TxImportDialog.h"
|
||||
#include "dialog/ViewOnlyDialog.h"
|
||||
#include "dialog/WalletInfoDialog.h"
|
||||
#include "dialog/WalletCacheDebugDialog.h"
|
||||
#include "dialog/UpdateDialog.h"
|
||||
#include "dialog/AccountSwitcherDialog.h"
|
||||
#include "constants.h"
|
||||
#include "libwalletqt/AddressBook.h"
|
||||
#include "utils/AsyncTask.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "utils/AsyncTask.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "utils/SemanticVersion.h"
|
||||
#include "utils/NetworkManager.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "utils/WebsocketNotifier.h"
|
||||
#include "utils/Updater.h"
|
||||
#include "utils/NetworkManager.h"
|
||||
#include "utils/os/tails.h"
|
||||
#include "utils/SemanticVersion.h"
|
||||
#include "utils/TorManager.h"
|
||||
#include "utils/Updater.h"
|
||||
#include "utils/WebsocketNotifier.h"
|
||||
|
||||
MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *parent)
|
||||
: QMainWindow(parent)
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
#include "appcontext.h"
|
||||
#include "components.h"
|
||||
#include "calcwindow.h"
|
||||
#include "settings.h"
|
||||
#include "CalcWindow.h"
|
||||
#include "SettingsDialog.h"
|
||||
|
||||
#include "dialog/AboutDialog.h"
|
||||
#include "dialog/SignVerifyDialog.h"
|
||||
|
@ -35,11 +35,11 @@
|
|||
#include "widgets/TickerWidget.h"
|
||||
#include "wizard/WalletWizard.h"
|
||||
|
||||
#include "contactswidget.h"
|
||||
#include "historywidget.h"
|
||||
#include "sendwidget.h"
|
||||
#include "receivewidget.h"
|
||||
#include "coinswidget.h"
|
||||
#include "ContactsWidget.h"
|
||||
#include "HistoryWidget.h"
|
||||
#include "SendWidget.h"
|
||||
#include "ReceiveWidget.h"
|
||||
#include "CoinsWidget.h"
|
||||
|
||||
#include "WindowManager.h"
|
||||
|
|
@ -803,7 +803,7 @@
|
|||
<customwidget>
|
||||
<class>CalcWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>calcwidget.h</header>
|
||||
<header>CalcWidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
|
@ -1,19 +1,20 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "ui_receivewidget.h"
|
||||
#include "receivewidget.h"
|
||||
#include "model/ModelUtils.h"
|
||||
#include "dialog/QrCodeDialog.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "ReceiveWidget.h"
|
||||
#include "ui_ReceiveWidget.h"
|
||||
|
||||
#include <QMenu>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "dialog/QrCodeDialog.h"
|
||||
#include "model/ModelUtils.h"
|
||||
#include "utils/Icons.h"
|
||||
|
||||
ReceiveWidget::ReceiveWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::ReceiveWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::ReceiveWidget)
|
||||
, m_ctx(std::move(ctx))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -4,14 +4,15 @@
|
|||
#ifndef FEATHER_RECEIVEWIDGET_H
|
||||
#define FEATHER_RECEIVEWIDGET_H
|
||||
|
||||
#include <QMenu>
|
||||
#include <QWidget>
|
||||
#include <QtSvg/QSvgWidget>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "qrcode/QrCode.h"
|
||||
#include "libwalletqt/Subaddress.h"
|
||||
#include "model/SubaddressProxyModel.h"
|
||||
#include "model/SubaddressModel.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QtSvg/QSvgWidget>
|
||||
#include "qrcode/QrCode.h"
|
||||
|
||||
namespace Ui {
|
||||
class ReceiveWidget;
|
|
@ -1,14 +1,15 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "SendWidget.h"
|
||||
#include "ui_SendWidget.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include "sendwidget.h"
|
||||
#include "mainwindow.h"
|
||||
#include "ui_sendwidget.h"
|
||||
|
||||
#include "ColorScheme.h"
|
||||
#include "constants.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "Icons.h"
|
||||
#include "ColorScheme.h"
|
||||
|
||||
#ifdef WITH_SCANNER
|
||||
#include "qrcode_scanner/QrCodeScanDialog.h"
|
|
@ -1,16 +1,15 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "settings.h"
|
||||
#include "ui_settings.h"
|
||||
#include "mainwindow.h"
|
||||
#include "SettingsDialog.h"
|
||||
#include "ui_SettingsDialog.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
|
||||
Settings::Settings(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::Settings)
|
||||
, m_ctx(std::move(ctx))
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::Settings)
|
||||
, m_ctx(std::move(ctx))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -2,16 +2,17 @@
|
|||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#include "WindowManager.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "constants.h"
|
||||
#include "dialog/PasswordDialog.h"
|
||||
#include "dialog/SplashDialog.h"
|
||||
#include "utils/WebsocketNotifier.h"
|
||||
#include "utils/os/tails.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "utils/NetworkManager.h"
|
||||
#include "utils/os/tails.h"
|
||||
#include "utils/TorManager.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include "utils/WebsocketNotifier.h"
|
||||
|
||||
WindowManager::WindowManager() {
|
||||
m_walletManager = WalletManager::instance();
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
#define FEATHER_WINDOWMANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "dialog/TorInfoDialog.h"
|
||||
#include "libwalletqt/WalletManager.h"
|
||||
#include "libwalletqt/Wallet.h"
|
||||
#include "MainWindow.h"
|
||||
#include "wizard/WalletWizard.h"
|
||||
#include "dialog/TorInfoDialog.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
class MainWindow;
|
||||
class WindowManager : public QObject {
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
#include "cli.h"
|
||||
#include "config-feather.h"
|
||||
#include "constants.h"
|
||||
#include "mainwindow.h"
|
||||
#include "cli.h"
|
||||
#include "MainWindow.h"
|
||||
#include "WindowManager.h"
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
|
|
Loading…
Reference in a new issue