mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 16:22:03 +05:00
Add references into GEOM dialogs to the corresponding help page from GUI documentation.
This commit is contained in:
parent
a4dbca8276
commit
ff4282f5a4
@ -86,6 +86,8 @@ BasicGUI_ArcDlg::BasicGUI_ArcDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
|
||||
|
||||
Layout1->addWidget( Group3Pnts, 2, 0 );
|
||||
|
||||
setHelpFileName("arc.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -91,6 +91,8 @@ BasicGUI_CircleDlg::BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* par
|
||||
Layout1->addWidget( Group3Pnts, 2, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("circle.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -78,6 +78,8 @@ BasicGUI_CurveDlg::BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* paren
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("curve.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,8 @@ BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* p
|
||||
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("ellipse.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -75,6 +75,8 @@ BasicGUI_LineDlg::BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("line.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,8 @@ BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(GeometryGUI* theGeometryGUI, QWidget* paren
|
||||
Layout1->addWidget(GroupFace, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("plane.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -84,6 +84,8 @@ BasicGUI_VectorDlg::BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* par
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("vector.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -103,6 +103,8 @@ BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(GeometryGUI* theGeometryGUI ,
|
||||
Layout1->addWidget(Group3, 1, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("working_plane.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,8 @@ BlocksGUI_BlockDlg::BlocksGUI_BlockDlg (QWidget* parent,
|
||||
Layout1->addWidget(Group6F, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("newentity_blocks.htm#HexahedralSolid");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -108,6 +108,8 @@ BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg (QWidget* parent,
|
||||
Layout1->addWidget(myGrp1, 1, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("explode_on_blocks.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,9 @@ BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name
|
||||
Layout1->addWidget(aMainGrp, 1, 0);
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
|
||||
setHelpFileName("propagate.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -102,6 +102,8 @@ BlocksGUI_QuadFaceDlg::BlocksGUI_QuadFaceDlg (QWidget* parent,
|
||||
Layout1->addWidget(myGrp3, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("newentity_blocks.htm#QuadrangleFace");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -119,6 +119,8 @@ BlocksGUI_TrsfDlg::BlocksGUI_TrsfDlg (QWidget* parent,
|
||||
Layout1->addWidget( myGrp2, 2, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("multi_transformation.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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")));
|
||||
|
@ -65,6 +65,8 @@ BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, bo
|
||||
Layout1->addWidget(GroupShapes, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("compound.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -20,39 +20,38 @@
|
||||
/****************************************************************************
|
||||
** 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" ) );
|
||||
}
|
||||
|
||||
|
@ -20,34 +20,31 @@
|
||||
/****************************************************************************
|
||||
** 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
|
||||
|
@ -105,7 +105,7 @@
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget class="QPushButton">
|
||||
<widget class="QPushButton">
|
||||
<property name="name">
|
||||
<cstring>buttonOk</cstring>
|
||||
</property>
|
||||
@ -146,6 +146,14 @@
|
||||
<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>
|
||||
|
@ -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
|
||||
|
@ -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" ) );
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -77,6 +77,8 @@ EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name,
|
||||
Layout1->addWidget(GroupPoints, 1, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("explode.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -358,6 +358,14 @@
|
||||
<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>
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
};
|
||||
|
||||
|
@ -28,6 +28,10 @@
|
||||
|
||||
|
||||
#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"));
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,13 @@ public:
|
||||
void setU( const int );
|
||||
void setV( const int );
|
||||
|
||||
private slots:
|
||||
void ClickOnHelp();
|
||||
|
||||
private:
|
||||
QSpinBox* SpinBoxU;
|
||||
QSpinBox* SpinBoxV;
|
||||
QString myHelpFileName;
|
||||
|
||||
};
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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 ) ;
|
||||
|
||||
};
|
||||
|
@ -88,6 +88,8 @@ GenerationGUI_FillingDlg::GenerationGUI_FillingDlg(GeometryGUI* theGeometryGUI,
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("filling.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ GenerationGUI_PipeDlg::GenerationGUI_PipeDlg(QWidget* parent, const char* name,
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("pipe_creation.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -79,6 +79,8 @@ GenerationGUI_PrismDlg::GenerationGUI_PrismDlg(GeometryGUI* theGeometryGUI, QWid
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("extrusion.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ GenerationGUI_RevolDlg::GenerationGUI_RevolDlg(GeometryGUI* theGeometryGUI, QWid
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("revolution.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,8 @@ MeasureGUI_BndBoxDlg::MeasureGUI_BndBoxDlg( GeometryGUI* GUI, QWidget* parent )
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Bounding_box";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ MeasureGUI_CheckShapeDlg::MeasureGUI_CheckShapeDlg( GeometryGUI* GUI, QWidget* p
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#check";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -92,6 +92,8 @@ MeasureGUI_DistanceDlg::MeasureGUI_DistanceDlg( GeometryGUI* GUI, QWidget* paren
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Min_distance";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -96,6 +96,8 @@ MeasureGUI_InertiaDlg::MeasureGUI_InertiaDlg( GeometryGUI* GUI, QWidget* parent
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Inertia_axis";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -83,6 +83,8 @@ MeasureGUI_MaxToleranceDlg::MeasureGUI_MaxToleranceDlg( GeometryGUI* GUI, QWidge
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Tolerance";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -83,6 +83,8 @@ MeasureGUI_PropertiesDlg::MeasureGUI_PropertiesDlg( GeometryGUI* GUI, QWidget* p
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Basic_properties";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -84,6 +84,8 @@ MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent )
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Whatis";
|
||||
|
||||
/* Initialisation */
|
||||
Init();
|
||||
}
|
||||
|
@ -89,24 +89,7 @@
|
||||
<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>
|
||||
@ -123,7 +106,7 @@
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="QPushButton" row="0" column="1">
|
||||
<widget class="QPushButton" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>buttonClose</cstring>
|
||||
</property>
|
||||
@ -131,6 +114,14 @@
|
||||
<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>
|
||||
|
@ -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
|
||||
|
@ -70,6 +70,8 @@ OperationGUI_ArchimedeDlg::OperationGUI_ArchimedeDlg( GeometryGUI* theGeometryGU
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("archimede.htm");
|
||||
|
||||
/* Initialisations */
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -77,6 +77,8 @@ OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (QWidget* parent, const char*
|
||||
|
||||
Layout1->addWidget(GroupPoints, 1, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("none.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -86,6 +86,8 @@ OperationGUI_PartitionDlg::OperationGUI_PartitionDlg(QWidget* parent, const char
|
||||
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("partition.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -83,6 +83,8 @@ PrimitiveGUI_ConeDlg::PrimitiveGUI_ConeDlg(GeometryGUI* theGeometryGUI, QWidget*
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName( "cone.htm" );
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -81,6 +81,8 @@ PrimitiveGUI_CylinderDlg::PrimitiveGUI_CylinderDlg(GeometryGUI* theGeometryGUI,
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("cylinder.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -77,6 +77,8 @@ PrimitiveGUI_SphereDlg::PrimitiveGUI_SphereDlg(GeometryGUI* theGeometryGUI, QWid
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("sphere.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,8 @@ RepairGUI_DivideEdgeDlg::RepairGUI_DivideEdgeDlg (GeometryGUI* theGeometryGUI, Q
|
||||
GroupPoints->getGroupBoxLayout()->addLayout( aLay, 2, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("add_point_on_edge.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,8 @@ RepairGUI_RemoveHolesDlg::RepairGUI_RemoveHolesDlg(QWidget* parent, const char*
|
||||
GroupPoints->getGroupBoxLayout()->addLayout( aDetectLay, 3, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("suppress_holes.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,8 @@ RepairGUI_RemoveIntWiresDlg::RepairGUI_RemoveIntWiresDlg(QWidget* parent, const
|
||||
GroupPoints->getGroupBoxLayout()->addLayout( aSelectWiresLay, 2, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("suppress_internal_wires.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -87,6 +87,8 @@ RepairGUI_SewingDlg::RepairGUI_SewingDlg(QWidget* parent, const char* name, bool
|
||||
GroupPoints->getGroupBoxLayout()->addLayout( aLay, 3, 0 );
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("sewing.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -70,6 +70,8 @@ RepairGUI_SuppressFacesDlg::RepairGUI_SuppressFacesDlg(QWidget* parent, const ch
|
||||
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("suppress_faces.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -92,6 +92,8 @@ TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg(GeometryG
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("multi_rotation.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,8 @@ TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg(Geo
|
||||
Layout1->addWidget(GroupDimensions, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("multi_translation.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,8 @@ TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(QWidget* parent, const
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("offset_surface.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -85,6 +85,8 @@ TransformationGUI_PositionDlg::TransformationGUI_PositionDlg(QWidget* parent, c
|
||||
Layout1->addWidget(Group1, 2, 0);
|
||||
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("modify_the_location.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -82,6 +82,8 @@ TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg(GeometryGUI*
|
||||
Layout1->addWidget(GroupPoints, 2, 0);
|
||||
/***************************************************************/
|
||||
|
||||
setHelpFileName("translation.htm");
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user