16#ifndef QGSGEOMETRYWIDGET_H
17#define QGSGEOMETRYWIDGET_H
46 Q_PROPERTY(
QgsReferencedGeometry geometryValue READ geometryValue WRITE setGeometryValue NOTIFY geometryValueChanged )
82 void setAcceptedWkbTypes(
const QList<Qgis::WkbType> &types );
89 QList< Qgis::WkbType > acceptedWkbTypes()
const;
96 bool isReadOnly()
const;
105 void setReadOnly(
bool readOnly );
110 void clearGeometry();
124 void copyAsGeoJson();
141 void pasteTriggered();
144 QLineEdit *mLineEdit =
nullptr;
145 QToolButton *mButton =
nullptr;
146 QMenu *mMenu =
nullptr;
147 QAction *mClearAction =
nullptr;
148 QAction *mCopyWktAction =
nullptr;
149 QAction *mCopyGeoJsonAction =
nullptr;
150 QAction *mPasteAction =
nullptr;
153 QList<Qgis::WkbType> mAcceptedTypes;
154 bool mReadOnly =
false;
156 void fetchGeomFromClipboard();
162 void updateLineEdit();
WkbType
The WKB type describes the number of dimensions a geometry has.
A QgsGeometry with associated coordinate reference system.