Skip to content

Commit 498575e

Browse files
committedJun 24, 2012
UI tweaks + selectively enable line/cross width/marker picker
1 parent 46242e1 commit 498575e

File tree

4 files changed

+282
-229
lines changed

4 files changed

+282
-229
lines changed
 

‎src/app/qgsdecorationgrid.h

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,40 +58,33 @@ class QgsDecorationGrid: public QgsDecorationItem
5858
BoundaryDirection
5959
};
6060

61-
/**Sets coordinate grid style to solid or cross
62-
@note this function was added in version 1.4*/
61+
/**Sets coordinate grid style.
62+
@note this function (and all others) was added in version 2.0 */
6363
void setGridStyle( GridStyle style ) {mGridStyle = style;}
6464
GridStyle gridStyle() const { return mGridStyle; }
6565

66-
/**Sets coordinate interval in x-direction for composergrid.
67-
@note this function was added in version 1.4*/
66+
/**Sets coordinate interval in x-direction for composergrid. */
6867
void setGridIntervalX( double interval ) { mGridIntervalX = interval;}
6968
double gridIntervalX() const { return mGridIntervalX; }
7069

71-
/**Sets coordinate interval in y-direction for composergrid.
72-
@note this function was added in version 1.4*/
70+
/**Sets coordinate interval in y-direction for composergrid. */
7371
void setGridIntervalY( double interval ) { mGridIntervalY = interval;}
7472
double gridIntervalY() const { return mGridIntervalY; }
7573

76-
/**Sets x-coordinate offset for composer grid
77-
@note this function was added in version 1.4*/
74+
/**Sets x-coordinate offset for composer grid */
7875
void setGridOffsetX( double offset ) { mGridOffsetX = offset; }
7976
double gridOffsetX() const { return mGridOffsetX; }
8077

81-
/**Sets y-coordinate offset for composer grid
82-
@note this function was added in version 1.4*/
78+
/**Sets y-coordinate offset for composer grid */
8379
void setGridOffsetY( double offset ) { mGridOffsetY = offset; }
8480
double gridOffsetY() const { return mGridOffsetY; }
8581

86-
/**Sets the pen to draw composer grid
87-
@note this function was added in version 1.4*/
82+
/**Sets the pen to draw composer grid */
8883
void setGridPen( const QPen& p ) { mGridPen = p; }
8984
QPen gridPen() const { return mGridPen; }
90-
/**Sets with of grid pen
91-
@note this function was added in version 1.4*/
85+
/**Sets with of grid pen */
9286
void setGridPenWidth( double w ) { mGridPen.setWidthF( w ); }
93-
/**Sets the color of the grid pen
94-
@note this function was added in version 1.4*/
87+
/**Sets the color of the grid pen */
9588
void setGridPenColor( const QColor& c ) { mGridPen.setColor( c ); }
9689

9790
/**Sets font for grid annotations
@@ -217,8 +210,7 @@ class QgsDecorationGrid: public QgsDecorationItem
217210
void drawText( QPainter* p, const QRectF& rect, const QString& text, const QFont& font, Qt::AlignmentFlag halignement = Qt::AlignLeft, Qt::AlignmentFlag valignement = Qt::AlignTop ) const;
218211
/**Returns the font width in millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE*/
219212
double textWidthMillimeters( const QFont& font, const QString& text ) const;
220-
/**Returns the font height of a character in millimeters
221-
@note this method was added in version 1.7*/
213+
/**Returns the font height of a character in millimeters. */
222214
double fontHeightCharacterMM( const QFont& font, const QChar& c ) const;
223215
/**Returns the font ascent in Millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE*/
224216
double fontAscentMillimeters( const QFont& font ) const;

‎src/app/qgsdecorationgriddialog.cpp

Lines changed: 40 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,32 @@
3131
#include <QSettings>
3232

3333
QgsDecorationGridDialog::QgsDecorationGridDialog( QgsDecorationGrid& deco, QWidget* parent )
34-
: QDialog( parent ), mDeco( deco ), mLineSymbol( 0 ), mMarkerSymbol( 0 )
34+
: QDialog( parent ), mDeco( deco ), mLineSymbol( 0 ), mMarkerSymbol( 0 )
3535
{
3636
setupUi( this );
3737

3838
QSettings settings;
39-
restoreGeometry( settings.value( "/Windows/DecorationGrid/geometry" ).toByteArray() );
39+
// restoreGeometry( settings.value( "/Windows/DecorationGrid/geometry" ).toByteArray() );
4040

4141
chkEnable->setChecked( mDeco.enabled() );
4242

4343
// mXMinLineEdit->setValidator( new QDoubleValidator( mXMinLineEdit ) );
4444

45-
mGridTypeComboBox->insertItem( 0, tr( "Solid" ) );
46-
mGridTypeComboBox->insertItem( 1, tr( "Cross" ) );
47-
mGridTypeComboBox->insertItem( 2, tr( "Marker" ) );
45+
mGridTypeComboBox->insertItem( QgsDecorationGrid::Solid, tr( "Lines" ) );
46+
mGridTypeComboBox->insertItem( QgsDecorationGrid::Cross, tr( "Cross" ) );
47+
mGridTypeComboBox->insertItem( QgsDecorationGrid::Marker, tr( "Marker" ) );
4848

49-
mAnnotationPositionComboBox->insertItem( 0, tr( "Inside frame" ) );
50-
// mAnnotationPositionComboBox->insertItem( 1, tr( "Outside frame" ) );
49+
mAnnotationPositionComboBox->insertItem( QgsDecorationGrid::InsideMapFrame, tr( "Inside frame" ) );
50+
// mAnnotationPositionComboBox->insertItem( QgsDecorationGrid::OutsideMapFrame, tr( "Outside frame" ) );
5151

52-
mAnnotationDirectionComboBox->insertItem( 0, tr( "Horizontal" ) );
53-
mAnnotationDirectionComboBox->insertItem( 1, tr( "Vertical" ) );
54-
mAnnotationDirectionComboBox->insertItem( 2, tr( "Horizontal and Vertical" ) );
55-
mAnnotationDirectionComboBox->insertItem( 2, tr( "Boundary direction" ) );
52+
mAnnotationDirectionComboBox->insertItem( QgsDecorationGrid::Horizontal,
53+
tr( "Horizontal" ) );
54+
mAnnotationDirectionComboBox->insertItem( QgsDecorationGrid::Vertical,
55+
tr( "Vertical" ) );
56+
mAnnotationDirectionComboBox->insertItem( QgsDecorationGrid::HorizontalAndVertical,
57+
tr( "Horizontal and Vertical" ) );
58+
mAnnotationDirectionComboBox->insertItem( QgsDecorationGrid::BoundaryDirection,
59+
tr( "Boundary direction" ) );
5660

5761
updateGuiElements();
5862

@@ -71,52 +75,16 @@ void QgsDecorationGridDialog::updateGuiElements()
7175
mOffsetXSpinBox->setValue( mDeco.gridOffsetX() );
7276
mOffsetYSpinBox->setValue( mDeco.gridOffsetY() );
7377

74-
QgsDecorationGrid::GridStyle gridStyle = mDeco.gridStyle();
75-
if ( gridStyle == QgsDecorationGrid::Cross )
76-
{
77-
mGridTypeComboBox->setCurrentIndex( mGridTypeComboBox->findText( tr( "Cross" ) ) );
78-
}
79-
else if ( gridStyle == QgsDecorationGrid::Marker )
80-
{
81-
mGridTypeComboBox->setCurrentIndex( mGridTypeComboBox->findText( tr( "Marker" ) ) );
82-
}
83-
else
84-
{
85-
mGridTypeComboBox->setCurrentIndex( mGridTypeComboBox->findText( tr( "Solid" ) ) );
86-
}
87-
78+
mGridTypeComboBox->setCurrentIndex(( int ) mDeco.gridStyle() );
79+
8880
mCrossWidthSpinBox->setValue( mDeco.crossLength() );
8981

90-
QgsDecorationGrid::GridAnnotationPosition annotationPos = mDeco.gridAnnotationPosition();
91-
if ( annotationPos == QgsDecorationGrid::InsideMapFrame )
92-
{
93-
mAnnotationPositionComboBox->setCurrentIndex( mAnnotationPositionComboBox->findText( tr( "Inside frame" ) ) );
94-
}
95-
else
96-
{
97-
mAnnotationPositionComboBox->setCurrentIndex( mAnnotationPositionComboBox->findText( tr( "Outside frame" ) ) );
98-
}
99-
82+
mAnnotationPositionComboBox->setCurrentIndex(( int ) mDeco.gridAnnotationPosition() );
83+
10084
mDrawAnnotationCheckBox->setChecked( mDeco.showGridAnnotation() );
101-
102-
QgsDecorationGrid::GridAnnotationDirection dir = mDeco.gridAnnotationDirection();
103-
if ( dir == QgsDecorationGrid::Horizontal )
104-
{
105-
mAnnotationDirectionComboBox->setCurrentIndex( mAnnotationDirectionComboBox->findText( tr( "Horizontal" ) ) );
106-
}
107-
else if ( dir == QgsDecorationGrid::Vertical )
108-
{
109-
mAnnotationDirectionComboBox->setCurrentIndex( mAnnotationDirectionComboBox->findText( tr( "Vertical" ) ) );
110-
}
111-
else if ( dir == QgsDecorationGrid::HorizontalAndVertical )
112-
{
113-
mAnnotationDirectionComboBox->setCurrentIndex( mAnnotationDirectionComboBox->findText( tr( "Horizontal and Vertical" ) ) );
114-
}
115-
else //BoundaryDirection
116-
{
117-
mAnnotationDirectionComboBox->setCurrentIndex( mAnnotationDirectionComboBox->findText( tr( "Boundary direction" ) ) );
118-
}
119-
85+
86+
mAnnotationDirectionComboBox->setCurrentIndex(( int ) mDeco.gridAnnotationDirection() );
87+
12088
mCoordinatePrecisionSpinBox->setValue( mDeco.gridAnnotationPrecision() );
12189

12290
// QPen gridPen = mDeco.gridPen();
@@ -140,7 +108,7 @@ void QgsDecorationGridDialog::updateGuiElements()
140108
QIcon icon = QgsSymbolLayerV2Utils::symbolPreviewIcon( mMarkerSymbol, mMarkerSymbolButton->iconSize() );
141109
mMarkerSymbolButton->setIcon( icon );
142110
}
143-
111+
144112
// blockAllSignals( false );
145113
}
146114

@@ -196,12 +164,12 @@ void QgsDecorationGridDialog::updateDecoFromGui()
196164
mDeco.setGridAnnotationPrecision( mCoordinatePrecisionSpinBox->value() );
197165
if ( mLineSymbol )
198166
{
199-
mDeco.setLineSymbol( mLineSymbol );
167+
mDeco.setLineSymbol( mLineSymbol );
200168
mLineSymbol = dynamic_cast<QgsLineSymbolV2*>( mDeco.lineSymbol()->clone() );
201169
}
202170
if ( mMarkerSymbol )
203171
{
204-
mDeco.setMarkerSymbol( mMarkerSymbol );
172+
mDeco.setMarkerSymbol( mMarkerSymbol );
205173
mMarkerSymbol = dynamic_cast<QgsMarkerSymbolV2*>( mDeco.markerSymbol()->clone() );
206174
}
207175
}
@@ -232,7 +200,7 @@ void QgsDecorationGridDialog::apply()
232200
{
233201
updateDecoFromGui();
234202
mDeco.update();
235-
//accept();
203+
//accept();
236204
}
237205

238206
void QgsDecorationGridDialog::on_buttonBox_rejected()
@@ -243,14 +211,22 @@ void QgsDecorationGridDialog::on_buttonBox_rejected()
243211

244212
// void QgsDecorationGridDialog::on_mLineColorButton_clicked()
245213
// {
246-
// QColor newColor = QColorDialog::getColor( mLineColorButton->color() );
247-
// if ( newColor.isValid() )
248-
// {
249-
// mLineColorButton->setColor( newColor );
250-
// mDeco.setGridPenColor( newColor );
251-
// }
214+
// QColor newColor = QColorDialog::getColor( mLineColorButton->color() );
215+
// if ( newColor.isValid() )
216+
// {
217+
// mLineColorButton->setColor( newColor );
218+
// mDeco.setGridPenColor( newColor );
219+
// }
252220
// }
253221

222+
void QgsDecorationGridDialog::on_mGridTypeComboBox_currentIndexChanged( int index )
223+
{
224+
mLineSymbolButton->setEnabled( index == QgsDecorationGrid::Solid );
225+
mCrossWidthSpinBox->setEnabled( index == QgsDecorationGrid::Cross );
226+
mMarkerSymbolButton->setEnabled( index == QgsDecorationGrid::Marker );
227+
}
228+
229+
254230
void QgsDecorationGridDialog::on_mLineSymbolButton_clicked()
255231
{
256232
if ( ! mLineSymbol )

‎src/app/qgsdecorationgriddialog.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class QgsDecorationGridDialog : public QDialog, private Ui::QgsDecorationGridDia
4141
void on_buttonBox_accepted();
4242
void on_buttonBox_rejected();
4343
void on_buttonBox_helpRequested();
44+
void on_mGridTypeComboBox_currentIndexChanged( int index );
4445
void on_mLineSymbolButton_clicked();
4546
void on_mMarkerSymbolButton_clicked();
4647

@@ -49,7 +50,7 @@ class QgsDecorationGridDialog : public QDialog, private Ui::QgsDecorationGridDia
4950
void on_mAnnotationFontButton_clicked();
5051

5152
private:
52-
QgsDecorationGrid& mDeco;
53+
QgsDecorationGrid& mDeco;
5354
QgsLineSymbolV2* mLineSymbol;
5455
QgsMarkerSymbolV2* mMarkerSymbol;
5556

‎src/ui/qgsdecorationgriddialog.ui

Lines changed: 230 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>531</width>
10-
<height>349</height>
9+
<width>484</width>
10+
<height>367</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -18,137 +18,27 @@
1818
<enum>QLayout::SetMinimumSize</enum>
1919
</property>
2020
<item>
21-
<layout class="QGridLayout" name="gridLayout_3" columnminimumwidth="125,0,0,0,0">
22-
<item row="1" column="0">
23-
<widget class="QLabel" name="mGridTypeLabel">
24-
<property name="accessibleName">
25-
<string extracomment="Hello translotor"/>
26-
</property>
27-
<property name="text">
28-
<string>Grid type</string>
29-
</property>
30-
<property name="wordWrap">
31-
<bool>true</bool>
32-
</property>
33-
</widget>
34-
</item>
35-
<item row="1" column="2">
36-
<widget class="QComboBox" name="mGridTypeComboBox"/>
37-
</item>
38-
<item row="2" column="0">
39-
<widget class="QLabel" name="mIntervalXLabel">
40-
<property name="text">
41-
<string>Interval X</string>
42-
</property>
43-
<property name="wordWrap">
44-
<bool>true</bool>
45-
</property>
46-
</widget>
47-
</item>
48-
<item row="2" column="2">
49-
<widget class="QDoubleSpinBox" name="mIntervalXSpinBox">
21+
<layout class="QGridLayout" name="gridLayout_3" columnstretch="0,0,0,0" columnminimumwidth="125,100,0,0">
22+
<item row="0" column="0">
23+
<widget class="QCheckBox" name="chkEnable">
5024
<property name="sizePolicy">
51-
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
25+
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
5226
<horstretch>0</horstretch>
5327
<verstretch>0</verstretch>
5428
</sizepolicy>
5529
</property>
56-
<property name="decimals">
57-
<number>5</number>
58-
</property>
59-
<property name="maximum">
60-
<double>9999999.000000000000000</double>
61-
</property>
62-
</widget>
63-
</item>
64-
<item row="3" column="0">
65-
<widget class="QLabel" name="mIntervalYLabel">
66-
<property name="text">
67-
<string>Interval Y</string>
68-
</property>
69-
<property name="wordWrap">
70-
<bool>true</bool>
71-
</property>
72-
</widget>
73-
</item>
74-
<item row="3" column="2">
75-
<widget class="QDoubleSpinBox" name="mIntervalYSpinBox">
76-
<property name="decimals">
77-
<number>5</number>
78-
</property>
79-
<property name="maximum">
80-
<double>9999999.000000000000000</double>
81-
</property>
82-
</widget>
83-
</item>
84-
<item row="4" column="0">
85-
<widget class="QLabel" name="mOffsetXLabel">
86-
<property name="text">
87-
<string>Offset X</string>
88-
</property>
89-
<property name="wordWrap">
90-
<bool>true</bool>
91-
</property>
92-
</widget>
93-
</item>
94-
<item row="4" column="2">
95-
<widget class="QDoubleSpinBox" name="mOffsetXSpinBox">
96-
<property name="decimals">
97-
<number>5</number>
98-
</property>
99-
<property name="maximum">
100-
<double>9999999.000000000000000</double>
101-
</property>
102-
</widget>
103-
</item>
104-
<item row="5" column="0">
105-
<widget class="QLabel" name="mOffsetYLabel">
106-
<property name="text">
107-
<string>Offset Y</string>
108-
</property>
109-
<property name="wordWrap">
110-
<bool>true</bool>
111-
</property>
112-
</widget>
113-
</item>
114-
<item row="5" column="2">
115-
<widget class="QDoubleSpinBox" name="mOffsetYSpinBox">
116-
<property name="decimals">
117-
<number>5</number>
118-
</property>
119-
<property name="maximum">
120-
<double>9999999.000000000000000</double>
121-
</property>
122-
</widget>
123-
</item>
124-
<item row="6" column="0">
125-
<widget class="QLabel" name="mCrossWidthLabel">
126-
<property name="text">
127-
<string>Cross width</string>
128-
</property>
129-
<property name="wordWrap">
130-
<bool>true</bool>
131-
</property>
132-
</widget>
133-
</item>
134-
<item row="6" column="2">
135-
<widget class="QDoubleSpinBox" name="mCrossWidthSpinBox">
136-
<property name="decimals">
137-
<number>5</number>
30+
<property name="layoutDirection">
31+
<enum>Qt::LeftToRight</enum>
13832
</property>
139-
</widget>
140-
</item>
141-
<item row="7" column="0">
142-
<widget class="QLabel" name="mLineSymbolLabel">
14333
<property name="text">
144-
<string>Line symbol</string>
34+
<string>Enable grid</string>
14535
</property>
146-
<property name="wordWrap">
36+
<property name="checked">
14737
<bool>true</bool>
14838
</property>
14939
</widget>
15040
</item>
151-
<item row="5" column="3">
41+
<item row="0" column="2">
15242
<spacer name="horizontalSpacer">
15343
<property name="orientation">
15444
<enum>Qt::Horizontal</enum>
@@ -164,26 +54,7 @@
16454
</property>
16555
</spacer>
16656
</item>
167-
<item row="0" column="0">
168-
<widget class="QCheckBox" name="chkEnable">
169-
<property name="sizePolicy">
170-
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
171-
<horstretch>0</horstretch>
172-
<verstretch>0</verstretch>
173-
</sizepolicy>
174-
</property>
175-
<property name="layoutDirection">
176-
<enum>Qt::LeftToRight</enum>
177-
</property>
178-
<property name="text">
179-
<string>Enable grid</string>
180-
</property>
181-
<property name="checked">
182-
<bool>true</bool>
183-
</property>
184-
</widget>
185-
</item>
186-
<item row="0" column="4" rowspan="9">
57+
<item row="0" column="3" rowspan="11">
18758
<widget class="QGroupBox" name="mDrawAnnotationCheckBox">
18859
<property name="title">
18960
<string>Draw annotation</string>
@@ -266,39 +137,252 @@
266137
</layout>
267138
</widget>
268139
</item>
269-
<item row="8" column="0">
140+
<item row="1" column="0">
141+
<widget class="QLabel" name="mIntervalXLabel">
142+
<property name="text">
143+
<string>Interval X</string>
144+
</property>
145+
<property name="wordWrap">
146+
<bool>true</bool>
147+
</property>
148+
</widget>
149+
</item>
150+
<item row="2" column="0">
151+
<widget class="QLabel" name="mIntervalYLabel">
152+
<property name="text">
153+
<string>Interval Y</string>
154+
</property>
155+
<property name="wordWrap">
156+
<bool>true</bool>
157+
</property>
158+
</widget>
159+
</item>
160+
<item row="3" column="0" colspan="2">
161+
<widget class="Line" name="line_2">
162+
<property name="orientation">
163+
<enum>Qt::Horizontal</enum>
164+
</property>
165+
</widget>
166+
</item>
167+
<item row="4" column="0">
168+
<widget class="QLabel" name="mGridTypeLabel">
169+
<property name="accessibleName">
170+
<string extracomment="Hello translotor"/>
171+
</property>
172+
<property name="text">
173+
<string>Grid type</string>
174+
</property>
175+
<property name="wordWrap">
176+
<bool>true</bool>
177+
</property>
178+
</widget>
179+
</item>
180+
<item row="5" column="0">
181+
<widget class="QLabel" name="mLineSymbolLabel">
182+
<property name="text">
183+
<string>Line symbol</string>
184+
</property>
185+
<property name="wordWrap">
186+
<bool>true</bool>
187+
</property>
188+
</widget>
189+
</item>
190+
<item row="6" column="0">
191+
<widget class="QLabel" name="mCrossWidthLabel">
192+
<property name="text">
193+
<string>Cross width</string>
194+
</property>
195+
<property name="wordWrap">
196+
<bool>true</bool>
197+
</property>
198+
</widget>
199+
</item>
200+
<item row="7" column="0">
270201
<widget class="QLabel" name="mMarkerSymbolLabel">
271202
<property name="text">
272203
<string>Marker symbol</string>
273204
</property>
274205
</widget>
275206
</item>
276-
<item row="7" column="2">
207+
<item row="4" column="1">
208+
<widget class="QComboBox" name="mGridTypeComboBox">
209+
<property name="sizePolicy">
210+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
211+
<horstretch>0</horstretch>
212+
<verstretch>0</verstretch>
213+
</sizepolicy>
214+
</property>
215+
<property name="minimumSize">
216+
<size>
217+
<width>100</width>
218+
<height>0</height>
219+
</size>
220+
</property>
221+
</widget>
222+
</item>
223+
<item row="5" column="1">
277224
<widget class="QPushButton" name="mLineSymbolButton">
225+
<property name="enabled">
226+
<bool>false</bool>
227+
</property>
278228
<property name="sizePolicy">
279-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
229+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
280230
<horstretch>0</horstretch>
281231
<verstretch>0</verstretch>
282232
</sizepolicy>
283233
</property>
234+
<property name="minimumSize">
235+
<size>
236+
<width>100</width>
237+
<height>0</height>
238+
</size>
239+
</property>
284240
<property name="text">
285241
<string/>
286242
</property>
287243
</widget>
288244
</item>
289-
<item row="8" column="2">
245+
<item row="6" column="1">
246+
<widget class="QDoubleSpinBox" name="mCrossWidthSpinBox">
247+
<property name="enabled">
248+
<bool>false</bool>
249+
</property>
250+
<property name="minimumSize">
251+
<size>
252+
<width>100</width>
253+
<height>0</height>
254+
</size>
255+
</property>
256+
<property name="decimals">
257+
<number>5</number>
258+
</property>
259+
</widget>
260+
</item>
261+
<item row="7" column="1">
290262
<widget class="QPushButton" name="mMarkerSymbolButton">
263+
<property name="enabled">
264+
<bool>false</bool>
265+
</property>
291266
<property name="sizePolicy">
292-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
267+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
293268
<horstretch>0</horstretch>
294269
<verstretch>0</verstretch>
295270
</sizepolicy>
296271
</property>
272+
<property name="minimumSize">
273+
<size>
274+
<width>100</width>
275+
<height>0</height>
276+
</size>
277+
</property>
297278
<property name="text">
298279
<string/>
299280
</property>
300281
</widget>
301282
</item>
283+
<item row="8" column="0" colspan="2">
284+
<widget class="Line" name="line_3">
285+
<property name="orientation">
286+
<enum>Qt::Horizontal</enum>
287+
</property>
288+
</widget>
289+
</item>
290+
<item row="9" column="0">
291+
<widget class="QLabel" name="mOffsetXLabel">
292+
<property name="text">
293+
<string>Offset X</string>
294+
</property>
295+
<property name="wordWrap">
296+
<bool>true</bool>
297+
</property>
298+
</widget>
299+
</item>
300+
<item row="10" column="0">
301+
<widget class="QLabel" name="mOffsetYLabel">
302+
<property name="text">
303+
<string>Offset Y</string>
304+
</property>
305+
<property name="wordWrap">
306+
<bool>true</bool>
307+
</property>
308+
</widget>
309+
</item>
310+
<item row="9" column="1">
311+
<widget class="QDoubleSpinBox" name="mOffsetXSpinBox">
312+
<property name="minimumSize">
313+
<size>
314+
<width>100</width>
315+
<height>0</height>
316+
</size>
317+
</property>
318+
<property name="decimals">
319+
<number>5</number>
320+
</property>
321+
<property name="maximum">
322+
<double>9999999.000000000000000</double>
323+
</property>
324+
</widget>
325+
</item>
326+
<item row="10" column="1">
327+
<widget class="QDoubleSpinBox" name="mOffsetYSpinBox">
328+
<property name="minimumSize">
329+
<size>
330+
<width>100</width>
331+
<height>0</height>
332+
</size>
333+
</property>
334+
<property name="decimals">
335+
<number>5</number>
336+
</property>
337+
<property name="maximum">
338+
<double>9999999.000000000000000</double>
339+
</property>
340+
</widget>
341+
</item>
342+
<item row="1" column="1">
343+
<widget class="QDoubleSpinBox" name="mIntervalXSpinBox">
344+
<property name="sizePolicy">
345+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
346+
<horstretch>0</horstretch>
347+
<verstretch>0</verstretch>
348+
</sizepolicy>
349+
</property>
350+
<property name="minimumSize">
351+
<size>
352+
<width>100</width>
353+
<height>0</height>
354+
</size>
355+
</property>
356+
<property name="decimals">
357+
<number>5</number>
358+
</property>
359+
<property name="maximum">
360+
<double>9999999.000000000000000</double>
361+
</property>
362+
</widget>
363+
</item>
364+
<item row="2" column="1">
365+
<widget class="QDoubleSpinBox" name="mIntervalYSpinBox">
366+
<property name="sizePolicy">
367+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
368+
<horstretch>0</horstretch>
369+
<verstretch>0</verstretch>
370+
</sizepolicy>
371+
</property>
372+
<property name="minimumSize">
373+
<size>
374+
<width>100</width>
375+
<height>0</height>
376+
</size>
377+
</property>
378+
<property name="decimals">
379+
<number>5</number>
380+
</property>
381+
<property name="maximum">
382+
<double>9999999.000000000000000</double>
383+
</property>
384+
</widget>
385+
</item>
302386
</layout>
303387
</item>
304388
<item>

0 commit comments

Comments
 (0)
Please sign in to comment.