Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomActionState.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KOZOOMACTIONSTATE_H
8
#define KOZOOMACTIONSTATE_H
9
10
#include "kritawidgets_export.h"
11
12
#include <QVector>
13
#include <tuple>
14
#include "
KoZoomState.h
"
15
16
17
class
KRITAWIDGETS_EXPORT
KoZoomActionState
18
{
19
public
:
20
using
ZoomItem
= std::tuple<KoZoomMode::Mode, qreal, QString>;
21
22
KoZoomState
zoomState
;
23
QVector<qreal>
standardLevels
;
24
QVector<ZoomItem>
guiLevels
;
25
QVector<ZoomItem>
realGuiLevels
;
26
int
currentRealLevelIndex = 0;
27
QString
currentRealLevelText
;
28
29
KoZoomActionState
(
const
KoZoomState
&state);
30
void
setZoomState(
const
KoZoomState
&state);
31
32
int
calcNearestStandardLevel(qreal zoom)
const
;
33
int
calcNearestStandardLevel()
const
;
34
};
35
36
KRITAWIDGETS_EXPORT
37
QDebug
operator<<
(QDebug dbg,
const
KoZoomActionState::ZoomItem
&item);
38
39
#endif
// KOZOOMACTIONSTATE_H
operator<<
KRITAWIDGETS_EXPORT QDebug operator<<(QDebug dbg, const KoZoomActionState::ZoomItem &item)
Definition
KoZoomActionState.cpp:146
KoZoomState.h
KoZoomActionState
Definition
KoZoomActionState.h:18
KoZoomActionState::zoomState
KoZoomState zoomState
Definition
KoZoomActionState.h:22
KoZoomActionState::realGuiLevels
QVector< ZoomItem > realGuiLevels
Definition
KoZoomActionState.h:25
KoZoomActionState::guiLevels
QVector< ZoomItem > guiLevels
Definition
KoZoomActionState.h:24
KoZoomActionState::currentRealLevelText
QString currentRealLevelText
Definition
KoZoomActionState.h:27
KoZoomActionState::standardLevels
QVector< qreal > standardLevels
Definition
KoZoomActionState.h:23
KoZoomActionState::ZoomItem
std::tuple< KoZoomMode::Mode, qreal, QString > ZoomItem
Definition
KoZoomActionState.h:20
KoZoomState
Definition
KoZoomState.h:18
QList
Definition
KisQStringListFwd.h:16
libs
widgets
KoZoomActionState.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52