2017-06-07 16:16:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgspresetcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
class QgsPresetColorRampWidget : QgsPanelWidget
|
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A widget which allows users to modify the properties of a QgsPresetSchemeColorRamp.
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
.. versionadded:: 3.0
|
2016-09-14 14:02:27 +10:00
|
|
|
%End
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspresetcolorrampdialog.h"
|
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsPresetColorRampWidget( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsPresetColorRampWidget.
|
|
|
|
:param ramp: initial ramp to show in dialog
|
|
|
|
:param parent: parent widget
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
QgsPresetSchemeColorRamp ramp() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a color ramp representing the current settings from the dialog.
|
|
|
|
|
|
|
|
:rtype: QgsPresetSchemeColorRamp
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setRamp()`
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsPresetSchemeColorRamp &ramp );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the color ramp to show in the dialog.
|
|
|
|
:param ramp: color ramp
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`ramp()`
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the dialog settings change
|
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
};
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
class QgsPresetColorRampDialog : QDialog
|
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
.. versionadded:: 3.0
|
2016-09-14 14:02:27 +10:00
|
|
|
%End
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspresetcolorrampdialog.h"
|
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsPresetColorRampDialog( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsPresetColorRampDialog.
|
|
|
|
:param ramp: initial ramp to show in dialog
|
|
|
|
:param parent: parent widget
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
QgsPresetSchemeColorRamp ramp() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a color ramp representing the current settings from the dialog.
|
|
|
|
|
|
|
|
:rtype: QgsPresetSchemeColorRamp
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setRamp()`
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsPresetSchemeColorRamp &ramp );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the color ramp to show in the dialog.
|
|
|
|
:param ramp: color ramp
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`ramp()`
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-09-14 14:02:27 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the dialog settings change
|
|
|
|
%End
|
|
|
|
|
2016-09-14 14:02:27 +10:00
|
|
|
};
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgspresetcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|