Salome HOME
remove useless myIs2D field, specify help page location
authoreap <eap@opencascade.com>
Thu, 17 Apr 2008 07:55:42 +0000 (07:55 +0000)
committereap <eap@opencascade.com>
Thu, 17 Apr 2008 07:55:42 +0000 (07:55 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.h

index 3a41e48d76680be42f2cfb14ffb80aba8536ae09..7977214b87991c8ef16062833c20f2f207b9796b 100644 (file)
@@ -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";
 }
index a5b596de085050c255edf89ee856963636b29b3d..9dbd2ec76f77ebe96299dd5ab7ea2766a8a9926a 100644 (file)
@@ -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