chalk

kis_tool_shape.h
1/*
2 * Copyright (c) 2005 Adrian Page
3 *
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
6 * the Free Software Foundation; either version 2 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 General Public License
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.
17 */
18
19#ifndef KIS_TOOL_SHAPE_H_
20#define KIS_TOOL_SHAPE_H_
21
22#include <koffice_export.h>
23
24#include "kis_tool_paint.h"
25#include "kis_painter.h"
26
27class TQGridLayout;
28class WdgGeometryOptions;
29
30class KRITACORE_EXPORT KisToolShape : public KisToolPaint {
31
32 TQ_OBJECT
33
34 typedef KisToolPaint super;
35
36public:
37 KisToolShape(const TQString& UIName);
38 virtual ~KisToolShape();
39
40 virtual enumToolType toolType() { return TOOL_SHAPE; }
41
42protected:
43 virtual TQWidget* createOptionWidget(TQWidget* parent);
44
45 KisPainter::FillStyle fillStyle();
46
47private:
48 TQGridLayout *m_optionLayout;
49 WdgGeometryOptions *m_shapeOptionsWidget;
50};
51
52#endif // KIS_TOOL_SHAPE_H_
53
FillStyle
This enum contains the styles with which we can fill things like polygons and ellipses.