46 connect(mTrackingService.get(), SIGNAL(activeToolChanged(
const QString&)),
this, SIGNAL(
changed()));
57 ToolPtr newTool = mTrackingService->getTool(value);
60 if(newTool == mTrackingService->getActiveTool())
62 mTrackingService->setActiveTool(newTool->getUid());
68 if (!mTrackingService->getActiveTool())
70 return qstring_cast(mTrackingService->getActiveTool()->getUid());
75 return "select the active tool";
83 for (TrackingService::ToolMap::iterator iter=tools.begin(); iter!=tools.end(); ++iter)
84 retval << iter->second->getUid();
90 ToolPtr tool = mTrackingService->getTool(
internal);
105 this->activeToolChanged();
108 void StringPropertyActiveProbeConfiguration::activeToolChanged()
112 ToolPtr newTool = mTrackingService->getFirstProbe();
113 if (!newTool || !newTool->getProbe())
129 return "Probe Config";
136 mTool->getProbe()->applyNewConfigurationWithId(value);
144 return mTool->getProbe()->getConfigId();
149 return "Select a probe configuration for the active probe.";
155 return QStringList();
156 return mTool->getProbe()->getConfigIdList();
163 return mTool->getProbe()->getConfigName(
internal);
QString qstring_cast(const T &val)
virtual QStringList getValueRange() const
virtual QString getValue() const
get the data value.
boost::shared_ptr< class TrackingService > TrackingServicePtr
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual bool setValue(const QString &value)
set the data value.
void activeToolChanged(const QString &uId)
void sectorChanged()
< Return a ProbeSectorPtr for the given uid. Use 'active' to get the default.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
std::map< QString, ToolPtr > ToolMap
StringPropertyActiveProbeConfiguration(TrackingServicePtr trackingService)
cxLogicManager_EXPORT TrackingServicePtr trackingService()
boost::shared_ptr< class Tool > ToolPtr