- /***************************************************************/
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_PLANE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_SELECT")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_PLANE_DXYZ")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_PLANE_FACE")));
-
- if ( !name )
- setName( "GeometryGUI_PlaneDlg" );
- resize( 365, 220 );
- setCaption( tr( "GEOM_PLANE_TITLE" ) );
- setSizeGripEnabled( TRUE );
- GeometryGUI_PlaneDlgLayout = new QGridLayout( this );
- GeometryGUI_PlaneDlgLayout->setSpacing( 6 );
- GeometryGUI_PlaneDlgLayout->setMargin( 11 );
-
- /***************************************************************/
- GroupButtons = new QGroupBox( this, "GroupButtons" );
- GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) );
- GroupButtons->setTitle( tr( "" ) );
- GroupButtons->setColumnLayout(0, Qt::Vertical );
- GroupButtons->layout()->setSpacing( 0 );
- GroupButtons->layout()->setMargin( 0 );
- GroupButtonsLayout = new QGridLayout( GroupButtons->layout() );
- GroupButtonsLayout->setAlignment( Qt::AlignTop );
- GroupButtonsLayout->setSpacing( 6 );
- GroupButtonsLayout->setMargin( 11 );
- buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
- buttonCancel->setText( tr( "GEOM_BUT_CLOSE" ) );
- buttonCancel->setAutoDefault( TRUE );
- GroupButtonsLayout->addWidget( buttonCancel, 0, 3 );
- buttonApply = new QPushButton( GroupButtons, "buttonApply" );
- buttonApply->setText( tr( "GEOM_BUT_APPLY" ) );
- buttonApply->setAutoDefault( TRUE );
- GroupButtonsLayout->addWidget( buttonApply, 0, 1 );
- QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- GroupButtonsLayout->addItem( spacer_9, 0, 2 );
- buttonOk = new QPushButton( GroupButtons, "buttonOk" );
- buttonOk->setText( tr( "GEOM_BUT_OK" ) );
- buttonOk->setAutoDefault( TRUE );
- buttonOk->setDefault( TRUE );
- GroupButtonsLayout->addWidget( buttonOk, 0, 0 );
- GeometryGUI_PlaneDlgLayout->addWidget( GroupButtons, 2, 0 );
-
- /***************************************************************/
- GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
- GroupConstructors->setTitle( tr( "GEOM_PLANE" ) );
- GroupConstructors->setExclusive( TRUE );
- GroupConstructors->setColumnLayout(0, Qt::Vertical );
- GroupConstructors->layout()->setSpacing( 0 );
- GroupConstructors->layout()->setMargin( 0 );
- GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
- GroupConstructorsLayout->setAlignment( Qt::AlignTop );
- GroupConstructorsLayout->setSpacing( 6 );
- GroupConstructorsLayout->setMargin( 11 );
- Constructor1 = new QRadioButton( GroupConstructors, "Constructor1" );
- Constructor1->setText( tr( "" ) );
- Constructor1->setPixmap( image0 );
- Constructor1->setChecked( TRUE );
- Constructor1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, Constructor1->sizePolicy().hasHeightForWidth() ) );
- Constructor1->setMinimumSize( QSize( 50, 0 ) );
- GroupConstructorsLayout->addWidget( Constructor1, 0, 0 );
- Constructor2 = new QRadioButton( GroupConstructors, "Constructor2" );
- Constructor2->setText( tr( "" ) );
- Constructor2->setPixmap( image2 );
- Constructor2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, Constructor2->sizePolicy().hasHeightForWidth() ) );
- Constructor2->setMinimumSize( QSize( 50, 0 ) );
- GroupConstructorsLayout->addWidget( Constructor2, 0, 2 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- GroupConstructorsLayout->addItem( spacer_2, 0, 3 );
- QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- GroupConstructorsLayout->addItem( spacer_3, 0, 1 );
- Constructor3 = new QRadioButton( GroupConstructors, "Constructor3" );
- Constructor3->setText( tr( "" ) );
- Constructor3->setPixmap( image3 );
- Constructor3->setMinimumSize( QSize( 50, 0 ) );
- GroupConstructorsLayout->addWidget( Constructor3, 0, 4 );
- QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- GroupConstructorsLayout->addItem( spacer_4, 0, 5 );
- GeometryGUI_PlaneDlgLayout->addWidget( GroupConstructors, 0, 0 );
-
- /***************************************************************/
- GroupPointDirection = new QGroupBox( this, "GroupPointDirection" );
- GroupPointDirection->setTitle( tr( "GEOM_PLANE_PV" ) );
- GroupPointDirection->setColumnLayout(0, Qt::Vertical );
- GroupPointDirection->layout()->setSpacing( 0 );
- GroupPointDirection->layout()->setMargin( 0 );
- GroupPointDirectionLayout = new QGridLayout( GroupPointDirection->layout() );
- GroupPointDirectionLayout->setAlignment( Qt::AlignTop );
- GroupPointDirectionLayout->setSpacing( 6 );
- GroupPointDirectionLayout->setMargin( 11 );
- LineEditDirection = new QLineEdit( GroupPointDirection, "LineEditDirection" );
- LineEditDirection->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, LineEditDirection->sizePolicy().hasHeightForWidth() ) );
- GroupPointDirectionLayout->addWidget( LineEditDirection, 1, 2 );
- LineEditPt1 = new QLineEdit( GroupPointDirection, "LineEditPt1" );
- LineEditPt1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, LineEditPt1->sizePolicy().hasHeightForWidth() ) );
- GroupPointDirectionLayout->addWidget( LineEditPt1, 0, 2 );
- SelectButtonPt1 = new QPushButton( GroupPointDirection, "SelectButtonPt1" );
- SelectButtonPt1->setText( tr( "" ) );
- SelectButtonPt1->setPixmap( image1 );
- GroupPointDirectionLayout->addWidget( SelectButtonPt1, 0, 1 );
- SelectButtonDirection = new QPushButton( GroupPointDirection, "SelectButtonDirection" );
- SelectButtonDirection->setText( tr( "" ) );
- SelectButtonDirection->setPixmap( image1 );
- GroupPointDirectionLayout->addWidget( SelectButtonDirection, 1, 1 );
- TextLabelDirection = new QLabel( GroupPointDirection, "TextLabelDirection" );
- TextLabelDirection->setText( tr( "GEOM_VECTOR" ) );
- TextLabelDirection->setMinimumSize( QSize( 50, 0 ) );
- TextLabelDirection->setFrameShape( QLabel::NoFrame );
- TextLabelDirection->setFrameShadow( QLabel::Plain );
- GroupPointDirectionLayout->addWidget( TextLabelDirection, 1, 0 );
- TextLabelPt1 = new QLabel( GroupPointDirection, "TextLabelPt1" );
- TextLabelPt1->setText( tr( "GEOM_POINT" ) );
- TextLabelPt1->setMinimumSize( QSize( 50, 0 ) );
- TextLabelPt1->setFrameShape( QLabel::NoFrame );
- TextLabelPt1->setFrameShadow( QLabel::Plain );
- GroupPointDirectionLayout->addWidget( TextLabelPt1, 0, 0 );
-
- SpinBox_C1Size = new GeometryGUI_SpinBox( GroupPointDirection, "SpinBox_C1Size" );
- GroupPointDirectionLayout->addWidget( SpinBox_C1Size, 2, 2 );
- TextLabelC1Size = new QLabel( GroupPointDirection, "TextLabelC1Size" );
- TextLabelC1Size->setText( tr( "GEOM_PLANE_SIZE" ) );
- TextLabelC1Size->setMinimumSize( QSize( 60, 0 ) );
- GroupPointDirectionLayout->addWidget( TextLabelC1Size, 2, 0 );
-
- GeometryGUI_PlaneDlgLayout->addWidget( GroupPointDirection, 1, 0 );
-
- /***************************************************************/
- GroupPointPlusCoordinates = new QGroupBox( this, "GroupPointPlusCoordinates" );
- GroupPointPlusCoordinates->setTitle( tr( "GEOM_PLANE_PVC" ) );
- GroupPointPlusCoordinates->setColumnLayout(0, Qt::Vertical );
- GroupPointPlusCoordinates->layout()->setSpacing( 0 );
- GroupPointPlusCoordinates->layout()->setMargin( 0 );
- GroupPointPlusCoordinatesLayout = new QGridLayout( GroupPointPlusCoordinates->layout() );
- GroupPointPlusCoordinatesLayout->setAlignment( Qt::AlignTop );
- GroupPointPlusCoordinatesLayout->setSpacing( 6 );
- GroupPointPlusCoordinatesLayout->setMargin( 11 );
-
- LineEditPt2 = new QLineEdit( GroupPointPlusCoordinates, "LineEditPt2" );
- LineEditPt2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, LineEditPt2->sizePolicy().hasHeightForWidth() ) );
- GroupPointPlusCoordinatesLayout->addMultiCellWidget( LineEditPt2, 0, 0, 5, 8 );
-
- SelectButtonPt2 = new QPushButton( GroupPointPlusCoordinates, "SelectButtonPt2" );
- SelectButtonPt2->setText( tr( "" ) );
- SelectButtonPt2->setPixmap( image1 );
- SelectButtonPt2->setMaximumSize( QSize( 28, 32767 ) );
- GroupPointPlusCoordinatesLayout->addWidget( SelectButtonPt2, 0, 4 );
-
- TextLabelPt2 = new QLabel( GroupPointPlusCoordinates, "TextLabelPt2" );
- TextLabelPt2->setText( tr( "GEOM_POINT" ) );
- TextLabelPt2->setMinimumSize( QSize( 50, 0 ) );
- TextLabelPt2->setFrameShape( QLabel::NoFrame );
- TextLabelPt2->setFrameShadow( QLabel::Plain );
- GroupPointPlusCoordinatesLayout->addMultiCellWidget( TextLabelPt2, 0, 0, 0, 3 );
-
- SpinBox_DX = new GeometryGUI_SpinBox( GroupPointPlusCoordinates, "SpinBox_DX" );
- SpinBox_DX->setMinimumSize( QSize( 50, 0 ) );
- SpinBox_DX->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, SpinBox_DX->sizePolicy().hasHeightForWidth() ) );
- GroupPointPlusCoordinatesLayout->addMultiCellWidget( SpinBox_DX, 1, 1, 3, 4 );