This commit is contained in:
tobtoht
2023-12-04 20:47:19 +01:00
parent 14712341e7
commit db0c8d66da
96 changed files with 3060 additions and 725 deletions
+26
View File
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#include "PagePlugins.h"
#include "ui_PagePlugins.h"
#include "WalletWizard.h"
PagePlugins::PagePlugins(QWidget *parent)
: QWizardPage(parent)
, ui(new Ui::PagePlugins)
{
ui->setupUi(this);
}
int PagePlugins::nextId() const {
return WalletWizard::Page_Menu;
}
bool PagePlugins::validatePage() {
return true;
}
bool PagePlugins::isComplete() const {
return true;
}
+27
View File
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#ifndef PAGEPLUGINS_H
#define PAGEPLUGINS_H
#include <QWizardPage>
namespace Ui {
class PagePlugins;
}
class PagePlugins : public QWizardPage
{
Q_OBJECT
public:
explicit PagePlugins(QWidget *parent = nullptr);
bool validatePage() override;
int nextId() const override;
bool isComplete() const override;
private:
Ui::PagePlugins *ui;
};
#endif //PAGEPLUGINS_H
+46
View File
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PagePlugins</class>
<widget class="QWizardPage" name="PagePlugins">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>505</width>
<height>431</height>
</rect>
</property>
<property name="windowTitle">
<string>WizardPage</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Do you want to enable any plugins?&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="PluginWidget" name="pluginsWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>PluginWidget</class>
<extends>QWidget</extends>
<header>widgets/PluginWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
+2
View File
@@ -6,6 +6,7 @@
#include "WalletWizard.h"
#include "PageMenu.h"
#include "PageOpenWallet.h"
#include "PagePlugins.h"
#include "PageWalletFile.h"
#include "PageNetwork.h"
#include "PageWalletSeed.h"
@@ -58,6 +59,7 @@ WalletWizard::WalletWizard(QWidget *parent)
setPage(Page_HardwareDevice, new PageHardwareDevice(&m_wizardFields, this));
setPage(Page_SetSeedPassphrase, walletSetSeedPassphrasePage);
setPage(Page_SetSubaddressLookahead, walletSetSubaddressLookaheadPage);
setPage(Page_Plugins, new PagePlugins(this));
setStartId(Page_Menu);
+2 -1
View File
@@ -83,7 +83,8 @@ public:
Page_SetRestoreHeight,
Page_HardwareDevice,
Page_NetworkProxy,
Page_NetworkWebsocket
Page_NetworkWebsocket,
Page_Plugins
};
explicit WalletWizard(QWidget *parent = nullptr);