38 lines
785 B
C
38 lines
785 B
C
|
|
#pragma once
|
|||
|
|
|
|||
|
|
#include <QtWidgets/QMainWindow>
|
|||
|
|
#include <qgsmapcanvas.h>
|
|||
|
|
#include <qgsrasterlayer.h>
|
|||
|
|
#include <qgsmaptoolpan.h>
|
|||
|
|
#include <memory>
|
|||
|
|
#include <qgslayertreeview.h>
|
|||
|
|
#include <qgslayertreemapcanvasbridge.h>
|
|||
|
|
|
|||
|
|
class ManualLabelToolWidget : public QMainWindow
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
ManualLabelToolWidget(QWidget *parent = nullptr);
|
|||
|
|
~ManualLabelToolWidget();
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
private: // UI
|
|||
|
|
void init_UI();// Init UI
|
|||
|
|
|
|||
|
|
private: // <20><><EFBFBD><EFBFBD>
|
|||
|
|
QgsMapCanvas* map_canvas=nullptr; // map widget
|
|||
|
|
QgsMapToolPan* map_tool_pan = nullptr; // map tool for pan zoom
|
|||
|
|
|
|||
|
|
QgsLayerTreeModel* map_layerModel = nullptr;
|
|||
|
|
QgsLayerTreeView* map_layerTreeView = nullptr;
|
|||
|
|
QgsLayerTreeMapCanvasBridge* map_layer_Bridge = nullptr;
|
|||
|
|
|
|||
|
|
private: // <20><><EFBFBD><EFBFBD>
|
|||
|
|
QDockWidget* layerTreeDock;
|
|||
|
|
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|