26 #ifndef STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H
27 #define STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H
38 #include <omniORB4/CORBA.h>
40 #include <SALOMEconfig.h>
41 #include CORBA_SERVER_HEADER(SMESH_Mesh)
45 class LightApp_SelectionMgr;
59 bool multiSelection=
false
63 bool multiSelection=
false);
66 void SetObject(CORBA::Object_ptr obj);
68 void SetObjects(SMESH::string_array_var& objEntries);
70 template<
class TInterface>
71 typename TInterface::_var_type
GetObject(
unsigned i=0)
const {
72 if ( IsObjectSelected(i) )
return TInterface::_narrow(myObjects[i]);
73 return TInterface::_nil();
78 QString
GetValue()
const {
return myParamValue; }
80 bool IsObjectSelected(
unsigned i=0)
const
81 {
return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
94 void SetDefaultText(QString defaultText=
"", QString styleSheet=
"");
103 void activateSelection();
104 void deactivateSelection();
113 void selectionActivated();
114 void contentModified();
117 void onSelectionDone();
141 #endif // STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H