]> cloud.milkyroute.net Git - dolphin.git/blob - src/views/zoomlevelinfo.h
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / views / zoomlevelinfo.h
1 /*
2 * SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef ZOOMLEVELINFO_H
8 #define ZOOMLEVELINFO_H
9
10 class QSize;
11
12 /**
13 * @short Helper class for getting information about the zooming
14 * capabilities.
15 */
16 class ZoomLevelInfo
17 {
18 public:
19 static int minimumLevel();
20 static int maximumLevel();
21
22 /**
23 * Helper method for the view implementation to get
24 * the icon size for the zoom level \a level that
25 * is between the range ZoomLevelInfo::minimumLevel() and
26 * ZoomLevelInfo::maximumLevel().
27 */
28 static int iconSizeForZoomLevel(int level);
29
30 /**
31 * Helper method for the view implementation to get
32 * the zoom level for the icon size \a size that
33 * is between the range ZoomLevelInfo::minimumLevel() and
34 * ZoomLevelInfo::maximumLevel().
35 */
36 static int zoomLevelForIconSize(const QSize &size);
37 };
38
39 #endif