Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INT PAL 0052864: Assigned algorithms are not shown in Edit Mesh dialog
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_Hypotheses.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx
b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx
index af1377aba7ebc70904b2d6e9fea9948d170433a9..06d9172e43f2560ee9c8085c573681e4811a30a2 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_Hypotheses.cxx
+++ b/
src/SMESHGUI/SMESHGUI_Hypotheses.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-35,10
+35,11
@@
#include <utilities.h>
// SALOME GUI includes
#include <utilities.h>
// SALOME GUI includes
-#include <
SUIT_Sess
ion.h>
+#include <
LightApp_Applicat
ion.h>
#include <SUIT_MessageBox.h>
#include <SUIT_MessageBox.h>
+#include <SUIT_OverrideCursor.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_ResourceMgr.h>
-#include <
LightApp_Applicat
ion.h>
+#include <
SUIT_Sess
ion.h>
#include <SalomeApp_IntSpinBox.h>
// Qt includes
#include <SalomeApp_IntSpinBox.h>
// Qt includes
@@
-150,7
+151,7
@@
void SMESHGUI_GenericHypothesisCreator::editHypothesis( SMESH::SMESH_Hypothesis_
}
else {
emit finished( QDialog::Accepted );
}
else {
emit finished( QDialog::Accepted );
-
delete myDlg;
+ delete myDlg;
}
}
}
}
@@
-246,6
+247,12
@@
QFrame* SMESHGUI_GenericHypothesisCreator::buildStdFrame()
changeWidgets().append( w );
}
}
changeWidgets().append( w );
}
}
+ if ( QWidget* w = getHelperWidget() )
+ {
+ w->setParent( fr );
+ w->move( QPoint( 0, 0 ) );
+ lay->addWidget( w );
+ }
return fr;
}
return fr;
}
@@
-264,6
+271,7
@@
void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
bool res = result==QDialog::Accepted;
if( res )
{
bool res = result==QDialog::Accepted;
if( res )
{
+ SUIT_OverrideCursor wc;
/*QString paramValues = */storeParams();
// No longer needed since NoteBook appears and "Value" OB field shows names of variable
// if ( !paramValues.isEmpty() ) {
/*QString paramValues = */storeParams();
// No longer needed since NoteBook appears and "Value" OB field shows names of variable
// if ( !paramValues.isEmpty() ) {
@@
-512,6
+520,17
@@
QWidget* SMESHGUI_GenericHypothesisCreator::getCustomWidget( const StdParam & /*
{
return 0;
}
{
return 0;
}
+//================================================================================
+/*!
+ * \brief Returns a widget representing not a hypothesis parameter but some helper widget
+ */
+//================================================================================
+
+QWidget* SMESHGUI_GenericHypothesisCreator::getHelperWidget() const
+{
+ return 0;
+}
+
bool SMESHGUI_GenericHypothesisCreator::getParamFromCustomWidget( StdParam&, QWidget* ) const
{
return false;
bool SMESHGUI_GenericHypothesisCreator::getParamFromCustomWidget( StdParam&, QWidget* ) const
{
return false;
@@
-646,6
+665,7
@@
void SMESHGUI_HypothesisDlg::setCustomFrame( QFrame* f )
void SMESHGUI_HypothesisDlg::accept()
{
void SMESHGUI_HypothesisDlg::accept()
{
+ SUIT_OverrideCursor wc; // some creators temporary set params to a hyp which can be long
QString msg;
if ( myCreator && !myCreator->checkParams( msg ) )
{
QString msg;
if ( myCreator && !myCreator->checkParams( msg ) )
{
@@
-670,7
+690,7
@@
void SMESHGUI_HypothesisDlg::onHelp()
if (app) {
QString name = "SMESH";
if(myCreator) {
if (app) {
QString name = "SMESH";
if(myCreator) {
- QVariant pluginName = myCreator->property(
PLUGIN_NAME
);
+ QVariant pluginName = myCreator->property(
SMESH::Plugin_Name()
);
if( pluginName.isValid() ) {
QString rootDir = pluginName.toString() + "PLUGIN_ROOT_DIR";
QString varValue = QString( getenv(rootDir.toLatin1().constData()));
if( pluginName.isValid() ) {
QString rootDir = pluginName.toString() + "PLUGIN_ROOT_DIR";
QString varValue = QString( getenv(rootDir.toLatin1().constData()));