From 39b12dbc301d348b2aaba10e2f1c945abbc7fa30 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2019 13:41:33 +0300 Subject: [PATCH] #18313 [CEA18312] MG-Hexa hypothesis Construction: Select button... --- src/GUI/HexoticPluginGUI_HypothesisCreator.cxx | 8 ++++++++ src/GUI/HexoticPluginGUI_HypothesisCreator.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 -- 2.30.2