16 #ifndef QGSCPTCITYCOLORRAMPDIALOG_H    17 #define QGSCPTCITYCOLORRAMPDIALOG_H    20 #include "ui_qgscptcitycolorrampdialogbase.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;
    86     QDialogButtonBox *buttonBox() 
const;
    88     bool eventFilter( QObject *obj, QEvent *event ) 
override;
    96     void populateVariants();
    98     void mTreeView_clicked( 
const QModelIndex & );
    99     void mListWidget_itemClicked( QListWidgetItem *item );
   100     void mListWidget_itemSelectionChanged();
   101     void tabBar_currentChanged( 
int index );
   102     void pbtnLicenseDetails_pressed();
   103     void cboVariantName_currentIndexChanged( 
int index );
   111     void updatePreview( 
bool clear = 
false );
   112     void clearCopyingInfo();
   113     void updateCopyingInfo( 
const QMap< QString, QString > ©ingMap );
   129     TreeFilterProxyModel *mTreeFilter = 
nullptr;
   130     QVector<QgsCptCityColorRampItem *> mListRamps;
   141 class TreeFilterProxyModel : 
public QSortFilterProxyModel
   149     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.