From: eap Date: Fri, 15 Nov 2019 10:41:33 +0000 (+0300) Subject: #18313 [CEA18312] MG-Hexa hypothesis Construction: Select button... X-Git-Tag: V9_4_0rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?p=plugins%2Fhexoticplugin.git;a=commitdiff_plain;h=39b12dbc301d348b2aaba10e2f1c945abbc7fa30 #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..be50efd 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.h +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.h @@ -123,7 +123,8 @@ protected slots: void onRemoveLocalSize(); void onTabChanged(int); void onAddOption(); - + void onDirBtnClicked(); + }; class SizeMapsTableWidgetDelegate : public QItemDelegate