3
$Id: Tool.h,v 1.10 2001/02/15 02:22:37 mueller Exp $
5
This file is part of KIllustrator.
6
Copyright (C) 1998 Kai-Uwe Sattler (kus@iti.cs.uni-magdeburg.de)
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU Library General Public License as
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU Library General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29
#include <qnamespace.h>
39
friend class ToolController;
41
Tool (CommandHistory* chist);
46
enum ToolID {ToolDummy, ToolSelect, ToolEditPoint, ToolFreeHand, ToolLine,\
47
ToolBezier, ToolRectangle, ToolPolygon, ToolEllipse, ToolText, ToolZoom, ToolPathText, ToolInsertPart};
49
virtual void processEvent (QEvent* e, GDocument* doc, Canvas* canvas) = 0;
50
virtual void activate (GDocument* doc, Canvas* canvas);
51
virtual void deactivate (GDocument*, Canvas*) {}
53
virtual void configure () {}
55
ToolID id() const {return m_id;};
58
CommandHistory* history;
62
ToolController *m_toolController;