2016-08-24 15:00:07 +10:00
|
|
|
/** \ingroup gui
|
|
|
|
* \class QgsColorBrewerColorRampDialog
|
|
|
|
* A widget which allows users to modify the properties of a QgsColorBrewerColorRamp.
|
|
|
|
* \note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
class QgsColorBrewerColorRampWidget : QgsPanelWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgscolorbrewercolorrampdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/** Constructor for QgsColorBrewerColorRampDialog.
|
|
|
|
* @param ramp initial ramp to show in dialog
|
|
|
|
* @param parent parent widget
|
|
|
|
*/
|
|
|
|
QgsColorBrewerColorRampWidget( const QgsColorBrewerColorRamp& ramp, QWidget* parent /TransferThis/ = nullptr );
|
|
|
|
|
|
|
|
/** Returns a color ramp representing the current settings from the dialog.
|
|
|
|
* @see setRamp()
|
|
|
|
*/
|
|
|
|
QgsColorBrewerColorRamp ramp() const;
|
|
|
|
|
|
|
|
/** Sets the color ramp to show in the dialog.
|
|
|
|
* @param ramp color ramp
|
|
|
|
* @see ramp()
|
|
|
|
*/
|
|
|
|
void setRamp( const QgsColorBrewerColorRamp& ramp );
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
//! Emitted when the dialog settings change
|
|
|
|
void changed();
|
|
|
|
};
|
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
/** \ingroup gui
|
|
|
|
* \class QgsColorBrewerColorRampDialog
|
|
|
|
* A dialog which allows users to modify the properties of a QgsColorBrewerColorRamp.
|
|
|
|
* \note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
|
2016-08-24 11:31:06 +10:00
|
|
|
class QgsColorBrewerColorRampDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgscolorbrewercolorrampdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2016-08-24 13:41:08 +10:00
|
|
|
|
|
|
|
/** Constructor for QgsColorBrewerColorRampDialog.
|
|
|
|
* @param ramp initial ramp to show in dialog
|
|
|
|
* @param parent parent widget
|
|
|
|
*/
|
2016-08-24 12:50:46 +10:00
|
|
|
QgsColorBrewerColorRampDialog( const QgsColorBrewerColorRamp& ramp, QWidget* parent /TransferThis/ = nullptr );
|
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
/** Returns a color ramp representing the current settings from the dialog.
|
|
|
|
* @see setRamp()
|
|
|
|
*/
|
2016-08-24 12:50:46 +10:00
|
|
|
QgsColorBrewerColorRamp ramp() const;
|
2016-08-24 11:31:06 +10:00
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
/** Sets the color ramp to show in the dialog.
|
|
|
|
* @param ramp color ramp
|
|
|
|
* @see ramp()
|
|
|
|
*/
|
|
|
|
void setRamp( const QgsColorBrewerColorRamp& ramp );
|
2016-08-24 11:31:06 +10:00
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
signals:
|
2016-08-24 11:31:06 +10:00
|
|
|
|
2016-08-24 13:41:08 +10:00
|
|
|
//! Emitted when the dialog settings change
|
|
|
|
void changed();
|
2016-08-24 11:31:06 +10:00
|
|
|
};
|