From: eap Date: Thu, 17 Apr 2008 07:55:42 +0000 (+0000) Subject: remove useless myIs2D field, specify help page location X-Git-Tag: V4_1_2rc2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f0f58789a63c369796060e3870b0431f09e603a;p=plugins%2Fblsurfplugin.git remove useless myIs2D field, specify help page location --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 3a41e48..7977214 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -67,9 +67,9 @@ enum GeometricMesh }; BLSURFPluginGUI_HypothesisCreator::BLSURFPluginGUI_HypothesisCreator( const QString& theHypType ) -: SMESHGUI_GenericHypothesisCreator( theHypType ), - myIs2D(true) +: SMESHGUI_GenericHypothesisCreator( theHypType ) { + } BLSURFPluginGUI_HypothesisCreator::~BLSURFPluginGUI_HypothesisCreator() @@ -220,7 +220,7 @@ bool BLSURFPluginGUI_HypothesisCreator::readParamsFromHypo( BlsurfHypothesisData BLSURFPlugin::BLSURFPlugin_Hypothesis::_narrow( initParamsHypothesis() ); HypothesisData* data = SMESH::GetHypothesisData( hypType() ); - h_data.myName = isCreation() && data ? data->Label : ""; + h_data.myName = isCreation() && data ? hypName() : ""; h_data.myTopology = (int) h->GetTopology(); h_data.myPhysicalMesh = (int) h->GetPhysicalMesh(); @@ -319,16 +319,21 @@ void BLSURFPluginGUI_HypothesisCreator::onGeometricMeshChanged() { QString BLSURFPluginGUI_HypothesisCreator::caption() const { - return tr( QString( "BLSURF_%1_TITLE" ).arg(myIs2D?QString("2D"):QString("3D")) ); + return tr( "BLSURF_TITLE" ); } QPixmap BLSURFPluginGUI_HypothesisCreator::icon() const { - QString hypIconName = tr( QString("ICON_DLG_BLSURF_PARAMETERS%1").arg(myIs2D?QString(""):QString("")) ); + QString hypIconName = tr( "ICON_DLG_BLSURF_PARAMETERS"); return SUIT_Session::session()->resourceMgr()->loadPixmap( "BLSURFPlugin", hypIconName ); } QString BLSURFPluginGUI_HypothesisCreator::type() const { - return tr( QString( "BLSURF_%1_HYPOTHESIS" ).arg(myIs2D?QString("2D"):QString("3D")) ); + return tr( "BLSURF_HYPOTHESIS" ); +} + +QString BLSURFPluginGUI_HypothesisCreator::helpPage() const +{ + return "blsurf_hypo_page.html"; } diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h index a5b596d..9dbd2ec 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h @@ -59,7 +59,8 @@ public: BLSURFPluginGUI_HypothesisCreator( const QString& ); virtual ~BLSURFPluginGUI_HypothesisCreator(); - virtual bool checkParams() const; + virtual bool checkParams() const; + virtual QString helpPage() const; protected: virtual QFrame* buildFrame (); @@ -90,7 +91,6 @@ private: QCheckBox* myAllowQuadrangles; QCheckBox* myDecimesh; - bool myIs2D; }; #endif