15#ifndef QGSSYMBOLBUTTON_H
16#define QGSSYMBOLBUTTON_H
80 void setDialogTitle(
const QString &title );
86 QString dialogTitle()
const;
104 SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol );
106 if ( symbolCastToType )
108 return symbolCastToType->clone();
191 bool showNull()
const;
206 bool fixedSizeConstraints()
const;
222 void setColor(
const QColor &color );
257 void setShowNull(
bool showNull );
277 void setToDefaultSymbol();
284 void setFixedSizeConstraints(
bool fixedSizeConstraints );
297 void showEvent( QShowEvent *e )
override;
313 void dropEvent( QDropEvent *e )
override;
315 void wheelEvent( QWheelEvent *event )
override;
319 void showSettingsDialog();
327 void addRecentColor(
const QColor &color );
332 void activatePicker();
337 QString mDialogTitle;
344 QPoint mDragStartPosition;
346 QMenu *mMenu =
nullptr;
348 QPointer<QgsVectorLayer> mLayer;
352 std::unique_ptr<QgsSymbol> mSymbol;
356 bool mPickingColor =
false;
358 bool mShowNull =
false;
360 bool mFixedSizeConstraints =
true;
362 std::unique_ptr<QgsSymbol> mDefaultSymbol;
368 void updatePreview(
const QColor &color = QColor(),
QgsSymbol *tempSymbol =
nullptr );
379 bool colorFromMimeData(
const QMimeData *mimeData, QColor &resultColor,
bool &hasAlpha );
384 QPixmap createColorIcon(
const QColor &color )
const;
392 void stopPicking( QPoint eventPos,
bool samplingColor =
true );
394 void showColorDialog();
396 void updateSizeHint();
Abstract interface for generating an expression context.
Map canvas is a class for displaying all GIS data types on a canvas.
A bar for displaying non-blocking messages to the user.
Abstract base class for all rendered symbols.
Represents a vector layer which manages a vector based dataset.