mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
38 lines
663 B
C++
38 lines
663 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include "profile_editor.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class EditChain;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class ProxyItem;
|
|
|
|
class EditChain : public QWidget, public ProfileEditor {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EditChain(QWidget *parent = nullptr);
|
|
|
|
~EditChain() override;
|
|
|
|
void onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) override;
|
|
|
|
bool onEnd() override;
|
|
|
|
private:
|
|
Ui::EditChain *ui;
|
|
std::shared_ptr<NekoGui::ProxyEntity> ent;
|
|
|
|
void AddProfileToListIfExist(int profileId);
|
|
|
|
static void ReplaceProfile(ProxyItem *w, int profileId);
|
|
|
|
private slots:
|
|
|
|
void on_select_profile_clicked();
|
|
};
|