33 I_REGISTER_SUBELEMENT(SelectedDocumentInfo);
34 I_REGISTER_SUBELEMENT_INTERFACE(SelectedDocumentInfo,
iprm::INameParam, ExtractSelectedDocumentInfo);
35 I_REGISTER_SUBELEMENT_INTERFACE(SelectedDocumentInfo,
ifile::IFileNameParam, ExtractSelectedDocumentInfo);
36 I_REGISTER_SUBELEMENT_INTERFACE(SelectedDocumentInfo,
imod::IModel, ExtractSelectedDocumentInfo);
37 I_REGISTER_SUBELEMENT_INTERFACE(SelectedDocumentInfo,
istd::IChangeable, ExtractSelectedDocumentInfo);
38 I_ASSIGN(m_observedObjectCompPtr,
"ActivationObject",
"Object will be observed if it is active",
true,
"ActivationObject");
39 I_ASSIGN(m_documentManagerCompPtr,
"DocumentManager",
"Document manager used to check which object is active",
true,
"DocumentManager");
40 I_ASSIGN_TO(m_documentManagerModelCompPtr, m_documentManagerCompPtr,
true);
41 I_ASSIGN(m_modelCompPtr,
"Model",
"Model to be connected",
true,
"Model");
42 I_ASSIGN_MULTI_0(m_observersCompPtr,
"Observers",
"Observers for the model",
true);
67 template <
class InterfaceType>
70 return &component.m_selectedDocumentInfo;
79 virtual const QString& GetName()
const override;
80 virtual void SetName(
const QString& name)
override;
81 virtual bool IsNameFixed()
const override;
84 virtual int GetPathType()
const override;
85 virtual const QString& GetPath()
const override;
86 virtual void SetPath(
const QString& path)
override;
97 typedef QMap<imod::IObserver*, imod::IModel*> ModelObserverMap;
98 ModelObserverMap m_connectedMap;