mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 14:03:59 +01:00
Plugins
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
@@ -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><html><head/><body><p><span style=" font-weight:700;">Do you want to enable any plugins?</span></p></body></html></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>
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -83,7 +83,8 @@ public:
|
||||
Page_SetRestoreHeight,
|
||||
Page_HardwareDevice,
|
||||
Page_NetworkProxy,
|
||||
Page_NetworkWebsocket
|
||||
Page_NetworkWebsocket,
|
||||
Page_Plugins
|
||||
};
|
||||
|
||||
explicit WalletWizard(QWidget *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user