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(
size_t i=0)
const {
72 if ( IsObjectSelected(i) )
return TInterface::_narrow(myObjects[i]);
73 return TInterface::_nil();
76 size_t NbObjects()
const {
return myObjects.size(); }
79 QString
GetValue()
const {
return myParamValue; }
82 {
return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
95 void SetDefaultText(QString defaultText=
"", QString styleSheet=
"");
104 void activateSelection();
105 void deactivateSelection();
118 void onSelectionDone();
#define STDMESHERSGUI_EXPORT
Definition: SMESH_StdMeshersGUI.hxx:36
Definition: SMESHGUI.h:84
Widget controlling hypothesis parameter that is an object reference.
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:53
SUIT_SelectionFilter * myFilter
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:128
bool mySelectionActivated
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:129
QString myEmptyStyleSheet
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:139
bool myStretchActivated
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:130
bool IsSelectionActivated() const
Get the selection status.
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:91
bool myMultiSelection
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:125
QString myEmptyText
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:138
size_t NbObjects() const
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:76
LightApp_SelectionMgr * mySelectionMgr
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:133
SMESHGUI * mySMESHGUI
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:132
QString GetValue() const
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:79
bool IsObjectSelected(size_t i=0) const
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:81
std::vector< CORBA::Object_var > myObjects
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:126
QString myParamValue
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:137
TInterface::_var_type GetObject(size_t i=0) const
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:71
QPushButton * mySelButton
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:136
QLineEdit * myObjNameLineEdit
Definition: StdMeshersGUI_ObjectReferenceParamWdg.h:135
void selectionActivated()
Emitted when selection is activated.
MeshObjectType
Definition: SMESH_Type.h:43