Class: QgsCptCityColorRampDialog¶
-
class
qgis.gui.
QgsCptCityColorRampDialog
(ramp: QgsCptCityColorRamp, parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QDialog
Constructor for QgsCptCityColorRampDialog.
- Parameters
ramp – initial ramp to show in dialog
parent – parent widget
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
New in version 3.0: Enums
Methods
Returns a color ramp representing the current settings from the dialog.
Returns
True
if the ramp should be converted to aQgsGradientColorRamp
.Returns the name of the ramp currently selected in the dialog.
Sets the color ramp to show in the dialog.
Signals
Emitted when the dialog settings change [signal]
Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
changed
¶ Emitted when the dialog settings change [signal]
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
eventFilter
(self, obj: QObject, event: QEvent) → bool¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
ramp
(self) → QgsCptCityColorRamp¶ Returns a color ramp representing the current settings from the dialog.
See also
-
receivers
()¶
-
resizeEvent
()¶
-
saveAsGradientRamp
(self) → bool¶ Returns
True
if the ramp should be converted to aQgsGradientColorRamp
.
-
selectedName
(self) → str¶ Returns the name of the ramp currently selected in the dialog.
-
sender
()¶
-
senderSignalIndex
()¶
-
setRamp
(self, ramp: QgsCptCityColorRamp)¶ Sets the color ramp to show in the dialog.
- Parameters
ramp – color ramp
See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶