QGIS/python/gui/qgspresetcolorrampdialog.sip

102 lines
2.8 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
class QgsPresetColorRampWidget : QgsPanelWidget
{
2017-06-07 16:16:21 +02:00
%Docstring
A widget which allows users to modify the properties of a QgsPresetSchemeColorRamp.
.. versionadded:: 3.0
%End
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
#include "qgspresetcolorrampdialog.h"
%End
public:
QgsPresetColorRampWidget( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
Constructor for QgsPresetColorRampWidget.
\param ramp initial ramp to show in dialog
\param parent parent widget
%End
QgsPresetSchemeColorRamp ramp() const;
2017-06-07 16:16:21 +02:00
%Docstring
Returns a color ramp representing the current settings from the dialog.
.. seealso:: setRamp()
:rtype: QgsPresetSchemeColorRamp
%End
void setRamp( const QgsPresetSchemeColorRamp &ramp );
2017-06-07 16:16:21 +02:00
%Docstring
Sets the color ramp to show in the dialog.
\param ramp color ramp
.. seealso:: ramp()
%End
signals:
void changed();
2017-06-07 16:16:21 +02:00
%Docstring
Emitted when the dialog settings change
%End
2017-06-07 16:16:21 +02:00
};
class QgsPresetColorRampDialog : QDialog
{
2017-06-07 16:16:21 +02:00
%Docstring
A dialog which allows users to modify the properties of a QgsPresetSchemeColorRamp.
.. versionadded:: 3.0
%End
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
#include "qgspresetcolorrampdialog.h"
%End
public:
QgsPresetColorRampDialog( const QgsPresetSchemeColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
2017-06-07 16:16:21 +02:00
%Docstring
Constructor for QgsPresetColorRampDialog.
\param ramp initial ramp to show in dialog
\param parent parent widget
%End
QgsPresetSchemeColorRamp ramp() const;
2017-06-07 16:16:21 +02:00
%Docstring
Returns a color ramp representing the current settings from the dialog.
.. seealso:: setRamp()
:rtype: QgsPresetSchemeColorRamp
%End
void setRamp( const QgsPresetSchemeColorRamp &ramp );
2017-06-07 16:16:21 +02:00
%Docstring
Sets the color ramp to show in the dialog.
\param ramp color ramp
.. seealso:: ramp()
%End
signals:
void changed();
2017-06-07 16:16:21 +02:00
%Docstring
Emitted when the dialog settings change
%End
};
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 *
************************************************************************/