mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-26 17:37:55 +05:00
PAL 11107 - Make a rotation given an object and 3 points
This commit is contained in:
parent
5c6ce3deb5
commit
a4f6115350
@ -126,6 +126,7 @@ prism.png \
|
||||
prism2.png \
|
||||
revol.png \
|
||||
rotate.png \
|
||||
rotatepnt.png \
|
||||
scale.png \
|
||||
section.png \
|
||||
select1.png \
|
||||
|
@ -470,6 +470,34 @@ module GEOM
|
||||
in double theStep2,
|
||||
in long theNbTimes2);
|
||||
|
||||
/*!
|
||||
* Rotate given object around vector perpendicular to plane containing three points.
|
||||
* \param theObject The object to be rotated.
|
||||
* \param theCentPoint central point - the axis is the vector perpendicular to the plane
|
||||
* containing the three points.
|
||||
* \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
|
||||
* \return theObject.
|
||||
*/
|
||||
GEOM_Object RotateThreePoints (in GEOM_Object theObject,
|
||||
in GEOM_Object theCentPoint,
|
||||
in GEOM_Object thePoint1,
|
||||
in GEOM_Object thePoint2);
|
||||
|
||||
|
||||
/*!
|
||||
* Rotate given object around vector perpendicular to plane containing three points.
|
||||
* Creating its copy before the rotatation.
|
||||
* \param theObject The object to be rotated.
|
||||
* \param theCentPoint central point - the axis is the vector perpendicular to the plane
|
||||
* containing the three points.
|
||||
* \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
|
||||
* \return New GEOM_Object, containing the rotated object.
|
||||
*/
|
||||
GEOM_Object RotateThreePointsCopy (in GEOM_Object theObject,
|
||||
in GEOM_Object theCentPoint,
|
||||
in GEOM_Object thePoint1,
|
||||
in GEOM_Object thePoint2);
|
||||
|
||||
/*!
|
||||
* Rotate the given object around the given axis on the given angle.
|
||||
* \param theObject The object to be rotated.
|
||||
@ -481,6 +509,7 @@ module GEOM
|
||||
in GEOM_Object theAxis,
|
||||
in double theAngle);
|
||||
|
||||
|
||||
/*!
|
||||
* Rotate the given object around the given axis
|
||||
* on the given angle, creating its copy before the rotatation.
|
||||
@ -493,6 +522,7 @@ module GEOM
|
||||
in GEOM_Object theAxis,
|
||||
in double theAngle);
|
||||
|
||||
|
||||
/*!
|
||||
* Rotate the given object around the given axis a given number times.
|
||||
* Rotation angle will be 2*PI/theNbTimes.
|
||||
|
@ -244,6 +244,14 @@ module GEOM
|
||||
GEOM_Object RotateCopy (in GEOM_Object theObject,
|
||||
in GEOM_Object theAxis,
|
||||
in double theAngle) ;
|
||||
GEOM_Object RotateThreePoints (in GEOM_Object theObject,
|
||||
in GEOM_Object theCentPoint,
|
||||
in GEOM_Object thePoint1,
|
||||
in GEOM_Object thePoint2);
|
||||
GEOM_Object RotateThreePointsCopy (in GEOM_Object theObject,
|
||||
in GEOM_Object theCentPoint,
|
||||
in GEOM_Object thePoint1,
|
||||
in GEOM_Object thePoint2);
|
||||
GEOM_Object MultiRotate1D (in GEOM_Object theObject,
|
||||
in GEOM_Object theAxis,
|
||||
in long theNbTimes) ;
|
||||
|
@ -2186,6 +2186,80 @@
|
||||
</outParameter-list>
|
||||
<DataStream-list></DataStream-list>
|
||||
</component-service>
|
||||
<component-service>
|
||||
<service-name>RotateThreePoints</service-name>
|
||||
<service-author>mkr</service-author>
|
||||
<service-version>2.1.0</service-version>
|
||||
<service-comment>unknown</service-comment>
|
||||
<service-by-default>0</service-by-default>
|
||||
<inParameter-list>
|
||||
<inParameter>
|
||||
<inParameter-name>theObject</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>theCentPoint</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>thePoint1</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>thePoint2</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
</inParameter-list>
|
||||
<outParameter-list>
|
||||
<outParameter>
|
||||
<outParameter-name>return</outParameter-name>
|
||||
<outParameter-type>GEOM_Object</outParameter-type>
|
||||
<outParameter-comment>unknown</outParameter-comment>
|
||||
</outParameter>
|
||||
</outParameter-list>
|
||||
<DataStream-list></DataStream-list>
|
||||
</component-service>
|
||||
<component-service>
|
||||
<service-name>RotateThreePointsCopy</service-name>
|
||||
<service-author>mkr</service-author>
|
||||
<service-version>2.1.0</service-version>
|
||||
<service-comment>unknown</service-comment>
|
||||
<service-by-default>0</service-by-default>
|
||||
<inParameter-list>
|
||||
<inParameter>
|
||||
<inParameter-name>theObject</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>theCentPoint</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>thePoint1</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
<inParameter>
|
||||
<inParameter-name>thePoint2</inParameter-name>
|
||||
<inParameter-type>GEOM_Object</inParameter-type>
|
||||
<inParameter-comment>unknown</inParameter-comment>
|
||||
</inParameter>
|
||||
</inParameter-list>
|
||||
<outParameter-list>
|
||||
<outParameter>
|
||||
<outParameter-name>return</outParameter-name>
|
||||
<outParameter-type>GEOM_Object</outParameter-type>
|
||||
<outParameter-comment>unknown</outParameter-comment>
|
||||
</outParameter>
|
||||
</outParameter-list>
|
||||
<DataStream-list></DataStream-list>
|
||||
</component-service>
|
||||
<component-service>
|
||||
<service-name>MultiRotate1D</service-name>
|
||||
<service-author>mkr</service-author>
|
||||
|
BIN
resources/rotatepnt.png
Executable file
BIN
resources/rotatepnt.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 337 B |
106
src/DlgRef/DlgRef_4Sel1Spin2Check.cxx
Normal file
106
src/DlgRef/DlgRef_4Sel1Spin2Check.cxx
Normal file
@ -0,0 +1,106 @@
|
||||
// GEOM GEOMGUI : GUI for Geometry component
|
||||
//
|
||||
// Copyright (C) 2003 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/ or email : webmaster.salome@opencascade.com
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : DlgRef_4Sel1Spin2Check.cxx
|
||||
// Author : Damien COQUERET
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#include "DlgRef_4Sel1Spin2Check.h"
|
||||
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qlayout.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qgroupbox.h>
|
||||
|
||||
/*
|
||||
* Constructs a DlgRef_4Sel1Spin2Check which is a child of 'parent', with the
|
||||
* name 'name' and widget flags set to 'f'
|
||||
*/
|
||||
DlgRef_4Sel1Spin2Check::DlgRef_4Sel1Spin2Check(QWidget* parent, const char* name, WFlags fl)
|
||||
:DlgRef_4Sel1Spin2Check_QTD(parent, name, fl)
|
||||
{
|
||||
SpinBox1->close(TRUE);
|
||||
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
|
||||
Layout1->addWidget(SpinBox_DX, 4, 2);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
DlgRef_4Sel1Spin2Check::~DlgRef_4Sel1Spin2Check()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
}
|
||||
|
||||
void DlgRef_4Sel1Spin2Check::ShowRows(int fromRow, int toRow, bool toShow)
|
||||
{
|
||||
typedef void (QWidget::* ShowFun)();
|
||||
ShowFun pShowFun;
|
||||
|
||||
if (toShow)
|
||||
pShowFun = &QWidget::show;
|
||||
else
|
||||
pShowFun = &QWidget::hide;
|
||||
|
||||
if (fromRow >= 0 && toRow >= 0 && toRow >= fromRow)
|
||||
{
|
||||
if ( fromRow == 0)
|
||||
{
|
||||
(TextLabel1->*pShowFun)();
|
||||
(PushButton1->*pShowFun)();
|
||||
(LineEdit1->*pShowFun)();
|
||||
}
|
||||
if ( fromRow <= 1 && 1 <= toRow)
|
||||
{
|
||||
(TextLabel2->*pShowFun)();
|
||||
(PushButton2->*pShowFun)();
|
||||
(LineEdit2->*pShowFun)();
|
||||
}
|
||||
if ( fromRow <= 2 && 2 <= toRow)
|
||||
{
|
||||
(TextLabel4->*pShowFun)();
|
||||
(PushButton4->*pShowFun)();
|
||||
(LineEdit4->*pShowFun)();
|
||||
}
|
||||
if ( fromRow <= 3 && 3 <= toRow)
|
||||
{
|
||||
(TextLabel5->*pShowFun)();
|
||||
(PushButton5->*pShowFun)();
|
||||
(LineEdit5->*pShowFun)();
|
||||
}
|
||||
if ( fromRow <= 4 && 4 <= toRow)
|
||||
{
|
||||
(TextLabel3->*pShowFun)();
|
||||
(SpinBox_DX->*pShowFun)();
|
||||
(CheckButton2->*pShowFun)();
|
||||
}
|
||||
if ( fromRow <= 5 && 5 <= toRow)
|
||||
(CheckButton1->*pShowFun)();
|
||||
}
|
||||
}
|
||||
|
54
src/DlgRef/DlgRef_4Sel1Spin2Check.h
Normal file
54
src/DlgRef/DlgRef_4Sel1Spin2Check.h
Normal file
@ -0,0 +1,54 @@
|
||||
// GEOM GEOMGUI : GUI for Geometry component
|
||||
//
|
||||
// Copyright (C) 2003 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/ or email : webmaster.salome@opencascade.com
|
||||
//
|
||||
//
|
||||
//
|
||||
// File : DlgRef_4Sel1Spin2Check.h
|
||||
// Author : Damien COQUERET
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#ifndef DLGREF_4SEL1SPIN2CHECK_H
|
||||
#define DLGREF_4SEL1SPIN2CHECK_H
|
||||
|
||||
#include "DlgRef_4Sel1Spin2Check_QTD.h"
|
||||
#include "DlgRef_SpinBox.h"
|
||||
|
||||
#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_4Sel1Spin2Check : public DlgRef_4Sel1Spin2Check_QTD
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgRef_4Sel1Spin2Check(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
|
||||
~DlgRef_4Sel1Spin2Check();
|
||||
|
||||
DlgRef_SpinBox* SpinBox_DX;
|
||||
|
||||
void ShowRows(int fromRow, int toRow, bool toShow = true);
|
||||
|
||||
};
|
||||
|
||||
#endif // DLGREF_4SEL1SPIN2CHECK_H
|
158
src/DlgRef/DlgRef_4Sel1Spin2Check_QTD.cxx
Normal file
158
src/DlgRef/DlgRef_4Sel1Spin2Check_QTD.cxx
Normal file
@ -0,0 +1,158 @@
|
||||
/****************************************************************************
|
||||
** Form implementation generated from reading ui file 'DlgRef_4Sel1Spin2Check_QTD.ui'
|
||||
**
|
||||
** Created: Wed Oct 25 20:32:42 2006
|
||||
** by: The User Interface Compiler ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
****************************************************************************/
|
||||
|
||||
#include "DlgRef_4Sel1Spin2Check_QTD.h"
|
||||
|
||||
#include <qvariant.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qgroupbox.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qlayout.h>
|
||||
#include <qtooltip.h>
|
||||
#include <qwhatsthis.h>
|
||||
|
||||
/*
|
||||
* Constructs a DlgRef_4Sel1Spin2Check_QTD as a child of 'parent', with the
|
||||
* name 'name' and widget flags set to 'f'.
|
||||
*/
|
||||
DlgRef_4Sel1Spin2Check_QTD::DlgRef_4Sel1Spin2Check_QTD( QWidget* parent, const char* name, WFlags fl )
|
||||
: QWidget( parent, name, fl )
|
||||
{
|
||||
if ( !name )
|
||||
setName( "DlgRef_4Sel1Spin2Check_QTD" );
|
||||
DlgRef_4Sel1Spin2Check_QTDLayout = new QVBoxLayout( this, 0, 6, "DlgRef_4Sel1Spin2Check_QTDLayout");
|
||||
|
||||
GroupBox1 = new QGroupBox( this, "GroupBox1" );
|
||||
GroupBox1->setColumnLayout(0, Qt::Vertical );
|
||||
GroupBox1->layout()->setSpacing( 6 );
|
||||
GroupBox1->layout()->setMargin( 11 );
|
||||
GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
|
||||
GroupBox1Layout->setAlignment( Qt::AlignTop );
|
||||
|
||||
Layout1 = new QGridLayout( 0, 1, 1, 6, 6, "Layout1");
|
||||
|
||||
CheckButton2 = new QCheckBox( GroupBox1, "CheckButton2" );
|
||||
|
||||
Layout1->addWidget( CheckButton2, 4, 3 );
|
||||
|
||||
PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
|
||||
PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( PushButton2, 1, 1 );
|
||||
|
||||
LineEdit5 = new QLineEdit( GroupBox1, "LineEdit5" );
|
||||
|
||||
Layout1->addMultiCellWidget( LineEdit5, 3, 3, 2, 3 );
|
||||
|
||||
TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
|
||||
TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( TextLabel5, 3, 0 );
|
||||
|
||||
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
|
||||
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( TextLabel1, 0, 0 );
|
||||
|
||||
LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
|
||||
|
||||
Layout1->addMultiCellWidget( LineEdit1, 0, 0, 2, 3 );
|
||||
|
||||
SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
|
||||
SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( SpinBox1, 4, 2 );
|
||||
|
||||
CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
|
||||
|
||||
Layout1->addMultiCellWidget( CheckButton1, 5, 5, 0, 2 );
|
||||
|
||||
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
|
||||
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( TextLabel2, 1, 0 );
|
||||
|
||||
PushButton5 = new QPushButton( GroupBox1, "PushButton5" );
|
||||
PushButton5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton5->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( PushButton5, 3, 1 );
|
||||
|
||||
PushButton4 = new QPushButton( GroupBox1, "PushButton4" );
|
||||
PushButton4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton4->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( PushButton4, 2, 1 );
|
||||
|
||||
TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
|
||||
TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( TextLabel4, 2, 0 );
|
||||
|
||||
PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
|
||||
PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( PushButton1, 0, 1 );
|
||||
|
||||
LineEdit4 = new QLineEdit( GroupBox1, "LineEdit4" );
|
||||
|
||||
Layout1->addMultiCellWidget( LineEdit4, 2, 2, 2, 3 );
|
||||
|
||||
LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
|
||||
|
||||
Layout1->addMultiCellWidget( LineEdit2, 1, 1, 2, 3 );
|
||||
|
||||
TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
|
||||
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
|
||||
|
||||
Layout1->addWidget( TextLabel3, 4, 0 );
|
||||
GroupBox1Layout->addLayout( Layout1 );
|
||||
DlgRef_4Sel1Spin2Check_QTDLayout->addWidget( GroupBox1 );
|
||||
languageChange();
|
||||
resize( QSize(261, 198).expandedTo(minimumSizeHint()) );
|
||||
clearWState( WState_Polished );
|
||||
|
||||
// tab order
|
||||
setTabOrder( PushButton1, LineEdit1 );
|
||||
setTabOrder( LineEdit1, PushButton2 );
|
||||
setTabOrder( PushButton2, LineEdit2 );
|
||||
setTabOrder( LineEdit2, SpinBox1 );
|
||||
setTabOrder( SpinBox1, CheckButton2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
DlgRef_4Sel1Spin2Check_QTD::~DlgRef_4Sel1Spin2Check_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_4Sel1Spin2Check_QTD::languageChange()
|
||||
{
|
||||
setCaption( tr( "DlgRef_4Sel1Spin2Check_QTD" ) );
|
||||
GroupBox1->setTitle( QString::null );
|
||||
CheckButton2->setText( QString::null );
|
||||
PushButton2->setText( QString::null );
|
||||
TextLabel5->setText( tr( "TL5" ) );
|
||||
TextLabel1->setText( tr( "TL1" ) );
|
||||
CheckButton1->setText( QString::null );
|
||||
TextLabel2->setText( tr( "TL2" ) );
|
||||
PushButton5->setText( QString::null );
|
||||
PushButton4->setText( QString::null );
|
||||
TextLabel4->setText( tr( "TL4" ) );
|
||||
PushButton1->setText( QString::null );
|
||||
TextLabel3->setText( tr( "TL3" ) );
|
||||
}
|
||||
|
63
src/DlgRef/DlgRef_4Sel1Spin2Check_QTD.h
Normal file
63
src/DlgRef/DlgRef_4Sel1Spin2Check_QTD.h
Normal file
@ -0,0 +1,63 @@
|
||||
/****************************************************************************
|
||||
** Form interface generated from reading ui file 'DlgRef_4Sel1Spin2Check_QTD.ui'
|
||||
**
|
||||
** Created: Wed Oct 25 20:32:41 2006
|
||||
** by: The User Interface Compiler ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef DLGREF_4SEL1SPIN2CHECK_QTD_H
|
||||
#define DLGREF_4SEL1SPIN2CHECK_QTD_H
|
||||
|
||||
#include <qvariant.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
class QVBoxLayout;
|
||||
class QHBoxLayout;
|
||||
class QGridLayout;
|
||||
class QSpacerItem;
|
||||
class QGroupBox;
|
||||
class QCheckBox;
|
||||
class QPushButton;
|
||||
class QLineEdit;
|
||||
class QLabel;
|
||||
class QSpinBox;
|
||||
|
||||
class DlgRef_4Sel1Spin2Check_QTD : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgRef_4Sel1Spin2Check_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
|
||||
~DlgRef_4Sel1Spin2Check_QTD();
|
||||
|
||||
QGroupBox* GroupBox1;
|
||||
QCheckBox* CheckButton2;
|
||||
QPushButton* PushButton2;
|
||||
QLineEdit* LineEdit5;
|
||||
QLabel* TextLabel5;
|
||||
QLabel* TextLabel1;
|
||||
QLineEdit* LineEdit1;
|
||||
QSpinBox* SpinBox1;
|
||||
QCheckBox* CheckButton1;
|
||||
QLabel* TextLabel2;
|
||||
QPushButton* PushButton5;
|
||||
QPushButton* PushButton4;
|
||||
QLabel* TextLabel4;
|
||||
QPushButton* PushButton1;
|
||||
QLineEdit* LineEdit4;
|
||||
QLineEdit* LineEdit2;
|
||||
QLabel* TextLabel3;
|
||||
|
||||
protected:
|
||||
QVBoxLayout* DlgRef_4Sel1Spin2Check_QTDLayout;
|
||||
QVBoxLayout* GroupBox1Layout;
|
||||
QGridLayout* Layout1;
|
||||
|
||||
protected slots:
|
||||
virtual void languageChange();
|
||||
|
||||
};
|
||||
|
||||
#endif // DLGREF_4SEL1SPIN2CHECK_QTD_H
|
@ -65,6 +65,7 @@ LIB_SRC = DlgRef_Skeleton_QTD.cxx \
|
||||
DlgRef_3Spin_QTD.cxx \
|
||||
DlgRef_3Spin1Check_QTD.cxx \
|
||||
DlgRef_3Sel3Spin1Check_QTD.cxx \
|
||||
DlgRef_4Sel1Spin2Check_QTD.cxx \
|
||||
DlgRef_SpinBox.cxx \
|
||||
DlgRef_1Sel1Spin.cxx \
|
||||
DlgRef_1Sel2Spin.cxx \
|
||||
@ -86,7 +87,8 @@ LIB_SRC = DlgRef_Skeleton_QTD.cxx \
|
||||
DlgRef_3Spin1Check.cxx \
|
||||
DlgRef_3Sel1Spin.cxx \
|
||||
DlgRef_3Check_QTD.cxx \
|
||||
DlgRef_6Sel_QTD.cxx
|
||||
DlgRef_6Sel_QTD.cxx \
|
||||
DlgRef_4Sel1Spin2Check.cxx
|
||||
|
||||
LIB_MOC = \
|
||||
DlgRef_Skeleton_QTD.h \
|
||||
@ -117,6 +119,7 @@ LIB_MOC = \
|
||||
DlgRef_3Spin_QTD.h \
|
||||
DlgRef_3Spin1Check_QTD.h \
|
||||
DlgRef_3Sel3Spin1Check_QTD.h \
|
||||
DlgRef_4Sel1Spin2Check_QTD.h \
|
||||
DlgRef_SpinBox.h \
|
||||
DlgRef_1Sel1Spin.h \
|
||||
DlgRef_1Sel2Spin.h \
|
||||
@ -139,7 +142,8 @@ LIB_MOC = \
|
||||
DlgRef_3Sel1Spin.h \
|
||||
DlgRef_1Sel_Ext.h \
|
||||
DlgRef_3Check_QTD.h \
|
||||
DlgRef_6Sel_QTD.h
|
||||
DlgRef_6Sel_QTD.h \
|
||||
DlgRef_4Sel1Spin2Check.h
|
||||
|
||||
# header files
|
||||
EXPORT_HEADERS= $(LIB_MOC)
|
||||
|
264
src/DlgRef/UIFiles/DlgRef_4Sel1Spin2Check_QTD.ui
Normal file
264
src/DlgRef/UIFiles/DlgRef_4Sel1Spin2Check_QTD.ui
Normal file
@ -0,0 +1,264 @@
|
||||
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
||||
<class>DlgRef_4Sel1Spin2Check_QTD</class>
|
||||
<widget class="QWidget">
|
||||
<property name="name">
|
||||
<cstring>DlgRef_4Sel1Spin2Check_QTD</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>261</width>
|
||||
<height>198</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="caption">
|
||||
<string>DlgRef_4Sel1Spin2Check_QTD</string>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget class="QGroupBox">
|
||||
<property name="name">
|
||||
<cstring>GroupBox1</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string></string>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>11</number>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget class="QLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>Layout1</cstring>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<widget class="QCheckBox" row="4" column="3">
|
||||
<property name="name">
|
||||
<cstring>CheckButton2</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" row="1" column="1">
|
||||
<property name="name">
|
||||
<cstring>PushButton2</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" row="3" column="2" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>LineEdit5</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" row="3" column="0">
|
||||
<property name="name">
|
||||
<cstring>TextLabel5</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TL5</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>TextLabel1</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TL1</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" row="0" column="2" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>LineEdit1</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" row="4" column="2">
|
||||
<property name="name">
|
||||
<cstring>SpinBox1</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>CheckButton1</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>TextLabel2</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TL2</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" row="3" column="1">
|
||||
<property name="name">
|
||||
<cstring>PushButton5</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" row="2" column="1">
|
||||
<property name="name">
|
||||
<cstring>PushButton4</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" row="2" column="0">
|
||||
<property name="name">
|
||||
<cstring>TextLabel4</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TL4</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" row="0" column="1">
|
||||
<property name="name">
|
||||
<cstring>PushButton1</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" row="2" column="2" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>LineEdit4</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" row="1" column="2" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>LineEdit2</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" row="4" column="0">
|
||||
<property name="name">
|
||||
<cstring>TextLabel3</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TL3</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>PushButton1</tabstop>
|
||||
<tabstop>LineEdit1</tabstop>
|
||||
<tabstop>PushButton2</tabstop>
|
||||
<tabstop>LineEdit2</tabstop>
|
||||
<tabstop>SpinBox1</tabstop>
|
||||
<tabstop>CheckButton2</tabstop>
|
||||
</tabstops>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
@ -14,8 +14,7 @@
|
||||
# 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/ or email : webmaster.salome@opencascade.com
|
||||
#// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||
#
|
||||
#!/bin/sh
|
||||
|
||||
@ -100,5 +99,8 @@
|
||||
#uic -o DlgRef_6Sel_QTD.h DlgRef_6Sel_QTD.ui
|
||||
#uic -o DlgRef_6Sel_QTD.cxx -impl DlgRef_6Sel_QTD.h DlgRef_6Sel_QTD.ui
|
||||
|
||||
uic -o DlgRef_3Check_QTD.h DlgRef_3Check_QTD.ui
|
||||
uic -o DlgRef_3Check_QTD.cxx -impl DlgRef_3Check_QTD.h DlgRef_3Check_QTD.ui
|
||||
#uic -o DlgRef_3Check_QTD.h DlgRef_3Check_QTD.ui
|
||||
#uic -o DlgRef_3Check_QTD.cxx -impl DlgRef_3Check_QTD.h DlgRef_3Check_QTD.ui
|
||||
|
||||
uic -o DlgRef_4Sel1Spin2Check_QTD.h DlgRef_4Sel1Spin2Check_QTD.ui
|
||||
uic -o DlgRef_4Sel1Spin2Check_QTD.cxx -impl DlgRef_4Sel1Spin2Check_QTD.h DlgRef_4Sel1Spin2Check_QTD.ui
|
||||
|
Loading…
x
Reference in New Issue
Block a user