Skip to content

Commit cc217e1

Browse files
committed
raster save as dialog minor improvements
1 parent 6b9eaf9 commit cc217e1

File tree

2 files changed

+33
-22
lines changed

2 files changed

+33
-22
lines changed

src/gui/qgsrasterlayersaveasdialog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ void QgsRasterLayerSaveAsDialog::on_mChangeCrsPushButton_clicked()
387387
if ( selector->exec() )
388388
{
389389
mUserCrs.createFromId( selector->selectedCrsId(), QgsCoordinateReferenceSystem::InternalCrsId );
390+
mCrsComboBox->setCurrentIndex( mCrsComboBox->findData( UserCrs ) );
390391
}
391392
delete selector;
392393
crsChanged();
@@ -454,8 +455,6 @@ void QgsRasterLayerSaveAsDialog::updateCrsGroup()
454455

455456
mCrsComboBox->setItemText( mCrsComboBox->findData( UserCrs ),
456457
tr( "Selected" ) + " (" + mUserCrs.description() + ", " + mUserCrs.authid() + ")" );
457-
458-
mChangeCrsPushButton->setEnabled( mCrsComboBox->findData( UserCrs ) == mCrsComboBox->currentIndex() );
459458
}
460459

461460
QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::outputCrs()

src/ui/qgsrasterlayersaveasdialogbase.ui

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>518</width>
10-
<height>588</height>
10+
<height>580</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -31,7 +31,7 @@
3131
<x>0</x>
3232
<y>0</y>
3333
<width>510</width>
34-
<height>551</height>
34+
<height>543</height>
3535
</rect>
3636
</property>
3737
<layout class="QVBoxLayout" name="verticalLayout_5">
@@ -147,7 +147,7 @@
147147
<item row="1" column="0">
148148
<widget class="QLabel" name="mXMinLabel">
149149
<property name="text">
150-
<string>X min</string>
150+
<string>West</string>
151151
</property>
152152
<property name="alignment">
153153
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -160,7 +160,7 @@
160160
<item row="1" column="2">
161161
<widget class="QLabel" name="mXMaxLabel">
162162
<property name="text">
163-
<string>X max</string>
163+
<string>East</string>
164164
</property>
165165
<property name="alignment">
166166
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -173,7 +173,7 @@
173173
<item row="0" column="1">
174174
<widget class="QLabel" name="mYMaxLabel">
175175
<property name="text">
176-
<string>Y max</string>
176+
<string>North</string>
177177
</property>
178178
<property name="alignment">
179179
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -190,7 +190,7 @@
190190
<item row="2" column="1">
191191
<widget class="QLabel" name="mYMinLabel">
192192
<property name="text">
193-
<string>Y min</string>
193+
<string>South</string>
194194
</property>
195195
<property name="alignment">
196196
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -319,37 +319,49 @@
319319
<number>0</number>
320320
</property>
321321
<item row="0" column="0">
322-
<widget class="QgsRasterFormatSaveOptionsWidget" name="mOptionsWidget" native="true">
323-
<zorder></zorder>
324-
</widget>
322+
<widget class="QgsRasterFormatSaveOptionsWidget" name="mOptionsWidget" native="true"/>
325323
</item>
326324
<item row="1" column="0">
327325
<widget class="QGroupBox" name="mTilesGroupBox">
328326
<property name="title">
329327
<string>Tiles</string>
330328
</property>
331-
<layout class="QGridLayout" name="gridLayout">
332-
<item row="0" column="1">
333-
<widget class="QLineEdit" name="mMaximumSizeXLineEdit"/>
334-
</item>
335-
<item row="0" column="0">
329+
<layout class="QHBoxLayout" name="horizontalLayout_5">
330+
<item>
336331
<widget class="QLabel" name="mMaximumSizeXLabel">
332+
<property name="toolTip">
333+
<string>Maximum number of columns in one tile.</string>
334+
</property>
337335
<property name="text">
338-
<string>Maximum Size X:</string>
336+
<string>Max columns</string>
339337
</property>
340338
</widget>
341339
</item>
342-
<item row="1" column="1">
343-
<widget class="QLineEdit" name="mMaximumSizeYLineEdit"/>
340+
<item>
341+
<widget class="QLineEdit" name="mMaximumSizeXLineEdit">
342+
<property name="toolTip">
343+
<string>Maximum number of columns in one tile.</string>
344+
</property>
345+
</widget>
344346
</item>
345-
<item row="1" column="0">
347+
<item>
346348
<widget class="QLabel" name="mMaximumSizeYLabel">
349+
<property name="toolTip">
350+
<string>Maximum number of rows in one tile.</string>
351+
</property>
347352
<property name="text">
348-
<string>Maximum size Y:</string>
353+
<string>Max rows</string>
354+
</property>
355+
</widget>
356+
</item>
357+
<item>
358+
<widget class="QLineEdit" name="mMaximumSizeYLineEdit">
359+
<property name="toolTip">
360+
<string>Maximum number of rows in one tile.</string>
349361
</property>
350362
</widget>
351363
</item>
352-
<item row="2" column="0" colspan="2">
364+
<item>
353365
<widget class="QCheckBox" name="mTileModeCheckBox">
354366
<property name="text">
355367
<string>Create VRT</string>

0 commit comments

Comments
 (0)