Salome HOME
#18313 [CEA18312] MG-Hexa hypothesis Construction: Select button...
[plugins/hexoticplugin.git] / src / GUI / HexoticPluginGUI_HypothesisCreator.cxx
index 9de1dc8de8dbe782b3907cccdc7b772c0fb480df..2df61328da0b809f73f6f8eab160bd1279d542e7 100644 (file)
@@ -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 );
+}