~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to kontour/EditPointTool.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*-
2
 
 
3
 
  $Id: EditPointTool.h,v 1.6 2001/02/13 15:31:15 neundorf Exp $
4
 
 
5
 
  This file is part of KIllustrator.
6
 
  Copyright (C) 1998 Kai-Uwe Sattler (kus@iti.cs.uni-magdeburg.de)
7
 
 
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
10
 
  published by
11
 
  the Free Software Foundation; either version 2 of the License, or
12
 
  (at your option) any later version.
13
 
 
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.
18
 
 
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.
22
 
 
23
 
*/
24
 
 
25
 
#ifndef EditPointTool_h_
26
 
#define EditPointTool_h_
27
 
 
28
 
#include <Tool.h>
29
 
 
30
 
class QCursor;
31
 
class GObject;
32
 
 
33
 
class EditPointTool : public Tool {
34
 
public:
35
 
  enum Mode {
36
 
    MovePoint, InsertPoint, RemovePoint, Join, Split
37
 
  };
38
 
 
39
 
  EditPointTool (CommandHistory *history);
40
 
  ~EditPointTool ();
41
 
 
42
 
  virtual void processEvent (QEvent* e, GDocument* doc, Canvas* canvas);
43
 
 
44
 
  void setMode (Mode m);
45
 
 
46
 
  void activate (GDocument* doc, Canvas* canvas);
47
 
  void deactivate (GDocument* doc, Canvas* canvas);
48
 
 
49
 
//signals:
50
 
//    void activated(bool);
51
 
 
52
 
private:
53
 
  Mode mode;
54
 
  GObject* obj;
55
 
  int pointIdx;
56
 
  Coord startPos, lastPos;
57
 
  QCursor *cursor;
58
 
};
59
 
 
60
 
#endif