16 #ifndef QGSSTYLEV2MANAGERDIALOG_H    17 #define QGSSTYLEV2MANAGERDIALOG_H    20 #include <QStandardItem>    24 #include "ui_qgsstylemanagerdialogbase.h"    39     explicit QgsCheckableStyleModel( 
QgsStyle *style, QObject *parent = 
nullptr, 
bool readOnly = 
false );
    41     void setCheckable( 
bool checkable );
    42     void setCheckTag( 
const QString &tag );
    44     Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
    45     QVariant data( 
const QModelIndex &index, 
int role ) 
const override;
    46     bool setData( 
const QModelIndex &index, 
const QVariant &value, 
int role = Qt::EditRole ) 
override;
    51     bool mCheckable = 
false;
    53     bool mReadOnly = 
false;
    79                            bool readOnly = 
false );
    84     static QString addColorRampStatic( QWidget *parent, 
QgsStyle *style,
    85                                        QString RampType = QString() );
    92     void setFavoritesGroupVisible( 
bool show );
    99     void setSmartGroupsVisible( 
bool show );
   110     void setBaseStyleName( 
const QString &name );
   144     void exportItemsSVG();
   152     void exportItemsPNG();
   160     void exportSelectedItemsImages( 
const QString &dir, 
const QString &format, QSize size );
   195     Q_DECL_DEPRECATED 
void itemChanged( QStandardItem *item ) 
SIP_DEPRECATED;
   200     void groupChanged( 
const QModelIndex & );
   205     void groupRenamed( QStandardItem *item );
   225     void tagSymbolsAction();
   230     void editSmartgroupAction();
   235     Q_DECL_DEPRECATED 
void regrouped( QStandardItem * ) 
SIP_DEPRECATED;
   240     void filterSymbols( 
const QString &filter );
   243     void symbolSelected( 
const QModelIndex & );
   246     void selectedSymbolsChanged( 
const QItemSelection &selected, 
const QItemSelection &deselected );
   249     void grouptreeContextMenu( QPoint );
   252     void listitemsContextMenu( QPoint );
   255     bool addColorRamp( QAction *action );
   257     void addFavoriteSelectedSymbols();
   259     void removeFavoriteSelectedSymbols();
   261     void tagSelectedSymbols( 
bool newTag = 
false );
   263     void detagSelectedSymbols();
   275     void populateGroups();
   280     Q_DECL_DEPRECATED 
void setSymbolsChecked( 
const QStringList & ) 
SIP_DEPRECATED;
   287     Q_DECL_DEPRECATED 
void populateSymbols( 
const QStringList &symbolNames, 
bool checkable = 
false ) 
SIP_DEPRECATED;
   294     Q_DECL_DEPRECATED 
void populateColorRamps( 
const QStringList &colorRamps, 
bool checkable = 
false ) 
SIP_DEPRECATED;
   296     int currentItemType();
   297     QString currentItemName();
   300     bool addSymbol( 
int symbolType = -1 );
   305     bool editColorRamp();
   318     void enableSymbolInputs( 
bool );
   320     void enableGroupInputs( 
bool );
   322     void enableItemsForGroupingMode( 
bool );
   325     void setBold( QStandardItem * );
   329     void tabItemType_currentChanged( 
int );
   331     void copyItemsToDefault();
   334     int selectedItemType();
   339     bool allTypesSelected() 
const;
   348     QList< ItemDetails > selectedItems();
   353     static int copyItems( 
const QList< ItemDetails > &items, 
QgsStyle *src, 
QgsStyle *dst,
   354                           QWidget *parentWidget, std::unique_ptr<QgsTemporaryCursorOverride> &cursorOverride,
   355                           bool isImport, 
const QStringList &importTags, 
bool addToFavorites, 
bool ignoreSourceTags );
   360     QgsCheckableStyleModel *mModel = 
nullptr;
   362     QString mStyleFilename;
   364     bool mModified = 
false;
   367     bool mGroupingMode = 
false;
   370     QStringList mTagList;
   373     QMenu *mGroupMenu = 
nullptr;
   376     QMenu *mGroupListMenu = 
nullptr;
   379     QMenu *mGroupTreeContextMenu = 
nullptr;
   382     QMenu *mMenuBtnAddItemColorRamp = 
nullptr;
   385     QMenu *mMenuBtnAddItemAll = 
nullptr;
   387     QAction *mActionCopyToDefault = 
nullptr;
   389     int mBlockGroupUpdates = 0;
   391     bool mReadOnly = 
false;
   392     bool mFavoritesGroupVisible = 
true;
   393     bool mSmartGroupVisible = 
true;
 Temporarily sets a cursor override for the QApplication for the lifetime of the object. 
 
A dialog allowing users to customize and populate a QgsStyle. 
 
StyleEntity
Enum for Entities involved in a style. 
 
SymbolType
Type of the symbol. 
 
A QSortFilterProxyModel subclass for showing filtered symbol and color ramps entries from a QgsStyle ...