mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
select imported object in browser
This commit is contained in:
parent
2caaea5924
commit
eb028cc849
@ -136,24 +136,16 @@ void ImportExportGUI_ImportXAODlg::Init()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
void ImportExportGUI_ImportXAODlg::ClickOnOk()
|
void ImportExportGUI_ImportXAODlg::ClickOnOk()
|
||||||
{
|
{
|
||||||
|
setIsApplyAndClose(true);
|
||||||
if (ClickOnApply())
|
if (ClickOnApply())
|
||||||
ClickOnCancel();
|
ClickOnCancel();
|
||||||
|
setIsApplyAndClose(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : ClickOnApply()
|
// function : ClickOnApply()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
/*bool ImportExportGUI_ImportXAODlg::ClickOnApply()
|
|
||||||
{
|
|
||||||
if (!onAccept())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
initName();
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
bool ImportExportGUI_ImportXAODlg::ClickOnApply()
|
bool ImportExportGUI_ImportXAODlg::ClickOnApply()
|
||||||
{
|
{
|
||||||
if(!isApplyAndClose()) {
|
if(!isApplyAndClose()) {
|
||||||
@ -275,7 +267,8 @@ bool ImportExportGUI_ImportXAODlg::execute()
|
|||||||
|
|
||||||
if (m_mainShape != NULL)
|
if (m_mainShape != NULL)
|
||||||
{
|
{
|
||||||
addInStudy(m_mainShape, m_mainShape->GetName());
|
QStringList anEntryList;
|
||||||
|
anEntryList << addInStudy(m_mainShape, m_mainShape->GetName());
|
||||||
|
|
||||||
for (int i = 0; i < subShapes->length(); i++)
|
for (int i = 0; i < subShapes->length(); i++)
|
||||||
{
|
{
|
||||||
@ -291,6 +284,10 @@ bool ImportExportGUI_ImportXAODlg::execute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateObjBrowser();
|
updateObjBrowser();
|
||||||
|
if( SUIT_Application* anApp = SUIT_Session::session()->activeApplication() ) {
|
||||||
|
LightApp_Application* aLightApp = dynamic_cast<LightApp_Application*>( anApp );
|
||||||
|
aLightApp->browseObjects( anEntryList );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user