53 lines
934 B
C++
Executable File
53 lines
934 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QTableView>
|
|
|
|
|
|
namespace PlanOverlaysPlugin
|
|
{
|
|
class PlanOverlayModel;
|
|
|
|
class PlanOverlayView final : public QTableView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit PlanOverlayView(PlanOverlayModel *model, QWidget *parent = nullptr);
|
|
~PlanOverlayView();
|
|
|
|
signals:
|
|
|
|
void requestReloadPlanById(int planId);
|
|
void requestReloadPlanByName(const QString &planName);
|
|
void requestUnloadPlan(int planId);
|
|
|
|
void requestMinScale(int planId, const QString &planName);
|
|
void requestMaxScale(int planId, const QString &planName);
|
|
|
|
public slots:
|
|
|
|
void onSetMinScale();
|
|
void onSetMaxScale();
|
|
void onChangeLayerOrderUp();
|
|
void onChangeLayerOrderDown();
|
|
void onChangeLayerOpacity(int);
|
|
|
|
void onReloadOverlayById();
|
|
void onReloadOverlayByName();
|
|
void onUnloadOverlay();
|
|
|
|
protected:
|
|
|
|
void onLayoutChanged();
|
|
|
|
int getPlanKeyIdOfRow(int row) const;
|
|
QString getPlanNameOfRow(int row) const;
|
|
|
|
};
|
|
|
|
}
|