108 static QString addColorRampStatic( QWidget *parent,
QgsStyle *style,
const QString &RampType = QString() );
115 void setFavoritesGroupVisible(
bool show );
122 void setSmartGroupsVisible(
bool show );
133 void setBaseStyleName(
const QString &name );
167 void exportItemsSVG();
175 void exportItemsPNG();
183 void exportSelectedItemsImages(
const QString &dir,
const QString &format, QSize size );
218 Q_DECL_DEPRECATED
void itemChanged( QStandardItem *item )
SIP_DEPRECATED;
223 void groupChanged(
const QModelIndex & );
228 void groupRenamed( QStandardItem *item );
248 void tagSymbolsAction();
253 void editSmartgroupAction();
258 Q_DECL_DEPRECATED
void regrouped( QStandardItem * )
SIP_DEPRECATED;
263 void filterSymbols(
const QString &filter );
266 void symbolSelected(
const QModelIndex & );
269 void selectedSymbolsChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
272 void grouptreeContextMenu( QPoint );
275 void listitemsContextMenu( QPoint );
286 bool addColorRamp(
const QString &type = QString() );
289 void addFavoriteSelectedSymbols();
291 void removeFavoriteSelectedSymbols();
293 void tagSelectedSymbols(
bool newTag =
false );
295 void detagSelectedSymbols();
306 void populateGroups();
311 Q_DECL_DEPRECATED
void setSymbolsChecked( const QStringList & )
SIP_DEPRECATED;
318 Q_DECL_DEPRECATED
void populateSymbols( const QStringList &symbolNames,
bool checkable = false )
SIP_DEPRECATED;
325 Q_DECL_DEPRECATED
void populateColorRamps( const QStringList &colorRamps,
bool checkable = false )
SIP_DEPRECATED;
327 int currentItemType();
328 QString currentItemName();
331 bool addSymbol(
int symbolType = -1 );
334 bool editColorRamp();
347 void enableSymbolInputs(
bool );
349 void enableGroupInputs(
bool );
351 void enableItemsForGroupingMode(
bool );
354 void setBold( QStandardItem * );
358 void tabItemType_currentChanged(
int );
360 void copyItemsToDefault();
366 void setThumbnailSize(
int );
368 void currentStyleAboutToBeDestroyed();
373 void setCurrentStyle(
QgsStyle *style );
374 int selectedItemType();
379 bool allTypesSelected() const;
381 bool isReadOnly() const;
392 Name = Qt::UserRole + 1,
396 QList<ItemDetails> selectedItems();
401 static int copyItems(
const QList<ItemDetails> &items,
QgsStyle *src,
QgsStyle *dst, QWidget *parentWidget, std::unique_ptr<QgsTemporaryCursorOverride> &cursorOverride,
bool isImport,
const QStringList &importTags,
bool addToFavorites,
bool ignoreSourceTags );
407 QgsCheckableStyleModel *mModel =
nullptr;
411 QString mStyleFilename;
413 bool mModified =
false;
416 bool mGroupingMode =
false;
419 QStringList mTagList;
421 QMenu *mShareMenu =
nullptr;
424 QMenu *mGroupMenu =
nullptr;
427 QMenu *mGroupListMenu =
nullptr;
430 QMenu *mGroupTreeContextMenu =
nullptr;
433 QMenu *mMenuBtnAddItemColorRamp =
nullptr;
436 QMenu *mMenuBtnAddItemAll =
nullptr;
439 QMenu *mMenuBtnAddItemLabelSettings =
nullptr;
442 QMenu *mMenuBtnAddItemLegendPatchShape =
nullptr;
445 QMenu *mMenuBtnAddItemSymbol3D =
nullptr;
447 QAction *mActionCopyToDefault =
nullptr;
449 QAction *mActionCopyItem =
nullptr;
450 QAction *mActionPasteItem =
nullptr;
451 QAction *mExportAction =
nullptr;
452 QAction *mImportAction =
nullptr;
454 int mBlockGroupUpdates = 0;
455 int mBlockStyleDatabaseChanges = 0;
457 bool mReadOnly =
false;
458 bool mFavoritesGroupVisible =
true;
459 bool mSmartGroupVisible =
true;
462 static QString sPreviousTag;
464 bool addTextFormat();
465 bool editTextFormat();
468 bool editLabelSettings();
471 bool editLegendPatchShape();
473 bool addSymbol3D(
const QString &type );
476 void addStyleDatabase(
bool createNew );