|
Krita Source Code Documentation
|
#include <KoZoomActionState.h>
Public Types | |
| using | ZoomItem = std::tuple<KoZoomMode::Mode, qreal, QString> |
Public Member Functions | |
| int | calcNearestStandardLevel () const |
| int | calcNearestStandardLevel (qreal zoom) const |
| KoZoomActionState (const KoZoomState &state) | |
| void | setZoomState (const KoZoomState &state) |
Public Attributes | |
| int | currentRealLevelIndex = 0 |
| QString | currentRealLevelText |
| QVector< ZoomItem > | guiLevels |
| QVector< ZoomItem > | realGuiLevels |
| QVector< qreal > | standardLevels |
| KoZoomState | zoomState |
Definition at line 17 of file KoZoomActionState.h.
| using KoZoomActionState::ZoomItem = std::tuple<KoZoomMode::Mode, qreal, QString> |
Definition at line 20 of file KoZoomActionState.h.
| KoZoomActionState::KoZoomActionState | ( | const KoZoomState & | state | ) |
Definition at line 48 of file KoZoomActionState.cpp.
References setZoomState().
| int KoZoomActionState::calcNearestStandardLevel | ( | ) | const |
Definition at line 141 of file KoZoomActionState.cpp.
References calcNearestStandardLevel(), KoZoomState::zoom, and zoomState.
| int KoZoomActionState::calcNearestStandardLevel | ( | qreal | zoom | ) | const |
Definition at line 128 of file KoZoomActionState.cpp.
References eps, and standardLevels.
| void KoZoomActionState::setZoomState | ( | const KoZoomState & | state | ) |
1) If all elements are smaller than the new zoom, then add into the end 2) If the found element is too similar to the new zoom, then just keep the existing element instead
Definition at line 53 of file KoZoomActionState.cpp.
References currentRealLevelIndex, currentRealLevelText, eps, KoZoomMode::generateStandardZoomLevels(), guiLevels, KoZoomState::maxZoom, KoZoomState::minZoom, KoZoomState::mode, qFuzzyCompare(), realGuiLevels, standardLevels, KoZoomState::zoom, KoZoomMode::ZOOM_CONSTANT, KoZoomMode::ZOOM_HEIGHT, KoZoomMode::ZOOM_PAGE, KoZoomMode::ZOOM_WIDTH, and zoomState.
| int KoZoomActionState::currentRealLevelIndex = 0 |
Definition at line 26 of file KoZoomActionState.h.
| QString KoZoomActionState::currentRealLevelText |
Definition at line 27 of file KoZoomActionState.h.
Definition at line 24 of file KoZoomActionState.h.
Definition at line 25 of file KoZoomActionState.h.
| QVector<qreal> KoZoomActionState::standardLevels |
Definition at line 23 of file KoZoomActionState.h.
| KoZoomState KoZoomActionState::zoomState |
Definition at line 22 of file KoZoomActionState.h.