25 mProvideActiveTool(false),
26 mActiveToolSelected(false),
27 mActiveToolName(
"<Active Tool>")
29 mTrackingService = trackingService;
31 mValueName =
"Select a tool";
52 if(value == mActiveToolName)
54 mActiveToolSelected =
true;
58 mActiveToolSelected =
false;
60 if(mTool && value==mTool->getUid())
62 ToolPtr temp = mTrackingService->getTool(value);
73 if(mActiveToolSelected)
74 return mActiveToolName;
77 return mTool->getUid();
87 if(mActiveToolSelected)
88 return mTrackingService->getActiveTool();
98 if(mProvideActiveTool)
99 retval << mActiveToolName;
101 for (TrackingService::ToolMap::iterator iter=tools.begin(); iter!=tools.end(); ++iter)
102 retval << iter->second->getUid();
108 if(
internal == mActiveToolName)
109 return mActiveToolName;
110 ToolPtr tool = mTrackingService->getTool(
internal);
120 mProvideActiveTool = on;
125 mActiveToolSelected =
true;
QString qstring_cast(const T &val)
boost::shared_ptr< class TrackingService > TrackingServicePtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
std::map< QString, ToolPtr > ToolMap
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr