|
Krita Source Code Documentation
|
#include <KoZoomAction.h>
Inheritance diagram for KoZoomAction:Public Slots | |
| void | setUsePrintResolutionMode (bool value) |
| void | slotZoomStateChanged (const KoZoomState &zoomState) |
Signals | |
| void | sigInternalUpdateUsePrintResolutionMode (bool value) |
| void | sigInternalUpdateZoomLevelsComboState (const QStringList &values, int index, const QString &activeText) |
| void | sigInternalUpdateZoomLevelsSliderState (int size, int index) |
| void | sigUsePrintResolutionModeChanged (bool value) |
| void | zoomChanged (KoZoomMode::Mode mode, qreal zoom) |
Public Member Functions | |
| QWidget * | createWidget (QWidget *parent) override |
| KoZoomAction (const QString &text, QObject *parent) | |
| Private (KoZoomAction *_parent) | |
| ~KoZoomAction () override | |
Public Attributes | |
| KoZoomActionState | currentActionState |
| KoZoomState | currentZoomState |
| KisSignalCompressor | guiUpdateCompressor |
| KoZoomAction * | parent {nullptr} |
Protected Slots | |
| void | sliderValueChanged (int value) |
| void | slotTextZoomChanged (const QString &value) |
| void | slotUpdateGuiAfterZoom () |
| void | slotZoomLevelChangedIndex (int index) |
Protected Member Functions | |
| void | regenerateItems () |
| void | syncSliderWithZoom () |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Class KoZoomAction implements an action to provide zoom values. In a toolbar, KoZoomAction will show a dropdown list (combobox), also with the possibility for the user to enter arbitrary zoom value (must be an integer). The values shown on the list are always sorted. In a statusbar it provides a scale (slider) plus an editable value plus some buttons for special zoommodes
Definition at line 26 of file KoZoomAction.cpp.
| KoZoomAction::KoZoomAction | ( | const QString & | text, |
| QObject * | parent ) |
Creates a new zoom action.
| zoomModes | which zoom modes that should be shown |
| text | The text that will be displayed. |
| parent | The action's parent object. |
Definition at line 45 of file KoZoomAction.cpp.
References connect(), d, koIcon, regenerateItems(), and slotUpdateGuiAfterZoom().
|
override |
|
override |
Reimplemented from QWidgetAction.
Definition at line 157 of file KoZoomAction.cpp.
References connect(), d, parent, regenerateItems(), KoZoomWidget::setSliderState(), KoZoomWidget::setUsePrintResolutionMode(), KoZoomWidget::setZoomLevelsState(), sigInternalUpdateUsePrintResolutionMode(), sigInternalUpdateZoomLevelsComboState(), sigInternalUpdateZoomLevelsSliderState(), sigUsePrintResolutionModeChanged(), sliderValueChanged(), slotTextZoomChanged(), slotZoomLevelChangedIndex(), and syncSliderWithZoom().
|
inline |
Definition at line 30 of file KoZoomAction.cpp.
|
protected |
Definition at line 124 of file KoZoomAction.cpp.
References d, and sigInternalUpdateZoomLevelsComboState().
|
slot |
Change status of canvas size mapping button (emits canvasMappingModeChanged(bool) after the change, ALWAYS)
Definition at line 182 of file KoZoomAction.cpp.
References sigInternalUpdateUsePrintResolutionMode(), and value().
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedslot |
Definition at line 147 of file KoZoomAction.cpp.
References d, value(), KoZoomMode::ZOOM_CONSTANT, and zoomChanged().
|
protectedslot |
In Turkish language, the percent sign can go before the number...
If the value has been selected from the dropdown, then it has already been activated by slotZoomLevelChangedIndex() and we shouldn't emit it once again.
Definition at line 70 of file KoZoomAction.cpp.
References d, KoZoomState::mode, KisPortingUtils::stringRemoveFirst(), KisPortingUtils::stringRemoveLast(), value(), KoZoomState::zoom, KoZoomMode::ZOOM_CONSTANT, and zoomChanged().
|
protectedslot |
Definition at line 176 of file KoZoomAction.cpp.
References regenerateItems(), and syncSliderWithZoom().
|
protectedslot |
Definition at line 113 of file KoZoomAction.cpp.
References d, and zoomChanged().
|
slot |
|
protected |
Definition at line 187 of file KoZoomAction.cpp.
References d, and sigInternalUpdateZoomLevelsSliderState().
|
signal |
Signal zoomChanged is triggered when user changes the zoom value, either by choosing it from the list or by entering new value.
| mode | The selected zoom mode |
| zoom | the zoom, only defined if mode is KoZoomMode::ZOOM_CONSTANT |
| KoZoomActionState KoZoomAction::currentActionState |
Definition at line 41 of file KoZoomAction.cpp.
| KoZoomState KoZoomAction::currentZoomState |
Definition at line 38 of file KoZoomAction.cpp.
|
private |
Definition at line 87 of file KoZoomAction.h.
| KisSignalCompressor KoZoomAction::guiUpdateCompressor |
Definition at line 39 of file KoZoomAction.cpp.
| KoZoomAction* KoZoomAction::parent {nullptr} |
Definition at line 36 of file KoZoomAction.cpp.