|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
22 this->setDefaultSlot();
26 return "Select a record session";
30 if(mRecordSession && value==mRecordSession->getUid())
36 mRecordSession = temp;
43 return "<no session>";
44 return mRecordSession->getUid();
48 return "Select a session";
52 return mRecordSession;
54 void StringPropertySelectRecordSession::setDefaultSlot()
56 std::vector<RecordSessionPtr> sessions =
mPluginData->getRecordSessions();
58 this->
setValue(sessions.at(0)->getUid());
70 mPluginData(pluginData)
76 std::vector<RecordSessionPtr> sessions =
mPluginData->getRecordSessions();
79 for (
unsigned i=0; i<sessions.size(); ++i)
88 return "<no session>";
QString qstring_cast(const T &val)
StringPropertySelectRecordSessionBase(AcquisitionDataPtr pluginData)
Namespace for all CustusX production code.
RecordSessionPtr getRecordSession()
void changed()
emit when the underlying data value is changed: The user interface will be updated.
AcquisitionDataPtr mPluginData
virtual QStringList getValueRange() const
virtual QString getUid() const
virtual QString getHelp() const
virtual bool setValue(const QString &value)
set the data value.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
void recordedSessionsChanged()
boost::shared_ptr< class AcquisitionData > AcquisitionDataPtr
boost::shared_ptr< class RecordSession > RecordSessionPtr
virtual QString convertInternal2Display(QString internal)
StringPropertySelectRecordSession(AcquisitionDataPtr pluginData)
virtual QString getValue() const
get the data value.