16 #ifndef QGSCPTCITYCOLORRAMPV2DIALOG_H 17 #define QGSCPTCITYCOLORRAMPV2DIALOG_H 20 #include "ui_qgscptcitycolorrampv2dialogbase.h" 26 #include <QAbstractProxyModel> 27 #include <QSortFilterProxyModel> 32 class TreeFilterProxyModel;
33 class ListFilterProxyModel;
34 class UngroupProxyModel;
74 return QFileInfo( mRamp.schemeName() ).baseName() + mRamp.variantName();
80 bool saveAsGradientRamp()
const;
82 bool eventFilter( QObject *obj, QEvent *event )
override;
90 void populateVariants();
92 void mTreeView_clicked(
const QModelIndex & );
93 void mListWidget_itemClicked( QListWidgetItem *item );
94 void mListWidget_itemSelectionChanged();
95 void tabBar_currentChanged(
int index );
96 void pbtnLicenseDetails_pressed();
97 void cboVariantName_currentIndexChanged(
int index );
105 void updatePreview(
bool clear =
false );
106 void clearCopyingInfo();
107 void updateCopyingInfo(
const QMap< QString, QString > ©ingMap );
123 TreeFilterProxyModel *mTreeFilter =
nullptr;
124 QVector<QgsCptCityColorRampItem *> mListRamps;
135 class TreeFilterProxyModel :
public QSortFilterProxyModel
143 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
QgsCptCityColorRamp ramp() const
Returns a color ramp representing the current settings from the dialog.
QString selectedName() const
Returns the name of the ramp currently selected in the dialog.
Base class for all items in the model.
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.