|
Krita Source Code Documentation
|
#include <KoZoomMode.h>
Public Types | |
| enum | Mode { ZOOM_CONSTANT = 0 , ZOOM_PAGE = 1 , ZOOM_WIDTH = 2 , ZOOM_HEIGHT = 16 } |
Static Public Member Functions | |
| static qreal | findNextZoom (qreal currentZoom, const QVector< qreal > &zoomLevels) |
| static qreal | findPrevZoom (qreal currentZoom, const QVector< qreal > &zoomLevels) |
| static QVector< qreal > | generateStandardZoomLevels (qreal minZoom, qreal maxZoom) |
| static QString | toString (Mode mode) |
Static Private Attributes | |
| static const char *const | modes [] |
The ZoomMode container
Definition at line 19 of file KoZoomMode.h.
| enum KoZoomMode::Mode |
| Enumerator | |
|---|---|
| ZOOM_CONSTANT | zoom x % |
| ZOOM_PAGE | zoom page |
| ZOOM_WIDTH | zoom pagewidth |
| ZOOM_HEIGHT | zoom pageheight |
Definition at line 22 of file KoZoomMode.h.
|
static |
Find the next zoom level to switch during the zoom-in operation
Definition at line 63 of file KoZoomMode.cpp.
References eps.
|
static |
Find the previous zoom level to switch during the zoom-out operation
Definition at line 74 of file KoZoomMode.cpp.
References eps.
|
static |
Generates standard zoom levels for the allowed range of minZoom and maxZoom
Definition at line 34 of file KoZoomMode.cpp.
|
static |
mode Definition at line 19 of file KoZoomMode.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, ZOOM_CONSTANT, ZOOM_HEIGHT, ZOOM_PAGE, and ZOOM_WIDTH.
|
staticprivate |
Definition at line 52 of file KoZoomMode.h.