1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2009-12-01
7 * Description : Primitive datatypes for geolocation interface
8 *
9 * Copyright (C) 2010-2021 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * Copyright (C) 2009-2010 by Michael G. Hansen <mike at mghansen dot de>
11 *
12 * This program is free software; you can redistribute it
13 * and/or modify it under the terms of the GNU General
14 * Public License as published by the Free Software Foundation;
15 * either version 2, or (at your option)
16 * any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * ============================================================ */
24
25 #ifndef DIGIKAM_GEO_IFACE_TYPES_H
26 #define DIGIKAM_GEO_IFACE_TYPES_H
27
28 // Qt includes
29
30 #include <QPersistentModelIndex>
31
Q_DECLARE_METATYPE(QPersistentModelIndex)32 Q_DECLARE_METATYPE(QPersistentModelIndex)
33
34 namespace Digikam
35 {
36
37 enum GeoMouseMode
38 {
39 MouseModePan = 1,
40 MouseModeRegionSelection = 2,
41 MouseModeRegionSelectionFromIcon = 4,
42 MouseModeFilter = 8,
43 MouseModeSelectThumbnail = 16,
44 MouseModeZoomIntoGroup = 32,
45 MouseModeLast = 32
46 };
47
48 Q_DECLARE_FLAGS(GeoMouseModes, GeoMouseMode)
49
50 enum GeoExtraAction
51 {
52 ExtraActionSticky = 1
53 };
54
55 Q_DECLARE_FLAGS(GeoExtraActions, GeoExtraAction)
56
57 typedef QList<int> QIntList;
58
59 } // namespace Digikam
60
61 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::GeoMouseModes)
62 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::GeoExtraActions)
63
64 Q_DECLARE_METATYPE(Digikam::GeoMouseModes)
65
66 #endif // DIGIKAM_GEO_IFACE_TYPES_H
67