Differential D241 Diff 691 krita/plugins/tools/selectiontools/kis_tool_select_magnetic_option_widget.h
Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/tools/selectiontools/kis_tool_select_magnetic_option_widget.h
- This file was added.
1 | /* This file is part of the KDE project | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2009 Boudewijn Rempt <boud@valdyas.org> | ||||
3 | * | ||||
4 | * This library is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU Library General Public | ||||
6 | * License as published by the Free Software Foundation; either | ||||
7 | * version 2 of the License, or (at your option) any later version. | ||||
8 | * | ||||
9 | * This library 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 GNU | ||||
12 | * Library General Public License for more details. | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Library General Public License | ||||
15 | * along with this library; see the file COPYING.LIB. If not, write to | ||||
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
17 | * Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #ifndef KIS_TOOL_SELECT_MAGNETIC_OPTION_WIDGET_H | ||||
21 | #define KIS_TOOL_SELECT_MAGNETIC_OPTION_WIDGET_H | ||||
22 | | ||||
23 | #include <QWidget> | ||||
24 | | ||||
25 | namespace Ui { | ||||
26 | class KisToolSelectMagneticOptionWidget; | ||||
27 | } | ||||
28 | | ||||
29 | class KisToolSelectMagneticOptionWidget : public QWidget { | ||||
30 | Q_OBJECT | ||||
31 | | ||||
32 | public: | ||||
33 | enum SearchStartPoint { | ||||
34 | SearchFromLeft, | ||||
35 | SearchFromRight | ||||
36 | }; | ||||
37 | | ||||
38 | // ColorLimitation must be the same order, as in the widget | ||||
39 | enum ColorLimitation { | ||||
40 | ColorLimitToAll=0, | ||||
41 | ColorLimitToRed=1, | ||||
42 | ColorLimitToGreen=2, | ||||
43 | ColorLimitToBlue=3 | ||||
44 | }; | ||||
45 | | ||||
46 | KisToolSelectMagneticOptionWidget(QWidget *parent = 0); | ||||
47 | ~KisToolSelectMagneticOptionWidget(); | ||||
48 | | ||||
49 | Ui::KisToolSelectMagneticOptionWidget *ui; | ||||
50 | | ||||
51 | protected: | ||||
52 | void changeEvent(QEvent *e); | ||||
53 | | ||||
54 | }; | ||||
55 | | ||||
56 | #endif // KIS_TOOL_SELECT_MAGNETIC_OPTION_WIDGET_H |