15#ifndef QGSPROPERTYOVERRIDEBUTTON_H
16#define QGSPROPERTYOVERRIDEBUTTON_H
113 bool isActive()
const {
return mProperty && mProperty.isActive(); }
163 void registerCheckedWidget( QWidget *widget,
bool natural =
true );
170 void registerEnabledWidget( QWidget *widget,
bool natural =
true );
177 void registerVisibleWidget( QWidget *widget,
bool natural =
true );
183 void registerExpressionWidget( QWidget *widget );
200 void registerLinkedWidget( QWidget *widget );
206 void updateFieldLists();
215 mSymbol = std::move( symbol );
223 void setActive(
bool active );
229 void aboutToShowMenu();
230 void menuActionTriggered( QAction *action );
249 void showDescriptionDialog();
250 void showExpressionDialog();
251 void showAssistant();
258 void setActivePrivate(
bool active );
261 QString getColor()
const;
263 int mPropertyKey = -1;
267 QStringList mFieldNameList;
268 QStringList mFieldDisplayNameList;
269 QList<QIcon> mFieldIcons;
271 QString mExpressionString;
274 QMenu *mDefineMenu =
nullptr;
275 QAction *mActionDataTypes =
nullptr;
276 QMenu *mFieldsMenu =
nullptr;
277 QMenu *mVariablesMenu =
nullptr;
278 QAction *mActionVariables =
nullptr;
279 QMenu *mColorsMenu =
nullptr;
280 QAction *mActionColors =
nullptr;
282 QAction *mActionActive =
nullptr;
283 QAction *mActionDescription =
nullptr;
284 QAction *mActionExpDialog =
nullptr;
285 QAction *mActionExpression =
nullptr;
286 QAction *mActionPasteExpr =
nullptr;
287 QAction *mActionCopyExpr =
nullptr;
288 QAction *mActionClearExpr =
nullptr;
289 QAction *mActionAssistant =
nullptr;
290 QAction *mActionCreateAuxiliaryField =
nullptr;
295 QString mDataTypesString;
296 QString mInputDescription;
297 QString mFullDescription;
307 SiblingExpressionText,
312 SiblingWidget(
const QPointer<QWidget> &widgetPointer, SiblingType siblingType,
bool natural =
true )
313 : mWidgetPointer( widgetPointer )
314 , mSiblingType( siblingType )
315 , mNatural( natural )
317 QPointer<QWidget> mWidgetPointer;
318 SiblingType mSiblingType;
321 QList<SiblingWidget> mSiblingWidgets;
324 QgsProperty mProperty;
326 bool mAuxiliaryStorageEnabled =
false;
328 std::shared_ptr<QgsSymbol> mSymbol;
333 void updateSiblingWidgets(
bool state );
Abstract base class for QgsPropertyCollection like objects.
Abstract interface for generating an expression context.
Map canvas is a class for displaying all GIS data types on a canvas.
Definition for a property.
DataType
Valid data types required by property.
@ DataTypeString
Property requires a string value.
A store for object properties.
Abstract base class for all rendered symbols.
Represents a vector layer which manages a vector based dataset.
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.