16#ifndef QGSCPTCITYCOLORRAMPDIALOG_H
17#define QGSCPTCITYCOLORRAMPDIALOG_H
20#include "ui_qgscptcitycolorrampdialogbase.h"
26#include <QAbstractProxyModel>
27#include <QSortFilterProxyModel>
32class TreeFilterProxyModel;
33class ListFilterProxyModel;
34class UngroupProxyModel;
73 return QFileInfo( mRamp.schemeName() ).baseName() + mRamp.variantName();
79 bool saveAsGradientRamp()
const;
85 QDialogButtonBox *buttonBox()
const;
87 bool eventFilter( QObject *obj, QEvent *event )
override;
95 void populateVariants();
97 void mTreeView_clicked(
const QModelIndex & );
98 void mListWidget_itemClicked( QListWidgetItem *item );
99 void mListWidget_itemSelectionChanged();
100 void tabBar_currentChanged(
int index );
101 void pbtnLicenseDetails_pressed();
102 void cboVariantName_currentIndexChanged(
int index );
110 void updatePreview(
bool clear =
false );
111 void clearCopyingInfo();
112 void updateCopyingInfo(
const QMap< QString, QString > ©ingMap );
128 TreeFilterProxyModel *mTreeFilter =
nullptr;
129 QVector<QgsCptCityColorRampItem *> mListRamps;
140class TreeFilterProxyModel :
public QSortFilterProxyModel
148 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
QgsCptCityColorRamp ramp() const
Returns a color ramp representing the current settings from the dialog.
void changed()
Emitted when the dialog settings change.
QString selectedName() const
Returns the name of the ramp currently selected in the dialog.
Base class for all items in the model.