Class GeometryEditorsToolbar
ClassList > GeometryEditorsToolbar
Inherits the following classes: Theme::QfVisibilityFadingRow
Public Properties
| Type | Name |
|---|---|
| property GeometryRenderer | editorRenderer |
| property RubberbandModel | editorRubberbandModel |
| property FeatureModel | featureModel |
| property string | image |
| property QgsQuickMapSettings | mapSettings |
| property bool | screenHovering |
Public Properties inherited from Theme::QfVisibilityFadingRow
See Theme::QfVisibilityFadingRow
| Type | Name |
|---|---|
| property bool | stateVisible |
Public Signals
| Type | Name |
|---|---|
| signal void | editorChanged |
| signal void | requestJumpToPoint (var center, real scale, bool handleMargins) |
Public Functions
| Type | Name |
|---|---|
| void | cancelEditors () |
| void | canvasClicked (point, type) |
| void | canvasFreehandBegin () |
| void | canvasFreehandEnd () |
| void | canvasLongPressed (point, type) |
| void | init () |
Detailed Description
This contains several geometry editing tools A tool must subclass QfVisibilityFadingRow and contains following functions: * function init(featureModel, mapSettings, editorRubberbandModel) * function cancel() The following signal: * signal finished() It can optionally implement properties: * blocking (bool) which prevents from switching tools * vertexRubberbandVisible (bool) to show the vertex rubberband (false by default) It can optionally implement properties which will be bind: * screenHovering determines if a pen is currently hovering the screen It can optionally implement the functions: * canvasClicked(point) * canvasLongPressed(point) These functions must return true if they catch the event.
Public Properties Documentation
property editorRenderer
GeometryRenderer GeometryEditorsToolbar::editorRenderer;
property editorRubberbandModel
RubberbandModel GeometryEditorsToolbar::editorRubberbandModel;
property featureModel
FeatureModel GeometryEditorsToolbar::featureModel;
property image
string GeometryEditorsToolbar::image;
property mapSettings
QgsQuickMapSettings GeometryEditorsToolbar::mapSettings;
property screenHovering
bool GeometryEditorsToolbar::screenHovering;
Public Signals Documentation
signal editorChanged
void GeometryEditorsToolbar::editorChanged;
signal requestJumpToPoint
void GeometryEditorsToolbar::requestJumpToPoint;
Public Functions Documentation
function cancelEditors
void GeometryEditorsToolbar::cancelEditors ()
function canvasClicked
void GeometryEditorsToolbar::canvasClicked (
point,
type
)
function canvasFreehandBegin
void GeometryEditorsToolbar::canvasFreehandBegin ()
function canvasFreehandEnd
void GeometryEditorsToolbar::canvasFreehandEnd ()
function canvasLongPressed
void GeometryEditorsToolbar::canvasLongPressed (
point,
type
)
function init
void GeometryEditorsToolbar::init ()
The documentation for this class was generated from the following file src/qml/GeometryEditorsToolbar.qml