QGIS/python/gui/qgslimitedrandomcolorrampdialog.sip
2017-05-24 13:48:03 +02:00

134 lines
3.5 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgslimitedrandomcolorrampdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLimitedRandomColorRampWidget : QgsPanelWidget
{
%Docstring
A widget which allows users to modify the properties of a QgsLimitedRandomColorRamp.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslimitedrandomcolorrampdialog.h"
%End
public:
QgsLimitedRandomColorRampWidget( const QgsLimitedRandomColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLimitedRandomColorRampWidget.
\param ramp initial ramp to show in dialog
\param parent parent widget
%End
QgsLimitedRandomColorRamp ramp() const;
%Docstring
Returns a color ramp representing the current settings from the dialog.
.. seealso:: setRamp()
:rtype: QgsLimitedRandomColorRamp
%End
void setRamp( const QgsLimitedRandomColorRamp &ramp );
%Docstring
Sets the color ramp to show in the dialog.
\param ramp color ramp
.. seealso:: ramp()
%End
signals:
void changed();
%Docstring
Emitted when the dialog settings change
%End
public slots:
void setCount( int val );
%Docstring
Sets the number of colors to create in the ramp
%End
void setHue1( int val );
%Docstring
Sets the minimum hue for colors in the ramp
%End
void setHue2( int val );
%Docstring
Sets the maximum hue for colors in the ramp
%End
void setSat1( int val );
%Docstring
Sets the minimum saturation for colors in the ramp
%End
void setSat2( int val );
%Docstring
Sets the maximum saturation for colors in the ramp
%End
void setVal1( int val );
%Docstring
Sets the minimum value for colors in the ramp
%End
void setVal2( int val );
%Docstring
Sets the maximum value for colors in the ramp
%End
};
class QgsLimitedRandomColorRampDialog : QDialog
{
%Docstring
A dialog which allows users to modify the properties of a QgsLimitedRandomColorRamp.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslimitedrandomcolorrampdialog.h"
%End
public:
QgsLimitedRandomColorRampDialog( const QgsLimitedRandomColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLimitedRandomColorRampDialog.
\param ramp initial ramp to show in dialog
\param parent parent widget
%End
QgsLimitedRandomColorRamp ramp() const;
%Docstring
Returns a color ramp representing the current settings from the dialog.
.. seealso:: setRamp()
:rtype: QgsLimitedRandomColorRamp
%End
void setRamp( const QgsLimitedRandomColorRamp &ramp );
%Docstring
Sets the color ramp to show in the dialog.
\param ramp color ramp
.. seealso:: ramp()
%End
signals:
void changed();
%Docstring
Emitted when the dialog settings change
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgslimitedrandomcolorrampdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/