Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoSelectedShapesProxySimple.h
- This file was copied from libs/image/tests/kis_algebra_2d_test.h.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright (c) 2016 Dmitry Kazakov <dimula73@gmail.com> | 2 | * Copyright (c) 2017 Dmitry Kazakov <dimula73@gmail.com> | ||
3 | * | 3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | 5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | 6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | 7 | * (at your option) any later version. | ||
8 | * | 8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef __KIS_ALGEBRA_2D_TEST_H | 19 | #ifndef KOSELECTEDSHAPESPROXYSIMPLE_H | ||
20 | #define __KIS_ALGEBRA_2D_TEST_H | 20 | #define KOSELECTEDSHAPESPROXYSIMPLE_H | ||
21 | 21 | | |||
22 | #include <QtTest/QtTest> | 22 | #include <QPointer> | ||
23 | #include <KoSelectedShapesProxy.h> | ||||
23 | 24 | | |||
24 | class KisAlgebra2DTest : public QObject | 25 | class KoShapeManager; | ||
26 | | ||||
27 | | ||||
28 | class KRITAFLAKE_EXPORT KoSelectedShapesProxySimple : public KoSelectedShapesProxy | ||||
25 | { | 29 | { | ||
26 | Q_OBJECT | 30 | Q_OBJECT | ||
27 | private Q_SLOTS: | 31 | public: | ||
28 | void testHalfPlane(); | 32 | KoSelectedShapesProxySimple(KoShapeManager *shapeManager); | ||
29 | void testOuterCircle(); | 33 | KoSelection *selection(); | ||
30 | 34 | | |||
31 | void testQuadraticEquation(); | 35 | private: | ||
32 | void testIntersections(); | 36 | QPointer<KoShapeManager> m_shapeManager; | ||
33 | void testWeirdIntersections(); | | |||
34 | }; | 37 | }; | ||
35 | 38 | | |||
36 | #endif /* __KIS_ALGEBRA_2D_TEST_H */ | 39 | #endif // KOSELECTEDSHAPESPROXYSIMPLE_H |