//================================================================================
StdMeshersGUI_ObjectReferenceParamWdg::StdMeshersGUI_ObjectReferenceParamWdg
-( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection)
+( SUIT_SelectionFilter* f, QWidget* parent, bool multiSelection, bool stretch )
: QWidget( parent ), myMultiSelection( multiSelection )
{
myFilter = f;
+ myStretchActivated = stretch;
init();
}
aHBox->addWidget( mySelButton );
aHBox->addWidget( myObjNameLineEdit );
- aHBox->addStretch();
+ if (myStretchActivated){
+ aHBox->addStretch();
+ }
connect( mySelButton, SIGNAL(clicked()), SLOT(activateSelection()));
}
public:
StdMeshersGUI_ObjectReferenceParamWdg( SUIT_SelectionFilter* filter,
QWidget* parent,
- bool multiSelection=false);
+ bool multiSelection=false,
+ bool stretch=true);
StdMeshersGUI_ObjectReferenceParamWdg( MeshObjectType objType,
QWidget* parent,
bool multiSelection=false);
SUIT_SelectionFilter* myFilter;
bool mySelectionActivated;
+ bool myStretchActivated;
SMESHGUI* mySMESHGUI;
LightApp_SelectionMgr* mySelectionMgr;
QString myParamValue;
QString myEmptyText;
QString myEmptyStyleSheet;
+ //int spacing;
};
#endif // STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H