• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • krita API Reference
  • KDE Home
  • Contact Us
 

KritaWidgets

  • sources
  • kfour-appscomplete
  • krita
  • libs
  • widgets
KoZoomMode.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  SPDX-FileCopyrightText: 2005 Johannes Schaub <[email protected]>
3  SPDX-FileCopyrightText: 2011 Arjen Hiemstra <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef _KOZOOMMODE_H_
9 #define _KOZOOMMODE_H_
10 
11 #include <QString>
12 #include <QFlags>
13 #include "kritawidgets_export.h"
14 
18 class KRITAWIDGETS_EXPORT KoZoomMode
19 {
20 public:
21  enum Mode
22  {
23  ZOOM_CONSTANT = 0,
24  ZOOM_WIDTH = 1,
25  ZOOM_PAGE = 2,
26  ZOOM_HEIGHT = 16,
27  ZOOM_PIXELS = 4
28  };
29 
30  Q_DECLARE_FLAGS(Modes, Mode)
31 
32 
33  static Mode toMode(const QString& mode);
35 
37  static QString toString(Mode mode);
38 
44  static qreal minimumZoom();
50  static qreal maximumZoom();
51 
61  static void setMinimumZoom(qreal zoom);
70  static void setMaximumZoom(qreal zoom);
71 
72 private:
73  static const char * const modes[];
74  static qreal minimumZoomValue;
75  static qreal maximumZoomValue;
76 };
77 
78 Q_DECLARE_OPERATORS_FOR_FLAGS(KoZoomMode::Modes)
79 
80 #endif
KoZoomMode
The ZoomMode container.
Definition: KoZoomMode.h:18
QString
KoZoomMode::Mode
Mode
Definition: KoZoomMode.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 11:48:23 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KritaWidgets

Skip menu "KritaWidgets"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

krita API Reference

Skip menu "krita API Reference"
  • libs
  •   KritaBasicFlakes
  •   brush
  •   KritaUndo2
  •   KritaFlake
  •   image
  •   KritaPlugin
  •   Krita
  •   KritaPigment
  •   KritaResources
  •   KritaStore
  •   ui
  •   KritaWidgets
  •   KritaWidgetUtils
  • plugins
  •   Assitants
  •   Extensions
  •   Filters
  •   Generators
  •   Formats
  •           src
  •   PaintOps
  •     libpaintop

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal