[Igarden-commit] Garden/source/PlanTool InfoTool.h, 1.4, 1.4.2.1 InfoTool.cpp, 1.6.2.1, 1.6.2.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-02-10 22:52:53
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26698 Modified Files: Tag: Release_branch_v1 InfoTool.h InfoTool.cpp Log Message: BUG: Info tooltip left up when window closed, or possibly just when tool switched. Index: InfoTool.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/InfoTool.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** InfoTool.h 16 May 2005 22:51:27 -0000 1.4 --- InfoTool.h 10 Feb 2007 22:52:49 -0000 1.4.2.1 *************** *** 40,43 **** --- 40,44 ---- virtual void MouseLeftCanvas(PlanView * view); virtual short GetIconID(); + virtual void SetToolActive(PlanView *view, bool isActive); protected: Index: InfoTool.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/InfoTool.cpp,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -C2 -d -r1.6.2.1 -r1.6.2.2 *** InfoTool.cpp 20 Jan 2007 15:52:32 -0000 1.6.2.1 --- InfoTool.cpp 10 Feb 2007 22:52:49 -0000 1.6.2.2 *************** *** 138,148 **** // /* Calls MouseLeftCanvas on the current plan tool. Called by MouseLeftCanvas on the PlanToolList. */ ! ! ! void ! InfoTool::MouseLeftCanvas(PlanView * view) { } // --------------------------------------------------------------------------- // short InfoTool::GetIconID() --- 138,157 ---- // /* Calls MouseLeftCanvas on the current plan tool. Called by MouseLeftCanvas on the PlanToolList. */ ! void InfoTool::MouseLeftCanvas(PlanView * view) { + } + void InfoTool::SetToolActive(PlanView *view, bool isActive) + { + if(!isActive) + { + if (_popWindow) { + delete _popWindow; + _popWindow = NULL; + } + _lastElement = NULL; + } } + // --------------------------------------------------------------------------- // short InfoTool::GetIconID() |