2016-09-14 14:02:27 +10:00
|
|
|
/** \ingroup gui
|
|
|
|
* \class QgsPresetColorRampWidget
|
|
|
|
* A widget which allows users to modify the properties of a QgsPresetSchemeColorRamp.
|
|
|
|
* \note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
class QgsPresetColorRampWidget : QgsPanelWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgspresetcolorrampdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/** Constructor for QgsPresetColorRampWidget.
|
|
|
|
* @param ramp initial ramp to show in dialog
|
|
|
|
* @param parent parent widget
|
|
|
|
*/
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsPresetColorRampWidget( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
~QgsPresetColorRampWidget();
|
|
|
|
|
|
|
|
/** Returns a color ramp representing the current settings from the dialog.
|
|
|
|
* @see setRamp()
|
|
|
|
*/
|
|
|
|
QgsPresetSchemeColorRamp ramp() const;
|
|
|
|
|
|
|
|
/** Sets the color ramp to show in the dialog.
|
|
|
|
* @param ramp color ramp
|
|
|
|
* @see ramp()
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsPresetSchemeColorRamp &ramp );
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
//! Emitted when the dialog settings change
|
|
|
|
void changed();
|
|
|
|
};
|
|
|
|
|
|
|
|
/** \ingroup gui
|
|
|
|
* \class QgsPresetColorRampDialog
|
|
|
|
* A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.
|
|
|
|
* \note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
class QgsPresetColorRampDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgspresetcolorrampdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/** Constructor for QgsPresetColorRampDialog.
|
|
|
|
* @param ramp initial ramp to show in dialog
|
|
|
|
* @param parent parent widget
|
|
|
|
*/
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsPresetColorRampDialog( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
/** Returns a color ramp representing the current settings from the dialog.
|
|
|
|
* @see setRamp()
|
|
|
|
*/
|
|
|
|
QgsPresetSchemeColorRamp ramp() const;
|
|
|
|
|
|
|
|
/** Sets the color ramp to show in the dialog.
|
|
|
|
* @param ramp color ramp
|
|
|
|
* @see ramp()
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsPresetSchemeColorRamp &ramp );
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
//! Emitted when the dialog settings change
|
|
|
|
void changed();
|
|
|
|
};
|