]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
#18313 [CEA18312] MG-Hexa hypothesis Construction: Select button...
authoreap <eap@opencascade.com>
Fri, 15 Nov 2019 10:41:33 +0000 (13:41 +0300)
committereap <eap@opencascade.com>
Fri, 15 Nov 2019 10:41:33 +0000 (13:41 +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..be50efdb4c8821a13183422eeabeadc6a316bfcf 100644 (file)
@@ -123,7 +123,8 @@ protected slots:
   void             onRemoveLocalSize();
   void             onTabChanged(int);
   void             onAddOption();
-  
+  void             onDirBtnClicked();
+
 };
 
 class SizeMapsTableWidgetDelegate : public QItemDelegate