Salome HOME
#18313 [CEA18312] MG-Hexa hypothesis Construction: Select button...
authoreap <eap@opencascade.com>
Fri, 15 Nov 2019 10:35:52 +0000 (13:35 +0300)
committereap <eap@opencascade.com>
Fri, 15 Nov 2019 10:35:52 +0000 (13:35 +0300)
src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
src/GUI/HexoticPluginGUI_HypothesisCreator.h

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 );
+}
index e68c786520b614af96dd177aa14fa63b8c75c1de..c107930f7816560c82394bd9b62b72bbba4b4604 100644 (file)
@@ -123,6 +123,7 @@ protected slots:
   void             onRemoveLocalSize();
   void             onTabChanged(int);
   void             onAddOption();
+  void             onDirBtnClicked();
   
 };