2017-05-23 14:45:44 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsgradientcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
|
2016-08-24 11:31:06 +10:00
|
|
|
class QgsGradientColorRampDialog : QDialog
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
A dialog which allows users to modify the properties of a QgsGradientColorRamp.
|
|
|
|
.. versionadded:: 3.0
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgradientcolorrampdialog.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2016-08-24 13:41:08 +10:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsGradientColorRampDialog( const QgsGradientColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsGradientColorRampDialog.
|
|
|
|
\param ramp initial ramp to show in dialog
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-08-24 12:50:46 +10:00
|
|
|
~QgsGradientColorRampDialog();
|
|
|
|
|
|
|
|
QgsGradientColorRamp ramp() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a color ramp representing the current settings from the dialog.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setRamp()`
|
2017-05-23 14:45:44 +02:00
|
|
|
:rtype: QgsGradientColorRamp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsGradientColorRamp &ramp );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
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-05-23 14:45:44 +02:00
|
|
|
%End
|
2016-08-24 13:41:08 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the dialog settings change
|
|
|
|
%End
|
2016-08-24 13:41:08 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
public slots:
|
2016-08-24 13:41:08 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setColor1( const QColor &color );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the start color for the gradient ramp.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setColor2()`
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setColor2( const QColor &color );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the end color for the gradient ramp.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setColor1()`
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2015-02-03 02:21:52 +01:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-23 14:45:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsgradientcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|