/****************************************************************************
** Form implementation generated from reading ui file 'DlgRef_Skeleton_QTD.ui'
**
-** Created: Fri Mar 17 11:18:06 2006
+** Created: Tue Mar 13 14:40:34 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
- GroupMedium = new QGroupBox( this, "GroupMedium" );
- GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( GroupMedium, 2, 0 );
-
GroupButtons = new QGroupBox( this, "GroupButtons" );
GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
GroupButtons->setColumnLayout(0, Qt::Vertical );
*/
void DlgRef_Skeleton_QTD::languageChange()
{
- setCaption( tr( "DlgRef_Skeleton_QTD" ) );
- GroupMedium->setTitle( QString::null );
- GroupButtons->setTitle( QString::null );
- buttonOk->setText( tr( "&Ok" ) );
- buttonApply->setText( tr( "&Apply" ) );
- buttonCancel->setText( tr( "&Cancel" ) );
- buttonHelp->setText( tr( "&Help" ) );
- GroupConstructors->setTitle( QString::null );
- RadioButton1->setText( QString::null );
- RadioButton2->setText( QString::null );
- RadioButton3->setText( QString::null );
- RadioButton4->setText( QString::null );
- GroupBoxName->setTitle( tr( "Result name" ) );
- NameLabel->setText( tr( "Name" ) );
}
/****************************************************************************
** Form interface generated from reading ui file 'DlgRef_Skeleton_QTD.ui'
**
-** Created: Fri Mar 17 11:18:06 2006
+** Created: Tue Mar 13 14:40:29 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
DlgRef_Skeleton_QTD( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~DlgRef_Skeleton_QTD();
- QGroupBox* GroupMedium;
QGroupBox* GroupButtons;
QPushButton* buttonOk;
QPushButton* buttonApply;
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="caption">
- <string>DlgRef_Skeleton_QTD</string>
- </property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QGroupBox" row="2" column="0">
- <property name="name">
- <cstring>GroupMedium</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string></string>
- </property>
- </widget>
<widget class="QGroupBox" row="3" column="0">
<property name="name">
<cstring>GroupButtons</cstring>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string></string>
- </property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>buttonOk</cstring>
</property>
- <property name="text">
- <string>&Ok</string>
- </property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>buttonApply</cstring>
</property>
- <property name="text">
- <string>&Apply</string>
- </property>
</widget>
<spacer>
<property name="name">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
- <property name="text">
- <string>&Cancel</string>
- </property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
- <property name="text">
- <string>&Help</string>
- </property>
</widget>
</hbox>
</widget>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string></string>
- </property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>RadioButton1</cstring>
</property>
- <property name="text">
- <string></string>
- </property>
</widget>
<widget class="QRadioButton">
<property name="name">
<cstring>RadioButton2</cstring>
</property>
- <property name="text">
- <string></string>
- </property>
</widget>
<widget class="QRadioButton">
<property name="name">
<cstring>RadioButton3</cstring>
</property>
- <property name="text">
- <string></string>
- </property>
</widget>
<widget class="QRadioButton">
<property name="name">
<cstring>RadioButton4</cstring>
</property>
- <property name="text">
- <string></string>
- </property>
</widget>
</hbox>
</widget>
<property name="name">
<cstring>GroupBoxName</cstring>
</property>
- <property name="title">
- <string>Result name</string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>NameLabel</cstring>
</property>
- <property name="text">
- <string>Name</string>
- </property>
</widget>
</grid>
</widget>
/****************************************************************************
** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
**
-** Created: Fri Mar 17 15:47:14 2006
+** Created: Tue Mar 13 14:04:48 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
#include <qvariant.h>
#include <qpushbutton.h>
-#include <qgroupbox.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
+#include <qgroupbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
- GroupVal = new QGroupBox( this, "GroupVal" );
- GroupVal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupVal->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( GroupVal, 2, 0 );
-
GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
GroupConstructors->setColumnLayout(0, Qt::Vertical );
Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
- GroupDest2 = new QButtonGroup( GroupDest, "GroupDest2" );
- GroupDest2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest2->sizePolicy().hasHeightForWidth() ) );
- GroupDest2->setColumnLayout(0, Qt::Vertical );
- GroupDest2->layout()->setSpacing( 6 );
- GroupDest2->layout()->setMargin( 11 );
- GroupDest2Layout = new QGridLayout( GroupDest2->layout() );
- GroupDest2Layout->setAlignment( Qt::AlignTop );
-
- Layout5->addWidget( GroupDest2, 1, 0 );
-
- GroupDest3 = new QButtonGroup( GroupDest, "GroupDest3" );
- GroupDest3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest3->sizePolicy().hasHeightForWidth() ) );
- GroupDest3->setColumnLayout(0, Qt::Vertical );
- GroupDest3->layout()->setSpacing( 6 );
- GroupDest3->layout()->setMargin( 11 );
- GroupDest3Layout = new QGridLayout( GroupDest3->layout() );
- GroupDest3Layout->setAlignment( Qt::AlignTop );
-
- Layout5->addWidget( GroupDest3, 1, 1 );
-
GroupDestLayout->addLayout( Layout5, 0, 0 );
Layout1->addWidget( GroupDest, 1, 0 );
*/
void EntityGUI_Skeleton_QTD::languageChange()
{
- setCaption( tr( "EntityGUI_Skeleton_QTD" ) );
- GroupVal->setTitle( QString::null );
- GroupConstructors->setTitle( tr( "Element Type" ) );
- RadioButton1->setText( tr( "Segment" ) );
- RadioButton2->setText( tr( "Arc" ) );
- GroupDest->setTitle( tr( "Destination" ) );
- GroupDest1->setTitle( tr( "Type" ) );
- RB_Dest2->setText( tr( "Direction" ) );
- RB_Dest1->setText( tr( "Point" ) );
- GroupDest2->setTitle( QString::null );
- GroupDest3->setTitle( QString::null );
- GroupButtons->setTitle( QString::null );
- buttonEnd->setText( tr( "End Sketch" ) );
- buttonClose->setText( tr( "Close Sketch" ) );
- buttonCancel->setText( tr( "&Cancel" ) );
- buttonHelp->setText( tr( "&Help" ) );
}
/****************************************************************************
** Form interface generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
**
-** Created: Fri Mar 17 15:47:13 2006
+** Created: Tue Mar 13 14:04:42 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
-class QGroupBox;
class QButtonGroup;
class QRadioButton;
+class QGroupBox;
class QPushButton;
class EntityGUI_Skeleton_QTD : public QDialog
EntityGUI_Skeleton_QTD( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~EntityGUI_Skeleton_QTD();
- QGroupBox* GroupVal;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton1;
QRadioButton* RadioButton2;
QButtonGroup* GroupDest1;
QRadioButton* RB_Dest2;
QRadioButton* RB_Dest1;
- QButtonGroup* GroupDest2;
- QButtonGroup* GroupDest3;
QGroupBox* GroupButtons;
QPushButton* buttonEnd;
QPushButton* buttonClose;
QGridLayout* Layout5;
QGridLayout* GroupDest1Layout;
QGridLayout* Layout4;
- QGridLayout* GroupDest2Layout;
- QGridLayout* GroupDest3Layout;
QHBoxLayout* GroupButtonsLayout;
QHBoxLayout* Layout3;
QSpacerItem* Spacer1;
buttonClose->setText(tr("GEOM_BUT_CLOSE_SKETCH"));
buttonHelp->setText(tr("GEOM_BUT_HELP"));
- GroupVal->close(TRUE);
- GroupDest2->close(TRUE);
- GroupDest3->close(TRUE);
-
QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_UNDO")));
QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_REDO")));
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="caption">
- <string>EntityGUI_Skeleton_QTD</string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QGroupBox" row="2" column="0">
- <property name="name">
- <cstring>GroupVal</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string></string>
- </property>
- </widget>
<widget class="QButtonGroup" row="0" column="0">
<property name="name">
<cstring>GroupConstructors</cstring>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string>Element Type</string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>RadioButton1</cstring>
</property>
- <property name="text">
- <string>Segment</string>
- </property>
</widget>
<widget class="QRadioButton">
<property name="name">
<cstring>RadioButton2</cstring>
</property>
- <property name="text">
- <string>Arc</string>
- </property>
</widget>
</hbox>
</widget>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string>Destination</string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string>Type</string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>RB_Dest2</cstring>
</property>
- <property name="text">
- <string>Direction</string>
- </property>
</widget>
<widget class="QRadioButton" row="0" column="0">
<property name="name">
<cstring>RB_Dest1</cstring>
</property>
- <property name="text">
- <string>Point</string>
- </property>
</widget>
</grid>
</widget>
</grid>
</widget>
- <widget class="QButtonGroup" row="1" column="0">
- <property name="name">
- <cstring>GroupDest2</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string></string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>11</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- </grid>
- </widget>
- <widget class="QButtonGroup" row="1" column="1">
- <property name="name">
- <cstring>GroupDest3</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string></string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>11</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- </grid>
- </widget>
</grid>
</widget>
</grid>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string></string>
- </property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>buttonEnd</cstring>
</property>
- <property name="text">
- <string>End Sketch</string>
- </property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>buttonClose</cstring>
</property>
- <property name="text">
- <string>Close Sketch</string>
- </property>
</widget>
<spacer>
<property name="name">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
- <property name="text">
- <string>&Cancel</string>
- </property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
- <property name="text">
- <string>&Help</string>
- </property>
</widget>
</hbox>
</widget>
#include "SUIT_Session.h"
#include "SUIT_MessageBox.h"
+#include <qlabel.h>
#include <qpushbutton.h>
using namespace std;
if (!name)
setName("GEOMBase_Skeleton");
+ GroupBoxName->setTitle(tr("GEOM_RESULT_NAME_GRP"));
+ NameLabel->setText(tr("GEOM_RESULT_NAME_LBL"));
+
buttonCancel->setText(tr("GEOM_BUT_CLOSE"));
buttonOk->setText(tr("GEOM_BUT_OK"));
buttonApply->setText(tr("GEOM_BUT_APPLY"));
buttonHelp->setText(tr("GEOM_BUT_HELP"));
- GroupMedium->close(TRUE);
resize(0, 0);
Init();
return GEOM::GEOM_Object::_nil();
}
-QString GEOMGUI_Selection:: selectionMode() const
-{
+QString GEOMGUI_Selection::selectionMode() const
+{
SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
GeometryGUI* aGeomGUI = dynamic_cast<GeometryGUI*>( app->module( "Geometry" ) );
- if(aGeomGUI)
- switch(aGeomGUI->getLocalSelectionMode())
- {
+ if (aGeomGUI) {
+ switch (aGeomGUI->getLocalSelectionMode())
+ {
case GEOM_POINT : return "VERTEX";
case GEOM_EDGE : return "EDGE";
case GEOM_WIRE : return "WIRE";
case GEOM_COMPOUND : return "COMPOUND";
case GEOM_ALLOBJECTS : return "ALL";
default: return "";
- }
+ }
+ }
}
+ return "";
}
msgid "NAME_LBL"
msgstr "Name: "
+msgid "GEOM_RESULT_NAME_GRP"
+msgstr "Result name"
+
+msgid "GEOM_RESULT_NAME_LBL"
+msgstr "Name"
+
msgid "GEOM_ERR_GET_ENGINE"
msgstr "Failed to obtain GEOM Engine component. Reload Geometry module and try again."
#include <TopAbs_ShapeEnum.hxx>
+class QGroupBox;
class QLineEdit;
class QListBox;
GEOM::GEOM_Object_var myMainObj;
GEOM::GEOM_Object_var myGroup;
+ QGroupBox* GroupMedium;
QPushButton* mySelBtn;
QLineEdit* myMainName;
QPushButton* mySelSubBtn;
GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
myGeomGUI( GUI )
{
-
mySelBtn = 0;
mySelEdit = 0;
myDisplayer = 0;
myHelpFileName = "";
-
+
if ( !name )
setName( "MeasureGUI_Skeleton" );
buttonClose->setAutoDefault( false );
- GroupMedium->close( TRUE );
resize( 350, 0 );
}
/****************************************************************************
** Form implementation generated from reading ui file 'MeasureGUI_Skeleton_QTD.ui'
**
-** Created: Tue Mar 21 10:10:08 2006
+** Created: Tue Mar 13 14:20:24 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
Layout1->addWidget( GroupConstructors, 0, 0 );
- GroupMedium = new QGroupBox( this, "GroupMedium" );
- GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( GroupMedium, 1, 0 );
-
MeasureGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
languageChange();
resize( QSize(228, 266).expandedTo(minimumSizeHint()) );
*/
void MeasureGUI_Skeleton_QTD::languageChange()
{
- setCaption( tr( "MeasureGUI_Skeleton_QTD" ) );
- GroupButtons->setTitle( QString::null );
- buttonClose->setText( tr( "&Close" ) );
- buttonHelp->setText( tr( "&Help" ) );
- GroupConstructors->setTitle( QString::null );
- RadioButton1->setText( QString::null );
- GroupMedium->setTitle( QString::null );
}
/****************************************************************************
** Form interface generated from reading ui file 'MeasureGUI_Skeleton_QTD.ui'
**
-** Created: Tue Mar 21 10:10:08 2006
+** Created: Tue Mar 13 14:20:20 2007
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
QPushButton* buttonHelp;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton1;
- QGroupBox* GroupMedium;
protected:
QGridLayout* MeasureGUI_Skeleton_QTDLayout;
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="caption">
- <string>MeasureGUI_Skeleton_QTD</string>
- </property>
<property name="sizeGripEnabled">
<bool>true</bool>
</property>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string></string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>buttonClose</cstring>
</property>
- <property name="text">
- <string>&Close</string>
- </property>
</widget>
<widget class="QPushButton" row="0" column="2">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
- <property name="text">
- <string>&Help</string>
- </property>
</widget>
</grid>
</widget>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
- <string></string>
- </property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
<property name="name">
<cstring>RadioButton1</cstring>
</property>
- <property name="text">
- <string></string>
- </property>
</widget>
</hbox>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="1" column="0">
- <property name="name">
- <cstring>GroupMedium</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string></string>
- </property>
- </widget>
</grid>
</widget>
</grid>