*** empty log message ***

This commit is contained in:
vsr 2007-10-17 06:10:49 +00:00
parent 9f339526d6
commit c2e8e86f2f
46 changed files with 2546 additions and 5007 deletions

View File

@ -1,59 +1,52 @@
// GEOM GEOMGUI : GUI for Geometry component
// 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
// 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 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.
// 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
// 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
//
// File : EntityGUI.cxx
// Author : Damien COQUERET, Open CASCADE S.A.S.
//
//
// File : EntityGUI.cxx
// Author : Damien COQUERET
// Module : GEOM
// $Header$
#include "EntityGUI.h"
#include "GeometryGUI.h"
#include "SUIT_Desktop.h"
#include "SUIT_ViewWindow.h"
#include "OCCViewer_ViewModel.h"
#include "OCCViewer_ViewManager.h"
#include "SalomeApp_Study.h"
#include "SalomeApp_Application.h"
#include <GeometryGUI.h>
#include <SUIT_Desktop.h>
#include <SUIT_ViewWindow.h>
#include <OCCViewer_ViewModel.h>
#include <OCCViewer_ViewManager.h>
#include <SalomeApp_Study.h>
#include <SalomeApp_Application.h>
#include <TopoDS_Shape.hxx>
#include "EntityGUI_SketcherDlg.h" // Sketcher
#include "EntityGUI_SubShapeDlg.h" // Method SUBSHAPE
#include "utilities.h"
using namespace boost;
using namespace std;
//=======================================================================
// function : EntityGUI()
// purpose : Constructor
//=======================================================================
EntityGUI::EntityGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
mySimulationShape1 = new AIS_Shape(TopoDS_Shape());
mySimulationShape2 = new AIS_Shape(TopoDS_Shape());
mySimulationShape1 = new AIS_Shape( TopoDS_Shape() );
mySimulationShape2 = new AIS_Shape( TopoDS_Shape() );
}
//=======================================================================
@ -69,7 +62,7 @@ EntityGUI::~EntityGUI()
// function : OnGUIEvent()
// purpose :
//=======================================================================
bool EntityGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
bool EntityGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return false;
@ -77,22 +70,21 @@ bool EntityGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 404: // SKETCHER
getGeometryGUI()->ActiveWorkingPlane();
aDlg = new EntityGUI_SketcherDlg(getGeometryGUI(), parent, "");
break;
case 407: // EXPLODE : use ic
aDlg = new EntityGUI_SubShapeDlg(getGeometryGUI(), parent, "");
break;
default:
app->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
switch ( theCommandID ) {
case 404: // SKETCHER
getGeometryGUI()->ActiveWorkingPlane();
aDlg = new EntityGUI_SketcherDlg( getGeometryGUI(), parent );
break;
case 407: // EXPLODE : use ic
aDlg = new EntityGUI_SubShapeDlg( getGeometryGUI(), parent );
break;
default:
app->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
break;
}
if ( aDlg )
aDlg->show();
return true;
}
@ -101,49 +93,48 @@ bool EntityGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
// function : DisplaySimulationShape()
// purpose : Displays 'this->mySimulationShape' a pure graphical shape from a TopoDS_Shape
//=====================================================================================
void EntityGUI::DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2)
void EntityGUI::DisplaySimulationShape( const TopoDS_Shape& S1, const TopoDS_Shape& S2 )
{
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
SUIT_ViewManager* aVM = app->desktop()->activeWindow()->getViewManager();
if (aVM->getType() != OCCViewer_Viewer::Type())
if ( aVM->getType() != OCCViewer_Viewer::Type() )
return;
OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)aVM)->getOCCViewer();
OCCViewer_Viewer* v3d = ( (OCCViewer_ViewManager*)aVM )->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
try {
if (!S1.IsNull()) {
if ( !S1.IsNull() ) {
/* erase any previous */
ic->Erase(mySimulationShape1, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape1);
ic->Erase( mySimulationShape1, Standard_True, Standard_False );
ic->ClearPrs( mySimulationShape1 );
mySimulationShape1 = new AIS_Shape(TopoDS_Shape());
mySimulationShape1->Set(S1);
mySimulationShape1->SetColor(Quantity_NOC_RED);
mySimulationShape1 = new AIS_Shape( TopoDS_Shape() );
mySimulationShape1->Set( S1 );
mySimulationShape1->SetColor( Quantity_NOC_RED );
ic->Deactivate(mySimulationShape1);
ic->Display(mySimulationShape1, Standard_False);
ic->Deactivate( mySimulationShape1 );
ic->Display( mySimulationShape1, Standard_False );
mySimulationShape1->UnsetColor();
}
if (!S2.IsNull()) {
ic->Erase(mySimulationShape2, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape2);
if ( !S2.IsNull() ) {
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
ic->ClearPrs( mySimulationShape2 );
mySimulationShape2 = new AIS_Shape(TopoDS_Shape());
mySimulationShape2->Set(S2);
mySimulationShape2->SetColor(Quantity_NOC_VIOLET);
mySimulationShape2 = new AIS_Shape( TopoDS_Shape() );
mySimulationShape2->Set( S2 );
mySimulationShape2->SetColor( Quantity_NOC_VIOLET );
ic->Deactivate(mySimulationShape2);
ic->Display(mySimulationShape2, Standard_False);
ic->Deactivate( mySimulationShape2 );
ic->Display( mySimulationShape2, Standard_False );
mySimulationShape2->UnsetColor();
}
ic->UpdateCurrentViewer();
}
catch(Standard_Failure) {
MESSAGE("Exception catched in EntityGUI::DisplaySimulationShape ");
catch( Standard_Failure ) {
MESSAGE( "Exception catched in EntityGUI::DisplaySimulationShape" );
}
return;
}
//==================================================================================
@ -162,19 +153,19 @@ void EntityGUI::EraseSimulationShape()
SUIT_ViewWindow* vw;
QListIterator<SUIT_ViewWindow*> itWL( aWndLst );
while ( itWL.hasNext() && (vw = itWL.next()) )
while ( itWL.hasNext() && ( vw = itWL.next() ) )
if ( vw->getViewManager()->study() == app->activeStudy() )
aWndLstAS.append( vw );
QListIterator<SUIT_ViewWindow*> itWLAS( aWndLstAS );
while ( itWLAS.hasNext() && (vw = itWLAS.next()) ) {
while ( itWLAS.hasNext() && ( vw = itWLAS.next() ) ) {
if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(vw->getViewManager()))->getOCCViewer();
OCCViewer_Viewer* v3d = ( (OCCViewer_ViewManager*)( vw->getViewManager() ) )->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
ic->Erase(mySimulationShape1, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape1);
ic->Erase(mySimulationShape2, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape2);
ic->Erase( mySimulationShape1, Standard_True, Standard_False );
ic->ClearPrs( mySimulationShape1 );
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
ic->ClearPrs( mySimulationShape2 );
ic->UpdateCurrentViewer();
}
}
@ -184,7 +175,7 @@ void EntityGUI::EraseSimulationShape()
// function : SObjectExist()
// purpose :
//=====================================================================================
bool EntityGUI::SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR)
bool EntityGUI::SObjectExist( const _PTR(SObject)& theFatherObject, const char* IOR )
{
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return false;
@ -192,20 +183,20 @@ bool EntityGUI::SObjectExist(const _PTR(SObject)& theFatherObject, const char* I
if ( !appStudy ) return false;
_PTR(Study) aStudy = appStudy->studyDS();
_PTR(ChildIterator) it ( aStudy->NewChildIterator(theFatherObject) );
_PTR(ChildIterator) it ( aStudy->NewChildIterator( theFatherObject ) );
_PTR(SObject) RefSO;
_PTR(GenericAttribute) anAttr;
for(; it->More();it->Next()) {
for ( ; it->More();it->Next() ) {
_PTR(SObject) SO ( it->Value() );
if(SO->FindAttribute(anAttr, "AttributeIOR")) {
if ( SO->FindAttribute( anAttr, "AttributeIOR" ) ) {
_PTR(AttributeIOR) anIOR ( anAttr );
if(strcmp( anIOR->Value().c_str(), IOR ) == 0)
if ( strcmp( anIOR->Value().c_str(), IOR ) == 0 )
return true;
}
if(SO->ReferencedObject(RefSO)) {
if(RefSO->FindAttribute(anAttr, "AttributeIOR")) {
if ( SO->ReferencedObject( RefSO ) ) {
if ( RefSO->FindAttribute( anAttr, "AttributeIOR" ) ) {
_PTR(AttributeIOR) anIOR ( anAttr );
if(strcmp(anIOR->Value().c_str(), IOR) == 0)
if ( strcmp( anIOR->Value().c_str(), IOR ) == 0 )
return true;
}
}
@ -219,7 +210,9 @@ bool EntityGUI::SObjectExist(const _PTR(SObject)& theFatherObject, const char* I
//=====================================================================================
extern "C"
{
GEOM_ENTITYGUI_EXPORT
#ifdef WIN32
__declspec( dllexport )
#endif
GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
return new EntityGUI( parent );

View File

@ -1,38 +1,34 @@
// GEOM GEOMGUI : GUI for Geometry component
// 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
// 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 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.
// 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
// 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
//
// File : EntityGUI.h
// Author : Damien COQUERET, Open CASCADE S.A.S.
//
//
// File : EntityGUI.h
// Author : Damien COQUERET
// Module : GEOM
#ifndef ENTITYGUI_H
#define ENTITYGUI_H
#include "GEOM_EntityGUI.hxx"
#include <GEOMGUI.h>
#include "GEOMGUI.h"
#include "SALOMEDSClient.hxx"
#include <SALOMEDSClient.hxx>
#include <AIS_Shape.hxx>
@ -42,23 +38,24 @@ class TopoDS_Shape;
// class : EntityGUI
// purpose :
//=================================================================================
class GEOM_ENTITYGUI_EXPORT EntityGUI : public GEOMGUI
class EntityGUI : public GEOMGUI
{
public :
EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
EntityGUI( GeometryGUI* );
~EntityGUI();
bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
bool OnGUIEvent( int, SUIT_Desktop* );
void DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2);
void EraseSimulationShape();
void DisplaySimulationShape( const TopoDS_Shape&, const TopoDS_Shape& );
void EraseSimulationShape();
// Methods for sub shapes explode
bool SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR);
bool SObjectExist( const _PTR(SObject)&, const char* );
public:
// AIS shape used only during topo/geom simulations
Handle(AIS_Shape) mySimulationShape1;
Handle(AIS_Shape) mySimulationShape2;
};
#endif
#endif // ENTITYGUI_H

View File

@ -1,172 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_1Sel_QTD.ui'
**
** Created: Tue Jul 10 10:38:07 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_1SEL_QTD_H
#define ENTITYGUI_1SEL_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_1Sel_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QGridLayout *gridLayout3;
QSpacerItem *spacerItem;
QPushButton *buttonApply;
QGridLayout *gridLayout4;
QPushButton *buttonRedo;
QPushButton *buttonUndo;
QGridLayout *gridLayout5;
QLabel *TextLabel1;
QSpacerItem *spacerItem1;
QPushButton *PushButton1;
QLineEdit *LineEdit1;
void setupUi(QWidget *EntityGUI_1Sel_QTD)
{
EntityGUI_1Sel_QTD->setObjectName(QString::fromUtf8("EntityGUI_1Sel_QTD"));
gridLayout = new QGridLayout(EntityGUI_1Sel_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupBox1 = new QGroupBox(EntityGUI_1Sel_QTD);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
gridLayout3 = new QGridLayout();
gridLayout3->setSpacing(6);
gridLayout3->setMargin(0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
spacerItem = new QSpacerItem(0, 163, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout3->addItem(spacerItem, 2, 0, 1, 1);
buttonApply = new QPushButton(GroupBox1);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
gridLayout3->addWidget(buttonApply, 0, 0, 1, 1);
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
buttonRedo = new QPushButton(GroupBox1);
buttonRedo->setObjectName(QString::fromUtf8("buttonRedo"));
gridLayout4->addWidget(buttonRedo, 0, 1, 1, 1);
buttonUndo = new QPushButton(GroupBox1);
buttonUndo->setObjectName(QString::fromUtf8("buttonUndo"));
gridLayout4->addWidget(buttonUndo, 0, 0, 1, 1);
gridLayout3->addLayout(gridLayout4, 1, 0, 1, 1);
gridLayout2->addLayout(gridLayout3, 0, 1, 1, 1);
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(6);
gridLayout5->setMargin(0);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
TextLabel1 = new QLabel(GroupBox1);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy);
TextLabel1->setWordWrap(false);
gridLayout5->addWidget(TextLabel1, 0, 0, 1, 1);
spacerItem1 = new QSpacerItem(0, 180, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout5->addItem(spacerItem1, 1, 2, 1, 1);
PushButton1 = new QPushButton(GroupBox1);
PushButton1->setObjectName(QString::fromUtf8("PushButton1"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(PushButton1->sizePolicy().hasHeightForWidth());
PushButton1->setSizePolicy(sizePolicy1);
gridLayout5->addWidget(PushButton1, 0, 1, 1, 1);
LineEdit1 = new QLineEdit(GroupBox1);
LineEdit1->setObjectName(QString::fromUtf8("LineEdit1"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(LineEdit1->sizePolicy().hasHeightForWidth());
LineEdit1->setSizePolicy(sizePolicy2);
gridLayout5->addWidget(LineEdit1, 0, 2, 1, 1);
gridLayout2->addLayout(gridLayout5, 0, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupBox1, 0, 0, 1, 1);
retranslateUi(EntityGUI_1Sel_QTD);
QSize size(329, 112);
size = size.expandedTo(EntityGUI_1Sel_QTD->minimumSizeHint());
EntityGUI_1Sel_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_1Sel_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_1Sel_QTD)
{
EntityGUI_1Sel_QTD->setWindowTitle(QApplication::translate("EntityGUI_1Sel_QTD", "EntityGUI_1Sel_QTD", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("EntityGUI_1Sel_QTD", "Values", 0, QApplication::UnicodeUTF8));
buttonApply->setText(QApplication::translate("EntityGUI_1Sel_QTD", "Create", 0, QApplication::UnicodeUTF8));
buttonRedo->setText(QApplication::translate("EntityGUI_1Sel_QTD", "Redo", 0, QApplication::UnicodeUTF8));
buttonUndo->setText(QApplication::translate("EntityGUI_1Sel_QTD", "Undo", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("EntityGUI_1Sel_QTD", "TL1", 0, QApplication::UnicodeUTF8));
PushButton1->setText(QString());
Q_UNUSED(EntityGUI_1Sel_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_1Sel_QTD: public Ui_EntityGUI_1Sel_QTD {};
} // namespace Ui
#endif // ENTITYGUI_1SEL_QTD_H

View File

@ -0,0 +1,126 @@
<ui version="4.0" >
<class>EntityGUI_1Sel_QTD</class>
<widget class="QWidget" name="EntityGUI_1Sel_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>402</width>
<height>88</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_1Sel_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="3" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QLineEdit" name="LineEdit1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="PushButton1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>PushButton1</tabstop>
<tabstop>LineEdit1</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>buttonUndo</tabstop>
<tabstop>buttonRedo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,59 +0,0 @@
// 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 : EntityGUI_1Spin.cxx
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#include "EntityGUI_1Spin.h"
#include "DlgRef_SpinBox.h"
/*
* Constructs a EntityGUI_1Spin which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
EntityGUI_1Spin::EntityGUI_1Spin(QWidget* parent, const char* name, Qt::WindowFlags fl)
:QWidget(parent, fl)
{
setupUi(this);
setObjectName(name);
SpinBox1->setAttribute( Qt::WA_DeleteOnClose );
SpinBox1->close();
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
gridLayout3->addWidget(SpinBox_DX, 0, 1);
}
/*
* Destroys the object and frees any allocated resources
*/
EntityGUI_1Spin::~EntityGUI_1Spin()
{
// no need to delete child widgets, Qt does it all for us
}

View File

@ -1,50 +0,0 @@
// 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 : EntityGUI_1Spin.h
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#ifndef ENTITYGUI_1SPIN_H
#define ENTITYGUI_1SPIN_H
#include "GEOM_EntityGUI.hxx"
#include "EntityGUI_1Spin_QTD.h"
class DlgRef_SpinBox;
class GEOM_ENTITYGUI_EXPORT EntityGUI_1Spin : public QWidget, public Ui::EntityGUI_1Spin_QTD
{
Q_OBJECT
public:
EntityGUI_1Spin(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
~EntityGUI_1Spin();
DlgRef_SpinBox* SpinBox_DX;
};
#endif // ENTITYGUI_1SPIN_H

View File

@ -1,160 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_1Spin_QTD.ui'
**
** Created: Tue Jul 10 10:27:13 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_1SPIN_QTD_H
#define ENTITYGUI_1SPIN_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_1Spin_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QGridLayout *gridLayout3;
QLabel *TextLabel1;
QSpinBox *SpinBox1;
QSpacerItem *spacerItem;
QGridLayout *gridLayout4;
QGridLayout *gridLayout5;
QPushButton *buttonRedo;
QPushButton *buttonUndo;
QPushButton *buttonApply;
QSpacerItem *spacerItem1;
void setupUi(QWidget *EntityGUI_1Spin_QTD)
{
EntityGUI_1Spin_QTD->setObjectName(QString::fromUtf8("EntityGUI_1Spin_QTD"));
gridLayout = new QGridLayout(EntityGUI_1Spin_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupBox1 = new QGroupBox(EntityGUI_1Spin_QTD);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
gridLayout3 = new QGridLayout();
gridLayout3->setSpacing(6);
gridLayout3->setMargin(0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
TextLabel1 = new QLabel(GroupBox1);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy);
TextLabel1->setWordWrap(false);
gridLayout3->addWidget(TextLabel1, 0, 0, 1, 1);
SpinBox1 = new QSpinBox(GroupBox1);
SpinBox1->setObjectName(QString::fromUtf8("SpinBox1"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(SpinBox1->sizePolicy().hasHeightForWidth());
SpinBox1->setSizePolicy(sizePolicy1);
gridLayout3->addWidget(SpinBox1, 0, 1, 1, 1);
spacerItem = new QSpacerItem(0, 82, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout3->addItem(spacerItem, 3, 1, 1, 1);
gridLayout2->addLayout(gridLayout3, 0, 0, 1, 1);
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(6);
gridLayout5->setMargin(0);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
buttonRedo = new QPushButton(GroupBox1);
buttonRedo->setObjectName(QString::fromUtf8("buttonRedo"));
gridLayout5->addWidget(buttonRedo, 0, 1, 1, 1);
buttonUndo = new QPushButton(GroupBox1);
buttonUndo->setObjectName(QString::fromUtf8("buttonUndo"));
gridLayout5->addWidget(buttonUndo, 0, 0, 1, 1);
gridLayout4->addLayout(gridLayout5, 1, 0, 1, 1);
buttonApply = new QPushButton(GroupBox1);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
gridLayout4->addWidget(buttonApply, 0, 0, 1, 1);
spacerItem1 = new QSpacerItem(0, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout4->addItem(spacerItem1, 2, 0, 1, 1);
gridLayout2->addLayout(gridLayout4, 0, 1, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupBox1, 0, 0, 1, 1);
retranslateUi(EntityGUI_1Spin_QTD);
QSize size(255, 112);
size = size.expandedTo(EntityGUI_1Spin_QTD->minimumSizeHint());
EntityGUI_1Spin_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_1Spin_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_1Spin_QTD)
{
EntityGUI_1Spin_QTD->setWindowTitle(QApplication::translate("EntityGUI_1Spin_QTD", "EntityGUI_1Spin_QTD", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("EntityGUI_1Spin_QTD", "Values", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("EntityGUI_1Spin_QTD", "TL1", 0, QApplication::UnicodeUTF8));
buttonRedo->setText(QApplication::translate("EntityGUI_1Spin_QTD", "Redo", 0, QApplication::UnicodeUTF8));
buttonUndo->setText(QApplication::translate("EntityGUI_1Spin_QTD", "Undo", 0, QApplication::UnicodeUTF8));
buttonApply->setText(QApplication::translate("EntityGUI_1Spin_QTD", "Create", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_1Spin_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_1Spin_QTD: public Ui_EntityGUI_1Spin_QTD {};
} // namespace Ui
#endif // ENTITYGUI_1SPIN_QTD_H

View File

@ -0,0 +1,101 @@
<ui version="4.0" >
<class>EntityGUI_1Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_1Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>268</width>
<height>88</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_1Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DX" />
</item>
<item row="1" column="2" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>SpinBox_DX</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>buttonUndo</tabstop>
<tabstop>buttonRedo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,64 +0,0 @@
// 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 : EntityGUI_2Spin.cxx
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#include "EntityGUI_2Spin.h"
#include "DlgRef_SpinBox.h"
/*
* Constructs a EntityGUI_2Spin which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
EntityGUI_2Spin::EntityGUI_2Spin(QWidget* parent, const char* name, Qt::WindowFlags fl)
:QWidget(parent, fl)
{
setupUi(this);
setObjectName(name);
SpinBox1->setAttribute( Qt::WA_DeleteOnClose );
SpinBox1->close();
SpinBox2->setAttribute( Qt::WA_DeleteOnClose );
SpinBox2->close();
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
gridLayout3->addWidget(SpinBox_DX, 0, 1);
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
gridLayout3->addWidget(SpinBox_DY, 1, 1);
}
/*
* Destroys the object and frees any allocated resources
*/
EntityGUI_2Spin::~EntityGUI_2Spin()
{
// no need to delete child widgets, Qt does it all for us
}

View File

@ -1,51 +0,0 @@
// 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 : EntityGUI_2Spin.h
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#ifndef ENTITYGUI_2SPIN_H
#define ENTITYGUI_2SPIN_H
#include "GEOM_EntityGUI.hxx"
#include "EntityGUI_2Spin_QTD.h"
class DlgRef_SpinBox;
class GEOM_ENTITYGUI_EXPORT EntityGUI_2Spin : public QWidget, public Ui::EntityGUI_2Spin_QTD
{
Q_OBJECT
public:
EntityGUI_2Spin(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
~EntityGUI_2Spin();
DlgRef_SpinBox* SpinBox_DX;
DlgRef_SpinBox* SpinBox_DY;
};
#endif // ENTITYGUI_2SPIN_H

View File

@ -1,184 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_2Spin_QTD.ui'
**
** Created: Tue Jul 10 10:30:02 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_2SPIN_QTD_H
#define ENTITYGUI_2SPIN_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_2Spin_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QGridLayout *gridLayout3;
QLabel *TextLabel2;
QLabel *TextLabel1;
QSpinBox *SpinBox1;
QSpinBox *SpinBox2;
QSpacerItem *spacerItem;
QGridLayout *gridLayout4;
QSpacerItem *spacerItem1;
QGridLayout *gridLayout5;
QPushButton *buttonUndo;
QPushButton *buttonRedo;
QPushButton *buttonApply;
void setupUi(QWidget *EntityGUI_2Spin_QTD)
{
EntityGUI_2Spin_QTD->setObjectName(QString::fromUtf8("EntityGUI_2Spin_QTD"));
gridLayout = new QGridLayout(EntityGUI_2Spin_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupBox1 = new QGroupBox(EntityGUI_2Spin_QTD);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
gridLayout3 = new QGridLayout();
gridLayout3->setSpacing(6);
gridLayout3->setMargin(0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
TextLabel2 = new QLabel(GroupBox1);
TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(TextLabel2->sizePolicy().hasHeightForWidth());
TextLabel2->setSizePolicy(sizePolicy);
TextLabel2->setWordWrap(false);
gridLayout3->addWidget(TextLabel2, 1, 0, 1, 1);
TextLabel1 = new QLabel(GroupBox1);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy1);
TextLabel1->setWordWrap(false);
gridLayout3->addWidget(TextLabel1, 0, 0, 1, 1);
SpinBox1 = new QSpinBox(GroupBox1);
SpinBox1->setObjectName(QString::fromUtf8("SpinBox1"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(SpinBox1->sizePolicy().hasHeightForWidth());
SpinBox1->setSizePolicy(sizePolicy2);
gridLayout3->addWidget(SpinBox1, 0, 1, 1, 1);
SpinBox2 = new QSpinBox(GroupBox1);
SpinBox2->setObjectName(QString::fromUtf8("SpinBox2"));
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(SpinBox2->sizePolicy().hasHeightForWidth());
SpinBox2->setSizePolicy(sizePolicy3);
gridLayout3->addWidget(SpinBox2, 1, 1, 1, 1);
spacerItem = new QSpacerItem(0, 82, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout3->addItem(spacerItem, 3, 1, 1, 1);
gridLayout2->addLayout(gridLayout3, 0, 0, 1, 1);
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
spacerItem1 = new QSpacerItem(0, 51, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout4->addItem(spacerItem1, 2, 0, 1, 1);
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(6);
gridLayout5->setMargin(0);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
buttonUndo = new QPushButton(GroupBox1);
buttonUndo->setObjectName(QString::fromUtf8("buttonUndo"));
gridLayout5->addWidget(buttonUndo, 0, 0, 1, 1);
buttonRedo = new QPushButton(GroupBox1);
buttonRedo->setObjectName(QString::fromUtf8("buttonRedo"));
gridLayout5->addWidget(buttonRedo, 0, 1, 1, 1);
gridLayout4->addLayout(gridLayout5, 1, 0, 1, 1);
buttonApply = new QPushButton(GroupBox1);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
gridLayout4->addWidget(buttonApply, 0, 0, 1, 1);
gridLayout2->addLayout(gridLayout4, 0, 1, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupBox1, 0, 0, 1, 1);
retranslateUi(EntityGUI_2Spin_QTD);
QSize size(255, 112);
size = size.expandedTo(EntityGUI_2Spin_QTD->minimumSizeHint());
EntityGUI_2Spin_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_2Spin_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_2Spin_QTD)
{
EntityGUI_2Spin_QTD->setWindowTitle(QApplication::translate("EntityGUI_2Spin_QTD", "EntityGUI_2Spin_QTD", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("EntityGUI_2Spin_QTD", "Values", 0, QApplication::UnicodeUTF8));
TextLabel2->setText(QApplication::translate("EntityGUI_2Spin_QTD", "TL2", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("EntityGUI_2Spin_QTD", "TL1", 0, QApplication::UnicodeUTF8));
buttonUndo->setText(QApplication::translate("EntityGUI_2Spin_QTD", "Undo", 0, QApplication::UnicodeUTF8));
buttonRedo->setText(QApplication::translate("EntityGUI_2Spin_QTD", "Redo", 0, QApplication::UnicodeUTF8));
buttonApply->setText(QApplication::translate("EntityGUI_2Spin_QTD", "Create", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_2Spin_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_2Spin_QTD: public Ui_EntityGUI_2Spin_QTD {};
} // namespace Ui
#endif // ENTITYGUI_2SPIN_QTD_H

View File

@ -0,0 +1,123 @@
<ui version="4.0" >
<class>EntityGUI_2Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_2Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>264</width>
<height>88</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_2Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DY" />
</item>
<item row="0" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DX" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="2" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>SpinBox_DX</tabstop>
<tabstop>SpinBox_DY</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>buttonUndo</tabstop>
<tabstop>buttonRedo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,68 +0,0 @@
// 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 : EntityGUI_3Spin.cxx
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#include "EntityGUI_3Spin.h"
#include "DlgRef_SpinBox.h"
/*
* Constructs a EntityGUI_3Spin which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
EntityGUI_3Spin::EntityGUI_3Spin(QWidget* parent, const char* name, Qt::WindowFlags fl)
:QWidget(parent, fl)
{
setupUi(this);
setObjectName(name);
SpinBox1->setAttribute( Qt::WA_DeleteOnClose );
SpinBox1->close();
SpinBox2->setAttribute( Qt::WA_DeleteOnClose );
SpinBox2->close();
SpinBox3->setAttribute( Qt::WA_DeleteOnClose );
SpinBox3->close();
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
gridLayout5->addWidget(SpinBox_DX, 0, 1);
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
gridLayout5->addWidget(SpinBox_DY, 1, 1);
SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
gridLayout5->addWidget(SpinBox_DZ, 2, 1);
}
/*
* Destroys the object and frees any allocated resources
*/
EntityGUI_3Spin::~EntityGUI_3Spin()
{
// no need to delete child widgets, Qt does it all for us
}

View File

@ -1,52 +0,0 @@
// 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 : EntityGUI_3Spin.h
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#ifndef ENTITYGUI_3SPIN_H
#define ENTITYGUI_3SPIN_H
#include "GEOM_EntityGUI.hxx"
#include "EntityGUI_3Spin_QTD.h"
class DlgRef_SpinBox;
class GEOM_ENTITYGUI_EXPORT EntityGUI_3Spin : public QWidget, public Ui::EntityGUI_3Spin_QTD
{
Q_OBJECT
public:
EntityGUI_3Spin( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
~EntityGUI_3Spin();
DlgRef_SpinBox* SpinBox_DX;
DlgRef_SpinBox* SpinBox_DY;
DlgRef_SpinBox* SpinBox_DZ;
};
#endif // ENTITYGUI_3SPIN_H

View File

@ -1,208 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_3Spin_QTD.ui'
**
** Created: Tue Jul 10 10:33:45 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_3SPIN_QTD_H
#define ENTITYGUI_3SPIN_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_3Spin_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QGridLayout *gridLayout3;
QPushButton *buttonApply;
QSpacerItem *spacerItem;
QGridLayout *gridLayout4;
QPushButton *buttonUndo;
QPushButton *buttonRedo;
QGridLayout *gridLayout5;
QLabel *TextLabel2;
QLabel *TextLabel1;
QSpinBox *SpinBox1;
QSpinBox *SpinBox2;
QLabel *TextLabel3;
QSpacerItem *spacerItem1;
QSpinBox *SpinBox3;
void setupUi(QWidget *EntityGUI_3Spin_QTD)
{
EntityGUI_3Spin_QTD->setObjectName(QString::fromUtf8("EntityGUI_3Spin_QTD"));
gridLayout = new QGridLayout(EntityGUI_3Spin_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupBox1 = new QGroupBox(EntityGUI_3Spin_QTD);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
gridLayout3 = new QGridLayout();
gridLayout3->setSpacing(6);
gridLayout3->setMargin(0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
buttonApply = new QPushButton(GroupBox1);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
gridLayout3->addWidget(buttonApply, 0, 0, 1, 1);
spacerItem = new QSpacerItem(0, 121, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout3->addItem(spacerItem, 2, 0, 1, 1);
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
buttonUndo = new QPushButton(GroupBox1);
buttonUndo->setObjectName(QString::fromUtf8("buttonUndo"));
gridLayout4->addWidget(buttonUndo, 0, 0, 1, 1);
buttonRedo = new QPushButton(GroupBox1);
buttonRedo->setObjectName(QString::fromUtf8("buttonRedo"));
gridLayout4->addWidget(buttonRedo, 0, 1, 1, 1);
gridLayout3->addLayout(gridLayout4, 1, 0, 1, 1);
gridLayout2->addLayout(gridLayout3, 0, 1, 1, 1);
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(6);
gridLayout5->setMargin(0);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
TextLabel2 = new QLabel(GroupBox1);
TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(TextLabel2->sizePolicy().hasHeightForWidth());
TextLabel2->setSizePolicy(sizePolicy);
TextLabel2->setWordWrap(false);
gridLayout5->addWidget(TextLabel2, 1, 0, 1, 1);
TextLabel1 = new QLabel(GroupBox1);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy1);
TextLabel1->setWordWrap(false);
gridLayout5->addWidget(TextLabel1, 0, 0, 1, 1);
SpinBox1 = new QSpinBox(GroupBox1);
SpinBox1->setObjectName(QString::fromUtf8("SpinBox1"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(SpinBox1->sizePolicy().hasHeightForWidth());
SpinBox1->setSizePolicy(sizePolicy2);
gridLayout5->addWidget(SpinBox1, 0, 1, 1, 1);
SpinBox2 = new QSpinBox(GroupBox1);
SpinBox2->setObjectName(QString::fromUtf8("SpinBox2"));
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(SpinBox2->sizePolicy().hasHeightForWidth());
SpinBox2->setSizePolicy(sizePolicy3);
gridLayout5->addWidget(SpinBox2, 1, 1, 1, 1);
TextLabel3 = new QLabel(GroupBox1);
TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(TextLabel3->sizePolicy().hasHeightForWidth());
TextLabel3->setSizePolicy(sizePolicy4);
TextLabel3->setWordWrap(false);
gridLayout5->addWidget(TextLabel3, 2, 0, 1, 1);
spacerItem1 = new QSpacerItem(0, 82, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout5->addItem(spacerItem1, 3, 1, 1, 1);
SpinBox3 = new QSpinBox(GroupBox1);
SpinBox3->setObjectName(QString::fromUtf8("SpinBox3"));
QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy5.setHorizontalStretch(0);
sizePolicy5.setVerticalStretch(0);
sizePolicy5.setHeightForWidth(SpinBox3->sizePolicy().hasHeightForWidth());
SpinBox3->setSizePolicy(sizePolicy5);
gridLayout5->addWidget(SpinBox3, 2, 1, 1, 1);
gridLayout2->addLayout(gridLayout5, 0, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupBox1, 0, 0, 1, 1);
retranslateUi(EntityGUI_3Spin_QTD);
QSize size(255, 125);
size = size.expandedTo(EntityGUI_3Spin_QTD->minimumSizeHint());
EntityGUI_3Spin_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_3Spin_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_3Spin_QTD)
{
EntityGUI_3Spin_QTD->setWindowTitle(QApplication::translate("EntityGUI_3Spin_QTD", "EntityGUI_3Spin_QTD", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("EntityGUI_3Spin_QTD", "Values", 0, QApplication::UnicodeUTF8));
buttonApply->setText(QApplication::translate("EntityGUI_3Spin_QTD", "Create", 0, QApplication::UnicodeUTF8));
buttonUndo->setText(QApplication::translate("EntityGUI_3Spin_QTD", "Undo", 0, QApplication::UnicodeUTF8));
buttonRedo->setText(QApplication::translate("EntityGUI_3Spin_QTD", "Redo", 0, QApplication::UnicodeUTF8));
TextLabel2->setText(QApplication::translate("EntityGUI_3Spin_QTD", "TL2", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("EntityGUI_3Spin_QTD", "TL1", 0, QApplication::UnicodeUTF8));
TextLabel3->setText(QApplication::translate("EntityGUI_3Spin_QTD", "TL3", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_3Spin_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_3Spin_QTD: public Ui_EntityGUI_3Spin_QTD {};
} // namespace Ui
#endif // ENTITYGUI_3SPIN_QTD_H

View File

@ -0,0 +1,145 @@
<ui version="4.0" >
<class>EntityGUI_3Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_3Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>264</width>
<height>114</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_3Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DZ" />
</item>
<item row="1" column="2" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DY" />
</item>
<item row="0" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DX" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="TextLabel3" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>SpinBox_DX</tabstop>
<tabstop>SpinBox_DY</tabstop>
<tabstop>SpinBox_DZ</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>buttonUndo</tabstop>
<tabstop>buttonRedo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,73 +0,0 @@
// 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 : EntityGUI_4Spin.cxx
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#include "EntityGUI_4Spin.h"
#include "DlgRef_SpinBox.h"
/*
* Constructs a EntityGUI_4Spin which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
EntityGUI_4Spin::EntityGUI_4Spin(QWidget* parent, const char* name, Qt::WindowFlags fl)
:QWidget(parent, fl)
{
setupUi(this);
setObjectName(name);
SpinBox1->setAttribute( Qt::WA_DeleteOnClose );
SpinBox1->close();
SpinBox2->setAttribute( Qt::WA_DeleteOnClose );
SpinBox2->close();
SpinBox3->setAttribute( Qt::WA_DeleteOnClose );
SpinBox3->close();
SpinBox4->setAttribute( Qt::WA_DeleteOnClose );
SpinBox4->close();
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
gridLayout5->addWidget(SpinBox_DX, 0, 1);
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
gridLayout5->addWidget(SpinBox_DY, 1, 1);
SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
gridLayout5->addWidget(SpinBox_DZ, 2, 1);
SpinBox_DS = new DlgRef_SpinBox(GroupBox1, "SpinBox_DS");
gridLayout5->addWidget(SpinBox_DS, 3, 1);
}
/*
* Destroys the object and frees any allocated resources
*/
EntityGUI_4Spin::~EntityGUI_4Spin()
{
// no need to delete child widgets, Qt does it all for us
}

View File

@ -1,53 +0,0 @@
// 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 : EntityGUI_4Spin.h
// Author : Damien COQUERET
// Module : GEOM
// $Header:
#ifndef ENTITYGUI_4SPIN_H
#define ENTITYGUI_4SPIN_H
#include "GEOM_EntityGUI.hxx"
#include "EntityGUI_4Spin_QTD.h"
class DlgRef_SpinBox;
class GEOM_ENTITYGUI_EXPORT EntityGUI_4Spin : public QWidget, public Ui::EntityGUI_4Spin_QTD
{
Q_OBJECT
public:
EntityGUI_4Spin( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
~EntityGUI_4Spin();
DlgRef_SpinBox* SpinBox_DX;
DlgRef_SpinBox* SpinBox_DY;
DlgRef_SpinBox* SpinBox_DZ;
DlgRef_SpinBox* SpinBox_DS;
};
#endif // ENTITYGUI_4SPIN_H

View File

@ -1,232 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_4Spin_QTD.ui'
**
** Created: Tue Jul 10 10:35:47 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_4SPIN_QTD_H
#define ENTITYGUI_4SPIN_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_4Spin_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QGridLayout *gridLayout3;
QGridLayout *gridLayout4;
QPushButton *buttonRedo;
QPushButton *buttonUndo;
QSpacerItem *spacerItem;
QPushButton *buttonApply;
QGridLayout *gridLayout5;
QSpinBox *SpinBox3;
QSpinBox *SpinBox2;
QLabel *TextLabel2;
QSpacerItem *spacerItem1;
QSpinBox *SpinBox4;
QLabel *TextLabel3;
QSpinBox *SpinBox1;
QLabel *TextLabel1;
QLabel *TextLabel4;
void setupUi(QWidget *EntityGUI_4Spin_QTD)
{
EntityGUI_4Spin_QTD->setObjectName(QString::fromUtf8("EntityGUI_4Spin_QTD"));
gridLayout = new QGridLayout(EntityGUI_4Spin_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupBox1 = new QGroupBox(EntityGUI_4Spin_QTD);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
gridLayout3 = new QGridLayout();
gridLayout3->setSpacing(6);
gridLayout3->setMargin(0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
buttonRedo = new QPushButton(GroupBox1);
buttonRedo->setObjectName(QString::fromUtf8("buttonRedo"));
gridLayout4->addWidget(buttonRedo, 0, 1, 1, 1);
buttonUndo = new QPushButton(GroupBox1);
buttonUndo->setObjectName(QString::fromUtf8("buttonUndo"));
gridLayout4->addWidget(buttonUndo, 0, 0, 1, 1);
gridLayout3->addLayout(gridLayout4, 1, 0, 1, 1);
spacerItem = new QSpacerItem(0, 45, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout3->addItem(spacerItem, 2, 0, 1, 1);
buttonApply = new QPushButton(GroupBox1);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
gridLayout3->addWidget(buttonApply, 0, 0, 1, 1);
gridLayout2->addLayout(gridLayout3, 0, 1, 1, 1);
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(6);
gridLayout5->setMargin(0);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
SpinBox3 = new QSpinBox(GroupBox1);
SpinBox3->setObjectName(QString::fromUtf8("SpinBox3"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(SpinBox3->sizePolicy().hasHeightForWidth());
SpinBox3->setSizePolicy(sizePolicy);
gridLayout5->addWidget(SpinBox3, 2, 1, 1, 1);
SpinBox2 = new QSpinBox(GroupBox1);
SpinBox2->setObjectName(QString::fromUtf8("SpinBox2"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(SpinBox2->sizePolicy().hasHeightForWidth());
SpinBox2->setSizePolicy(sizePolicy1);
gridLayout5->addWidget(SpinBox2, 1, 1, 1, 1);
TextLabel2 = new QLabel(GroupBox1);
TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(TextLabel2->sizePolicy().hasHeightForWidth());
TextLabel2->setSizePolicy(sizePolicy2);
TextLabel2->setWordWrap(false);
gridLayout5->addWidget(TextLabel2, 1, 0, 1, 1);
spacerItem1 = new QSpacerItem(0, 70, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout5->addItem(spacerItem1, 4, 1, 1, 1);
SpinBox4 = new QSpinBox(GroupBox1);
SpinBox4->setObjectName(QString::fromUtf8("SpinBox4"));
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(SpinBox4->sizePolicy().hasHeightForWidth());
SpinBox4->setSizePolicy(sizePolicy3);
gridLayout5->addWidget(SpinBox4, 3, 1, 1, 1);
TextLabel3 = new QLabel(GroupBox1);
TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(TextLabel3->sizePolicy().hasHeightForWidth());
TextLabel3->setSizePolicy(sizePolicy4);
TextLabel3->setWordWrap(false);
gridLayout5->addWidget(TextLabel3, 2, 0, 1, 1);
SpinBox1 = new QSpinBox(GroupBox1);
SpinBox1->setObjectName(QString::fromUtf8("SpinBox1"));
QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy5.setHorizontalStretch(0);
sizePolicy5.setVerticalStretch(0);
sizePolicy5.setHeightForWidth(SpinBox1->sizePolicy().hasHeightForWidth());
SpinBox1->setSizePolicy(sizePolicy5);
gridLayout5->addWidget(SpinBox1, 0, 1, 1, 1);
TextLabel1 = new QLabel(GroupBox1);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy6.setHorizontalStretch(0);
sizePolicy6.setVerticalStretch(0);
sizePolicy6.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy6);
TextLabel1->setWordWrap(false);
gridLayout5->addWidget(TextLabel1, 0, 0, 1, 1);
TextLabel4 = new QLabel(GroupBox1);
TextLabel4->setObjectName(QString::fromUtf8("TextLabel4"));
QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy7.setHorizontalStretch(0);
sizePolicy7.setVerticalStretch(0);
sizePolicy7.setHeightForWidth(TextLabel4->sizePolicy().hasHeightForWidth());
TextLabel4->setSizePolicy(sizePolicy7);
TextLabel4->setWordWrap(false);
gridLayout5->addWidget(TextLabel4, 3, 0, 1, 1);
gridLayout2->addLayout(gridLayout5, 0, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupBox1, 0, 0, 1, 1);
retranslateUi(EntityGUI_4Spin_QTD);
QSize size(255, 154);
size = size.expandedTo(EntityGUI_4Spin_QTD->minimumSizeHint());
EntityGUI_4Spin_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_4Spin_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_4Spin_QTD)
{
EntityGUI_4Spin_QTD->setWindowTitle(QApplication::translate("EntityGUI_4Spin_QTD", "EntityGUI_4Spin_QTD", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("EntityGUI_4Spin_QTD", "Values", 0, QApplication::UnicodeUTF8));
buttonRedo->setText(QApplication::translate("EntityGUI_4Spin_QTD", "Redo", 0, QApplication::UnicodeUTF8));
buttonUndo->setText(QApplication::translate("EntityGUI_4Spin_QTD", "Undo", 0, QApplication::UnicodeUTF8));
buttonApply->setText(QApplication::translate("EntityGUI_4Spin_QTD", "Create", 0, QApplication::UnicodeUTF8));
TextLabel2->setText(QApplication::translate("EntityGUI_4Spin_QTD", "TL2", 0, QApplication::UnicodeUTF8));
TextLabel3->setText(QApplication::translate("EntityGUI_4Spin_QTD", "TL3", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("EntityGUI_4Spin_QTD", "TL1", 0, QApplication::UnicodeUTF8));
TextLabel4->setText(QApplication::translate("EntityGUI_4Spin_QTD", "TL4", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_4Spin_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_4Spin_QTD: public Ui_EntityGUI_4Spin_QTD {};
} // namespace Ui
#endif // ENTITYGUI_4SPIN_QTD_H

View File

@ -0,0 +1,167 @@
<ui version="4.0" >
<class>EntityGUI_4Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_4Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>264</width>
<height>140</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_4Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DZ" />
</item>
<item row="3" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DS" />
</item>
<item row="1" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DY" />
</item>
<item row="0" column="1" >
<widget class="QDoubleSpinBox" name="SpinBox_DX" />
</item>
<item row="1" column="2" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="TextLabel4" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="TextLabel3" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>SpinBox_DX</tabstop>
<tabstop>SpinBox_DY</tabstop>
<tabstop>SpinBox_DZ</tabstop>
<tabstop>SpinBox_DS</tabstop>
<tabstop>buttonApply</tabstop>
<tabstop>buttonUndo</tabstop>
<tabstop>buttonRedo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,114 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_Dir1_QTD.ui'
**
** Created: Tue Jul 10 10:20:45 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_DIR1_QTD_H
#define ENTITYGUI_DIR1_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QRadioButton>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_Dir1_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupDir1;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QRadioButton *RB_Dir12;
QRadioButton *RB_Dir13;
QRadioButton *RB_Dir11;
QRadioButton *RB_Dir14;
void setupUi(QWidget *EntityGUI_Dir1_QTD)
{
EntityGUI_Dir1_QTD->setObjectName(QString::fromUtf8("EntityGUI_Dir1_QTD"));
gridLayout = new QGridLayout(EntityGUI_Dir1_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupDir1 = new QGroupBox(EntityGUI_Dir1_QTD);
GroupDir1->setObjectName(QString::fromUtf8("GroupDir1"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(GroupDir1->sizePolicy().hasHeightForWidth());
GroupDir1->setSizePolicy(sizePolicy);
gridLayout1 = new QGridLayout(GroupDir1);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
RB_Dir12 = new QRadioButton(GroupDir1);
RB_Dir12->setObjectName(QString::fromUtf8("RB_Dir12"));
gridLayout2->addWidget(RB_Dir12, 1, 0, 1, 1);
RB_Dir13 = new QRadioButton(GroupDir1);
RB_Dir13->setObjectName(QString::fromUtf8("RB_Dir13"));
gridLayout2->addWidget(RB_Dir13, 2, 0, 1, 1);
RB_Dir11 = new QRadioButton(GroupDir1);
RB_Dir11->setObjectName(QString::fromUtf8("RB_Dir11"));
gridLayout2->addWidget(RB_Dir11, 0, 0, 1, 1);
RB_Dir14 = new QRadioButton(GroupDir1);
RB_Dir14->setObjectName(QString::fromUtf8("RB_Dir14"));
gridLayout2->addWidget(RB_Dir14, 3, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupDir1, 0, 0, 1, 1);
QWidget::setTabOrder(RB_Dir11, RB_Dir12);
QWidget::setTabOrder(RB_Dir12, RB_Dir13);
QWidget::setTabOrder(RB_Dir13, RB_Dir14);
retranslateUi(EntityGUI_Dir1_QTD);
QSize size(131, 123);
size = size.expandedTo(EntityGUI_Dir1_QTD->minimumSizeHint());
EntityGUI_Dir1_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_Dir1_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_Dir1_QTD)
{
EntityGUI_Dir1_QTD->setWindowTitle(QApplication::translate("EntityGUI_Dir1_QTD", "EntityGUI_Dir1_QTD", 0, QApplication::UnicodeUTF8));
GroupDir1->setTitle(QApplication::translate("EntityGUI_Dir1_QTD", "Direction", 0, QApplication::UnicodeUTF8));
RB_Dir12->setText(QApplication::translate("EntityGUI_Dir1_QTD", "Perpendicular", 0, QApplication::UnicodeUTF8));
RB_Dir13->setText(QApplication::translate("EntityGUI_Dir1_QTD", "Tangent", 0, QApplication::UnicodeUTF8));
RB_Dir11->setText(QApplication::translate("EntityGUI_Dir1_QTD", "Angle", 0, QApplication::UnicodeUTF8));
RB_Dir14->setText(QApplication::translate("EntityGUI_Dir1_QTD", "VX-VY", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_Dir1_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_Dir1_QTD: public Ui_EntityGUI_Dir1_QTD {};
} // namespace Ui
#endif // ENTITYGUI_DIR1_QTD_H

View File

@ -0,0 +1,85 @@
<ui version="4.0" >
<class>EntityGUI_Dir1_QTD</class>
<widget class="QWidget" name="EntityGUI_Dir1_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>120</width>
<height>124</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Dir1_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupDir1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Direction</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" >
<widget class="QRadioButton" name="RB_Dir14" >
<property name="text" >
<string>VX-VY</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Dir13" >
<property name="text" >
<string>Tangent</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Dir11" >
<property name="text" >
<string>Angle</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Dir12" >
<property name="text" >
<string>Perpendicular</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Dir11</tabstop>
<tabstop>RB_Dir12</tabstop>
<tabstop>RB_Dir13</tabstop>
<tabstop>RB_Dir14</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,112 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_Dir2_QTD.ui'
**
** Created: Tue Jul 10 10:24:41 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_DIR2_QTD_H
#define ENTITYGUI_DIR2_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_Dir2_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupDir2;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QRadioButton *RB_Dir22;
QRadioButton *RB_Dir23;
QSpacerItem *spacerItem;
QRadioButton *RB_Dir21;
void setupUi(QWidget *EntityGUI_Dir2_QTD)
{
EntityGUI_Dir2_QTD->setObjectName(QString::fromUtf8("EntityGUI_Dir2_QTD"));
gridLayout = new QGridLayout(EntityGUI_Dir2_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupDir2 = new QGroupBox(EntityGUI_Dir2_QTD);
GroupDir2->setObjectName(QString::fromUtf8("GroupDir2"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(GroupDir2->sizePolicy().hasHeightForWidth());
GroupDir2->setSizePolicy(sizePolicy);
gridLayout1 = new QGridLayout(GroupDir2);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
RB_Dir22 = new QRadioButton(GroupDir2);
RB_Dir22->setObjectName(QString::fromUtf8("RB_Dir22"));
gridLayout2->addWidget(RB_Dir22, 1, 0, 1, 1);
RB_Dir23 = new QRadioButton(GroupDir2);
RB_Dir23->setObjectName(QString::fromUtf8("RB_Dir23"));
gridLayout2->addWidget(RB_Dir23, 2, 0, 1, 1);
spacerItem = new QSpacerItem(0, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout2->addItem(spacerItem, 3, 0, 1, 1);
RB_Dir21 = new QRadioButton(GroupDir2);
RB_Dir21->setObjectName(QString::fromUtf8("RB_Dir21"));
gridLayout2->addWidget(RB_Dir21, 0, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupDir2, 0, 0, 1, 1);
QWidget::setTabOrder(RB_Dir21, RB_Dir22);
QWidget::setTabOrder(RB_Dir22, RB_Dir23);
retranslateUi(EntityGUI_Dir2_QTD);
QSize size(124, 106);
size = size.expandedTo(EntityGUI_Dir2_QTD->minimumSizeHint());
EntityGUI_Dir2_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_Dir2_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_Dir2_QTD)
{
EntityGUI_Dir2_QTD->setWindowTitle(QApplication::translate("EntityGUI_Dir2_QTD", "EntityGUI_Dir2_QTD", 0, QApplication::UnicodeUTF8));
GroupDir2->setTitle(QApplication::translate("EntityGUI_Dir2_QTD", "Direction", 0, QApplication::UnicodeUTF8));
RB_Dir22->setText(QApplication::translate("EntityGUI_Dir2_QTD", "X", 0, QApplication::UnicodeUTF8));
RB_Dir23->setText(QApplication::translate("EntityGUI_Dir2_QTD", "Y", 0, QApplication::UnicodeUTF8));
RB_Dir21->setText(QApplication::translate("EntityGUI_Dir2_QTD", "Length", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_Dir2_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_Dir2_QTD: public Ui_EntityGUI_Dir2_QTD {};
} // namespace Ui
#endif // ENTITYGUI_DIR2_QTD_H

View File

@ -0,0 +1,77 @@
<ui version="4.0" >
<class>EntityGUI_Dir2_QTD</class>
<widget class="QWidget" name="EntityGUI_Dir2_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>91</width>
<height>100</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Dir2_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupDir2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Direction</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Dir21" >
<property name="text" >
<string>Length</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Dir23" >
<property name="text" >
<string>Y</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Dir22" >
<property name="text" >
<string>X</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Dir21</tabstop>
<tabstop>RB_Dir22</tabstop>
<tabstop>RB_Dir23</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,106 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_Point_QTD.ui'
**
** Created: Mon Jul 9 17:24:53 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_POINT_QTD_H
#define ENTITYGUI_POINT_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QRadioButton>
#include <QtGui/QWidget>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_Point_QTD
{
public:
QGridLayout *gridLayout;
QGroupBox *GroupPoint;
QGridLayout *gridLayout1;
QGridLayout *gridLayout2;
QRadioButton *RB_Point2;
QRadioButton *RB_Point1;
QRadioButton *RB_Point3;
void setupUi(QWidget *EntityGUI_Point_QTD)
{
EntityGUI_Point_QTD->setObjectName(QString::fromUtf8("EntityGUI_Point_QTD"));
gridLayout = new QGridLayout(EntityGUI_Point_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(0);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
GroupPoint = new QGroupBox(EntityGUI_Point_QTD);
GroupPoint->setObjectName(QString::fromUtf8("GroupPoint"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(GroupPoint->sizePolicy().hasHeightForWidth());
GroupPoint->setSizePolicy(sizePolicy);
gridLayout1 = new QGridLayout(GroupPoint);
gridLayout1->setSpacing(6);
gridLayout1->setMargin(11);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
gridLayout2 = new QGridLayout();
gridLayout2->setSpacing(6);
gridLayout2->setMargin(0);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
RB_Point2 = new QRadioButton(GroupPoint);
RB_Point2->setObjectName(QString::fromUtf8("RB_Point2"));
gridLayout2->addWidget(RB_Point2, 1, 0, 1, 1);
RB_Point1 = new QRadioButton(GroupPoint);
RB_Point1->setObjectName(QString::fromUtf8("RB_Point1"));
gridLayout2->addWidget(RB_Point1, 0, 0, 1, 1);
RB_Point3 = new QRadioButton(GroupPoint);
RB_Point3->setObjectName(QString::fromUtf8("RB_Point3"));
gridLayout2->addWidget(RB_Point3, 2, 0, 1, 1);
gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
gridLayout->addWidget(GroupPoint, 0, 0, 1, 1);
QWidget::setTabOrder(RB_Point1, RB_Point2);
QWidget::setTabOrder(RB_Point2, RB_Point3);
retranslateUi(EntityGUI_Point_QTD);
QSize size(124, 106);
size = size.expandedTo(EntityGUI_Point_QTD->minimumSizeHint());
EntityGUI_Point_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_Point_QTD);
} // setupUi
void retranslateUi(QWidget *EntityGUI_Point_QTD)
{
EntityGUI_Point_QTD->setWindowTitle(QApplication::translate("EntityGUI_Point_QTD", "EntityGUI_Point_QTD", 0, QApplication::UnicodeUTF8));
GroupPoint->setTitle(QApplication::translate("EntityGUI_Point_QTD", "Point", 0, QApplication::UnicodeUTF8));
RB_Point2->setText(QApplication::translate("EntityGUI_Point_QTD", "Relative", 0, QApplication::UnicodeUTF8));
RB_Point1->setText(QApplication::translate("EntityGUI_Point_QTD", "Absolute", 0, QApplication::UnicodeUTF8));
RB_Point3->setText(QApplication::translate("EntityGUI_Point_QTD", "Selection", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_Point_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_Point_QTD: public Ui_EntityGUI_Point_QTD {};
} // namespace Ui
#endif // ENTITYGUI_POINT_QTD_H

View File

@ -0,0 +1,77 @@
<ui version="4.0" >
<class>EntityGUI_Point_QTD</class>
<widget class="QWidget" name="EntityGUI_Point_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>97</width>
<height>100</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Point_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupPoint" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Point</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Point2" >
<property name="text" >
<string>Relative</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Point3" >
<property name="text" >
<string>Selection</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Point1" >
<property name="text" >
<string>Absolute</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Point1</tabstop>
<tabstop>RB_Point2</tabstop>
<tabstop>RB_Point3</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,287 +0,0 @@
/********************************************************************************
** Form generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
**
** Created: Mon Jul 9 17:21:08 2007
** by: Qt User Interface Compiler version 4.2.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef ENTITYGUI_SKELETON_QTD_H
#define ENTITYGUI_SKELETON_QTD_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <Qt3Support/Q3MimeSourceFactory>
class Ui_EntityGUI_Skeleton_QTD
{
public:
QGridLayout *gridLayout;
QGridLayout *gridLayout1;
QGroupBox *GroupVal;
QGroupBox *GroupConstructors;
QGridLayout *gridLayout2;
QHBoxLayout *hboxLayout;
QRadioButton *RadioButton1;
QRadioButton *RadioButton2;
QGroupBox *GroupDest;
QGridLayout *gridLayout3;
QGridLayout *gridLayout4;
QGroupBox *GroupDest1;
QGridLayout *gridLayout5;
QGridLayout *gridLayout6;
QRadioButton *RB_Dest2;
QRadioButton *RB_Dest1;
QGroupBox *GroupDest2;
QGridLayout *gridLayout7;
QGroupBox *GroupDest3;
QGridLayout *gridLayout8;
QGroupBox *GroupButtons;
QHBoxLayout *hboxLayout1;
QHBoxLayout *hboxLayout2;
QPushButton *buttonEnd;
QPushButton *buttonClose;
QSpacerItem *spacerItem;
QPushButton *buttonCancel;
QPushButton *buttonHelp;
void setupUi(QDialog *EntityGUI_Skeleton_QTD)
{
EntityGUI_Skeleton_QTD->setObjectName(QString::fromUtf8("EntityGUI_Skeleton_QTD"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(7));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(EntityGUI_Skeleton_QTD->sizePolicy().hasHeightForWidth());
EntityGUI_Skeleton_QTD->setSizePolicy(sizePolicy);
gridLayout = new QGridLayout(EntityGUI_Skeleton_QTD);
gridLayout->setSpacing(6);
gridLayout->setMargin(11);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout1 = new QGridLayout();
gridLayout1->setSpacing(6);
gridLayout1->setMargin(0);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
GroupVal = new QGroupBox(EntityGUI_Skeleton_QTD);
GroupVal->setObjectName(QString::fromUtf8("GroupVal"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(GroupVal->sizePolicy().hasHeightForWidth());
GroupVal->setSizePolicy(sizePolicy1);
gridLayout1->addWidget(GroupVal, 2, 0, 1, 1);
GroupConstructors = new QGroupBox(EntityGUI_Skeleton_QTD);
GroupConstructors->setObjectName(QString::fromUtf8("GroupConstructors"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(GroupConstructors->sizePolicy().hasHeightForWidth());
GroupConstructors->setSizePolicy(sizePolicy2);
gridLayout2 = new QGridLayout(GroupConstructors);
gridLayout2->setSpacing(6);
gridLayout2->setMargin(11);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(6);
hboxLayout->setMargin(0);
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
RadioButton1 = new QRadioButton(GroupConstructors);
RadioButton1->setObjectName(QString::fromUtf8("RadioButton1"));
hboxLayout->addWidget(RadioButton1);
RadioButton2 = new QRadioButton(GroupConstructors);
RadioButton2->setObjectName(QString::fromUtf8("RadioButton2"));
hboxLayout->addWidget(RadioButton2);
gridLayout2->addLayout(hboxLayout, 0, 0, 1, 1);
gridLayout1->addWidget(GroupConstructors, 0, 0, 1, 1);
GroupDest = new QGroupBox(EntityGUI_Skeleton_QTD);
GroupDest->setObjectName(QString::fromUtf8("GroupDest"));
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(GroupDest->sizePolicy().hasHeightForWidth());
GroupDest->setSizePolicy(sizePolicy3);
gridLayout3 = new QGridLayout(GroupDest);
gridLayout3->setSpacing(6);
gridLayout3->setMargin(11);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
gridLayout4 = new QGridLayout();
gridLayout4->setSpacing(6);
gridLayout4->setMargin(0);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
GroupDest1 = new QGroupBox(GroupDest);
GroupDest1->setObjectName(QString::fromUtf8("GroupDest1"));
QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(GroupDest1->sizePolicy().hasHeightForWidth());
GroupDest1->setSizePolicy(sizePolicy4);
gridLayout5 = new QGridLayout(GroupDest1);
gridLayout5->setSpacing(6);
gridLayout5->setMargin(11);
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
gridLayout6 = new QGridLayout();
gridLayout6->setSpacing(6);
gridLayout6->setMargin(0);
gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
RB_Dest2 = new QRadioButton(GroupDest1);
RB_Dest2->setObjectName(QString::fromUtf8("RB_Dest2"));
gridLayout6->addWidget(RB_Dest2, 0, 1, 1, 1);
RB_Dest1 = new QRadioButton(GroupDest1);
RB_Dest1->setObjectName(QString::fromUtf8("RB_Dest1"));
gridLayout6->addWidget(RB_Dest1, 0, 0, 1, 1);
gridLayout5->addLayout(gridLayout6, 0, 0, 1, 1);
gridLayout4->addWidget(GroupDest1, 0, 0, 1, 2);
GroupDest2 = new QGroupBox(GroupDest);
GroupDest2->setObjectName(QString::fromUtf8("GroupDest2"));
QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
sizePolicy5.setHorizontalStretch(0);
sizePolicy5.setVerticalStretch(0);
sizePolicy5.setHeightForWidth(GroupDest2->sizePolicy().hasHeightForWidth());
GroupDest2->setSizePolicy(sizePolicy5);
gridLayout7 = new QGridLayout(GroupDest2);
gridLayout7->setSpacing(6);
gridLayout7->setMargin(11);
gridLayout7->setObjectName(QString::fromUtf8("gridLayout7"));
gridLayout4->addWidget(GroupDest2, 1, 0, 1, 1);
GroupDest3 = new QGroupBox(GroupDest);
GroupDest3->setObjectName(QString::fromUtf8("GroupDest3"));
QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
sizePolicy6.setHorizontalStretch(0);
sizePolicy6.setVerticalStretch(0);
sizePolicy6.setHeightForWidth(GroupDest3->sizePolicy().hasHeightForWidth());
GroupDest3->setSizePolicy(sizePolicy6);
gridLayout8 = new QGridLayout(GroupDest3);
gridLayout8->setSpacing(6);
gridLayout8->setMargin(11);
gridLayout8->setObjectName(QString::fromUtf8("gridLayout8"));
gridLayout4->addWidget(GroupDest3, 1, 1, 1, 1);
gridLayout3->addLayout(gridLayout4, 0, 0, 1, 1);
gridLayout1->addWidget(GroupDest, 1, 0, 1, 1);
GroupButtons = new QGroupBox(EntityGUI_Skeleton_QTD);
GroupButtons->setObjectName(QString::fromUtf8("GroupButtons"));
QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
sizePolicy7.setHorizontalStretch(0);
sizePolicy7.setVerticalStretch(0);
sizePolicy7.setHeightForWidth(GroupButtons->sizePolicy().hasHeightForWidth());
GroupButtons->setSizePolicy(sizePolicy7);
hboxLayout1 = new QHBoxLayout(GroupButtons);
hboxLayout1->setSpacing(6);
hboxLayout1->setMargin(11);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
hboxLayout2 = new QHBoxLayout();
hboxLayout2->setSpacing(6);
hboxLayout2->setMargin(0);
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
buttonEnd = new QPushButton(GroupButtons);
buttonEnd->setObjectName(QString::fromUtf8("buttonEnd"));
hboxLayout2->addWidget(buttonEnd);
buttonClose = new QPushButton(GroupButtons);
buttonClose->setObjectName(QString::fromUtf8("buttonClose"));
hboxLayout2->addWidget(buttonClose);
spacerItem = new QSpacerItem(91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout2->addItem(spacerItem);
buttonCancel = new QPushButton(GroupButtons);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
hboxLayout2->addWidget(buttonCancel);
buttonHelp = new QPushButton(GroupButtons);
buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
hboxLayout2->addWidget(buttonHelp);
hboxLayout1->addLayout(hboxLayout2);
gridLayout1->addWidget(GroupButtons, 3, 0, 1, 1);
gridLayout->addLayout(gridLayout1, 0, 0, 1, 1);
QWidget::setTabOrder(RadioButton1, RadioButton2);
QWidget::setTabOrder(RadioButton2, RB_Dest1);
QWidget::setTabOrder(RB_Dest1, RB_Dest2);
QWidget::setTabOrder(RB_Dest2, buttonEnd);
QWidget::setTabOrder(buttonEnd, buttonClose);
QWidget::setTabOrder(buttonClose, buttonCancel);
retranslateUi(EntityGUI_Skeleton_QTD);
QSize size(317, 276);
size = size.expandedTo(EntityGUI_Skeleton_QTD->minimumSizeHint());
EntityGUI_Skeleton_QTD->resize(size);
QMetaObject::connectSlotsByName(EntityGUI_Skeleton_QTD);
} // setupUi
void retranslateUi(QDialog *EntityGUI_Skeleton_QTD)
{
EntityGUI_Skeleton_QTD->setWindowTitle(QApplication::translate("EntityGUI_Skeleton_QTD", "EntityGUI_Skeleton_QTD", 0, QApplication::UnicodeUTF8));
GroupVal->setTitle(QString());
GroupConstructors->setTitle(QApplication::translate("EntityGUI_Skeleton_QTD", "Element Type", 0, QApplication::UnicodeUTF8));
RadioButton1->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "Segment", 0, QApplication::UnicodeUTF8));
RadioButton2->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "Arc", 0, QApplication::UnicodeUTF8));
GroupDest->setTitle(QApplication::translate("EntityGUI_Skeleton_QTD", "Destination", 0, QApplication::UnicodeUTF8));
GroupDest1->setTitle(QApplication::translate("EntityGUI_Skeleton_QTD", "Type", 0, QApplication::UnicodeUTF8));
RB_Dest2->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "Direction", 0, QApplication::UnicodeUTF8));
RB_Dest1->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "Point", 0, QApplication::UnicodeUTF8));
GroupDest2->setTitle(QString());
GroupDest3->setTitle(QString());
GroupButtons->setTitle(QString());
buttonEnd->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "End Sketch", 0, QApplication::UnicodeUTF8));
buttonClose->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "Close Sketch", 0, QApplication::UnicodeUTF8));
buttonCancel->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "&Cancel", 0, QApplication::UnicodeUTF8));
buttonHelp->setText(QApplication::translate("EntityGUI_Skeleton_QTD", "&Help", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EntityGUI_Skeleton_QTD);
} // retranslateUi
};
namespace Ui {
class EntityGUI_Skeleton_QTD: public Ui_EntityGUI_Skeleton_QTD {};
} // namespace Ui
#endif // ENTITYGUI_SKELETON_QTD_H

View File

@ -0,0 +1,206 @@
<ui version="4.0" >
<class>EntityGUI_Skeleton_QTD</class>
<widget class="QWidget" name="EntityGUI_Skeleton_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>362</width>
<height>207</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" >
<widget class="QGroupBox" name="GroupButtons" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string/>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonEnd" >
<property name="text" >
<string>End Sketch</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonClose" >
<property name="text" >
<string>Close Sketch</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>91</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
<string>&amp;Help</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0" >
<widget class="QWidget" native="1" name="SkeletonCnt" />
</item>
<item row="1" column="0" >
<widget class="QGroupBox" name="GroupDest" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Destination</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QWidget" native="1" name="DestCnt" />
</item>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupDest1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Type</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QRadioButton" name="RB_Dest1" >
<property name="text" >
<string>Point</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="RB_Dest2" >
<property name="text" >
<string>Direction</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupConstructors" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Element Type</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QRadioButton" name="RadioButton1" >
<property name="text" >
<string>Segment</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="RadioButton2" >
<property name="text" >
<string>Arc</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>RadioButton1</tabstop>
<tabstop>RadioButton2</tabstop>
<tabstop>RB_Dest1</tabstop>
<tabstop>RB_Dest2</tabstop>
<tabstop>buttonEnd</tabstop>
<tabstop>buttonClose</tabstop>
<tabstop>buttonCancel</tabstop>
<tabstop>buttonHelp</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -1,152 +1,163 @@
// GEOM GEOMGUI : GUI for Geometry component
// 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
// 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 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.
// 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
// 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
//
// File : EntityGUI_SketcherDlg.h
// Author : Damien COQUERET, Open CASCADE S.A.S.
//
//
// File : EntityGUI_SketcherDlg.h
// Author : Damine COQUERET
// Module : GEOM
#ifndef ENTITYGUI_SKETCHERDLG_H
#define ENTITYGUI_SKETCHERDLG_H
#include "GEOM_EntityGUI.hxx"
#include <GEOMBase_Helper.h>
#include "GEOMBase_Helper.h"
#include "EntityGUI_Skeleton_QTD.h"
#include "EntityGUI_Point_QTD.h"
#include "EntityGUI_Dir1_QTD.h"
#include "EntityGUI_Dir2_QTD.h"
#include "EntityGUI_1Sel_QTD.h"
#include <QDialog>
class QLineEdit;
class QDoubleSpinBox;
class EntityGUI_1Sel;
class EntityGUI_1Spin;
class EntityGUI_2Spin;
class EntityGUI_3Spin;
class EntityGUI_4Spin;
class EntityGUI_Point;
class EntityGUI_Dir1;
class EntityGUI_Dir2;
class EntityGUI_Skeleton;
class GeometryGUI;
#ifndef COORD_MIN
# define COORD_MIN -1e+15
# define COORD_MAX +1e+15
# define MAX_NUMBER 100000
# define DBL_DIGITS_DISPLAY 16
#endif // COORD_MIN
//=================================================================================
// class : EntityGUI_Dlg
// purpose :
//=================================================================================
class GEOM_ENTITYGUI_EXPORT EntityGUI_SketcherDlg : public QDialog, public Ui::EntityGUI_Skeleton_QTD, public GEOMBase_Helper
class EntityGUI_SketcherDlg : public QDialog, GEOMBase_Helper
{
Q_OBJECT
Q_OBJECT
public:
EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent = 0,
const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0,
const double lineWidth = 2.);
~EntityGUI_SketcherDlg();
bool eventFilter (QObject* object, QEvent* event);
EntityGUI_SketcherDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0,
const double = 2. );
~EntityGUI_SketcherDlg();
protected:
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& objects );
void initSpinBox( QDoubleSpinBox*,
double, double, double = 0.1,
int = 3 );
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
private :
void Init();
void enterEvent(QEvent* e);
void InitClick();
void setEnabledUndo(bool value);
void setEnabledRedo(bool value);
void closeEvent( QCloseEvent* );
void keyPressEvent( QKeyEvent* );
QString GetNewCommand();
private:
void Init();
void enterEvent( QEvent* );
void InitClick();
void setEnabledUndo( bool );
void setEnabledRedo( bool );
QString GetNewCommand();
int myConstructorId;
int myConstructorDirId;
int mySketchType;
int mySketchState;
virtual void displayPreview( GEOM::GEOM_Object_ptr,
const bool = false,
const bool = false,
const bool = true,
const double = -1 );
bool myIsAllAdded;
bool createShapes( GEOM::GEOM_Object_ptr,
TopoDS_Shape&,
TopoDS_Shape& );
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
private:
int myConstructorId;
int myConstructorDirId;
int mySketchType;
int mySketchState;
QStringList myCommand;
QStringList myUndoCommand;
bool myIsAllAdded;
Standard_Real myX, myY, myDX, myDY;
Standard_Real myLength, myAngle, myRadius;
Standard_Real myLastX1, myLastY1;
Standard_Real myLastX2, myLastY2;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
Ui::EntityGUI_Point_QTD* GroupPt;
Ui::EntityGUI_Dir1_QTD* GroupD1;
Ui::EntityGUI_Dir2_QTD* GroupD2;
QStringList myCommand;
QStringList myUndoCommand;
Ui::EntityGUI_1Sel_QTD* Group1Sel;
EntityGUI_1Spin* Group1Spin;
EntityGUI_2Spin* Group2Spin;
EntityGUI_3Spin* Group3Spin;
EntityGUI_4Spin* Group4Spin;
Standard_Real myX, myY, myDX, myDY;
Standard_Real myLength, myAngle, myRadius;
Standard_Real myLastX1, myLastY1;
Standard_Real myLastX2, myLastY2;
GeometryGUI* myGeometryGUI;
EntityGUI_Skeleton* MainWidget;
QString myHelpFileName;
EntityGUI_Point* GroupPt;
EntityGUI_Dir1* GroupD1;
EntityGUI_Dir2* GroupD2;
enum SketchState {FIRST_POINT, NEXT_POINT};
EntityGUI_1Sel* Group1Sel;
EntityGUI_1Spin* Group1Spin;
EntityGUI_2Spin* Group2Spin;
EntityGUI_3Spin* Group3Spin;
EntityGUI_4Spin* Group4Spin;
enum SketchType {PT_ABS, PT_RELATIVE, PT_SEL,
DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y,
DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y,
DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y,
DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y};
GeometryGUI* myGeometryGUI;
double myLineWidth;
virtual void displayPreview ( GEOM::GEOM_Object_ptr obj,
const bool append = false,
const bool activate = false,
const bool update = true,
const double lineWidth = -1 );
bool createShapes( GEOM::GEOM_Object_ptr theObject,
TopoDS_Shape& theApplyedWire,
TopoDS_Shape& theLastSegment );
QString myHelpFileName;
double myLineWidth;
private:
enum SketchState { FIRST_POINT, NEXT_POINT };
enum SketchType { PT_ABS, PT_RELATIVE, PT_SEL,
DIR_ANGLE_LENGTH, DIR_ANGLE_X, DIR_ANGLE_Y,
DIR_PER_LENGTH, DIR_PER_X, DIR_PER_Y,
DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y,
DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y };
private slots:
void ClickOnEnd();
void ClickOnCancel();
bool ClickOnApply();
void ClickOnUndo();
void ClickOnRedo();
void ClickOnHelp();
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void DeactivateActiveDialog();
void ActivateThisDialog();
void TypeClicked(int constructorId);
void DestClicked(int constructorId);
void PointClicked(int constructorId);
void Dir1Clicked(int constructorId);
void Dir2Clicked(int constructorId);
void ValueChangedInSpinBox(double newValue);
void ClickOnEnd();
void ClickOnCancel();
bool ClickOnApply();
void ClickOnUndo();
void ClickOnRedo();
void ClickOnHelp();
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void DeactivateActiveDialog();
void ActivateThisDialog();
void TypeClicked( int );
void DestClicked( int );
void PointClicked( int );
void Dir1Clicked( int );
void Dir2Clicked( int );
void ValueChangedInSpinBox( double );
};
#endif // ENTITYGUI_SKETCHERDLG_H

View File

@ -1,44 +1,42 @@
// GEOM GEOMGUI : GUI for Geometry component
// 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
// 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 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.
// 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
// 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 : EntityGUI_SubShapeDlg.cxx
// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
//
//
// File : EntityGUI_SubShapeDlg.cxx
// Author : Lucien PIGNOLONI
// Module : GEOM
// $Header$
#include "EntityGUI_SubShapeDlg.h"
#include "GeometryGUI.h"
#include "GEOMBase.h"
#include <GEOM_DlgRef.h>
#include <GeometryGUI.h>
#include <GEOMBase.h>
#include "SUIT_Desktop.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_Session.h"
#include "SUIT_ViewManager.h"
#include "SUIT_ViewWindow.h"
#include "OCCViewer_ViewModel.h"
#include "SalomeApp_Application.h"
#include "LightApp_SelectionMgr.h"
#include <SUIT_Desktop.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewWindow.h>
#include <OCCViewer_ViewModel.h>
#include <SalomeApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <TopoDS_Iterator.hxx>
@ -54,39 +52,38 @@
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
const char* name, bool modal, Qt::WindowFlags fl)
:GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, fl)
EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg( GeometryGUI* theGeometryGUI, QWidget* parent,
bool modal, Qt::WindowFlags fl )
: GEOMBase_Skeleton( theGeometryGUI, parent, modal, fl )
{
QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUBSHAPE")));
QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_DLG_SUBSHAPE" ) ) );
QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
setWindowTitle(tr("GEOM_SUBSHAPE_TITLE"));
setWindowTitle( tr( "GEOM_SUBSHAPE_TITLE" ) );
/***************************************************************/
GroupConstructors->setTitle(tr("GEOM_SUB_SHAPE"));
RadioButton1->setIcon(image0);
RadioButton2->setAttribute( Qt::WA_DeleteOnClose );
RadioButton2->close();
RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
RadioButton3->close();
mainFrame()->GroupConstructors->setTitle( tr( "GEOM_SUB_SHAPE" ) );
mainFrame()->RadioButton1->setIcon( image0 );
mainFrame()->RadioButton2->setAttribute( Qt::WA_DeleteOnClose );
mainFrame()->RadioButton2->close();
mainFrame()->RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
mainFrame()->RadioButton3->close();
GroupPoints = new Ui::DlgRef_1Sel1Check1List_QTD();
QWidget* aGroupPointsWidget = new QWidget(this);
GroupPoints->setupUi(aGroupPointsWidget);
aGroupPointsWidget->setObjectName("GroupPoints");
GroupPoints = new DlgRef_1Sel1Check1List( centralWidget() );
GroupPoints->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
GroupPoints->TextLabel1->setText(tr("GEOM_MAIN_OBJECT"));
GroupPoints->TextLabel2->setText(tr("GEOM_SUBSHAPE_TYPE"));
GroupPoints->CheckButton1->setText(tr("GEOM_SUBSHAPE_SELECT"));
GroupPoints->PushButton1->setIcon(image1);
GroupPoints->GroupBox1->setTitle( tr( "GEOM_ARGUMENTS" ) );
GroupPoints->TextLabel1->setText( tr( "GEOM_MAIN_OBJECT" ) );
GroupPoints->TextLabel2->setText( tr( "GEOM_SUBSHAPE_TYPE" ) );
GroupPoints->CheckButton1->setText( tr( "GEOM_SUBSHAPE_SELECT" ) );
GroupPoints->PushButton1->setIcon( image1 );
GroupPoints->LineEdit1->setReadOnly( true );
gridLayout1->addWidget(aGroupPointsWidget, 1, 0);
QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
layout->setMargin( 0 ); layout->setSpacing( 6 );
layout->addWidget( GroupPoints );
/***************************************************************/
setHelpFileName("explode.htm");
setHelpFileName( "explode.htm" );
Init();
}
@ -114,34 +111,34 @@ void EntityGUI_SubShapeDlg::Init()
myWithShape = true;
/* type for sub shape selection */
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Compound");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Compsolid");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Solid");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Shell");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Face");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Wire");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Edge");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Vertex");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Shape");
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Compound" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Compsolid" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Solid" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Shell" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Face" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Wire" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Edge" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Vertex" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Shape" );
if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
!= OCCViewer_Viewer::Type())
GroupPoints->CheckButton1->setEnabled(false);
if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
!= OCCViewer_Viewer::Type() )
GroupPoints->CheckButton1->setEnabled( false );
/* signals and slots connections */
connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
connect( myGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( DeactivateActiveDialog() ) );
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect( buttonOk(), SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
connect( buttonApply(), SIGNAL( clicked() ), this, SLOT( ClickOnApply() ) );
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect( GroupPoints->PushButton1, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
connect( GroupPoints->LineEdit1, SIGNAL( returnPressed() ), this, SLOT( LineEditReturnPressed() ) );
connect(GroupPoints->ComboBox1, SIGNAL(activated(int)), this, SLOT(ComboTextChanged()));
connect(GroupPoints->CheckButton1, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
connect( GroupPoints->ComboBox1, SIGNAL( activated( int ) ), this, SLOT( ComboTextChanged() ) );
connect( GroupPoints->CheckButton1, SIGNAL( stateChanged( int ) ), this, SLOT( SubShapeToggled() ) );
connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
connect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(),
SIGNAL( currentSelectionChanged( )), this, SLOT( SelectionIntoArgument() ) );
updateButtonState();
@ -166,19 +163,19 @@ void EntityGUI_SubShapeDlg::ClickOnOk()
//=================================================================================
bool EntityGUI_SubShapeDlg::ClickOnApply()
{
SUIT_Session::session()->activeApplication()->putInfo(tr(""));
SUIT_Session::session()->activeApplication()->putInfo( "" );
/* Explode all sub shapes */
if( isAllSubShapes() ) {
if ( isAllSubShapes() ) {
/* More than 30 subshapes : ask confirmation */
unsigned int nb = NumberOfSubShapes(myShape, shapeType());
if(nb > 30) {
const QString caption = tr("GEOM_CONFIRM");
const QString text = tr("GEOM_CONFIRM_INFO").arg(nb);
const QString button0 = tr("GEOM_BUT_EXPLODE");
const QString button1 = tr("GEOM_BUT_CANCEL");
unsigned int nb = NumberOfSubShapes( myShape, shapeType() );
if ( nb > 30 ) {
const QString caption = tr( "GEOM_CONFIRM" );
const QString text = tr( "GEOM_CONFIRM_INFO" ).arg( nb );
const QString button0 = tr( "GEOM_BUT_EXPLODE" );
const QString button1 = tr( "GEOM_BUT_CANCEL" );
if(QMessageBox::warning(this, caption, text, button0, button1) != 0)
if ( QMessageBox::warning( this, caption, text, button0, button1 ) != 0 )
return false; /* aborted */
}
}
@ -207,8 +204,7 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
TopoDS_Shape S;
Handle(SALOME_InteractiveObject) IO = firstIObject();
if ( !IO->hasEntry() )
{
if ( !IO->hasEntry() ) {
SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_SHAPE_IN_STUDY" ) );
updateButtonState();
return;
@ -216,8 +212,7 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
if ( !GEOMBase::GetTopoFromSelection( selectedIO(), S ) ||
S.IsNull() ||
S.ShapeType() == TopAbs_VERTEX )
{
S.ShapeType() == TopAbs_VERTEX ) {
updateButtonState();
return;
}
@ -225,8 +220,7 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
Standard_Boolean testResult;
myObject = GEOMBase::ConvertIOinGEOMObject( IO, testResult );
if ( !testResult || myObject->_is_nil() )
{
if ( !testResult || myObject->_is_nil() ) {
updateButtonState();
return;
}
@ -245,27 +239,22 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
// Solving PAL5590
if ( myShape.ShapeType() == TopAbs_COMPOUND ) {
unsigned int nb = NumberOfSubShapes(myShape, TopAbs_COMPOUND);
if (nb > 0)
if ( nb > 0 )
i++;
}
while ( i <= myShape.ShapeType())
{
while ( i <= myShape.ShapeType() ) {
GroupPoints->ComboBox1->removeItem( 0 );
i++;
}
if ( myShape.ShapeType() == TopAbs_COMPOUND )
{
if ( myWithShape == false )
{
if ( myShape.ShapeType() == TopAbs_COMPOUND ) {
if ( myWithShape == false ) {
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Shape" );
myWithShape = true;
}
}
else
{
if ( myWithShape == true )
{
else {
if ( myWithShape == true ) {
GroupPoints->ComboBox1->removeItem( GroupPoints->ComboBox1->count() - 1 );
myWithShape = false;
}
@ -275,21 +264,17 @@ void EntityGUI_SubShapeDlg::SelectionIntoArgument()
if ( myWithShape )
count1 = count1 - 1;
if ( SelectedShapeType > myShape.ShapeType() )
{
if ( SelectedShapeType == 8 )
{
if ( myShape.ShapeType() != TopAbs_COMPOUND )
{
if ( SelectedShapeType > myShape.ShapeType() ) {
if ( SelectedShapeType == 8 ) {
if ( myShape.ShapeType() != TopAbs_COMPOUND ) {
GroupPoints->ComboBox1->setCurrentIndex( 0 );
ComboTextChanged();
}
}
else
GroupPoints->ComboBox1->setCurrentIndex(count1 - count + SelectedShapeType);
GroupPoints->ComboBox1->setCurrentIndex( count1 - count + SelectedShapeType );
}
else
{
else {
GroupPoints->ComboBox1->setCurrentIndex( 0 );
ComboTextChanged();
}
@ -307,7 +292,7 @@ void EntityGUI_SubShapeDlg::SetEditCurrentArgument()
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
GroupPoints->CheckButton1->setChecked( FALSE );
GroupPoints->CheckButton1->setChecked( false );
SubShapeToggled();
SelectionIntoArgument();
}
@ -320,7 +305,7 @@ void EntityGUI_SubShapeDlg::SetEditCurrentArgument()
void EntityGUI_SubShapeDlg::LineEditReturnPressed()
{
QLineEdit* send = (QLineEdit*)sender();
if(send == GroupPoints->LineEdit1)
if ( send == GroupPoints->LineEdit1 )
SetEditCurrentArgument();
else
return;
@ -335,7 +320,7 @@ void EntityGUI_SubShapeDlg::LineEditReturnPressed()
//=================================================================================
void EntityGUI_SubShapeDlg::DeactivateActiveDialog()
{
if (GroupConstructors->isEnabled()) {
if ( mainFrame()->GroupConstructors->isEnabled() ) {
GEOMBase_Skeleton::DeactivateActiveDialog();
}
}
@ -348,8 +333,8 @@ void EntityGUI_SubShapeDlg::DeactivateActiveDialog()
void EntityGUI_SubShapeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
connect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication( ) ) )->selectionMgr(),
SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) ) ;
SubShapeToggled();
updateButtonState();
}
@ -359,9 +344,9 @@ void EntityGUI_SubShapeDlg::ActivateThisDialog()
// function : enterEvent()
// purpose :
//=================================================================================
void EntityGUI_SubShapeDlg::enterEvent(QEvent* e)
void EntityGUI_SubShapeDlg::enterEvent( QEvent* )
{
if (!GroupConstructors->isEnabled())
if ( !mainFrame()->GroupConstructors->isEnabled() )
ActivateThisDialog();
}
@ -373,7 +358,7 @@ void EntityGUI_SubShapeDlg::ResetStateOfDialog()
{
myObject = GEOM::GEOM_Object::_nil();
myShape.Nullify();
myEditCurrentArgument->setText("");
myEditCurrentArgument->setText( "" );
int SelectedShapeType = GroupPoints->ComboBox1->currentIndex();
int count = GroupPoints->ComboBox1->count();
@ -382,15 +367,15 @@ void EntityGUI_SubShapeDlg::ResetStateOfDialog()
/* type for sub shape selection */
GroupPoints->ComboBox1->clear();
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Compound");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Compsolid");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Solid");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Shell");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Face");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Wire");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Edge");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Vertex");
GroupPoints->ComboBox1->insertItem(GroupPoints->ComboBox1->count(), "Shape");
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Compound" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Compsolid" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Solid" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Shell" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Face" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Wire" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Edge" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Vertex" );
GroupPoints->ComboBox1->insertItem( GroupPoints->ComboBox1->count(), "Shape" );
myWithShape = true;
@ -431,32 +416,33 @@ void EntityGUI_SubShapeDlg::ComboTextChanged()
// function : NumberOfSubShapes()
// purpose :
//=================================================================================
unsigned int EntityGUI_SubShapeDlg::NumberOfSubShapes (const TopoDS_Shape& S,
const int shapeType) const
unsigned int EntityGUI_SubShapeDlg::NumberOfSubShapes( const TopoDS_Shape& S,
const int shapeType ) const
{
if (S.IsNull())
if ( S.IsNull() )
return 0;
unsigned int index = 0;
TopTools_MapOfShape M;
if (S.ShapeType() == TopAbs_COMPOUND &&
(TopAbs_ShapeEnum(shapeType) == TopAbs_SHAPE ||
TopAbs_ShapeEnum(shapeType) == TopAbs_COMPSOLID ||
TopAbs_ShapeEnum(shapeType) == TopAbs_COMPOUND)) {
TopoDS_Iterator It (S, Standard_True, Standard_True);
for (; It.More(); It.Next()) {
if (M.Add(It.Value())) {
if (TopAbs_ShapeEnum(shapeType) == TopAbs_SHAPE ||
TopAbs_ShapeEnum(shapeType) == It.Value().ShapeType()) {
if ( S.ShapeType() == TopAbs_COMPOUND &&
( TopAbs_ShapeEnum(shapeType) == TopAbs_SHAPE ||
TopAbs_ShapeEnum(shapeType) == TopAbs_COMPSOLID ||
TopAbs_ShapeEnum(shapeType) == TopAbs_COMPOUND ) ) {
TopoDS_Iterator It( S, Standard_True, Standard_True );
for ( ; It.More(); It.Next() ) {
if ( M.Add( It.Value() ) ) {
if ( TopAbs_ShapeEnum( shapeType ) == TopAbs_SHAPE ||
TopAbs_ShapeEnum( shapeType ) == It.Value().ShapeType() ) {
index++;
}
}
}
} else {
TopExp_Explorer Exp (S, TopAbs_ShapeEnum(shapeType));
for (; Exp.More(); Exp.Next()) {
if (M.Add(Exp.Current())) {
}
else {
TopExp_Explorer Exp ( S, TopAbs_ShapeEnum( shapeType ) );
for ( ; Exp.More(); Exp.Next() ) {
if ( M.Add( Exp.Current() ) ) {
index++;
}
}
@ -474,11 +460,11 @@ void EntityGUI_SubShapeDlg::updateButtonState()
{
if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType() != OCCViewer_Viewer::Type() ||
myObject->_is_nil() || shapeType() == TopAbs_SHAPE || shapeType() == TopAbs_COMPOUND ) {
GroupPoints->CheckButton1->setChecked( FALSE );
GroupPoints->CheckButton1->setEnabled( FALSE );
GroupPoints->CheckButton1->setChecked( false );
GroupPoints->CheckButton1->setEnabled( false );
}
else
GroupPoints->CheckButton1->setEnabled( TRUE );
GroupPoints->CheckButton1->setEnabled( true );
}
//=================================================================================
@ -498,13 +484,13 @@ int EntityGUI_SubShapeDlg::shapeType() const
{
int type = GroupPoints->ComboBox1->currentIndex();
if (myObject->_is_nil())
if ( myObject->_is_nil() )
return type;
// Solving PAL5590
type += myShape.ShapeType() + 1;
if (myShape.ShapeType() == TopAbs_COMPOUND &&
NumberOfSubShapes(myShape, TopAbs_COMPOUND) > 0) {
if ( myShape.ShapeType() == TopAbs_COMPOUND &&
NumberOfSubShapes( myShape, TopAbs_COMPOUND ) > 0 ) {
type--;
}
@ -537,7 +523,7 @@ bool EntityGUI_SubShapeDlg::isValid( QString& msg )
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
isOk = aMapIndex.Extent() > 0;
if ( !isOk )
msg += tr( "NO_SUBSHAPES_SELECTED" );
@ -561,8 +547,7 @@ bool EntityGUI_SubShapeDlg::execute( ObjectList& objects )
// Throw away sub-shapes not selected by user if not in preview mode
// and manual selection is active
if ( !isAllSubShapes() )
{
if ( !isAllSubShapes() ) {
if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
@ -570,7 +555,7 @@ bool EntityGUI_SubShapeDlg::execute( ObjectList& objects )
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
GEOM::GEOM_ILocalOperations_var aLocOp =
getGeomEngine()->GetILocalOperations( getStudyId() );

View File

@ -1,91 +1,86 @@
// GEOM GEOMGUI : GUI for Geometry component
// 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
// 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 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.
// 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
// 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 : EntityGUI_SubShapeDlg.h
// Author : Lucien PIGNOLONI, Open CASCADE S.A.S.
//
//
// File : EntityGUI_SubShapeDlg.h
// Author : Lucien PIGNOLONI
// Module : GEOM
#ifndef DIALOGBOX_SUBSHAPE_H
#define DIALOGBOX_SUBSHAPE_H
#ifndef ENTITYGUI_SUBSHAPEDLG_H
#define ENTITYGUI_SUBSHAPEDLG_H
#include "GEOM_EntityGUI.hxx"
#include <GEOMBase_Skeleton.h>
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel1Check1List_QTD.h"
class DlgRef_1Sel1Check1List;
//=================================================================================
// class : EntityGUI_SubShapeDlg
// purpose :
//=================================================================================
class GEOM_ENTITYGUI_EXPORT EntityGUI_SubShapeDlg : public GEOMBase_Skeleton
class EntityGUI_SubShapeDlg : public GEOMBase_Skeleton
{
Q_OBJECT
Q_OBJECT
public:
EntityGUI_SubShapeDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
~EntityGUI_SubShapeDlg();
EntityGUI_SubShapeDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
~EntityGUI_SubShapeDlg();
protected:
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& objects );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr theObj );
virtual const char* getNewObjectName() const;
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
virtual const char* getNewObjectName() const;
private slots:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
void DeactivateActiveDialog();
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void SubShapeToggled();
void ComboTextChanged();
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
void DeactivateActiveDialog();
void LineEditReturnPressed();
void SelectionIntoArgument();
void SetEditCurrentArgument();
void SubShapeToggled();
void ComboTextChanged();
private :
void Init();
void enterEvent( QEvent* e );
private:
void Init();
void enterEvent( QEvent* );
void ResetStateOfDialog();
unsigned int NumberOfSubShapes (const TopoDS_Shape& S,
const int shapeType) const;
void ResetStateOfDialog();
unsigned int NumberOfSubShapes( const TopoDS_Shape&,
const int ) const;
void updateButtonState();
bool isAllSubShapes() const;
int shapeType() const;
void updateButtonState();
bool isAllSubShapes() const;
int shapeType() const;
private:
TopoDS_Shape myShape;
GEOM::GEOM_Object_var myObject;
bool myWithShape;
Ui::DlgRef_1Sel1Check1List_QTD* GroupPoints;
ObjectList myResult;
TopoDS_Shape myShape;
GEOM::GEOM_Object_var myObject;
bool myWithShape;
DlgRef_1Sel1Check1List* GroupPoints;
ObjectList myResult;
};
#endif // DIALOGBOX_SUBSHAPE_H
#endif // ENTITYGUI_SUBSHAPEDLG_H

View File

@ -0,0 +1,172 @@
// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
// File : EntityGUI_Widgets.cxx
// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
//
#include "EntityGUI_Widgets.h"
#include <QButtonGroup>
//////////////////////////////////////////
// EntityGUI_1Sel
//////////////////////////////////////////
EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
}
EntityGUI_1Sel::~EntityGUI_1Sel()
{
}
//////////////////////////////////////////
// EntityGUI_1Spin
//////////////////////////////////////////
EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
}
EntityGUI_1Spin::~EntityGUI_1Spin()
{
}
//////////////////////////////////////////
// EntityGUI_2Spin
//////////////////////////////////////////
EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
}
EntityGUI_2Spin::~EntityGUI_2Spin()
{
}
//////////////////////////////////////////
// EntityGUI_3Spin
//////////////////////////////////////////
EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
}
EntityGUI_3Spin::~EntityGUI_3Spin()
{
}
//////////////////////////////////////////
// EntityGUI_4Spin
//////////////////////////////////////////
EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
}
EntityGUI_4Spin::~EntityGUI_4Spin()
{
}
//////////////////////////////////////////
// EntityGUI_Dir1
//////////////////////////////////////////
EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
ButtonGroup = new QButtonGroup( this );
ButtonGroup->addButton( RB_Dir11, 2 );
ButtonGroup->addButton( RB_Dir12, 0 );
ButtonGroup->addButton( RB_Dir13, 1 );
ButtonGroup->addButton( RB_Dir14, 3 );
}
EntityGUI_Dir1::~EntityGUI_Dir1()
{
}
//////////////////////////////////////////
// EntityGUI_Dir2
//////////////////////////////////////////
EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
ButtonGroup = new QButtonGroup( this );
ButtonGroup->addButton( RB_Dir21, 2 );
ButtonGroup->addButton( RB_Dir22, 0 );
ButtonGroup->addButton( RB_Dir23, 1 );
}
EntityGUI_Dir2::~EntityGUI_Dir2()
{
}
//////////////////////////////////////////
// EntityGUI_Point
//////////////////////////////////////////
EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
ButtonGroup = new QButtonGroup( this );
ButtonGroup->addButton( RB_Point1, 1 );
ButtonGroup->addButton( RB_Point2, 0 );
ButtonGroup->addButton( RB_Point3, 2 );
}
EntityGUI_Point::~EntityGUI_Point()
{
}
//////////////////////////////////////////
// EntityGUI_Skeleton
//////////////////////////////////////////
EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
: QWidget( parent, f )
{
setupUi( this );
ButtonGroup = new QButtonGroup( this );
ButtonGroup->addButton( RadioButton1, 0 );
ButtonGroup->addButton( RadioButton2, 1 );
}
EntityGUI_Skeleton::~EntityGUI_Skeleton()
{
}

View File

@ -0,0 +1,181 @@
// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
// File : EntityGUI_Widgets.h
// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
//
#ifndef ENTITYGUI_WIDGETS_H
#define ENTITYGUI_WIDGETS_H
//////////////////////////////////////////
// EntityGUI_1Sel
//////////////////////////////////////////
#include "ui_EntityGUI_1Sel_QTD.h"
class EntityGUI_1Sel : public QWidget,
public Ui::EntityGUI_1Sel_QTD
{
Q_OBJECT
public:
EntityGUI_1Sel( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_1Sel();
};
//////////////////////////////////////////
// EntityGUI_1Spin
//////////////////////////////////////////
#include "ui_EntityGUI_1Spin_QTD.h"
class EntityGUI_1Spin : public QWidget,
public Ui::EntityGUI_1Spin_QTD
{
Q_OBJECT
public:
EntityGUI_1Spin( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_1Spin();
};
//////////////////////////////////////////
// EntityGUI_2Spin
//////////////////////////////////////////
#include "ui_EntityGUI_2Spin_QTD.h"
class EntityGUI_2Spin : public QWidget,
public Ui::EntityGUI_2Spin_QTD
{
Q_OBJECT
public:
EntityGUI_2Spin( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_2Spin();
};
//////////////////////////////////////////
// EntityGUI_3Spin
//////////////////////////////////////////
#include "ui_EntityGUI_3Spin_QTD.h"
class EntityGUI_3Spin : public QWidget,
public Ui::EntityGUI_3Spin_QTD
{
Q_OBJECT
public:
EntityGUI_3Spin( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_3Spin();
};
//////////////////////////////////////////
// EntityGUI_4Spin
//////////////////////////////////////////
#include "ui_EntityGUI_4Spin_QTD.h"
class EntityGUI_4Spin : public QWidget,
public Ui::EntityGUI_4Spin_QTD
{
Q_OBJECT
public:
EntityGUI_4Spin( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_4Spin();
};
//////////////////////////////////////////
// EntityGUI_Dir1
//////////////////////////////////////////
#include "ui_EntityGUI_Dir1_QTD.h"
class EntityGUI_Dir1 : public QWidget,
public Ui::EntityGUI_Dir1_QTD
{
Q_OBJECT
public:
EntityGUI_Dir1( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_Dir1();
QButtonGroup* ButtonGroup;
};
//////////////////////////////////////////
// EntityGUI_Dir2
//////////////////////////////////////////
#include "ui_EntityGUI_Dir2_QTD.h"
class EntityGUI_Dir2 : public QWidget,
public Ui::EntityGUI_Dir2_QTD
{
Q_OBJECT
public:
EntityGUI_Dir2( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_Dir2();
QButtonGroup* ButtonGroup;
};
//////////////////////////////////////////
// EntityGUI_Point
//////////////////////////////////////////
#include "ui_EntityGUI_Point_QTD.h"
class EntityGUI_Point : public QWidget,
public Ui::EntityGUI_Point_QTD
{
Q_OBJECT
public:
EntityGUI_Point( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_Point();
QButtonGroup* ButtonGroup;
};
//////////////////////////////////////////
// EntityGUI_Skeleton
//////////////////////////////////////////
#include "ui_EntityGUI_Skeleton_QTD.h"
class QButtonGroup;
class EntityGUI_Skeleton : public QWidget,
public Ui::EntityGUI_Skeleton_QTD
{
Q_OBJECT
public:
EntityGUI_Skeleton( QWidget* = 0, Qt::WindowFlags = 0 );
~EntityGUI_Skeleton();
QButtonGroup* ButtonGroup;
};
#endif // ENTITYGUI_WIDGETS_H

View File

@ -1,47 +0,0 @@
// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
//
//
// File : GEOM_EntityGUI.hxx
// Author : Alexander A. BORODIN
// Module : GEOM
#ifndef _GEOM_EntityGUI_HXX_
#define _GEOM_EntityGUI_HXX_
#ifdef WNT
#if defined ENTITYGUI_EXPORTS
#if defined WIN32
#define GEOM_ENTITYGUI_EXPORT __declspec( dllexport )
#else
#define GEOM_ENTITYGUI_EXPORT
#endif
#else
#if defined WIN32
#define GEOM_ENTITYGUI_EXPORT __declspec( dllimport )
#else
#define GEOM_ENTITYGUI_EXPORT
#endif
#endif
#else
#define GEOM_ENTITYGUI_EXPORT
#endif
#endif

View File

@ -1,31 +1,28 @@
# GEOM ENTITYGUI :
# GEOM ENTITYGUI :
#
# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
# 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 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.
# 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
# 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 : Makefile.am
# Author : Alexander BORODIN, Open CASCADE S.A.S. (alexander.borodin@opencascade.com)
# Package : EntityGUI
#
#
# File : Makefile.in
# Author : Damien COQUERET (OCC)
# Modified by : Alexander BORODIN (OCN) - autotools usage
# Module : GEOM
# $Header:
include $(top_srcdir)/adm_local/unix/make_common_starter.am
@ -33,60 +30,73 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
lib_LTLIBRARIES = libEntityGUI.la
# header files
salomeinclude_HEADERS = \
GEOM_EntityGUI.hxx
salomeinclude_HEADERS =
dist_libEntityGUI_la_SOURCES = EntityGUI.cxx \
EntityGUI_1Spin.cxx \
EntityGUI_2Spin.cxx \
EntityGUI_3Spin.cxx \
EntityGUI_4Spin.cxx \
EntityGUI_SketcherDlg.cxx \
dist_libEntityGUI_la_SOURCES = \
EntityGUI.h \
EntityGUI_Widgets.h \
EntityGUI_SketcherDlg.h \
EntityGUI_SubShapeDlg.h \
\
EntityGUI.cxx \
EntityGUI_Widgets.cxx \
EntityGUI_SketcherDlg.cxx \
EntityGUI_SubShapeDlg.cxx
MOC_FILES = \
EntityGUI_1Spin_moc.cxx \
EntityGUI_2Spin_moc.cxx \
EntityGUI_3Spin_moc.cxx \
EntityGUI_4Spin_moc.cxx \
EntityGUI_SketcherDlg_moc.cxx \
MOC_FILES = \
EntityGUI_Widgets_moc.cxx \
EntityGUI_SketcherDlg_moc.cxx \
EntityGUI_SubShapeDlg_moc.cxx
nodist_libEntityGUI_la_SOURCES= \
nodist_libEntityGUI_la_SOURCES = \
$(MOC_FILES)
UIC_FILES = \
ui_EntityGUI_1Sel_QTD.h \
ui_EntityGUI_1Spin_QTD.h \
ui_EntityGUI_2Spin_QTD.h \
ui_EntityGUI_3Spin_QTD.h \
ui_EntityGUI_4Spin_QTD.h \
ui_EntityGUI_Dir1_QTD.h \
ui_EntityGUI_Dir2_QTD.h \
ui_EntityGUI_Point_QTD.h \
ui_EntityGUI_Skeleton_QTD.h
BUILT_SOURCES = $(UIC_FILES)
# LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
# LIB_SERVER_IDL =
# additionnal information to compil and link file
libEntityGUI_la_CPPFLAGS = \
$(QT_INCLUDES) \
$(CAS_CPPFLAGS) \
$(VTK_INCLUDES) \
$(PYTHON_INCLUDES) \
$(BOOST_CPPFLAGS) \
$(KERNEL_CXXFLAGS) \
$(GUI_CXXFLAGS) \
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
-I$(srcdir)/../GEOMGUI \
-I$(srcdir)/../DlgRef \
-I$(srcdir)/../GEOMBase \
-I$(srcdir)/../OBJECT \
-I$(srcdir)/../GEOMClient \
-I$(srcdir)/../GEOMImpl \
-I$(srcdir)/../GEOMFiltersSelection \
-I$(srcdir)/../SKETCHER \
-I$(top_builddir)/idl \
libEntityGUI_la_CPPFLAGS = \
$(QT_INCLUDES) \
$(CAS_CPPFLAGS) \
$(VTK_INCLUDES) \
$(PYTHON_INCLUDES) \
$(BOOST_CPPFLAGS) \
$(KERNEL_CXXFLAGS) \
$(GUI_CXXFLAGS) \
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
-I$(srcdir)/../GEOMGUI \
-I$(srcdir)/../DlgRef \
-I$(srcdir)/../GEOMBase \
-I$(srcdir)/../OBJECT \
-I$(srcdir)/../GEOMClient \
-I$(srcdir)/../GEOMImpl \
-I$(srcdir)/../GEOMFiltersSelection \
-I$(srcdir)/../SKETCHER \
-I$(top_builddir)/src/DlgRef \
-I$(top_builddir)/idl \
-I$(top_builddir)/salome_adm/unix
libEntityGUI_la_LDFLAGS = \
../GEOMFiltersSelection/libGEOMFiltersSelection.la \
../GEOMBase/libGEOMBase.la \
../SKETCHER/libGEOMSketcher.la \
../GEOMGUI/libGEOM.la \
$(QT_MT_LIBS) \
../GEOMFiltersSelection/libGEOMFiltersSelection.la \
../GEOMBase/libGEOMBase.la \
../SKETCHER/libGEOMSketcher.la \
../GEOMGUI/libGEOM.la \
$(QT_MT_LIBS) \
$(CAS_TKTopAlgo) -lTKernel

View File

@ -1,182 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_1Sel_QTD</class>
<widget class="QWidget" name="EntityGUI_1Sel_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>329</width>
<height>112</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_1Sel_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" >
<spacer name="Spacer5" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>163</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="2" >
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>180</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="PushButton1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QLineEdit" name="LineEdit1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,167 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_1Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_1Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>112</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_1Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="SpinBox1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="3" column="1" >
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>82</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
</layout>
</item>
<item row="0" column="1" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<spacer name="Spacer5" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,197 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_2Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_2Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>112</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_2Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="SpinBox1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="SpinBox2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="3" column="1" >
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>82</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
</layout>
</item>
<item row="0" column="1" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" >
<spacer name="Spacer5" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>51</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="1" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,227 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_3Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_3Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>125</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_3Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<spacer name="Spacer5" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>121</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="1" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="SpinBox1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="SpinBox2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="TextLabel3" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1" >
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>82</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="SpinBox3" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,257 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_4Spin_QTD</class>
<widget class="QWidget" name="EntityGUI_4Spin_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>154</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_4Spin_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupBox1" >
<property name="title" >
<string>Values</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonRedo" >
<property name="text" >
<string>Redo</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonUndo" >
<property name="text" >
<string>Undo</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0" >
<spacer name="Spacer5" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
<string>Create</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="1" >
<widget class="QSpinBox" name="SpinBox3" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="SpinBox2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="TextLabel2" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="4" column="1" >
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>70</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="3" column="1" >
<widget class="QSpinBox" name="SpinBox4" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="TextLabel3" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="SpinBox1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="TextLabel4" >
<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>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,96 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_Dir1_QTD</class>
<widget class="QWidget" name="EntityGUI_Dir1_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>131</width>
<height>123</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Dir1_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupDir1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Direction</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Dir12" >
<property name="text" >
<string>Perpendicular</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Dir13" >
<property name="text" >
<string>Tangent</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Dir11" >
<property name="text" >
<string>Angle</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QRadioButton" name="RB_Dir14" >
<property name="text" >
<string>VX-VY</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Dir11</tabstop>
<tabstop>RB_Dir12</tabstop>
<tabstop>RB_Dir13</tabstop>
<tabstop>RB_Dir14</tabstop>
</tabstops>
</ui>

View File

@ -1,104 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_Dir2_QTD</class>
<widget class="QWidget" name="EntityGUI_Dir2_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>124</width>
<height>106</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Dir2_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupDir2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Direction</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Dir22" >
<property name="text" >
<string>X</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Dir23" >
<property name="text" >
<string>Y</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<spacer name="Spacer4" >
<property name="sizeHint" >
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Dir21" >
<property name="text" >
<string>Length</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Dir21</tabstop>
<tabstop>RB_Dir22</tabstop>
<tabstop>RB_Dir23</tabstop>
</tabstops>
</ui>

View File

@ -1,88 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_Point_QTD</class>
<widget class="QWidget" name="EntityGUI_Point_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>124</width>
<height>106</height>
</rect>
</property>
<property name="windowTitle" >
<string>EntityGUI_Point_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupPoint" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Point</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QRadioButton" name="RB_Point2" >
<property name="text" >
<string>Relative</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Point1" >
<property name="text" >
<string>Absolute</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="RB_Point3" >
<property name="text" >
<string>Selection</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RB_Point1</tabstop>
<tabstop>RB_Point2</tabstop>
<tabstop>RB_Point3</tabstop>
</tabstops>
</ui>

View File

@ -1,321 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>EntityGUI_Skeleton_QTD</class>
<widget class="QDialog" name="EntityGUI_Skeleton_QTD" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>317</width>
<height>276</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>EntityGUI_Skeleton_QTD</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" >
<widget class="QGroupBox" name="GroupVal" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string/>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QGroupBox" name="GroupConstructors" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Element Type</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QRadioButton" name="RadioButton1" >
<property name="text" >
<string>Segment</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="RadioButton2" >
<property name="text" >
<string>Arc</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" >
<widget class="QGroupBox" name="GroupDest" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Destination</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item rowspan="1" row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="GroupDest1" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Type</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QRadioButton" name="RB_Dest2" >
<property name="text" >
<string>Direction</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QRadioButton" name="RB_Dest1" >
<property name="text" >
<string>Point</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" >
<widget class="QGroupBox" name="GroupDest2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string/>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
</layout>
</widget>
</item>
<item row="1" column="1" >
<widget class="QGroupBox" name="GroupDest3" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string/>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="3" column="0" >
<widget class="QGroupBox" name="GroupButtons" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string/>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonEnd" >
<property name="text" >
<string>End Sketch</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonClose" >
<property name="text" >
<string>Close Sketch</string>
</property>
</widget>
</item>
<item>
<spacer name="Spacer1" >
<property name="sizeHint" >
<size>
<width>91</width>
<height>0</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
<string>&amp;Help</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>RadioButton1</tabstop>
<tabstop>RadioButton2</tabstop>
<tabstop>RB_Dest1</tabstop>
<tabstop>RB_Dest2</tabstop>
<tabstop>buttonEnd</tabstop>
<tabstop>buttonClose</tabstop>
<tabstop>buttonCancel</tabstop>
</tabstops>
</ui>

View File

@ -1,37 +0,0 @@
# 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/ or email : webmaster.salome@opencascade.com
#
#!/bin/sh
uic -o ../EntityGUI_Skeleton_QTD.h EntityGUI_Skeleton_QTD.ui
uic -o ../EntityGUI_Point_QTD.h EntityGUI_Point_QTD.ui
uic -o ../EntityGUI_Dir1_QTD.h EntityGUI_Dir1_QTD.ui
uic -o ../EntityGUI_Dir2_QTD.h EntityGUI_Dir2_QTD.ui
uic -o ../EntityGUI_1Spin_QTD.h EntityGUI_1Spin_QTD.ui
uic -o ../EntityGUI_2Spin_QTD.h EntityGUI_2Spin_QTD.ui
uic -o ../EntityGUI_3Spin_QTD.h EntityGUI_3Spin_QTD.ui
uic -o ../EntityGUI_4Spin_QTD.h EntityGUI_4Spin_QTD.ui
uic -o ../EntityGUI_1Sel_QTD.h EntityGUI_1Sel_QTD.ui