2017-05-23 14:45:44 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgslimitedrandomcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
|
2016-08-24 15:00:07 +10:00
|
|
|
class QgsLimitedRandomColorRampWidget : QgsPanelWidget
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A widget which allows users to modify the properties of a QgsLimitedRandomColorRamp.
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
.. versionadded:: 3.0
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslimitedrandomcolorrampdialog.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
|
|
|
QgsLimitedRandomColorRampWidget( const QgsLimitedRandomColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLimitedRandomColorRampWidget.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param ramp: initial ramp to show in dialog
|
|
|
|
:param parent: parent widget
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2016-08-24 12:50:46 +10:00
|
|
|
|
|
|
|
QgsLimitedRandomColorRamp ramp() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a color ramp representing the current settings from the dialog.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setRamp`
|
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 setRamp( const QgsLimitedRandomColorRamp &ramp );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the color ramp to show in the dialog.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param ramp: color ramp
|
|
|
|
|
2018-01-09 17:26:37 -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
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setCount( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the number of colors to create in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setHue1( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the minimum hue for colors in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setHue2( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the maximum hue for colors in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSat1( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the minimum saturation for colors in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSat2( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the maximum saturation for colors in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setVal1( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the minimum value for colors in the ramp
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
void setVal2( int val );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the maximum value for colors in the ramp
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2016-08-24 15:00:07 +10:00
|
|
|
|
|
|
|
|
|
|
|
class QgsLimitedRandomColorRampDialog : QDialog
|
|
|
|
{
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-19 11:43:52 -04:00
|
|
|
A dialog which allows users to modify the properties of a :py:class:`QgsLimitedRandomColorRamp`.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
.. versionadded:: 3.0
|
2016-08-24 15:00:07 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslimitedrandomcolorrampdialog.h"
|
|
|
|
%End
|
2016-08-24 15:00:07 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsLimitedRandomColorRampDialog( const QgsLimitedRandomColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLimitedRandomColorRampDialog.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param ramp: initial ramp to show in dialog
|
|
|
|
:param parent: parent widget
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2016-08-24 15:00:07 +10:00
|
|
|
|
|
|
|
QgsLimitedRandomColorRamp ramp() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a color ramp representing the current settings from the dialog.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setRamp`
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2016-08-24 15:00:07 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setRamp( const QgsLimitedRandomColorRamp &ramp );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the color ramp to show in the dialog.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param ramp: color ramp
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`ramp`
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2016-08-24 15:00:07 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the dialog settings change
|
|
|
|
%End
|
2016-08-24 15:00:07 +10:00
|
|
|
|
|
|
|
};
|
2017-05-23 14:45:44 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgslimitedrandomcolorrampdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|