1 /*
2  * Copyright (C) 2018 Damir Porobic <damir.porobic@gmx.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef KIMAGEANNOTATOR_TOOLS_H
21 #define KIMAGEANNOTATOR_TOOLS_H
22 
23 #include <QMetaType>
24 
25 namespace kImageAnnotator {
26 
27 enum class Tools
28 {
29 	Select,
30 	Pen,
31 	MarkerPen,
32 	MarkerRect,
33 	MarkerEllipse,
34 	Line,
35 	Arrow,
36 	DoubleArrow,
37 	Rect,
38 	Ellipse,
39 	Number,
40 	NumberPointer,
41 	NumberArrow,
42 	Text,
43 	TextPointer,
44 	TextArrow,
45 	Blur,
46 	Image,
47 	Sticker,
48 	Pixelate,
49 	Duplicate
50 };
51 
qHash(const Tools & tool,uint seed)52 inline uint qHash(const Tools &tool, uint seed)
53 {
54 	Q_UNUSED(seed)
55 
56 	return static_cast<uint>(tool);
57 }
58 
59 } // namespace kImageAnnotator
60 
61 Q_DECLARE_METATYPE(kImageAnnotator::Tools)
62 
63 #endif // KIMAGEANNOTATOR_TOOLS_H
64