Class QfGeometryEditorsToolbar
ClassList > QfGeometryEditorsToolbar
Inherits the following classes: QfVisibilityFadingRow
Inherited by the following classes: GeometryEditorsToolbar
Public Properties
| Type | Name |
|---|---|
| property QfGeometryRenderer | editorRenderer |
| property QfRubberbandModel | editorRubberbandModel |
| property QfFeatureModel | featureModel |
| property string | image |
| property QgsQuickMapSettings | mapSettings |
| property bool | screenHovering |
Public Properties inherited from 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
QfGeometryRenderer QfGeometryEditorsToolbar::editorRenderer;
property editorRubberbandModel
QfRubberbandModel QfGeometryEditorsToolbar::editorRubberbandModel;
property featureModel
QfFeatureModel QfGeometryEditorsToolbar::featureModel;
property image
string QfGeometryEditorsToolbar::image;
property mapSettings
QgsQuickMapSettings QfGeometryEditorsToolbar::mapSettings;
property screenHovering
bool QfGeometryEditorsToolbar::screenHovering;
Public Signals Documentation
signal editorChanged
void QfGeometryEditorsToolbar::editorChanged;
signal requestJumpToPoint
void QfGeometryEditorsToolbar::requestJumpToPoint;
Public Functions Documentation
function cancelEditors
void QfGeometryEditorsToolbar::cancelEditors ()
function canvasClicked
void QfGeometryEditorsToolbar::canvasClicked (
point,
type
)
function canvasFreehandBegin
void QfGeometryEditorsToolbar::canvasFreehandBegin ()
function canvasFreehandEnd
void QfGeometryEditorsToolbar::canvasFreehandEnd ()
function canvasLongPressed
void QfGeometryEditorsToolbar::canvasLongPressed (
point,
type
)
function init
void QfGeometryEditorsToolbar::init ()
The documentation for this class was generated from the following file src/gui/qml/QfGeometryEditorsToolbar.qml