51 Q_PROPERTY( QString usageInfo READ usageInfo WRITE setUsageInfo )
52 Q_PROPERTY(
bool active READ isActive WRITE setActive )
107 int propertyKey()
const {
return mPropertyKey; }
112 bool isActive()
const {
return mProperty && mProperty.isActive(); }
162 void registerCheckedWidget( QWidget *widget,
bool natural =
true );
169 void registerEnabledWidget( QWidget *widget,
bool natural =
true );
176 void registerVisibleWidget( QWidget *widget,
bool natural =
true );
182 void registerExpressionWidget( QWidget *widget );
199 void registerLinkedWidget( QWidget *widget );
205 void updateFieldLists();
222 void setActive(
bool active );
228 void aboutToShowMenu();
229 void menuActionTriggered( QAction *action );
245 void mouseReleaseEvent( QMouseEvent *event )
override;
248 void showDescriptionDialog();
249 void showExpressionDialog();
250 void showAssistant();
257 void setActivePrivate(
bool active );
260 QString getColor()
const;
262 int mPropertyKey = -1;
266 QStringList mFieldNameList;
267 QStringList mFieldDisplayNameList;
268 QList<QIcon> mFieldIcons;
270 QString mExpressionString;
273 QMenu *mDefineMenu =
nullptr;
274 QAction *mActionDataTypes =
nullptr;
275 QMenu *mFieldsMenu =
nullptr;
276 QMenu *mVariablesMenu =
nullptr;
277 QAction *mActionVariables =
nullptr;
278 QMenu *mColorsMenu =
nullptr;
279 QAction *mActionColors =
nullptr;
281 QAction *mActionActive =
nullptr;
282 QAction *mActionDescription =
nullptr;
283 QAction *mActionExpDialog =
nullptr;
284 QAction *mActionExpression =
nullptr;
285 QAction *mActionPasteExpr =
nullptr;
286 QAction *mActionCopyExpr =
nullptr;
287 QAction *mActionClearExpr =
nullptr;
288 QAction *mActionAssistant =
nullptr;
289 QAction *mActionCreateAuxiliaryField =
nullptr;
294 QString mDataTypesString;
295 QString mInputDescription;
296 QString mFullDescription;
306 SiblingExpressionText,
311 SiblingWidget(
const QPointer<QWidget> &widgetPointer, SiblingType siblingType,
bool natural =
true )
312 : mWidgetPointer( widgetPointer )
313 , mSiblingType( siblingType )
314 , mNatural( natural )
316 QPointer<QWidget> mWidgetPointer;
317 SiblingType mSiblingType;
320 QList<SiblingWidget> mSiblingWidgets;
325 bool mAuxiliaryStorageEnabled =
false;
327 std::shared_ptr<QgsSymbol> mSymbol;
332 void updateSiblingWidgets(
bool state );
Abstract interface for generating an expression context.