25 mProvideActiveTool(false),
26 mActiveToolSelected(false),
27 mActiveToolName(
"<Active Tool>")
29 mTrackingService = trackingService;
31 mValueName =
"Select a tool";
52 if(value == mActiveToolName)
55 bool emitChange =
false;
56 if(!mActiveToolSelected)
58 mActiveToolSelected =
true;
64 mActiveToolSelected =
false;
66 if(mTool && value==mTool->getUid())
68 ToolPtr temp = mTrackingService->getTool(value);
79 if(mActiveToolSelected)
80 return mActiveToolName;
83 return mTool->getUid();
93 if(mActiveToolSelected)
94 return mTrackingService->getActiveTool();
100 return mActiveToolSelected;
109 if(mProvideActiveTool)
110 retval << mActiveToolName;
112 for (TrackingService::ToolMap::iterator iter=tools.begin(); iter!=tools.end(); ++iter)
113 retval << iter->second->getUid();
119 if(
internal == mActiveToolName)
120 return mActiveToolName;
121 ToolPtr tool = mTrackingService->getTool(
internal);
131 mProvideActiveTool = on;
136 mActiveToolSelected =
true;