15#ifndef QGSSYMBOLBUTTON_H
16#define QGSSYMBOLBUTTON_H
81 void setDialogTitle(
const QString &title );
87 QString dialogTitle()
const;
105 SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol );
107 if ( symbolCastToType )
109 return symbolCastToType->clone();
192 bool showNull()
const;
207 bool fixedSizeConstraints()
const;
223 void setColor(
const QColor &color );
258 void setShowNull(
bool showNull );
278 void setToDefaultSymbol();
285 void setFixedSizeConstraints(
bool fixedSizeConstraints );
298 void showEvent( QShowEvent *e )
override;
314 void dropEvent( QDropEvent *e )
override;
316 void wheelEvent( QWheelEvent *event )
override;
320 void showSettingsDialog();
328 void addRecentColor(
const QColor &color );
333 void activatePicker();
338 QString mDialogTitle;
345 QPoint mDragStartPosition;
347 QMenu *mMenu =
nullptr;
349 QPointer<QgsVectorLayer> mLayer;
353 std::unique_ptr<QgsSymbol> mSymbol;
357 bool mPickingColor =
false;
359 bool mShowNull =
false;
361 bool mFixedSizeConstraints =
true;
363 std::unique_ptr<QgsSymbol> mDefaultSymbol;
369 void updatePreview(
const QColor &color = QColor(),
QgsSymbol *tempSymbol =
nullptr );
380 bool colorFromMimeData(
const QMimeData *mimeData, QColor &resultColor,
bool &hasAlpha );
385 QPixmap createColorIcon(
const QColor &color )
const;
393 void stopPicking( QPoint eventPos,
bool samplingColor =
true );
395 void showColorDialog();
397 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.