16 #ifndef QGSSTYLEV2MANAGERDIALOG_H 17 #define QGSSTYLEV2MANAGERDIALOG_H 20 #include <QStandardItem> 24 #include "ui_qgsstylemanagerdialogbase.h" 54 static QString addColorRampStatic( QWidget *parent,
QgsStyle *style,
55 QString RampType = QString() );
68 void exportItemsSVG();
69 void exportItemsPNG();
70 void exportSelectedItemsImages(
const QString &dir,
const QString &format, QSize size );
86 void itemChanged( QStandardItem *item );
88 void groupChanged(
const QModelIndex & );
89 void groupRenamed( QStandardItem * );
98 void tagSymbolsAction();
101 void editSmartgroupAction();
104 void regrouped( QStandardItem * );
107 void filterSymbols(
const QString & );
110 void symbolSelected(
const QModelIndex & );
113 void selectedSymbolsChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
116 void grouptreeContextMenu( QPoint );
119 void listitemsContextMenu( QPoint );
122 bool addColorRamp( QAction *action );
124 void addFavoriteSelectedSymbols();
126 void removeFavoriteSelectedSymbols();
128 void tagSelectedSymbols(
bool newTag =
false );
130 void detagSelectedSymbols();
135 void populateTypes();
138 void populateGroups();
140 void setSymbolsChecked(
const QStringList & );
143 void populateSymbols(
const QStringList &symbolNames,
bool checkable =
false );
146 void populateColorRamps(
const QStringList &colorRamps,
bool checkable =
false );
148 int currentItemType();
149 QString currentItemName();
157 bool editColorRamp();
160 bool removeColorRamp();
163 void enableSymbolInputs(
bool );
165 void enableGroupInputs(
bool );
167 void enableItemsForGroupingMode(
bool );
170 void setBold( QStandardItem * );
174 void tabItemType_currentChanged(
int );
180 QString mStyleFilename;
182 bool mModified =
false;
185 bool mGrouppingMode =
false;
188 QStringList mTagList;
191 QMenu *mGroupMenu =
nullptr;
194 QMenu *mGroupListMenu =
nullptr;
197 QMenu *mGroupTreeContextMenu =
nullptr;
200 QMenu *mMenuBtnAddItemColorRamp =
nullptr;
202 int mBlockGroupUpdates = 0;
A dialog allowing users to customize and populate a QgsStyle.