Layout1->addWidget( Group3Pnts, 2, 0 );
+ setHelpFileName("arc.htm");
+
Init();
}
Layout1->addWidget( Group3Pnts, 2, 0 );
/***************************************************************/
+ setHelpFileName("circle.htm");
+
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("curve.htm");
+
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+
+ setHelpFileName("ellipse.htm");
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("line.htm");
+
Init();
}
Layout1->addWidget( Group1, 2, 0 );
Layout1->addWidget( Group2, 2, 0 );
+ setHelpFileName("local_coordinate_system.htm");
+
Init();
}
Layout1->addWidget(GroupFace, 2, 0);
/***************************************************************/
+ setHelpFileName("plane.htm");
+
Init();
}
myX->setPalette( aPal );
myY->setPalette( aPal );
myZ->setPalette( aPal );
+
+ setHelpFileName("point.htm");
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName("vector.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(Group3, 1, 0);
/***************************************************************/
+ setHelpFileName("working_plane.htm");
+
Init();
}
Layout1->addWidget(Group6F, 2, 0);
/***************************************************************/
+ setHelpFileName("newentity_blocks.htm#HexahedralSolid");
+
Init();
}
Layout1->addWidget(myGrp1, 1, 0);
/***************************************************************/
+ setHelpFileName("explode_on_blocks.htm");
+
Init();
}
Layout1->addWidget(aMainGrp, 1, 0);
/***************************************************************/
-
+
+ setHelpFileName("propagate.htm");
+
Init();
}
Layout1->addWidget(myGrp3, 2, 0);
/***************************************************************/
+ setHelpFileName("newentity_blocks.htm#QuadrangleFace");
+
Init();
}
Layout1->addWidget( myGrp2, 2, 0 );
/***************************************************************/
+ setHelpFileName("multi_transformation.htm");
+
Init();
}
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")));
Layout1->addWidget(GroupShapes, 2, 0);
/***************************************************************/
+ setHelpFileName("compound.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("edge.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupWire, 2, 0);
/***************************************************************/
+ setHelpFileName("face.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupShell, 2, 0);
/***************************************************************/
+ setHelpFileName("shell.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupSolid, 2, 0);
/***************************************************************/
+ setHelpFileName("solid.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("wire.htm");
+
/* Initialisations */
Init();
}
/****************************************************************************
** 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");
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 );
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 );
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 );
Layout66->addWidget( ResultName, 0, 1 );
NameLabel = new QLabel( GroupBoxName, "NameLabel" );
- NameLabel->setText( trUtf8( "Name" ) );
Layout66->addWidget( NameLabel, 0, 0 );
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()
// 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" ) );
+}
+
/****************************************************************************
** 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:
QPushButton* buttonOk;
QPushButton* buttonApply;
QPushButton* buttonCancel;
+ QPushButton* buttonHelp;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton1;
QRadioButton* RadioButton2;
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
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="QPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
<string>&Cancel</string>
</property>
</widget>
+ <widget class="QPushButton">
+ <property name="name">
+ <cstring>buttonHelp</cstring>
+ </property>
+ <property name="text">
+ <string>&Help</string>
+ </property>
+ </widget>
</hbox>
</widget>
</hbox>
-// 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
-// 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 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
setTabOrder( buttonClose, buttonCancel );
}
-/*
+/*
* Destroys the object and frees any allocated resources
*/
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" ) );
+}
+
-// 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:
QPushButton* buttonEnd;
QPushButton* buttonClose;
QPushButton* buttonCancel;
-
+ QPushButton* buttonHelp;
protected:
QGridLayout* EntityGUI_Skeleton_QTDLayout;
QGridLayout* GroupDest3Layout;
QHBoxLayout* GroupButtonsLayout;
QHBoxLayout* Layout3;
+ QSpacerItem* Spacer1;
+
+protected slots:
+ virtual void languageChange();
+
};
#endif // ENTITYGUI_SKELETON_QTD_H
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);
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()));
connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
+
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 );
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 :
-
GeometryGUI* myGeometryGUI;
+ QString myHelpFileName;
+
enum SketchState {FIRST_POINT, NEXT_POINT};
enum SketchType {PT_ABS, PT_RELATIVE, PT_SEL,
bool ClickOnApply();
void ClickOnUndo();
void ClickOnRedo();
+ void ClickOnHelp();
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void Dir1Clicked(int constructorId);
void Dir2Clicked(int constructorId);
void ValueChangedInSpinBox(double newValue);
-
+
};
#endif // ENTITYGUI_SKETCHERDLG_H
Layout1->addWidget(GroupPoints, 1, 0);
/***************************************************************/
+ setHelpFileName("explode.htm");
+
Init();
}
<string>&Cancel</string>
</property>
</widget>
+ <widget class="QPushButton">
+ <property name="name">
+ <cstring>buttonHelp</cstring>
+ </property>
+ <property name="text">
+ <string>&Help</string>
+ </property>
+ </widget>
</hbox>
</widget>
</hbox>
-// 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
#include "SUIT_Session.h"
#include "SalomeApp_Application.h"
#include "LightApp_SelectionMgr.h"
+#include "SUIT_MessageBox.h"
#include <qpushbutton.h>
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);
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;
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;
+}
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();
};
#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>
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
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"));
+ }
+}
void setU( const int );
void setV( const int );
+private slots:
+ void ClickOnHelp();
+
private:
QSpinBox* SpinBoxU;
QSpinBox* SpinBoxV;
+ QString myHelpFileName;
};
#include "GEOMToolsGUI_TransparencyDlg.h"
#include "GEOMBase.h"
#include "GEOM_AISShape.hxx"
+#include "GeometryGUI.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
#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>
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" );
// 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)));
}
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()
private :
bool myFirstInit ; /* Inform for the first init */
QSlider* mySlider;
+ QString myHelpFileName;
private slots:
void ClickOnOk();
void ClickOnClose();
+ void ClickOnHelp();
void ValueHasChanged( int ) ;
};
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("filling.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("pipe_creation.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("extrusion.htm");
+
/* Initialisations */
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("revolution.htm");
+
/* Initialisations */
Init();
}
aMedLayout->addWidget( myAddBtn, 2, 3 );
aMedLayout->addWidget( myRemBtn, 3, 3 );
+ setHelpFileName("working_with_groups.htm");
+
Init();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Bounding_box";
+
/* Initialisation */
Init();
}
Layout1->addWidget( myGrp, 2, 0 );
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Center_gravity";
+
/* Initialisation */
Init();
}
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();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#check";
+
/* Initialisation */
Init();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Min_distance";
+
/* Initialisation */
Init();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Inertia_axis";
+
/* Initialisation */
Init();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Tolerance";
+
/* Initialisation */
Init();
}
Layout1->addWidget( aGrp, 1, 0 );
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#PointCoord";
+
Init();
}
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Basic_properties";
+
/* Initialisation */
Init();
}
#include "SalomeApp_Application.h"
#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h"
+#include "SUIT_MessageBox.h"
#include "SUIT_Session.h"
#include "SUIT_OverrideCursor.h"
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 );
connect( buttonClose, SIGNAL( clicked() ),
this, SLOT( ClickOnCancel() ) );
+
+ connect( buttonHelp, SIGNAL( clicked() ),
+ this, SLOT( ClickOnHelp() ) );
connect( myGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ),
this, SLOT ( DeactivateActiveDialog() ) );
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()
protected slots:
virtual void ClickOnCancel();
+ virtual void ClickOnHelp();
virtual void DeactivateActiveDialog();
virtual void ActivateThisDialog();
virtual void SelectionIntoArgument();
GeometryGUI* myGeomGUI;
GEOM_Displayer* myDisplayer;
+
+ QString myHelpFileName;
};
#endif // MEASUREGUI_SKELETON_H
-// 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");
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 );
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 );
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 );
Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
- RadioButton1->setText( trUtf8( "" ) );
Layout2->addWidget( RadioButton1 );
GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
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()
// 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 );
+}
+
-// 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:
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
/***************************************************************/
+ myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Whatis";
+
/* Initialisation */
Init();
}
<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>&Close</string>
</property>
</widget>
+ <widget class="QPushButton" row="0" column="2">
+ <property name="name">
+ <cstring>buttonHelp</cstring>
+ </property>
+ <property name="text">
+ <string>&Help</string>
+ </property>
+ </widget>
</grid>
</widget>
</grid>
-// 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
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("archimede.htm");
+
/* Initialisations */
Init();
}
for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
anIter.data()->RangeStepAndValidator( 0.001, 999.999, SpecificStep, 3 );
+ setHelpFileName("chamfer.htm");
+
/* Initialisations */
Init();
}
// connect( aGeomGUI, SIGNAL ( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) ) ;
//connect( aGeomGUI, SIGNAL ( SignalCloseAllDialogs() ), this, SLOT( ClickOnCancel() ) ) ;
+ setHelpFileName("none.htm");
+
Init();
}
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();
}
Layout1->addWidget(GroupPoints, 1, 0);
/***************************************************************/
+
+ setHelpFileName("none.htm");
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+
+ setHelpFileName("partition.htm");
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+
+ setHelpFileName("box.htm");
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName( "cone.htm" );
+
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName("cylinder.htm");
+
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName("sphere.htm");
+
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+
+ setHelpFileName("turus.htm");
Init();
}
GroupPoints->getGroupBoxLayout()->addMultiCellWidget(myIsVertexGr, 2, 2, 0, 2);
/***************************************************************/
+ setHelpFileName("close_contour.htm");
+
Init();
}
GroupPoints->getGroupBoxLayout()->addLayout( aLay, 2, 0 );
/***************************************************************/
+ setHelpFileName("add_point_on_edge.htm");
+
Init();
}
#include "SalomeApp_Application.h"
#include "LightApp_SelectionMgr.h"
+#include "SUIT_MessageBox.h"
#include "SUIT_Session.h"
#include <TColStd_MapOfInteger.hxx>
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 );
aLay->addWidget( aMainGrp );
aLay->addWidget( aFrame );
+ myHelpFileName = "check_free_boundaries.htm";
+
connect( aCloseBtn, SIGNAL( clicked() ), SLOT( onClose() ) );
+ connect( aHelpBtn, SIGNAL( clicked() ), SLOT( onHelp() ) );
Init();
}
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
private slots:
void onClose();
+ void onHelp();
void onDeactivate();
void onActivate();
void onSelectionDone();
GeometryGUI* myGeomGUI;
int myNbClosed;
int myNbOpen;
+ QString myHelpFileName;
};
#endif // DIALOGBOX_WHATIS_H
#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h"
+#include "SUIT_MessageBox.h"
#include "SUIT_Session.h"
#include "SUIT_OverrideCursor.h"
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 );
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() ) );
/***************************************************************/
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
private slots:
void onClose();
+ void onHelp();
void onDeactivate();
void onActivate();
void onSelectionDone();
QPushButton* mySelBtn;
QLineEdit* myEdit;
GeometryGUI* myGeomGUI;
+ QString myHelpFileName;
};
GroupPoints->getGroupBoxLayout()->addLayout( aLay, 3, 0 );
/***************************************************************/
+ setHelpFileName("glue_faces.htm");
+
Init();
}
GroupPoints->getGroupBoxLayout()->addLayout( aDetectLay, 3, 0 );
/***************************************************************/
+ setHelpFileName("suppress_holes.htm");
+
Init();
}
GroupPoints->getGroupBoxLayout()->addLayout( aSelectWiresLay, 2, 0 );
/***************************************************************/
+ setHelpFileName("suppress_internal_wires.htm");
+
Init();
}
GroupPoints->getGroupBoxLayout()->addLayout( aLay, 3, 0 );
/***************************************************************/
+ setHelpFileName("sewing.htm");
+
Init();
}
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();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+
+ setHelpFileName("suppress_faces.htm");
Init();
}
GroupPoints->PushButton2->setPixmap(image3);
GroupPoints->CheckButton1->setText(tr("GEOM_CREATE_COPY"));
Layout1->addWidget(GroupPoints, 2, 0);
-
/***************************************************************/
+
+ setHelpFileName("mirror_image.htm");
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName("multi_rotation.htm");
+
Init();
}
Layout1->addWidget(GroupDimensions, 2, 0);
/***************************************************************/
+ setHelpFileName("multi_translation.htm");
+
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+
+ setHelpFileName("offset_surface.htm");
Init();
}
Layout1->addWidget(Group1, 2, 0);
/***************************************************************/
+
+ setHelpFileName("modify_the_location.htm");
Init();
}
connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ setHelpFileName("rotation.htm");
+
Init();
}
connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ setHelpFileName("scale_transform.htm");
+
Init();
}
Layout1->addWidget(GroupPoints, 2, 0);
/***************************************************************/
+ setHelpFileName("translation.htm");
+
Init();
}