]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Add references into GEOM dialogs to the corresponding help page from GUI documentation.
authormkr <mkr@opencascade.com>
Fri, 24 Mar 2006 07:16:21 +0000 (07:16 +0000)
committermkr <mkr@opencascade.com>
Fri, 24 Mar 2006 07:16:21 +0000 (07:16 +0000)
91 files changed:
src/BasicGUI/BasicGUI_ArcDlg.cxx
src/BasicGUI/BasicGUI_CircleDlg.cxx
src/BasicGUI/BasicGUI_CurveDlg.cxx
src/BasicGUI/BasicGUI_EllipseDlg.cxx
src/BasicGUI/BasicGUI_LineDlg.cxx
src/BasicGUI/BasicGUI_MarkerDlg.cxx
src/BasicGUI/BasicGUI_PlaneDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.cxx
src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
src/BlocksGUI/BlocksGUI_BlockDlg.cxx
src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
src/BooleanGUI/BooleanGUI_Dialog.cxx
src/BuildGUI/BuildGUI_CompoundDlg.cxx
src/BuildGUI/BuildGUI_EdgeDlg.cxx
src/BuildGUI/BuildGUI_FaceDlg.cxx
src/BuildGUI/BuildGUI_ShellDlg.cxx
src/BuildGUI/BuildGUI_SolidDlg.cxx
src/BuildGUI/BuildGUI_WireDlg.cxx
src/DlgRef/DlgRef_Skeleton_QTD.cxx
src/DlgRef/DlgRef_Skeleton_QTD.h
src/DlgRef/UIFiles/DlgRef_Skeleton_QTD.ui
src/DlgRef/UIFiles/ui_to_cxx
src/EntityGUI/EntityGUI_Skeleton_QTD.cxx
src/EntityGUI/EntityGUI_Skeleton_QTD.h
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.h
src/EntityGUI/EntityGUI_SubShapeDlg.cxx
src/EntityGUI/UIFiles/EntityGUI_Skeleton_QTD.ui
src/EntityGUI/UIFiles/ui_to_cxx
src/GEOMBase/GEOMBase_Skeleton.cxx
src/GEOMBase/GEOMBase_Skeleton.h
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.h
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.h
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/GenerationGUI/GenerationGUI_PipeDlg.cxx
src/GenerationGUI/GenerationGUI_PrismDlg.cxx
src/GenerationGUI/GenerationGUI_RevolDlg.cxx
src/GroupGUI/GroupGUI_GroupDlg.cxx
src/MeasureGUI/MeasureGUI_BndBoxDlg.cxx
src/MeasureGUI/MeasureGUI_CenterMassDlg.cxx
src/MeasureGUI/MeasureGUI_CheckCompoundOfBlocksDlg.cxx
src/MeasureGUI/MeasureGUI_CheckShapeDlg.cxx
src/MeasureGUI/MeasureGUI_DistanceDlg.cxx
src/MeasureGUI/MeasureGUI_InertiaDlg.cxx
src/MeasureGUI/MeasureGUI_MaxToleranceDlg.cxx
src/MeasureGUI/MeasureGUI_PointDlg.cxx
src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx
src/MeasureGUI/MeasureGUI_Skeleton.cxx
src/MeasureGUI/MeasureGUI_Skeleton.h
src/MeasureGUI/MeasureGUI_Skeleton_QTD.cxx
src/MeasureGUI/MeasureGUI_Skeleton_QTD.h
src/MeasureGUI/MeasureGUI_WhatisDlg.cxx
src/MeasureGUI/UIFiles/MeasureGUI_Skeleton_QTD.ui
src/MeasureGUI/UIFiles/ui_to_cxx
src/OperationGUI/OperationGUI_ArchimedeDlg.cxx
src/OperationGUI/OperationGUI_ChamferDlg.cxx
src/OperationGUI/OperationGUI_ClippingDlg.cxx
src/OperationGUI/OperationGUI_FilletDlg.cxx
src/OperationGUI/OperationGUI_MaterialDlg.cxx
src/OperationGUI/OperationGUI_PartitionDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.cxx
src/RepairGUI/RepairGUI_CloseContourDlg.cxx
src/RepairGUI/RepairGUI_DivideEdgeDlg.cxx
src/RepairGUI/RepairGUI_FreeBoundDlg.cxx
src/RepairGUI/RepairGUI_FreeBoundDlg.h
src/RepairGUI/RepairGUI_FreeFacesDlg.cxx
src/RepairGUI/RepairGUI_FreeFacesDlg.h
src/RepairGUI/RepairGUI_GlueDlg.cxx
src/RepairGUI/RepairGUI_RemoveHolesDlg.cxx
src/RepairGUI/RepairGUI_RemoveIntWiresDlg.cxx
src/RepairGUI/RepairGUI_SewingDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx
src/RepairGUI/RepairGUI_SuppressFacesDlg.cxx
src/TransformationGUI/TransformationGUI_MirrorDlg.cxx
src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx
src/TransformationGUI/TransformationGUI_OffsetDlg.cxx
src/TransformationGUI/TransformationGUI_PositionDlg.cxx
src/TransformationGUI/TransformationGUI_RotationDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/TransformationGUI/TransformationGUI_TranslationDlg.cxx

index 07de548cd3268e74d5a00c009e96fa8655e36f9c..716117ed3ed4aa79838c594296192e0284bdc862 100644 (file)
@@ -86,6 +86,8 @@ BasicGUI_ArcDlg::BasicGUI_ArcDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
 
   Layout1->addWidget( Group3Pnts, 2, 0 );
 
+  setHelpFileName("arc.htm");
+
   Init();
 }
 
index 8476ef36e037b614fefadf688863fac47cdbc2f9..8c655edaea271b3011d2e7ad8405e3698d257e58 100644 (file)
@@ -91,6 +91,8 @@ BasicGUI_CircleDlg::BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* par
   Layout1->addWidget( Group3Pnts, 2, 0 );
   /***************************************************************/
 
+  setHelpFileName("circle.htm");
+
   Init();
 }
 
index a558a22f0fded01c7f9860b5487a7cf5489cfca8..82fd598fbd043d8d40ee51c05ac552b3045ccf91 100644 (file)
@@ -78,6 +78,8 @@ BasicGUI_CurveDlg::BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* paren
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("curve.htm");
+
   Init();
 }
 
index 273d3267af865b3491bfe1329e3983e2320dc8a4..b4fb9ec4b40d48fd19284e25e65999ca9b6bef8a 100644 (file)
@@ -75,6 +75,8 @@ BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* p
 
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
+  
+  setHelpFileName("ellipse.htm");
 
   Init();
 }
index 014f7e18c440f07a45ab13486a790e7ab3d80791..9e26a2d4f30ae0092365d8c331b29bf3031bca9b 100644 (file)
@@ -75,6 +75,8 @@ BasicGUI_LineDlg::BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("line.htm");
+
   Init();
 }
 
index faf073950ca762b68bd15ea6dc6cf0cfa9735541..762423af9f621ce6e3fec8cca699735156906131 100644 (file)
@@ -119,6 +119,8 @@ BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* th
   Layout1->addWidget( Group1, 2, 0 );
   Layout1->addWidget( Group2, 2, 0 );
 
+  setHelpFileName("local_coordinate_system.htm");
+  
   Init();
 }
 
index 544f2611de1b8b884002526c80426ba2fedf220d..a51e2f11ccb7622fd9b12291aa089d8db2871612 100644 (file)
@@ -99,6 +99,8 @@ BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(GeometryGUI* theGeometryGUI, QWidget* paren
   Layout1->addWidget(GroupFace, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("plane.htm");
+  
   Init();
 }
 
index e21f745ece36b8a7c206181f2acfe9a32a235ef4..f49b0d1d400314545dbf537ed2dcacf45aea0fac 100644 (file)
@@ -121,6 +121,8 @@ BasicGUI_PointDlg::BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* paren
   myX->setPalette( aPal );
   myY->setPalette( aPal );
   myZ->setPalette( aPal );
+
+  setHelpFileName("point.htm");
  
   Init();
 }
index 8860b2e48129dc88cb29e2ea0dbd210909c50bbc..416e4e0a4f911f43daa3030e8430fdd596459a16 100644 (file)
@@ -84,6 +84,8 @@ BasicGUI_VectorDlg::BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* par
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("vector.htm");
+  
   /* Initialisations */
   Init();
 }
index 168c8bc7b818e1a6a3de65fd0be7366a84d1edd4..900955a990da0125e4cdd0fa1d2591a3fef466be 100644 (file)
@@ -103,6 +103,8 @@ BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(GeometryGUI* theGeometryGUI ,
   Layout1->addWidget(Group3, 1, 0);
   /***************************************************************/
 
+  setHelpFileName("working_plane.htm");
+
   Init();
 }
 
index 5d0444ea468642b2bf4e577973d13055ab1089d0..2d99353d7389136f8e6c162997e01d18bb36e433 100644 (file)
@@ -88,6 +88,8 @@ BlocksGUI_BlockDlg::BlocksGUI_BlockDlg (QWidget* parent,
   Layout1->addWidget(Group6F, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("newentity_blocks.htm#HexahedralSolid");
+
   Init();
 }
 
index 728082a4e9f3e4db14107f99683102fe4977294a..9d6180cb8c3fbf72b3b3138d353f3c5b1419fa3c 100644 (file)
@@ -108,6 +108,8 @@ BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg (QWidget* parent,
   Layout1->addWidget(myGrp1, 1, 0);
   /***************************************************************/
 
+  setHelpFileName("explode_on_blocks.htm");
+
   Init();
 }
 
index 0c4bdc44bb05a92606c778b491c5cfc6f2ae3466..e20031736ea52ca9df023b5f03ffc7b213e2286b 100644 (file)
@@ -74,7 +74,9 @@ BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name
   Layout1->addWidget(aMainGrp, 1, 0);
 
   /***************************************************************/
-
+  
+  setHelpFileName("propagate.htm");
   Init();
 }
 
index ebf979a2b0002e40d693daf08a932568ce9d1769..fd7fe35ddb5948601ae921c989b7b1f3accf54f0 100644 (file)
@@ -102,6 +102,8 @@ BlocksGUI_QuadFaceDlg::BlocksGUI_QuadFaceDlg (QWidget* parent,
   Layout1->addWidget(myGrp3, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("newentity_blocks.htm#QuadrangleFace");
+
   Init();
 }
 
index b58b8c62d47753a6b1c58510d56887f3b03db942..0a2baf0a74e08d6aebcd5e4c895ac8be4f107ba6 100644 (file)
@@ -119,6 +119,8 @@ BlocksGUI_TrsfDlg::BlocksGUI_TrsfDlg (QWidget* parent,
   Layout1->addWidget( myGrp2, 2, 0 );
   /***************************************************************/
 
+  setHelpFileName("multi_transformation.htm");
+
   Init();
 }
 
index c1e4e6d5ddab7922c0c4c9d244f516df42f87a87..1ca3d0df30217ef327b4979a2fc0ab2654eb8525 100644 (file)
@@ -57,21 +57,25 @@ BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, c
          image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
                        aTitle = tr("GEOM_COMMON");
                        aCaption = tr("GEOM_COMMON_TITLE");
+                       setHelpFileName("common.htm");
                        break;
                case BooleanGUI::CUT:
          image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
                        aTitle = tr("GEOM_CUT");
                        aCaption = tr("GEOM_CUT_TITLE");
+                       setHelpFileName("cut.htm");
                        break;
                case BooleanGUI::FUSE:
          image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
                        aTitle = tr("GEOM_FUSE");
                        aCaption = tr("GEOM_FUSE_TITLE");
+                       setHelpFileName("fuse.htm");
                        break;
                case BooleanGUI::SECTION:
          image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
                        aTitle = tr("GEOM_SECTION");
                        aCaption = tr("GEOM_SECTION_TITLE");
+                       setHelpFileName("section.htm");
                        break;
        }
   QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
index d993cbbe00188566901077da000a6b50731cd970..a1f9686d1cc5a8ad6d362442c2bfe71569ab918d 100644 (file)
@@ -65,6 +65,8 @@ BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, bo
   Layout1->addWidget(GroupShapes, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("compound.htm");
+
   /* Initialisations */
   Init();
 }
index e43e9e6f9d7b1a4e00481b3bd779580c07f8ace2..8472fa8c15ea97204176c4ec391bcf37bd5e0868 100644 (file)
@@ -74,6 +74,8 @@ BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, bool modal
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("edge.htm");
+
   /* Initialisations */
   Init();
 }
index f9a5891f2574759e2be4857642ae5c0ef3b471de..c974b1823491084a71742b1337c3b5a39fb13a27 100644 (file)
@@ -69,6 +69,8 @@ BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, bool modal
   Layout1->addWidget(GroupWire, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("face.htm");
+
   /* Initialisations */
   Init();
 }
index 54fd59132151d82b6dfa002919d02e69349dab69..8b4a10dad1840a9ad273bd235b9fba9df0a0893b 100644 (file)
@@ -67,6 +67,8 @@ BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, bool mod
   Layout1->addWidget(GroupShell, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("shell.htm");
+
   /* Initialisations */
   Init();
 }
index 9dbdec0db4269489681bb64bde216127ba13c34b..61b357fa72b3ff2f153a272367ab818023f546a5 100644 (file)
@@ -68,6 +68,8 @@ BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, bool mod
   Layout1->addWidget(GroupSolid, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("solid.htm");
+
   /* Initialisations */
   Init();
 }
index 9775a5cb155181789f5447cc45df78ba1719e7b7..1f20514cc19ed6d03f2368af8caca24ce36ff179 100644 (file)
@@ -67,6 +67,8 @@ BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, bool modal
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("wire.htm");
+
   /* Initialisations */
   Init();
 }
index f16b05e10a3c445776237496df0cba4c44bd5ce0..f2a73bc430334feec66c677a3cd10a4a0a3fb948 100644 (file)
 /****************************************************************************
 ** Form implementation generated from reading ui file 'DlgRef_Skeleton_QTD.ui'
 **
-** Created: Wed Aug 11 18:42:51 2004
-**      by:  The User Interface Compiler (uic)
+** Created: Fri Mar 17 11:18:06 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #include "DlgRef_Skeleton_QTD.h"
 
 #include <qvariant.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
 #include <qpushbutton.h>
+#include <qgroupbox.h>
+#include <qbuttongroup.h>
 #include <qradiobutton.h>
+#include <qlineedit.h>
+#include <qlabel.h>
 #include <qlayout.h>
 #include <qtooltip.h>
 #include <qwhatsthis.h>
 
-/* 
- *  Constructs a DlgRef_Skeleton_QTD which is a child of 'parent', with the 
+/*
+ *  Constructs a DlgRef_Skeleton_QTD as a child of 'parent', with the
  *  name 'name' and widget flags set to 'f'.
  *
  *  The dialog will by default be modeless, unless you set 'modal' to
  *  TRUE to construct a modal dialog.
  */
-DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
+DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
     : QDialog( parent, name, modal, fl )
 {
     if ( !name )
        setName( "DlgRef_Skeleton_QTD" );
-    resize( 307, 378 ); 
     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
-    setCaption( trUtf8( "DlgRef_Skeleton_QTD" ) );
     setSizeGripEnabled( TRUE );
     DlgRef_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_Skeleton_QTDLayout"); 
 
@@ -60,13 +59,11 @@ DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bo
 
     GroupMedium = new QGroupBox( this, "GroupMedium" );
     GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
-    GroupMedium->setTitle( trUtf8( "" ) );
 
     Layout1->addWidget( GroupMedium, 2, 0 );
 
     GroupButtons = new QGroupBox( this, "GroupButtons" );
     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
-    GroupButtons->setTitle( trUtf8( "" ) );
     GroupButtons->setColumnLayout(0, Qt::Vertical );
     GroupButtons->layout()->setSpacing( 6 );
     GroupButtons->layout()->setMargin( 11 );
@@ -76,25 +73,24 @@ DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bo
     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
 
     buttonOk = new QPushButton( GroupButtons, "buttonOk" );
-    buttonOk->setText( trUtf8( "&Ok" ) );
     Layout3->addWidget( buttonOk );
 
     buttonApply = new QPushButton( GroupButtons, "buttonApply" );
-    buttonApply->setText( trUtf8( "&Apply" ) );
     Layout3->addWidget( buttonApply );
-    QSpacerItem* spacer = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
-    Layout3->addItem( spacer );
+    Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+    Layout3->addItem( Spacer1 );
 
     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
-    buttonCancel->setText( trUtf8( "&Cancel" ) );
     Layout3->addWidget( buttonCancel );
+
+    buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+    Layout3->addWidget( buttonHelp );
     GroupButtonsLayout->addLayout( Layout3 );
 
     Layout1->addWidget( GroupButtons, 3, 0 );
 
     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
-    GroupConstructors->setTitle( trUtf8( "" ) );
     GroupConstructors->setColumnLayout(0, Qt::Vertical );
     GroupConstructors->layout()->setSpacing( 6 );
     GroupConstructors->layout()->setMargin( 11 );
@@ -104,26 +100,21 @@ DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bo
     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
 
     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
-    RadioButton1->setText( trUtf8( "" ) );
     Layout2->addWidget( RadioButton1 );
 
     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
-    RadioButton2->setText( trUtf8( "" ) );
     Layout2->addWidget( RadioButton2 );
 
     RadioButton3 = new QRadioButton( GroupConstructors, "RadioButton3" );
-    RadioButton3->setText( trUtf8( "" ) );
     Layout2->addWidget( RadioButton3 );
 
     RadioButton4 = new QRadioButton( GroupConstructors, "RadioButton4" );
-    RadioButton4->setText( trUtf8( "" ) );
     Layout2->addWidget( RadioButton4 );
     GroupConstructorsLayout->addLayout( Layout2 );
 
     Layout1->addWidget( GroupConstructors, 0, 0 );
 
     GroupBoxName = new QGroupBox( this, "GroupBoxName" );
-    GroupBoxName->setTitle( trUtf8( "Result name" ) );
     GroupBoxName->setColumnLayout(0, Qt::Vertical );
     GroupBoxName->layout()->setSpacing( 6 );
     GroupBoxName->layout()->setMargin( 11 );
@@ -137,7 +128,6 @@ DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bo
     Layout66->addWidget( ResultName, 0, 1 );
 
     NameLabel = new QLabel( GroupBoxName, "NameLabel" );
-    NameLabel->setText( trUtf8( "Name" ) );
 
     Layout66->addWidget( NameLabel, 0, 0 );
 
@@ -146,9 +136,12 @@ DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bo
     Layout1->addWidget( GroupBoxName, 1, 0 );
 
     DlgRef_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
+    languageChange();
+    resize( QSize(307, 378).expandedTo(minimumSizeHint()) );
+    clearWState( WState_Polished );
 }
 
-/*  
+/*
  *  Destroys the object and frees any allocated resources
  */
 DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
@@ -156,3 +149,25 @@ DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
     // no need to delete child widgets, Qt does it all for us
 }
 
+/*
+ *  Sets the strings of the subwidgets using the current
+ *  language.
+ */
+void DlgRef_Skeleton_QTD::languageChange()
+{
+    setCaption( tr( "DlgRef_Skeleton_QTD" ) );
+    GroupMedium->setTitle( QString::null );
+    GroupButtons->setTitle( QString::null );
+    buttonOk->setText( tr( "&Ok" ) );
+    buttonApply->setText( tr( "&Apply" ) );
+    buttonCancel->setText( tr( "&Cancel" ) );
+    buttonHelp->setText( tr( "&Help" ) );
+    GroupConstructors->setTitle( QString::null );
+    RadioButton1->setText( QString::null );
+    RadioButton2->setText( QString::null );
+    RadioButton3->setText( QString::null );
+    RadioButton4->setText( QString::null );
+    GroupBoxName->setTitle( tr( "Result name" ) );
+    NameLabel->setText( tr( "Name" ) );
+}
+
index fb4807f313bf7e7765d656d951f32f0d2abc9f55..36d201f2ef852a4e13e4194d3076f6056ce39020 100644 (file)
 /****************************************************************************
 ** Form interface generated from reading ui file 'DlgRef_Skeleton_QTD.ui'
 **
-** Created: Wed Aug 11 18:42:51 2004
-**      by:  The User Interface Compiler (uic)
+** Created: Fri Mar 17 11:18:06 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #ifndef DLGREF_SKELETON_QTD_H
 #define DLGREF_SKELETON_QTD_H
 
 #include <qvariant.h>
 #include <qdialog.h>
-class QVBoxLayout; 
-class QHBoxLayout; 
-class QGridLayout; 
-class QButtonGroup;
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class QSpacerItem;
 class QGroupBox;
-class QLabel;
-class QLineEdit;
 class QPushButton;
+class QButtonGroup;
 class QRadioButton;
+class QLineEdit;
+class QLabel;
 
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_Skeleton_QTD : public QDialog
-{ 
+class DlgRef_Skeleton_QTD : public QDialog
+{
     Q_OBJECT
 
 public:
@@ -59,6 +56,7 @@ public:
     QPushButton* buttonOk;
     QPushButton* buttonApply;
     QPushButton* buttonCancel;
+    QPushButton* buttonHelp;
     QButtonGroup* GroupConstructors;
     QRadioButton* RadioButton1;
     QRadioButton* RadioButton2;
@@ -68,16 +66,20 @@ public:
     QLineEdit* ResultName;
     QLabel* NameLabel;
 
-
 protected:
     QGridLayout* DlgRef_Skeleton_QTDLayout;
     QGridLayout* Layout1;
     QHBoxLayout* GroupButtonsLayout;
     QHBoxLayout* Layout3;
+    QSpacerItem* Spacer1;
     QHBoxLayout* GroupConstructorsLayout;
     QHBoxLayout* Layout2;
     QGridLayout* GroupBoxNameLayout;
     QGridLayout* Layout66;
+
+protected slots:
+    virtual void languageChange();
+
 };
 
 #endif // DLGREF_SKELETON_QTD_H
index 1098d6c4632b9405ddb8cc0c6c297a1dfec05df4..b675f277cecd81f5ee133e0c29f8beee8b7bbc84 100644 (file)
                                 <property name="spacing">
                                     <number>6</number>
                                 </property>
-                                <widget class="QPushButton">
+                               <widget class="QPushButton">
                                     <property name="name">
                                         <cstring>buttonOk</cstring>
                                     </property>
                                         <string>&amp;Cancel</string>
                                     </property>
                                 </widget>
+                               <widget class="QPushButton">
+                                    <property name="name">
+                                        <cstring>buttonHelp</cstring>
+                                    </property>
+                                    <property name="text">
+                                        <string>&amp;Help</string>
+                                    </property>
+                                </widget>
                             </hbox>
                         </widget>
                     </hbox>
index 4c4c512b802f29af06a54b3ed4258c901d8b8614..829b9d852cee51b7ecb8ecdf20826d20c6e5381b 100755 (executable)
@@ -1,22 +1,22 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
+# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# 
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either 
+# version 2.1 of the License.
+# 
+# This library is distributed in the hope that it will be useful 
+# but WITHOUT ANY WARRANTY; without even the implied warranty of 
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public  
+# License along with this library; if not, write to the Free Software 
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/
+#
 #!/bin/sh
 
 #uic -o DlgRef_Skeleton_QTD.h DlgRef_Skeleton_QTD.ui
index 65e0b2444a86ad00c28eb3a1b7183b29559b5455..fbcfd5e1ae78ed2d381eb7d08c2822b1bdbc6664 100644 (file)
@@ -1,69 +1,47 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
 /****************************************************************************
 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
 **
-** Created: ven déc 12 11:17:08 2003
-**      by:  The User Interface Compiler (uic)
+** Created: Fri Mar 17 15:47:14 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #include "EntityGUI_Skeleton_QTD.h"
 
 #include <qvariant.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
 #include <qpushbutton.h>
+#include <qgroupbox.h>
+#include <qbuttongroup.h>
 #include <qradiobutton.h>
 #include <qlayout.h>
 #include <qtooltip.h>
 #include <qwhatsthis.h>
 
-/* 
- *  Constructs a EntityGUI_Skeleton_QTD which is a child of 'parent', with the 
+/*
+ *  Constructs a EntityGUI_Skeleton_QTD as a child of 'parent', with the
  *  name 'name' and widget flags set to 'f'.
  *
  *  The dialog will by default be modeless, unless you set 'modal' to
  *  TRUE to construct a modal dialog.
  */
-EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
+EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
     : QDialog( parent, name, modal, fl )
 {
     if ( !name )
        setName( "EntityGUI_Skeleton_QTD" );
-    resize( 317, 276 ); 
     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
-    setCaption( trUtf8( "EntityGUI_Skeleton_QTD" ) );
     EntityGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "EntityGUI_Skeleton_QTDLayout"); 
 
     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
 
     GroupVal = new QGroupBox( this, "GroupVal" );
     GroupVal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupVal->sizePolicy().hasHeightForWidth() ) );
-    GroupVal->setTitle( trUtf8( "" ) );
 
     Layout1->addWidget( GroupVal, 2, 0 );
 
     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
-    GroupConstructors->setTitle( trUtf8( "Element Type" ) );
     GroupConstructors->setColumnLayout(0, Qt::Vertical );
     GroupConstructors->layout()->setSpacing( 6 );
     GroupConstructors->layout()->setMargin( 11 );
@@ -73,11 +51,9 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
 
     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
-    RadioButton1->setText( trUtf8( "Segment" ) );
     Layout2->addWidget( RadioButton1 );
 
     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
-    RadioButton2->setText( trUtf8( "Arc" ) );
     Layout2->addWidget( RadioButton2 );
 
     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
@@ -86,7 +62,6 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
 
     GroupDest = new QGroupBox( this, "GroupDest" );
     GroupDest->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest->sizePolicy().hasHeightForWidth() ) );
-    GroupDest->setTitle( trUtf8( "Destination" ) );
     GroupDest->setColumnLayout(0, Qt::Vertical );
     GroupDest->layout()->setSpacing( 6 );
     GroupDest->layout()->setMargin( 11 );
@@ -97,7 +72,6 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
 
     GroupDest1 = new QButtonGroup( GroupDest, "GroupDest1" );
     GroupDest1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest1->sizePolicy().hasHeightForWidth() ) );
-    GroupDest1->setTitle( trUtf8( "Type" ) );
     GroupDest1->setColumnLayout(0, Qt::Vertical );
     GroupDest1->layout()->setSpacing( 6 );
     GroupDest1->layout()->setMargin( 11 );
@@ -107,12 +81,10 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
 
     RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
-    RB_Dest2->setText( trUtf8( "Direction" ) );
 
     Layout4->addWidget( RB_Dest2, 0, 1 );
 
     RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
-    RB_Dest1->setText( trUtf8( "Point" ) );
 
     Layout4->addWidget( RB_Dest1, 0, 0 );
 
@@ -122,7 +94,6 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
 
     GroupDest2 = new QButtonGroup( GroupDest, "GroupDest2" );
     GroupDest2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest2->sizePolicy().hasHeightForWidth() ) );
-    GroupDest2->setTitle( trUtf8( "" ) );
     GroupDest2->setColumnLayout(0, Qt::Vertical );
     GroupDest2->layout()->setSpacing( 6 );
     GroupDest2->layout()->setMargin( 11 );
@@ -133,7 +104,6 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
 
     GroupDest3 = new QButtonGroup( GroupDest, "GroupDest3" );
     GroupDest3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest3->sizePolicy().hasHeightForWidth() ) );
-    GroupDest3->setTitle( trUtf8( "" ) );
     GroupDest3->setColumnLayout(0, Qt::Vertical );
     GroupDest3->layout()->setSpacing( 6 );
     GroupDest3->layout()->setMargin( 11 );
@@ -148,7 +118,6 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
 
     GroupButtons = new QGroupBox( this, "GroupButtons" );
     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
-    GroupButtons->setTitle( trUtf8( "" ) );
     GroupButtons->setColumnLayout(0, Qt::Vertical );
     GroupButtons->layout()->setSpacing( 6 );
     GroupButtons->layout()->setMargin( 11 );
@@ -158,23 +127,26 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
 
     buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
-    buttonEnd->setText( trUtf8( "End Sketch" ) );
     Layout3->addWidget( buttonEnd );
 
     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
-    buttonClose->setText( trUtf8( "Close Sketch" ) );
     Layout3->addWidget( buttonClose );
-    QSpacerItem* spacer = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
-    Layout3->addItem( spacer );
+    Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+    Layout3->addItem( Spacer1 );
 
     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
-    buttonCancel->setText( trUtf8( "&Cancel" ) );
     Layout3->addWidget( buttonCancel );
+
+    buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+    Layout3->addWidget( buttonHelp );
     GroupButtonsLayout->addLayout( Layout3 );
 
     Layout1->addWidget( GroupButtons, 3, 0 );
 
     EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
+    languageChange();
+    resize( QSize(317, 276).expandedTo(minimumSizeHint()) );
+    clearWState( WState_Polished );
 
     // tab order
     setTabOrder( RadioButton1, RadioButton2 );
@@ -185,7 +157,7 @@ EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* na
     setTabOrder( buttonClose, buttonCancel );
 }
 
-/*  
+/*
  *  Destroys the object and frees any allocated resources
  */
 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
@@ -193,3 +165,27 @@ EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
     // no need to delete child widgets, Qt does it all for us
 }
 
+/*
+ *  Sets the strings of the subwidgets using the current
+ *  language.
+ */
+void EntityGUI_Skeleton_QTD::languageChange()
+{
+    setCaption( tr( "EntityGUI_Skeleton_QTD" ) );
+    GroupVal->setTitle( QString::null );
+    GroupConstructors->setTitle( tr( "Element Type" ) );
+    RadioButton1->setText( tr( "Segment" ) );
+    RadioButton2->setText( tr( "Arc" ) );
+    GroupDest->setTitle( tr( "Destination" ) );
+    GroupDest1->setTitle( tr( "Type" ) );
+    RB_Dest2->setText( tr( "Direction" ) );
+    RB_Dest1->setText( tr( "Point" ) );
+    GroupDest2->setTitle( QString::null );
+    GroupDest3->setTitle( QString::null );
+    GroupButtons->setTitle( QString::null );
+    buttonEnd->setText( tr( "End Sketch" ) );
+    buttonClose->setText( tr( "Close Sketch" ) );
+    buttonCancel->setText( tr( "&Cancel" ) );
+    buttonHelp->setText( tr( "&Help" ) );
+}
+
index df965cddce3953f46195d5a7fecb90c5932b325a..149f7b32f34a80e22d882892f65cc63b2e2746b6 100644 (file)
@@ -1,45 +1,29 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
 /****************************************************************************
 ** Form interface generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
 **
-** Created: ven déc 12 11:17:07 2003
-**      by:  The User Interface Compiler (uic)
+** Created: Fri Mar 17 15:47:13 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #ifndef ENTITYGUI_SKELETON_QTD_H
 #define ENTITYGUI_SKELETON_QTD_H
 
 #include <qvariant.h>
 #include <qdialog.h>
-class QVBoxLayout; 
-class QHBoxLayout; 
-class QGridLayout; 
-class QButtonGroup;
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class QSpacerItem;
 class QGroupBox;
-class QPushButton;
+class QButtonGroup;
 class QRadioButton;
+class QPushButton;
 
 class EntityGUI_Skeleton_QTD : public QDialog
-{ 
+{
     Q_OBJECT
 
 public:
@@ -60,7 +44,7 @@ public:
     QPushButton* buttonEnd;
     QPushButton* buttonClose;
     QPushButton* buttonCancel;
-
+    QPushButton* buttonHelp;
 
 protected:
     QGridLayout* EntityGUI_Skeleton_QTDLayout;
@@ -75,6 +59,11 @@ protected:
     QGridLayout* GroupDest3Layout;
     QHBoxLayout* GroupButtonsLayout;
     QHBoxLayout* Layout3;
+    QSpacerItem* Spacer1;
+
+protected slots:
+    virtual void languageChange();
+
 };
 
 #endif // ENTITYGUI_SKELETON_QTD_H
index 0e6a141d5cfb20b14b1130b92308a197bc840816..db33fa8d872219b4833b5cf6731c37438660bedb 100644 (file)
@@ -73,6 +73,7 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent,
   buttonCancel->setText(tr("GEOM_BUT_CANCEL"));
   buttonEnd->setText(tr("GEOM_BUT_END_SKETCH"));
   buttonClose->setText(tr("GEOM_BUT_CLOSE_SKETCH"));
+  buttonHelp->setText(tr("GEOM_BUT_HELP"));
 
   GroupVal->close(TRUE);        
   GroupDest2->close(TRUE);
@@ -160,6 +161,7 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent,
   connect(buttonEnd, SIGNAL(clicked()), this, SLOT(ClickOnEnd()));
   connect(buttonClose, SIGNAL(clicked()), this, SLOT(ClickOnEnd()));
   connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
+  connect(buttonHelp, SIGNAL( clicked() ), this, SLOT( ClickOnHelp()));
 
   connect(Group1Sel->buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
   connect(Group1Sel->buttonUndo, SIGNAL(clicked()), this, SLOT(ClickOnUndo()));
@@ -210,7 +212,7 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent,
 
   connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
   connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
+  
   Init();
 }
 
@@ -244,6 +246,8 @@ void EntityGUI_SketcherDlg::Init()
   myLastX2 = 0.0;
   myLastY2 = 0.0;
 
+  myHelpFileName = "sketcher.htm";
+
   /* Get setting of step value from file configuration */
   double step = SUIT_Session::session()->resourceMgr()->doubleValue( "Geometry", "SettingsGeomStep", 100.0 );
 
@@ -687,6 +691,22 @@ bool EntityGUI_SketcherDlg::ClickOnApply()
   return true;
 }
 
+//=================================================================================
+// function : ClickOnHelp()
+// purpose  :
+//=================================================================================
+void EntityGUI_SketcherDlg::ClickOnHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app) 
+    app->onHelpContextModule(myGeometryGUI ? app->moduleName(myGeometryGUI->moduleName()) : QString(""), myHelpFileName);
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
+
 //=================================================================================
 // function : ClickOnUndo()
 // purpose  :
@@ -1403,4 +1423,3 @@ bool EntityGUI_SketcherDlg::createShapes( GEOM::GEOM_Object_ptr theObject,
 
 
 
-
index 2546a5fe2b182b0c9c663b85983f994b64cc54a4..c9702e5b1c155ba0ed33c9b59284fddab3e36aa1 100644 (file)
@@ -112,6 +112,8 @@ private :
 
     GeometryGUI*  myGeometryGUI;
 
+    QString myHelpFileName;
+
     enum SketchState {FIRST_POINT, NEXT_POINT};
 
     enum SketchType {PT_ABS, PT_RELATIVE, PT_SEL,
@@ -135,6 +137,7 @@ private slots:
     bool ClickOnApply();
     void ClickOnUndo();
     void ClickOnRedo();
+    void ClickOnHelp();
     void LineEditReturnPressed();
     void SelectionIntoArgument();
     void SetEditCurrentArgument();
@@ -146,7 +149,7 @@ private slots:
     void Dir1Clicked(int constructorId);
     void Dir2Clicked(int constructorId);
     void ValueChangedInSpinBox(double newValue);
-
+    
 };
 
 #endif // ENTITYGUI_SKETCHERDLG_H
index 27c0b6c873f472daea543c1b1b4c76511c0e0647..73efe51f129b5eb329d24534ff5aac8b6ae6bb13 100644 (file)
@@ -77,6 +77,8 @@ EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name,
   Layout1->addWidget(GroupPoints, 1, 0);
   /***************************************************************/
 
+  setHelpFileName("explode.htm");
+
   Init();
 }
 
index 1a27ca1071894cd6a40727d84e8b27f909b780ae..c257a8086550a369caca1dabd8a24e64b50abc51 100644 (file)
                                         <string>&amp;Cancel</string>
                                     </property>
                                 </widget>
+                               <widget class="QPushButton">
+                                    <property name="name">
+                                        <cstring>buttonHelp</cstring>
+                                    </property>
+                                    <property name="text">
+                                        <string>&amp;Help</string>
+                                    </property>
+                                </widget>
                             </hbox>
                         </widget>
                     </hbox>
index a430c4c4b1a2ebe4ec30038c4952ebd33be68da2..f09cc6acc1310e177b67caa7e005f31bae1d78e2 100755 (executable)
@@ -1,22 +1,22 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
+# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# 
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either 
+# version 2.1 of the License.
+# 
+# This library is distributed in the hope that it will be useful
+# but WITHOUT ANY WARRANTY; without even the implied warranty of 
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public  
+# License along with this library; if not, write to the Free Software 
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/
+#
 #!/bin/sh
 
 uic -o EntityGUI_Skeleton_QTD.h EntityGUI_Skeleton_QTD.ui
index 57b32e089e9d979e3fab4003a3f0fe17de36f904..e38b6846fc2e75cef14aeda3e25856e81ab56297 100644 (file)
@@ -32,6 +32,7 @@
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
+#include "SUIT_MessageBox.h"
 
 #include <qpushbutton.h>
 
@@ -54,6 +55,7 @@ GEOMBase_Skeleton::GEOMBase_Skeleton(QWidget* parent, const char* name, bool mod
   buttonCancel->setText(tr("GEOM_BUT_CLOSE"));
   buttonOk->setText(tr("GEOM_BUT_OK"));
   buttonApply->setText(tr("GEOM_BUT_APPLY"));
+  buttonHelp->setText(tr("GEOM_BUT_HELP"));
 
   GroupMedium->close(TRUE);
   resize(0, 0);
@@ -95,6 +97,9 @@ void GEOMBase_Skeleton::Init()
     connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
     connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
   }
+
+  // connect help button on a private slot that displays help information
+  connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( ClickOnHelp() ) );
   
   /* Move widget on the botton right corner of main widget */
 //   int x, y;
@@ -213,3 +218,28 @@ int GEOMBase_Skeleton::getConstructorId() const
     return GroupConstructors->id( GroupConstructors->selected() );
   return -1;
 }
+
+//=================================================================================
+// function : ClickOnHelp()
+// purpose  :
+//=================================================================================
+void GEOMBase_Skeleton::ClickOnHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app) 
+    app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
+//=================================================================================
+//  function : setHelpFileName()
+//  purpose  : set name for help file html
+//=================================================================================
+
+void GEOMBase_Skeleton::setHelpFileName(const QString& theName)
+{
+    myHelpFileName = theName;
+}
index 1d3144cc389a6f79fc24243a99c7a7484f082b38..8163822e4c3a6a61e2f536d70c915ec7aad924f7 100644 (file)
@@ -71,16 +71,20 @@ protected:
     void initName( const char* thePrefix = 0 ); // initialize "Name" field with a string "thePrefix_X" (Vertex_3)
     virtual const char* getNewObjectName() const; // returns contents of "Name" field
     int getConstructorId() const; // returns id of a selected "constructor" radio button or '-1' in case of error
+    
+    void setHelpFileName( const QString& );
 
     QLineEdit* myEditCurrentArgument;   /* Current LineEdit */
     GEOMBase* myGeomBase; // SAN -- TO BE REMOVED !!!
     GeometryGUI* myGeomGUI;             /* reference GEOM GUI */
+    QString myHelpFileName;
 
 protected slots:
     void ClickOnCancel();
     void LineEditReturnPressed();
     void DeactivateActiveDialog();
     void ActivateThisDialog();
+    void ClickOnHelp();
 
 };
 
index 0a661489480e26f8ecfb97c8c60a49122210533a..9c4e5040c507cf73e601f8aa21ddd7d18e4420e7 100644 (file)
 
 
 #include "GEOMToolsGUI_NbIsosDlg.h"
+#include "GeometryGUI.h"
+#include <SalomeApp_Application.h>
+#include <SUIT_MessageBox.h>
+#include <SUIT_Session.h>
 #include <SUIT_Tools.h>
 
 #include <qlabel.h>
@@ -104,22 +108,28 @@ GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent )
   QPushButton* buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
   buttonCancel->setText( tr( "GEOM_BUT_CANCEL" ) ) ;
   buttonCancel->setAutoDefault( TRUE );
-  GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+  GroupButtonsLayout->addWidget( buttonCancel, 0, 1 );
+
+  QPushButton* buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+  buttonHelp->setText( tr( "GEOM_BUT_HELP" ) ) ;
+  buttonHelp->setAutoDefault( TRUE );
+  GroupButtonsLayout->addWidget( buttonHelp, 0, 2 );
   /***************************************************************/
   
   MyDialogLayout->addWidget(GroupC1, 0, 0);
   MyDialogLayout->addWidget(GroupButtons, 1, 0);
+
+  myHelpFileName = "isos.htm";
   
   // signals and slots connections
   connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
   connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+  connect(buttonHelp, SIGNAL(clicked()), this, SLOT(ClickOnHelp()));
   
   /* Move widget on the botton right corner of main widget */
   SUIT_Tools::centerWidget(this, parent);
 }
 
-
 //=================================================================================
 // function : ~GEOMToolsGUI_NbIsosDlg()
 // purpose  : Destroys the object and frees any allocated resources
@@ -149,3 +159,20 @@ void GEOMToolsGUI_NbIsosDlg::setV( const int v )
   SpinBoxV->setValue( v );
 }
 
+//=================================================================================
+// function : ClickOnHelp()
+// purpose  :
+//=================================================================================
+void GEOMToolsGUI_NbIsosDlg::ClickOnHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app) {
+    GeometryGUI* aGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
+    app->onHelpContextModule(aGeomGUI ? app->moduleName(aGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  }
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
index 943dbdcde2ffd81272244202b331c0275ba0288a..257ca4c3e6029ab2698f2669a21bd3b6628457a4 100644 (file)
@@ -51,9 +51,13 @@ public:
     void      setU( const int );
     void      setV( const int );
 
+private slots:
+    void ClickOnHelp();
+
 private:
     QSpinBox* SpinBoxU;
     QSpinBox* SpinBoxV;
+    QString   myHelpFileName;
 
 };
 
index 0984dd88cf78bbacadc8182f46485cfa020df796..174601094e16315bf51ad85e4d34b63c6df29812 100644 (file)
@@ -29,6 +29,7 @@
 #include "GEOMToolsGUI_TransparencyDlg.h"
 #include "GEOMBase.h"
 #include "GEOM_AISShape.hxx"
+#include "GeometryGUI.h"
 
 #include "SALOME_ListIO.hxx"
 #include "SALOME_ListIteratorOfListIO.hxx"
@@ -43,6 +44,7 @@
 #include <SUIT_ViewManager.h>
 #include <SUIT_Application.h>
 #include <SUIT_Desktop.h>
+#include <SUIT_MessageBox.h>
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 #include <SUIT_OverrideCursor.h>
@@ -96,9 +98,15 @@ GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg( QWidget* parent )
   buttonOk->setText( tr( "GEOM_BUT_OK" ) );
   buttonOk->setAutoDefault( TRUE );
   buttonOk->setDefault( TRUE );
-  GroupButtonsLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 0 );
-  GroupButtonsLayout->addWidget( buttonOk, 0, 1 );
-  GroupButtonsLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 2 );
+
+  QPushButton* buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+  buttonHelp->setText( tr( "GEOM_BUT_HELP" ) );
+  buttonHelp->setAutoDefault( TRUE );
+  buttonHelp->setDefault( TRUE );
+  
+  GroupButtonsLayout->addWidget( buttonOk, 0, 0 );
+  GroupButtonsLayout->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1 );
+  GroupButtonsLayout->addWidget( buttonHelp, 0, 2 );
 
   /*************************************************************************/
   QGroupBox* GroupC1 = new QGroupBox( this, "GroupC1" );
@@ -137,8 +145,11 @@ GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg( QWidget* parent )
   //  mySlider->setValue( 5 ) ;
   ValueHasChanged(mySlider->value());
   
+  myHelpFileName = "transparency.htm";
+
   // signals and slots connections : after ValueHasChanged()
   connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
+  connect(buttonHelp, SIGNAL(clicked()), this, SLOT(ClickOnHelp()));
   connect(mySlider, SIGNAL(valueChanged(int)), this, SLOT(ValueHasChanged(int)));
 }
 
@@ -174,6 +185,23 @@ void GEOMToolsGUI_TransparencyDlg::ClickOnClose()
   return;
 }
 
+//=================================================================================
+// function : ClickOnHelp()
+// purpose  :
+//=================================================================================
+void GEOMToolsGUI_TransparencyDlg::ClickOnHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app) {
+    GeometryGUI* aGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
+    app->onHelpContextModule(aGeomGUI ? app->moduleName(aGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  }
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
 
 //=================================================================================
 // function : ValueHasChanged()
index a63b514b62d08244f95c1662889516eeaf867fdf..673a46f4a7b1e4c4dbdcee875c9bb1c7cc0adcbe 100644 (file)
@@ -53,10 +53,12 @@ public:
 private :
   bool      myFirstInit ;   /* Inform for the first init  */
   QSlider*  mySlider; 
+  QString   myHelpFileName;
 
 private slots: 
   void      ClickOnOk();
   void      ClickOnClose();
+  void      ClickOnHelp();
   void      ValueHasChanged( int ) ;
     
 };
index 5dde019e0e63818c870813ad99cb3598d6281880..990063dd5d600586e5063de36e631a6c1b67be52 100644 (file)
@@ -88,6 +88,8 @@ GenerationGUI_FillingDlg::GenerationGUI_FillingDlg(GeometryGUI* theGeometryGUI,
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("filling.htm");
+
   /* Initialisations */
   Init();
 }
index 5cf2f1458a4e82520bbf5898c8fe9fdd2e6b747f..6d93a34c54eeb3ad55d094381f82a4c6d9586d25 100644 (file)
@@ -81,6 +81,8 @@ GenerationGUI_PipeDlg::GenerationGUI_PipeDlg(QWidget* parent, const char* name,
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("pipe_creation.htm");
+
   /* Initialisations */
   Init();
 }
index bc3aa51dc45ad4ce5c11cf02573d85c174a98026..f48a3ca41e659a27f6b2adc13ce474036192f6d1 100644 (file)
@@ -79,6 +79,8 @@ GenerationGUI_PrismDlg::GenerationGUI_PrismDlg(GeometryGUI* theGeometryGUI, QWid
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("extrusion.htm");
+
   /* Initialisations */
   Init();
 }
index 14c0d011d64afa7977b48730c50c961bfd0b2ccd..f6a83f4321192b8e8a8040a48f7d16c4719e8db8 100644 (file)
@@ -81,6 +81,8 @@ GenerationGUI_RevolDlg::GenerationGUI_RevolDlg(GeometryGUI* theGeometryGUI, QWid
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("revolution.htm");
+
   /* Initialisations */
   Init();
 }
index 84f5db2209b3de82879a93202819439b6c0fdc37..dd0597ab7fc56fda2de5d90495558372f4641a65 100644 (file)
@@ -115,6 +115,8 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode,
   aMedLayout->addWidget( myAddBtn, 2, 3 );
   aMedLayout->addWidget( myRemBtn, 3, 3 );
 
+  setHelpFileName("working_with_groups.htm");
+
   Init();
 }
 
index b1e133cfc23fdbff9a49f6041ad21e07bad3167c..179f510479d898b2151c8dcd5e9c8a623b2ee264 100644 (file)
@@ -88,6 +88,8 @@ MeasureGUI_BndBoxDlg::MeasureGUI_BndBoxDlg( GeometryGUI* GUI, QWidget* parent )
   
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Bounding_box";
+
   /* Initialisation */
   Init();
 }
index 9191ebd3429e668d35a4a1752d8932c232f4eff3..0c89bb0aa079ef038b80cb0194d44999e8a4256d 100644 (file)
@@ -80,6 +80,8 @@ MeasureGUI_CenterMassDlg::MeasureGUI_CenterMassDlg( QWidget* parent )
   Layout1->addWidget( myGrp, 2, 0 );
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Center_gravity";
+
   /* Initialisation */
   Init();
 }
index 088c11ccde7c613596fda3b9437281b60aa39a39..c2ab2a8b81a2812b7ec56385d6295baf4d7deed3 100644 (file)
@@ -117,6 +117,9 @@ MeasureGUI_CheckCompoundOfBlocksDlg::MeasureGUI_CheckCompoundOfBlocksDlg( Geomet
   Layout1->addWidget( myGrp, 1, 0 );
   connect( myErrorsLBox, SIGNAL( selectionChanged() ), SLOT( onErrorsListSelectionChanged() ) );
   connect( mySubShapesLBox, SIGNAL( selectionChanged() ), SLOT( onSubShapesListSelectionChanged() ) );
+
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Check_comp_blocks";
+
   /* Initialisation */
   Init();
 }
index d63de1040322245cc1f4f007cff21c07a9382e7d..5416076902f3cb65617570495f894725165f68bf 100644 (file)
@@ -81,6 +81,8 @@ MeasureGUI_CheckShapeDlg::MeasureGUI_CheckShapeDlg( GeometryGUI* GUI, QWidget* p
 
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#check";
+
   /* Initialisation */
   Init();
 }
index 5762c0606e23d8e3dfa2f7293a3e2cb2eeba4c6a..c06d2b8a6892abf85431b2a8e78bfaeebae2e9c6 100644 (file)
@@ -92,6 +92,8 @@ MeasureGUI_DistanceDlg::MeasureGUI_DistanceDlg( GeometryGUI* GUI, QWidget* paren
 
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Min_distance";
+
   /* Initialisation */
   Init();
 }
index 2c36eacacb658d9aa7d30df9f40f8dec0a53b566..3f1ae07cd682a43e1753184aa155e18e0709c1b1 100644 (file)
@@ -96,6 +96,8 @@ MeasureGUI_InertiaDlg::MeasureGUI_InertiaDlg( GeometryGUI* GUI, QWidget* parent
   
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Inertia_axis";
+
   /* Initialisation */
   Init();
 }
index 75be01ef7673e711e70e1f17a4d8db9351ce89f8..c380c23355c546b9dbf0b1d88d7b7af955ecb325 100644 (file)
@@ -83,6 +83,8 @@ MeasureGUI_MaxToleranceDlg::MeasureGUI_MaxToleranceDlg( GeometryGUI* GUI, QWidge
   
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Tolerance";
+  
   /* Initialisation */
   Init();
 }
index 7db3bee11c663dd543cab985d80c07b633d5075a..34d08f3482c0de2dd35bc05d5f5ea96f68c407e4 100644 (file)
@@ -99,6 +99,8 @@ MeasureGUI_PointDlg::MeasureGUI_PointDlg( GeometryGUI* GUI, QWidget* parent )
 
   Layout1->addWidget( aGrp, 1, 0 );
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#PointCoord";
+
   Init();
 }
 
index 596cddd4f507a90ea5dbf3177ed95b5b8d159927..733892b09de94306fc26603a6cbd28c170b4c9cf 100644 (file)
@@ -83,6 +83,8 @@ MeasureGUI_PropertiesDlg::MeasureGUI_PropertiesDlg( GeometryGUI* GUI, QWidget* p
   
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Basic_properties";
+
   /* Initialisation */
   Init();
 }
index bbfdb0741488abd6199c8634ce3fa36b48a203ae..1b9e75d60d839d479dbf29005ec10b74900532c5 100644 (file)
@@ -34,6 +34,7 @@
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Tools.h"
+#include "SUIT_MessageBox.h"
 #include "SUIT_Session.h"
 #include "SUIT_OverrideCursor.h"
 
@@ -63,11 +64,13 @@ MeasureGUI_Skeleton::MeasureGUI_Skeleton( GeometryGUI*      GUI,
   mySelBtn = 0;
   mySelEdit = 0;
   myDisplayer = 0;
+  myHelpFileName = "";
   
   if ( !name )
     setName( "MeasureGUI_Skeleton" );
 
   buttonClose->setText( tr( "GEOM_BUT_CLOSE" ) );
+  buttonHelp->setText(tr("GEOM_BUT_HELP"));
 
   buttonClose->setAutoDefault( false );
 
@@ -100,6 +103,9 @@ void MeasureGUI_Skeleton::Init()
   
   connect( buttonClose, SIGNAL( clicked() ),
           this,         SLOT( ClickOnCancel() ) );
+
+  connect( buttonHelp,  SIGNAL( clicked() ), 
+          this,        SLOT( ClickOnHelp() ) );
   
   connect( myGeomGUI,   SIGNAL( SignalDeactivateActiveDialog() ),
            this,        SLOT  ( DeactivateActiveDialog() ) );
@@ -136,6 +142,21 @@ void MeasureGUI_Skeleton::ClickOnCancel()
   close();
 }
 
+//=================================================================================
+// function : ClickOnHelp()
+// purpose  :
+//=================================================================================
+void MeasureGUI_Skeleton::ClickOnHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app) 
+    app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
 
 //=================================================================================
 // function : LineEditReturnPressed()
index bcf601a1e61b385c8e96866b3cf27820925d4363..7c335648e533fcef67ee2be79eb2d2e47bf0db42 100644 (file)
@@ -52,6 +52,7 @@ public:
 protected slots:
 
     virtual void              ClickOnCancel();
+    virtual void              ClickOnHelp(); 
     virtual void              DeactivateActiveDialog();
     virtual void              ActivateThisDialog();
     virtual void              SelectionIntoArgument();
@@ -82,6 +83,8 @@ protected:
     
     GeometryGUI*              myGeomGUI;
     GEOM_Displayer*           myDisplayer;
+
+    QString                   myHelpFileName;
 };
 
 #endif // MEASUREGUI_SKELETON_H
index 343064b7e8c86d7c9b2c90b6b97382435b66f096..8b3ed9c68513856d10841105407eec05aa547912 100644 (file)
@@ -1,56 +1,36 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
 /****************************************************************************
 ** Form implementation generated from reading ui file 'MeasureGUI_Skeleton_QTD.ui'
 **
-** Created: lun oct 27 11:23:09 2003
-**      by:  The User Interface Compiler (uic)
+** Created: Tue Mar 21 10:10:08 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #include "MeasureGUI_Skeleton_QTD.h"
 
 #include <qvariant.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
 #include <qpushbutton.h>
+#include <qgroupbox.h>
+#include <qbuttongroup.h>
 #include <qradiobutton.h>
 #include <qlayout.h>
 #include <qtooltip.h>
 #include <qwhatsthis.h>
 
-/* 
- *  Constructs a MeasureGUI_Skeleton_QTD which is a child of 'parent', with the 
+/*
+ *  Constructs a MeasureGUI_Skeleton_QTD as a child of 'parent', with the
  *  name 'name' and widget flags set to 'f'.
  *
  *  The dialog will by default be modeless, unless you set 'modal' to
  *  TRUE to construct a modal dialog.
  */
-MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
+MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
     : QDialog( parent, name, modal, fl )
 {
     if ( !name )
        setName( "MeasureGUI_Skeleton_QTD" );
-    resize( 228, 266 ); 
     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
-    setCaption( trUtf8( "MeasureGUI_Skeleton_QTD" ) );
     setSizeGripEnabled( TRUE );
     MeasureGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "MeasureGUI_Skeleton_QTDLayout"); 
 
@@ -58,7 +38,6 @@ MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char*
 
     GroupButtons = new QGroupBox( this, "GroupButtons" );
     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
-    GroupButtons->setTitle( trUtf8( "" ) );
     GroupButtons->setColumnLayout(0, Qt::Vertical );
     GroupButtons->layout()->setSpacing( 6 );
     GroupButtons->layout()->setMargin( 11 );
@@ -66,15 +45,16 @@ MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char*
     GroupButtonsLayout->setAlignment( Qt::AlignTop );
 
     Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 
-    QSpacerItem* spacer = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
-    Layout3->addItem( spacer, 0, 2 );
-    QSpacerItem* spacer_2 = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
-    Layout3->addItem( spacer_2, 0, 0 );
+    Spacer1 = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
+    Layout3->addItem( Spacer1, 0, 1 );
 
     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
-    buttonClose->setText( trUtf8( "&Close" ) );
 
-    Layout3->addWidget( buttonClose, 0, 1 );
+    Layout3->addWidget( buttonClose, 0, 0 );
+
+    buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+
+    Layout3->addWidget( buttonHelp, 0, 2 );
 
     GroupButtonsLayout->addLayout( Layout3, 0, 0 );
 
@@ -82,7 +62,6 @@ MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char*
 
     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
-    GroupConstructors->setTitle( trUtf8( "" ) );
     GroupConstructors->setColumnLayout(0, Qt::Vertical );
     GroupConstructors->layout()->setSpacing( 6 );
     GroupConstructors->layout()->setMargin( 11 );
@@ -92,7 +71,6 @@ MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char*
     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
 
     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
-    RadioButton1->setText( trUtf8( "" ) );
     Layout2->addWidget( RadioButton1 );
 
     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
@@ -101,14 +79,16 @@ MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char*
 
     GroupMedium = new QGroupBox( this, "GroupMedium" );
     GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
-    GroupMedium->setTitle( trUtf8( "" ) );
 
     Layout1->addWidget( GroupMedium, 1, 0 );
 
     MeasureGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
+    languageChange();
+    resize( QSize(228, 266).expandedTo(minimumSizeHint()) );
+    clearWState( WState_Polished );
 }
 
-/*  
+/*
  *  Destroys the object and frees any allocated resources
  */
 MeasureGUI_Skeleton_QTD::~MeasureGUI_Skeleton_QTD()
@@ -116,3 +96,18 @@ MeasureGUI_Skeleton_QTD::~MeasureGUI_Skeleton_QTD()
     // no need to delete child widgets, Qt does it all for us
 }
 
+/*
+ *  Sets the strings of the subwidgets using the current
+ *  language.
+ */
+void MeasureGUI_Skeleton_QTD::languageChange()
+{
+    setCaption( tr( "MeasureGUI_Skeleton_QTD" ) );
+    GroupButtons->setTitle( QString::null );
+    buttonClose->setText( tr( "&Close" ) );
+    buttonHelp->setText( tr( "&Help" ) );
+    GroupConstructors->setTitle( QString::null );
+    RadioButton1->setText( QString::null );
+    GroupMedium->setTitle( QString::null );
+}
+
index 90145bfaa0326ebf0c647db3845181903d8c98a2..3aa608a4d52c87e6b064f0148791a6244700848c 100644 (file)
@@ -1,45 +1,29 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
 /****************************************************************************
 ** Form interface generated from reading ui file 'MeasureGUI_Skeleton_QTD.ui'
 **
-** Created: lun oct 27 11:23:09 2003
-**      by:  The User Interface Compiler (uic)
+** Created: Tue Mar 21 10:10:08 2006
+**      by: The User Interface Compiler ($Id$)
 **
 ** WARNING! All changes made in this file will be lost!
 ****************************************************************************/
+
 #ifndef MEASUREGUI_SKELETON_QTD_H
 #define MEASUREGUI_SKELETON_QTD_H
 
 #include <qvariant.h>
 #include <qdialog.h>
-class QVBoxLayout; 
-class QHBoxLayout; 
-class QGridLayout; 
-class QButtonGroup;
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class QSpacerItem;
 class QGroupBox;
 class QPushButton;
+class QButtonGroup;
 class QRadioButton;
 
 class MeasureGUI_Skeleton_QTD : public QDialog
-{ 
+{
     Q_OBJECT
 
 public:
@@ -48,18 +32,23 @@ public:
 
     QGroupBox* GroupButtons;
     QPushButton* buttonClose;
+    QPushButton* buttonHelp;
     QButtonGroup* GroupConstructors;
     QRadioButton* RadioButton1;
     QGroupBox* GroupMedium;
 
-
 protected:
     QGridLayout* MeasureGUI_Skeleton_QTDLayout;
     QGridLayout* Layout1;
     QGridLayout* GroupButtonsLayout;
     QGridLayout* Layout3;
+    QSpacerItem* Spacer1;
     QGridLayout* GroupConstructorsLayout;
     QHBoxLayout* Layout2;
+
+protected slots:
+    virtual void languageChange();
+
 };
 
 #endif // MEASUREGUI_SKELETON_QTD_H
index 7bd5a6a810155dfabc18ed31d57bfb01e9d2ebb1..36643d6d3085b96f7e930074a6c0571be0ba829c 100644 (file)
@@ -84,6 +84,8 @@ MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent )
 
   /***************************************************************/
 
+  myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Whatis";
+
   /* Initialisation */
   Init();
 }
index d759fb4011042effa52439d4ddae8b6f84d05f0e..07f94c80d9a417af775c64aa8824d44b560da4e3 100644 (file)
                                 <property name="spacing">
                                     <number>6</number>
                                 </property>
-                                <spacer row="0" column="2">
-                                    <property name="name">
-                                        <cstring>Spacer2</cstring>
-                                    </property>
-                                    <property name="orientation">
-                                        <enum>Horizontal</enum>
-                                    </property>
-                                    <property name="sizeType">
-                                        <enum>Expanding</enum>
-                                    </property>
-                                    <property name="sizeHint">
-                                        <size>
-                                            <width>120</width>
-                                            <height>0</height>
-                                        </size>
-                                    </property>
-                                </spacer>
-                                <spacer row="0" column="0">
+                                <spacer row="0" column="1">
                                     <property name="name">
                                         <cstring>Spacer1</cstring>
                                     </property>
                                         </size>
                                     </property>
                                 </spacer>
-                                <widget class="QPushButton" row="0" column="1">
+                                <widget class="QPushButton" row="0" column="0">
                                     <property name="name">
                                         <cstring>buttonClose</cstring>
                                     </property>
                                         <string>&amp;Close</string>
                                     </property>
                                 </widget>
+                               <widget class="QPushButton" row="0" column="2">
+                                    <property name="name">
+                                        <cstring>buttonHelp</cstring>
+                                    </property>
+                                    <property name="text">
+                                        <string>&amp;Help</string>
+                                    </property>
+                                </widget>
                             </grid>
                         </widget>
                     </grid>
index 07db6a8f4352b756327852d7f8e20dbc5a0ec3c1..04652a849b85769efb620fccb9d8d792fa473b02 100755 (executable)
@@ -1,22 +1,22 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/
-//
+# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# 
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either 
+# version 2.1 of the License.
+# 
+# This library is distributed in the hope that it will be useful 
+# but WITHOUT ANY WARRANTY; without even the implied warranty of 
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public  
+# License along with this library; if not, write to the Free Software 
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/
+#
 #!/bin/sh
 
 #uic -o MeasureGUI_Skeleton_QTD.h MeasureGUI_Skeleton_QTD.ui
index 0d024e7f36e7a4cadb497e88709aa3cae7599b22..292dbd64da79b70f98c1489d6ad5bb2deefdee00 100644 (file)
@@ -70,6 +70,8 @@ OperationGUI_ArchimedeDlg::OperationGUI_ArchimedeDlg( GeometryGUI* theGeometryGU
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("archimede.htm");
+
   /* Initialisations */
   Init();
 }
index 79678b359ec0c39155681a521a1c8190a4cc2979..41849dcd48b887db7d95d1a46f7601460238c969 100644 (file)
@@ -149,6 +149,8 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg( QWidget* parent )
   for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
     anIter.data()->RangeStepAndValidator( 0.001, 999.999, SpecificStep, 3 );
 
+  setHelpFileName("chamfer.htm");
+
   /* Initialisations */
   Init();
 }
index 191eb88c2b10fb3fc0ac59122e4b1767d880036b..a52f04d3bea152f0cba697534395d2a152a0626b 100644 (file)
@@ -122,6 +122,8 @@ OperationGUI_ClippingDlg::OperationGUI_ClippingDlg( QWidget* parent, const char*
   //  connect( aGeomGUI, SIGNAL ( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) ) ;
   //connect( aGeomGUI, SIGNAL ( SignalCloseAllDialogs() ), this, SLOT( ClickOnCancel() ) ) ;
 
+  setHelpFileName("none.htm");
+
   Init();
 }
 
index 583aad057650338ec8ad25e26021d7fc6a4582bf..52182e28d77864852c489d922d829461c92017e3 100644 (file)
@@ -108,6 +108,8 @@ OperationGUI_FilletDlg::OperationGUI_FilletDlg( QWidget* parent )
   Group2->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
   Group3->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
 
+  setHelpFileName("fillet.htm");
+
   /* Initialisations */
   Init();
 }
index b3055d38d48a017da19b3fd662e38135e84b716f..f4528605355fe94af4a2fd5baebbd82f3c7f2524 100644 (file)
@@ -77,6 +77,8 @@ OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (QWidget* parent, const char*
 
   Layout1->addWidget(GroupPoints, 1, 0);
   /***************************************************************/
+
+  setHelpFileName("none.htm"); 
  
   Init();
 }
index 9315616f4535d58c74371f206d897f015f47d058..fc2281467694e1d0d18440542a56f8dfd1da5288 100644 (file)
@@ -86,6 +86,8 @@ OperationGUI_PartitionDlg::OperationGUI_PartitionDlg(QWidget* parent, const char
 
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
+
+  setHelpFileName("partition.htm"); 
  
   Init();
 }
index ea44ad1bc27404e1f0bf74fce46d876736522394..93695ad2742c74b0005fbb2b1b3069c3b7718be9 100644 (file)
@@ -80,6 +80,8 @@ PrimitiveGUI_BoxDlg::PrimitiveGUI_BoxDlg(GeometryGUI* theGeometryGUI, QWidget* p
   Layout1->addWidget(GroupPoints, 2, 0);
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
+
+  setHelpFileName("box.htm");
   
   Init();
 }
index 45db91182ccd5e630dce1bf9bb14d16561dea0e3..8b2d5ac531cc581f1feb1d4e7efe4ecba00fb16a 100644 (file)
@@ -83,6 +83,8 @@ PrimitiveGUI_ConeDlg::PrimitiveGUI_ConeDlg(GeometryGUI* theGeometryGUI, QWidget*
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName( "cone.htm" );
+  
   Init();
 }
 
index 19aaff74d751166fb22b079d92cb38eeb3453497..44dda14d409a35816df7453ad356daabc4745347 100644 (file)
@@ -81,6 +81,8 @@ PrimitiveGUI_CylinderDlg::PrimitiveGUI_CylinderDlg(GeometryGUI* theGeometryGUI,
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("cylinder.htm");
+
   Init();
 }
 
index 49bca1dc29108886072c59c8ec622d78c3e1011e..49785f86f90fe8fcb731ab3a7fb6042ae9bdd9e0 100644 (file)
@@ -77,6 +77,8 @@ PrimitiveGUI_SphereDlg::PrimitiveGUI_SphereDlg(GeometryGUI* theGeometryGUI, QWid
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("sphere.htm");
+
   Init();
 }
 
index 05e6c7b6c4aeef236c24e38b586fe05b5f01e859..0e41fb4c1ccf3a40d760bf716ebaff61e49780fa 100644 (file)
@@ -80,6 +80,8 @@ PrimitiveGUI_TorusDlg::PrimitiveGUI_TorusDlg(GeometryGUI* theGeometryGUI, QWidge
   Layout1->addWidget(GroupPoints, 2, 0);
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
+
+  setHelpFileName("turus.htm");  
   
   Init();
 }
index e5bb3a708a9ef34b48e7af6522368ef7acf01fd3..8855ba7cbf23be6d5cfe87ae8be5ee45bcfa9a16 100644 (file)
@@ -101,6 +101,8 @@ RepairGUI_CloseContourDlg::RepairGUI_CloseContourDlg(QWidget* parent, const char
   GroupPoints->getGroupBoxLayout()->addMultiCellWidget(myIsVertexGr, 2, 2, 0, 2);
   /***************************************************************/
 
+  setHelpFileName("close_contour.htm");
+
   Init();
 }
 
index 969b7162a38349640dac5a6ebb5786bd727ca621..1a0cb04cb9af16453bceba78072d0c4e64bb9fa6 100644 (file)
@@ -92,6 +92,8 @@ RepairGUI_DivideEdgeDlg::RepairGUI_DivideEdgeDlg (GeometryGUI* theGeometryGUI, Q
   GroupPoints->getGroupBoxLayout()->addLayout( aLay, 2, 0 );
   /***************************************************************/
 
+  setHelpFileName("add_point_on_edge.htm");
+
   Init();
 }
 
index 896c0f0d4a2fac3918c63aa5de7fb818857da1ee..f9a2866a8c90a5423d4cd2ab5932ebdb95ed4905 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
+#include "SUIT_MessageBox.h"
 #include "SUIT_Session.h"
 
 #include <TColStd_MapOfInteger.hxx>
@@ -84,10 +85,11 @@ RepairGUI_FreeBoundDlg::RepairGUI_FreeBoundDlg( GeometryGUI* theGUI, QWidget* th
   QFrame* aFrame = new QFrame( this );
   aFrame->setFrameStyle( QFrame::Box | QFrame::Sunken );
   QPushButton* aCloseBtn = new QPushButton( tr( "GEOM_BUT_CLOSE" ), aFrame );
+  QPushButton* aHelpBtn = new QPushButton( tr( "GEOM_BUT_HELP" ), aFrame );
   QHBoxLayout* aBtnLay = new QHBoxLayout( aFrame, MARGIN, SPACING );
-  aBtnLay->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
   aBtnLay->addWidget( aCloseBtn );
   aBtnLay->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
+  aBtnLay->addWidget( aHelpBtn );
 
   QVBoxLayout* aLay = new QVBoxLayout( this );
   aLay->setSpacing( SPACING );
@@ -95,7 +97,10 @@ RepairGUI_FreeBoundDlg::RepairGUI_FreeBoundDlg( GeometryGUI* theGUI, QWidget* th
   aLay->addWidget( aMainGrp );
   aLay->addWidget( aFrame );
   
+  myHelpFileName = "check_free_boundaries.htm";
+
   connect( aCloseBtn, SIGNAL( clicked() ), SLOT( onClose() ) );
+  connect( aHelpBtn, SIGNAL( clicked() ), SLOT( onHelp() ) );
 
   Init();
 }
@@ -121,6 +126,22 @@ void RepairGUI_FreeBoundDlg::onClose()
   erasePreview();
 }
 
+//=================================================================================
+// function : onHelp()
+// purpose  :
+//=================================================================================
+void RepairGUI_FreeBoundDlg::onHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app)
+    app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
+
 //=================================================================================
 // function : onDeactivate
 // purpose  : Deactivate this dialog
index e317cc3a73af38d75ac54010fa00cbf14ec5f561..b52c4f86a1dc6e6f70ff571fcb8116e8a4014ffa 100644 (file)
@@ -53,6 +53,7 @@ public:
 private slots:
 
   void                                  onClose();
+  void                                  onHelp(); 
   void                                  onDeactivate();
   void                                  onActivate();
   void                                  onSelectionDone();
@@ -77,6 +78,7 @@ private:
   GeometryGUI*                          myGeomGUI;
   int                                   myNbClosed;
   int                                   myNbOpen;
+  QString                               myHelpFileName;
 };
 
 #endif // DIALOGBOX_WHATIS_H
index 3143b7feca8b769880780a6b2f3b8e38f132aa47..2bf49ed400bba2723b72a9079fd0577044430c0a 100644 (file)
@@ -32,6 +32,7 @@
 #include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Tools.h"
 
+#include "SUIT_MessageBox.h"
 #include "SUIT_Session.h"
 #include "SUIT_OverrideCursor.h"
 
@@ -97,10 +98,11 @@ RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg(GeometryGUI* GUI, QWidget* parent
   QFrame* aFrame = new QFrame( this );
   aFrame->setFrameStyle( QFrame::Box | QFrame::Sunken );
   QPushButton* aCloseBtn = new QPushButton( tr( "GEOM_BUT_CLOSE" ), aFrame );
+  QPushButton* aHelpBtn = new QPushButton( tr( "GEOM_BUT_HELP" ), aFrame );
   QHBoxLayout* aBtnLay = new QHBoxLayout( aFrame, MARGIN, SPACING );
-  aBtnLay->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
   aBtnLay->addWidget( aCloseBtn );
   aBtnLay->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
+  aBtnLay->addWidget( aHelpBtn );
 
   QVBoxLayout* aLay = new QVBoxLayout( this );
   aLay->setSpacing( SPACING );
@@ -109,7 +111,10 @@ RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg(GeometryGUI* GUI, QWidget* parent
   aLay->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
   aLay->addWidget( aFrame );
   
+  myHelpFileName = "check_free_faces.htm";
+
   connect( aCloseBtn, SIGNAL( clicked() ), SLOT( onClose() ) );
+  connect( aHelpBtn, SIGNAL( clicked() ), SLOT( onHelp() ) );
   connect( mySelBtn,    SIGNAL( clicked() ),
            this,        SLOT  ( onSetEditCurrentArgument() ) );
   /***************************************************************/
@@ -140,6 +145,22 @@ void RepairGUI_FreeFacesDlg::onClose()
   erasePreview();
 }
 
+//=================================================================================
+// function : onHelp()
+// purpose  :
+//=================================================================================
+void RepairGUI_FreeFacesDlg::onHelp()
+{
+  SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+  if (app)
+    app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
+  else {
+    SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("BUT_OK"));
+  }
+}
+
 //=================================================================================
 // function : onDeactivate
 // purpose  : Deactivate this dialog
index f42589b24d9291e3d87a2b78faa87b147124109c..9376cc9a9b77186f6ae8c53368901e586063efb2 100644 (file)
@@ -67,6 +67,7 @@ private :
 private slots:
 
   void                                  onClose();
+  void                                  onHelp(); 
   void                                  onDeactivate();
   void                                  onActivate();
   void                                  onSelectionDone();
@@ -79,6 +80,7 @@ private :
     QPushButton*           mySelBtn;
     QLineEdit*             myEdit;
     GeometryGUI*           myGeomGUI;
+    QString                myHelpFileName;
 
 };
 
index 789a0a70468ce33756c6e51e04fc4a43868bb026..35aa7d6e25972b5e3b67e15636ffcdb95295680e 100644 (file)
@@ -92,6 +92,8 @@ RepairGUI_GlueDlg::RepairGUI_GlueDlg(QWidget* parent, const char* name, bool mod
   GroupPoints->getGroupBoxLayout()->addLayout( aLay, 3, 0 );
   /***************************************************************/
 
+  setHelpFileName("glue_faces.htm");
+
   Init();
 }
 
index 6dc3188eb0eb3e5b43216a794ab7bd8d0a3bba6e..6ef473a8ab66d554a37a282a12b9c6cccbf57557 100644 (file)
@@ -103,6 +103,8 @@ RepairGUI_RemoveHolesDlg::RepairGUI_RemoveHolesDlg(QWidget* parent, const char*
   GroupPoints->getGroupBoxLayout()->addLayout( aDetectLay, 3, 0 );
   /***************************************************************/
 
+  setHelpFileName("suppress_holes.htm");
+
   Init();
 }
 
index 91822ded94d17c1325e22a44842fb139682653a4..d053ce9af5a7c994b8fbad61f373f8945d7efeb2 100644 (file)
@@ -94,6 +94,8 @@ RepairGUI_RemoveIntWiresDlg::RepairGUI_RemoveIntWiresDlg(QWidget* parent, const
   GroupPoints->getGroupBoxLayout()->addLayout( aSelectWiresLay, 2, 0 );  
   /***************************************************************/
 
+  setHelpFileName("suppress_internal_wires.htm");
+
   Init();
 }
 
index 05ed7750954bd0a3ca6c18ff6b033d7818e9a7f4..c7d1fc76f5cab0a96dda60a5977044e975d8bfce 100644 (file)
@@ -87,6 +87,8 @@ RepairGUI_SewingDlg::RepairGUI_SewingDlg(QWidget* parent, const char* name, bool
   GroupPoints->getGroupBoxLayout()->addLayout( aLay, 3, 0 );
   /***************************************************************/
 
+  setHelpFileName("sewing.htm");
+
   Init();
 }
 
index 7c9005a1a8eeaec081e594e7b35fd8922663a1d0..2d063a434075bf058b1f7a54691212970a830545 100755 (executable)
@@ -55,6 +55,7 @@ using namespace std;
 RepairGUI_ShapeProcessDlg::RepairGUI_ShapeProcessDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
   :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
 {
+  setHelpFileName("shape_processing.htm");
   init();
 }
 
index 4d996d2a143a170a6ba26c750749d1460ed8c53d..3e2c0205e0ce00d67313ded7b2ba699630088f99 100644 (file)
@@ -70,6 +70,8 @@ RepairGUI_SuppressFacesDlg::RepairGUI_SuppressFacesDlg(QWidget* parent, const ch
 
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
+  
+  setHelpFileName("suppress_faces.htm");
 
   Init();
 }
index 8f09b83f83f4c3a72aaa000416e571a2383a0454..bfd31321d5bada9cf2cad143753cffb7d6c06a33 100644 (file)
@@ -77,8 +77,9 @@ TransformationGUI_MirrorDlg::TransformationGUI_MirrorDlg(QWidget* parent,  const
   GroupPoints->PushButton2->setPixmap(image3);
   GroupPoints->CheckButton1->setText(tr("GEOM_CREATE_COPY"));
   Layout1->addWidget(GroupPoints, 2, 0);
-  
   /***************************************************************/
+
+  setHelpFileName("mirror_image.htm");  
   
   Init();
 }
index 88b262a447730dc79d865a00e0f9bd6b0dca4cd5..6a49dd1505b9b8c97443108694c52b687cdd4959 100644 (file)
@@ -92,6 +92,8 @@ TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg(GeometryG
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("multi_rotation.htm");
+
   Init();
 }
 
index 255df8858f2060a340a3fd51bef722157691df53..67cd8b213a8ecb718396a3fc7811080a6e869582 100644 (file)
@@ -99,6 +99,8 @@ TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg(Geo
   Layout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
+  setHelpFileName("multi_translation.htm");
+
   Init();
 }
 
index 805bc8a72821d631f148588e476e1c8b1eb80267..f28000a1b5a56461eff40b8ac7b0edf40bb67925 100644 (file)
@@ -75,6 +75,8 @@ TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(QWidget* parent,  const
   Layout1->addWidget(GroupPoints, 2, 0);
   
   /***************************************************************/
+
+  setHelpFileName("offset_surface.htm");  
   
   Init();
 }
index e16e3bbd37bc3f982da347f12d255585a6aeca75..1de63e48d0f460722f7751d20bbff979eb1ce832 100644 (file)
@@ -85,6 +85,8 @@ TransformationGUI_PositionDlg::TransformationGUI_PositionDlg(QWidget* parent,  c
   Layout1->addWidget(Group1, 2, 0);
   
   /***************************************************************/
+
+  setHelpFileName("modify_the_location.htm");  
   
   Init();
 }
index 7b1abd28b385c021363925c292fe90eae36a7581..f373847d60d5c2140ea81986a6bde4d7d78a67b6 100644 (file)
@@ -104,6 +104,8 @@ TransformationGUI_RotationDlg::TransformationGUI_RotationDlg(QWidget* parent,  c
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
+  setHelpFileName("rotation.htm");
+
   Init();
 }
 
index a215ba028c2e96e3e3b10313a38948bbac84bbe1..8a7313bc43b44b7f99ed43c0146b397af821be73 100644 (file)
@@ -107,6 +107,8 @@ TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(GeometryGUI* theGeometryG
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
+  setHelpFileName("scale_transform.htm");
+
   Init();
 }
 
index d221fb855ab3b86b2719aaccfffb94d78478d485..2f41d512011e66f32009cdf8a0d4898456320257 100644 (file)
@@ -82,6 +82,8 @@ TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg(GeometryGUI*
   Layout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
   
+  setHelpFileName("translation.htm");
+  
   Init();
 }