78 lines
1.7 KiB
C++
Executable File
78 lines
1.7 KiB
C++
Executable File
/**
|
|
**
|
|
** @RDE_HEADER@
|
|
** plan_overlay_view.h
|
|
** $Id$
|
|
** $HeadURL$
|
|
** $Author$
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Hardware-Environment: Intel-PC
|
|
** Software-Environment: Windows 7, Qt 5.7. ArcGIS 100
|
|
**
|
|
** Language ........: C++ 11
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Notes .........:
|
|
**
|
|
** 11.07.2017, JT : First edition for use with Qt5
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#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;
|
|
|
|
}; // PlanOverlayView
|
|
|
|
} // namespace PlanOverlaysPlugin
|