[Igarden-commit] Garden/source/PlanTool PaintTool.h, 1.7, 1.7.2.1 PlacementTool.h, 1.7.2.1, 1.7.2.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-02-10 16:39:53
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv7647 Modified Files: Tag: Release_branch_v1 PaintTool.h PlacementTool.h PlantingBedTool.h PlanTool.h Log Message: Add a new plan tool type (path element tool) to handle the differences between these and other plan tools Index: PlacementTool.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlacementTool.h,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** PlacementTool.h 20 Jan 2007 15:50:13 -0000 1.7.2.1 --- PlacementTool.h 10 Feb 2007 16:39:49 -0000 1.7.2.2 *************** *** 37,40 **** --- 37,41 ---- virtual bool KeyPressed(PlanView * view, long keyEvent, Element* element); virtual bool IsEnabled(); + virtual bool isPathElementTool() { return true; } protected: Index: PlanTool.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlanTool.h,v retrieving revision 1.9.2.1 retrieving revision 1.9.2.2 diff -C2 -d -r1.9.2.1 -r1.9.2.2 *** PlanTool.h 19 Jan 2007 13:43:53 -0000 1.9.2.1 --- PlanTool.h 10 Feb 2007 16:39:49 -0000 1.9.2.2 *************** *** 95,98 **** --- 95,99 ---- virtual bool NeedsClosedPath(); virtual long DoIdle(long arg, void* parg, Element* element); + virtual bool isPathElementTool() { return false; } protected: Index: PaintTool.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PaintTool.h,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** PaintTool.h 19 Jun 2005 23:13:16 -0000 1.7 --- PaintTool.h 10 Feb 2007 16:39:49 -0000 1.7.2.1 *************** *** 34,37 **** --- 34,38 ---- virtual short GetIconID(); virtual bool KeyPressed(PlanView * view, long keyEvent, Element* element); + virtual bool isPathElementTool() { return true; } protected: Index: PlantingBedTool.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlantingBedTool.h,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** PlantingBedTool.h 21 Jun 2006 02:45:27 -0000 1.7 --- PlantingBedTool.h 10 Feb 2007 16:39:49 -0000 1.7.2.1 *************** *** 39,42 **** --- 39,43 ---- virtual bool NeedsClosedPath(); virtual bool KeyPressed(PlanView * view, long keyEvent, Element* element); + virtual bool isPathElementTool() { return true; } protected: |