From: eap Date: Fri, 15 Nov 2019 10:35:52 +0000 (+0300) Subject: #18313 [CEA18312] MG-Hexa hypothesis Construction: Select button... X-Git-Tag: V9_5_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2382320b222bdcbc165712acf823a86cce7f2a63;p=plugins%2Fhexoticplugin.git #18313 [CEA18312] MG-Hexa hypothesis Construction: Select button... --- diff --git a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx index 9de1dc8..2df6132 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx @@ -307,6 +307,7 @@ QFrame* HexoticPluginGUI_HypothesisCreator::buildFrame() connect( mySmpWidget->pushButton_2, SIGNAL( clicked() ), this, SLOT( onRemoveLocalSize() ) ); connect( aTabWidget, SIGNAL( currentChanged(int)), this, SLOT( onTabChanged( int ) ) ); connect( myAdvWidget->addBtn, SIGNAL( clicked() ), this, SLOT( onAddOption() ) ); + connect( myAdvWidget->dirBtn, SIGNAL( clicked() ), this, SLOT( onDirBtnClicked() ) ); return fr; } @@ -787,3 +788,10 @@ void HexoticPluginGUI_HypothesisCreator::onAddOption() { myAdvWidget->AddOption( NULL, true ); } + +void HexoticPluginGUI_HypothesisCreator::onDirBtnClicked() +{ + QString dir = SUIT_FileDlg::getExistingDirectory( dlg(), myAdvWidget->myHexoticWorkingDir->text(), QString() ); + if ( !dir.isEmpty() ) + myAdvWidget->myHexoticWorkingDir->setText( dir ); +} diff --git a/src/GUI/HexoticPluginGUI_HypothesisCreator.h b/src/GUI/HexoticPluginGUI_HypothesisCreator.h index e68c786..c107930 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.h +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.h @@ -123,6 +123,7 @@ protected slots: void onRemoveLocalSize(); void onTabChanged(int); void onAddOption(); + void onDirBtnClicked(); };