NPAL 12483 Translate an object vector distance correct Dialog layouts and size

This commit is contained in:
dmv 2008-03-13 07:20:53 +00:00
parent 1749a765c0
commit 416b6928cf
3 changed files with 221 additions and 218 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Form implementation generated from reading ui file 'DlgRef_3Sel3Spin2Check_QTD.ui'
**
** Created: Tue Feb 12 16:21:38 2008
** Created: Wed Mar 12 11:57:09 2008
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
@ -10,12 +10,12 @@
#include "DlgRef_3Sel3Spin2Check_QTD.h"
#include <qvariant.h>
#include <qgroupbox.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qspinbox.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
@ -37,96 +37,97 @@ DlgRef_3Sel3Spin2Check_QTD::DlgRef_3Sel3Spin2Check_QTD( QWidget* parent, const c
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 6 );
GroupBox1->layout()->setMargin( 11 );
GroupBox1Layout = new QHBoxLayout( GroupBox1->layout() );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
layout1 = new QGridLayout( 0, 1, 1, 0, 6, "layout1");
Spacer3 = new QSpacerItem( 20, 130, QSizePolicy::Minimum, QSizePolicy::Expanding );
layout1->addItem( Spacer3, 8, 3 );
PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( PushButton1, 0, 1 );
TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel3, 2, 0 );
CheckBox1 = new QCheckBox( GroupBox1, "CheckBox1" );
layout1->addMultiCellWidget( CheckBox1, 6, 6, 0, 1 );
TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel6, 5, 0 );
SpinBox_2 = new QSpinBox( GroupBox1, "SpinBox_2" );
SpinBox_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_2->sizePolicy().hasHeightForWidth() ) );
layout1->addMultiCellWidget( SpinBox_2, 4, 4, 2, 3 );
LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
layout1->addMultiCellWidget( LineEdit2, 1, 1, 2, 3 );
LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
layout1->addMultiCellWidget( LineEdit1, 0, 0, 2, 3 );
LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
layout1->addMultiCellWidget( LineEdit3, 2, 2, 2, 3 );
PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( PushButton2, 1, 1 );
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel2, 1, 0 );
CheckBox2 = new QCheckBox( GroupBox1, "CheckBox2" );
SpinBox_3 = new QSpinBox( GroupBox1, "SpinBox_3" );
SpinBox_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_3->sizePolicy().hasHeightForWidth() ) );
layout1->addMultiCellWidget( CheckBox2, 7, 7, 0, 2 );
layout1->addWidget( SpinBox_3, 5, 2 );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel1, 0, 0 );
layout1->addWidget( TextLabel3, 2, 0 );
PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
layout1->addWidget( PushButton3, 2, 1 );
layout1->addWidget( LineEdit2, 1, 2 );
PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( PushButton2, 1, 1 );
TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel6, 5, 0 );
PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( PushButton1, 0, 1 );
CheckBox1 = new QCheckBox( GroupBox1, "CheckBox1" );
layout1->addMultiCellWidget( CheckBox1, 6, 6, 0, 2 );
SpinBox_2 = new QSpinBox( GroupBox1, "SpinBox_2" );
SpinBox_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_2->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( SpinBox_2, 4, 2 );
TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel5, 4, 0 );
SpinBox_1 = new QSpinBox( GroupBox1, "SpinBox_1" );
SpinBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_1->sizePolicy().hasHeightForWidth() ) );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
layout1->addMultiCellWidget( SpinBox_1, 3, 3, 2, 3 );
SpinBox_3 = new QSpinBox( GroupBox1, "SpinBox_3" );
SpinBox_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_3->sizePolicy().hasHeightForWidth() ) );
layout1->addMultiCellWidget( SpinBox_3, 5, 5, 2, 3 );
layout1->addWidget( TextLabel1, 0, 0 );
TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( TextLabel4, 3, 0 );
GroupBox1Layout->addLayout( layout1 );
CheckBox2 = new QCheckBox( GroupBox1, "CheckBox2" );
layout1->addMultiCellWidget( CheckBox2, 7, 7, 0, 2 );
LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
layout1->addWidget( LineEdit1, 0, 2 );
Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
layout1->addItem( Spacer3, 8, 2 );
LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
layout1->addWidget( LineEdit3, 2, 2 );
PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( PushButton3, 2, 1 );
SpinBox_1 = new QSpinBox( GroupBox1, "SpinBox_1" );
SpinBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_1->sizePolicy().hasHeightForWidth() ) );
layout1->addWidget( SpinBox_1, 3, 2 );
GroupBox1Layout->addLayout( layout1, 0, 0 );
DlgRef_3Sel3Spin2Check_QTDLayout->addWidget( GroupBox1 );
languageChange();
resize( QSize(338, 274).expandedTo(minimumSizeHint()) );
resize( QSize(263, 254).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
@ -139,6 +140,7 @@ DlgRef_3Sel3Spin2Check_QTD::DlgRef_3Sel3Spin2Check_QTD( QWidget* parent, const c
setTabOrder( SpinBox_1, SpinBox_2 );
setTabOrder( SpinBox_2, SpinBox_3 );
setTabOrder( SpinBox_3, CheckBox1 );
setTabOrder( CheckBox1, CheckBox2 );
}
/*
@ -157,16 +159,16 @@ void DlgRef_3Sel3Spin2Check_QTD::languageChange()
{
setCaption( tr( "DlgRef_3Sel3Spin2Check_QTD" ) );
GroupBox1->setTitle( QString::null );
PushButton1->setText( QString::null );
TextLabel3->setText( tr( "TL3" ) );
CheckBox1->setText( QString::null );
TextLabel6->setText( tr( "TL6" ) );
PushButton2->setText( QString::null );
TextLabel2->setText( tr( "TL2" ) );
CheckBox2->setText( QString::null );
TextLabel1->setText( tr( "TL1" ) );
PushButton3->setText( QString::null );
TextLabel3->setText( tr( "TL3" ) );
PushButton2->setText( QString::null );
TextLabel6->setText( tr( "TL6" ) );
PushButton1->setText( QString::null );
CheckBox1->setText( QString::null );
TextLabel5->setText( tr( "TL5" ) );
TextLabel1->setText( tr( "TL1" ) );
TextLabel4->setText( tr( "TL4" ) );
CheckBox2->setText( QString::null );
PushButton3->setText( QString::null );
}

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Form interface generated from reading ui file 'DlgRef_3Sel3Spin2Check_QTD.ui'
**
** Created: Tue Feb 12 16:21:38 2008
** Created: Wed Mar 12 11:57:09 2008
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!
@ -18,11 +18,11 @@ class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QGroupBox;
class QPushButton;
class QLabel;
class QCheckBox;
class QSpinBox;
class QLineEdit;
class QPushButton;
class QCheckBox;
class DlgRef_3Sel3Spin2Check_QTD : public QWidget
{
@ -33,27 +33,27 @@ public:
~DlgRef_3Sel3Spin2Check_QTD();
QGroupBox* GroupBox1;
QPushButton* PushButton1;
QLabel* TextLabel2;
QSpinBox* SpinBox_3;
QLabel* TextLabel3;
QCheckBox* CheckBox1;
QLabel* TextLabel6;
QSpinBox* SpinBox_2;
QLineEdit* LineEdit2;
QPushButton* PushButton2;
QLabel* TextLabel6;
QPushButton* PushButton1;
QCheckBox* CheckBox1;
QSpinBox* SpinBox_2;
QLabel* TextLabel5;
QLabel* TextLabel1;
QLabel* TextLabel4;
QCheckBox* CheckBox2;
QLineEdit* LineEdit1;
QLineEdit* LineEdit3;
QPushButton* PushButton2;
QLabel* TextLabel2;
QCheckBox* CheckBox2;
QLabel* TextLabel1;
QPushButton* PushButton3;
QLabel* TextLabel5;
QSpinBox* SpinBox_1;
QSpinBox* SpinBox_3;
QLabel* TextLabel4;
protected:
QVBoxLayout* DlgRef_3Sel3Spin2Check_QTDLayout;
QHBoxLayout* GroupBox1Layout;
QGridLayout* GroupBox1Layout;
QGridLayout* layout1;
QSpacerItem* Spacer3;

View File

@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>338</width>
<height>274</height>
<width>263</width>
<height>254</height>
</rect>
</property>
<property name="sizePolicy">
@ -48,7 +48,7 @@
<property name="title">
<string></string>
</property>
<hbox>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
@ -58,7 +58,7 @@
<property name="spacing">
<number>6</number>
</property>
<widget class="QLayoutWidget">
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout1</cstring>
</property>
@ -66,26 +66,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<spacer row="8" column="3">
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>Spacer3</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>130</height>
</size>
</property>
</spacer>
<widget class="QPushButton" row="0" column="1">
<property name="name">
<cstring>PushButton1</cstring>
<cstring>TextLabel2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@ -96,7 +79,20 @@
</sizepolicy>
</property>
<property name="text">
<string></string>
<string>TL2</string>
</property>
</widget>
<widget class="QSpinBox" row="5" column="2">
<property name="name">
<cstring>SpinBox_3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
@ -115,9 +111,22 @@
<string>TL3</string>
</property>
</widget>
<widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="2">
<widget class="QLineEdit" row="1" column="2">
<property name="name">
<cstring>CheckBox1</cstring>
<cstring>LineEdit2</cstring>
</property>
</widget>
<widget class="QPushButton" row="1" column="1">
<property name="name">
<cstring>PushButton2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
@ -139,7 +148,31 @@
<string>TL6</string>
</property>
</widget>
<widget class="QSpinBox" row="4" column="2" rowspan="1" colspan="2">
<widget class="QPushButton" row="0" column="1">
<property name="name">
<cstring>PushButton1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>CheckBox1</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QSpinBox" row="4" column="2">
<property name="name">
<cstring>SpinBox_2</cstring>
</property>
@ -152,93 +185,6 @@
</sizepolicy>
</property>
</widget>
<widget class="QLineEdit" row="1" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>LineEdit2</cstring>
</property>
</widget>
<widget class="QLineEdit" row="0" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>LineEdit1</cstring>
</property>
</widget>
<widget class="QLineEdit" row="2" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>LineEdit3</cstring>
</property>
</widget>
<widget class="QPushButton" row="1" column="1">
<property name="name">
<cstring>PushButton2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>TL2</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>CheckBox2</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>TL1</string>
</property>
</widget>
<widget class="QPushButton" row="2" column="1">
<property name="name">
<cstring>PushButton3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel5</cstring>
@ -255,30 +201,20 @@
<string>TL5</string>
</property>
</widget>
<widget class="QSpinBox" row="3" column="2" rowspan="1" colspan="2">
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>SpinBox_1</cstring>
<cstring>TextLabel1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QSpinBox" row="5" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>SpinBox_3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="text">
<string>TL1</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
@ -297,9 +233,73 @@
<string>TL4</string>
</property>
</widget>
<widget class="QCheckBox" row="7" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>CheckBox2</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="2">
<property name="name">
<cstring>LineEdit1</cstring>
</property>
</widget>
<spacer row="8" column="2">
<property name="name">
<cstring>Spacer3</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLineEdit" row="2" column="2">
<property name="name">
<cstring>LineEdit3</cstring>
</property>
</widget>
<widget class="QPushButton" row="2" column="1">
<property name="name">
<cstring>PushButton3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="QSpinBox" row="3" column="2">
<property name="name">
<cstring>SpinBox_1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</grid>
</widget>
</hbox>
</grid>
</widget>
</vbox>
</widget>
@ -314,6 +314,7 @@
<tabstop>SpinBox_2</tabstop>
<tabstop>SpinBox_3</tabstop>
<tabstop>CheckBox1</tabstop>
<tabstop>CheckBox2</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>