mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-24 02:20:16 +08:00
47 lines
853 B
C++
47 lines
853 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QMenu>
|
|
|
|
#include "3rdparty/qv2ray/v2/ui/QvAutoCompleteTextEdit.hpp"
|
|
#include "main/NekoGui.hpp"
|
|
#include "widget/RouteItem.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class DialogManageRoutes;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class DialogManageRoutes : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DialogManageRoutes(QWidget *parent = nullptr);
|
|
|
|
~DialogManageRoutes() override;
|
|
|
|
private:
|
|
Ui::DialogManageRoutes *ui;
|
|
|
|
RouteItem* routeChainWidget;
|
|
|
|
void reloadProfileItems();
|
|
|
|
QList<std::shared_ptr<NekoGui::RoutingChain>> chainList;
|
|
|
|
int currentRouteProfileID = -1;
|
|
|
|
QShortcut* deleteShortcut;
|
|
public slots:
|
|
void accept() override;
|
|
|
|
void updateCurrentRouteProfile(int idx);
|
|
|
|
void on_new_route_clicked();
|
|
|
|
void on_edit_route_clicked();
|
|
|
|
void on_delete_route_clicked();
|
|
};
|