Skip to content

Commit 1961fea

Browse files
author
g_j_m
committedSep 2, 2006
Remove Qt3 stuff
Change #includes to Qt4 form Remove unnecessary #includes git-svn-id: http://svn.osgeo.org/qgis/trunk@5750 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7c7acf5 commit 1961fea

File tree

10 files changed

+199
-256
lines changed

10 files changed

+199
-256
lines changed
 

‎src/plugins/georeferencer/mapcoordsdialog.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#include <qlineedit.h>
2-
#include <qvalidator.h>
3-
1+
#include <QValidator>
42
#include <mapcoordsdialog.h>
53

64

‎src/plugins/georeferencer/plugin.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,6 @@
4646
#include <qgsmaplayer.h>
4747
#include <qgsrasterlayer.h>
4848
#include "plugin.h"
49-
#include <q3toolbar.h>
50-
#include <qmenubar.h>
51-
#include <qmessagebox.h>
52-
#include <q3popupmenu.h>
53-
#include <qlineedit.h>
54-
#include <qaction.h>
55-
#include <qapplication.h>
56-
#include <qcursor.h>
57-
#include <QMenu>
58-
//
59-
//non qt includes
60-
//
61-
#include <iostream>
6249

6350
//
6451
//the gui subclass

‎src/plugins/georeferencer/plugin.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
//
5151
//QT Includes
5252
//
53-
#include <qwidget.h>
54-
#include <Q3ToolBar>
53+
#include <QWidget>
5554

5655
/**
5756
* \class Plugin
@@ -103,8 +102,6 @@ public slots:
103102
////////////////////////////////////////////////////////////////////
104103

105104
int mPluginType;
106-
//! Pointer to our toolbar
107-
Q3ToolBar *mToolBarPointer;
108105
//! Pionter to QGIS main application object
109106
QgisApp *mQGisApp;
110107
//! Pointer to the QGIS interface object

‎src/plugins/georeferencer/pluginguibase.ui

Lines changed: 53 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -25,78 +25,33 @@
2525
<property name="spacing" >
2626
<number>6</number>
2727
</property>
28-
<item row="1" column="3" >
29-
<widget class="QLineEdit" name="leSelectRaster" >
30-
<property name="sizePolicy" >
31-
<sizepolicy>
32-
<hsizetype>7</hsizetype>
33-
<vsizetype>0</vsizetype>
34-
<horstretch>0</horstretch>
35-
<verstretch>0</verstretch>
36-
</sizepolicy>
37-
</property>
38-
</widget>
39-
</item>
40-
<item row="1" column="4" >
41-
<widget class="QPushButton" name="pbnSelectRaster" >
42-
<property name="sizePolicy" >
43-
<sizepolicy>
44-
<hsizetype>0</hsizetype>
45-
<vsizetype>0</vsizetype>
46-
<horstretch>0</horstretch>
47-
<verstretch>0</verstretch>
48-
</sizepolicy>
49-
</property>
50-
<property name="text" >
51-
<string>...</string>
52-
</property>
53-
</widget>
54-
</item>
55-
<item row="2" column="3" colspan="2" >
56-
<widget class="QPushButton" name="pbnEnterWorldCoords" >
28+
<item row="1" column="2" >
29+
<widget class="QLabel" name="textLabel1" >
5730
<property name="text" >
58-
<string>Enter world coordinates</string>
31+
<string>Raster file:</string>
5932
</property>
6033
</widget>
6134
</item>
6235
<item row="0" column="2" colspan="3" >
63-
<widget class="Q3TextEdit" name="teInstructions_2" >
64-
<property name="sizePolicy" >
65-
<sizepolicy>
66-
<hsizetype>7</hsizetype>
67-
<vsizetype>7</vsizetype>
68-
<horstretch>0</horstretch>
69-
<verstretch>6</verstretch>
70-
</sizepolicy>
71-
</property>
72-
<property name="text" >
73-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style="font-size:11pt;font-family:Tahoma">
74-
&lt;p style="margin-top:16px" dir="ltr">&lt;span style="font-size:14pt;font-weight:600">Description&lt;/span>&lt;/p>
75-
&lt;p dir="ltr">This plugin can generate world files for rasters. You select points on the raster and give their world coordinates, and the plugin will compute the world file parameters. The more coordinates you can provide the better the result will be.&lt;/p>
76-
&lt;/body>&lt;/html>
77-
</string>
78-
</property>
79-
<property name="wordWrap" >
80-
<enum>Q3TextEdit::WidgetWidth</enum>
36+
<widget class="QTextEdit" name="textEdit" >
37+
<property name="html" >
38+
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-size:11pt; font-weight:600;">Description&lt;/span>&lt;/p>&lt;p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This plugin can generate world files for rasters. You select points on the raster and give their world coordinates, and the plugin will compute the world file parameters. The more coordinates you can provide the better the result will be.&lt;/p>&lt;/body>&lt;/html></string>
8139
</property>
8240
</widget>
8341
</item>
84-
<item rowspan="3" row="0" column="1" >
85-
<widget class="Line" name="line1" >
42+
<item rowspan="3" row="0" column="0" >
43+
<widget class="QLabel" name="pixmapLabel2" >
8644
<property name="maximumSize" >
8745
<size>
88-
<width>2</width>
46+
<width>150</width>
8947
<height>32767</height>
9048
</size>
9149
</property>
92-
<property name="frameShape" >
93-
<enum>QFrame::VLine</enum>
94-
</property>
95-
<property name="frameShadow" >
96-
<enum>QFrame::Sunken</enum>
50+
<property name="pixmap" >
51+
<pixmap resource="georeferencer.qrc" >:/georef.png</pixmap>
9752
</property>
98-
<property name="orientation" >
99-
<enum>Qt::Vertical</enum>
53+
<property name="scaledContents" >
54+
<bool>true</bool>
10055
</property>
10156
</widget>
10257
</item>
@@ -133,42 +88,63 @@
13388
</item>
13489
</layout>
13590
</item>
136-
<item rowspan="3" row="0" column="0" >
137-
<widget class="QLabel" name="pixmapLabel2" >
91+
<item rowspan="3" row="0" column="1" >
92+
<widget class="Line" name="line1" >
13893
<property name="maximumSize" >
13994
<size>
140-
<width>150</width>
95+
<width>2</width>
14196
<height>32767</height>
14297
</size>
14398
</property>
144-
<property name="pixmap" >
145-
<pixmap resource="georeferencer.qrc" >:/georef.png</pixmap>
99+
<property name="frameShape" >
100+
<enum>QFrame::VLine</enum>
146101
</property>
147-
<property name="scaledContents" >
148-
<bool>true</bool>
102+
<property name="frameShadow" >
103+
<enum>QFrame::Sunken</enum>
104+
</property>
105+
<property name="orientation" >
106+
<enum>Qt::Vertical</enum>
149107
</property>
150108
</widget>
151109
</item>
152-
<item row="1" column="2" >
153-
<widget class="QLabel" name="textLabel1" >
110+
<item row="2" column="3" colspan="2" >
111+
<widget class="QPushButton" name="pbnEnterWorldCoords" >
154112
<property name="text" >
155-
<string>Raster file:</string>
113+
<string>Enter world coordinates</string>
114+
</property>
115+
</widget>
116+
</item>
117+
<item row="1" column="4" >
118+
<widget class="QPushButton" name="pbnSelectRaster" >
119+
<property name="sizePolicy" >
120+
<sizepolicy>
121+
<hsizetype>0</hsizetype>
122+
<vsizetype>0</vsizetype>
123+
<horstretch>0</horstretch>
124+
<verstretch>0</verstretch>
125+
</sizepolicy>
126+
</property>
127+
<property name="text" >
128+
<string>...</string>
129+
</property>
130+
</widget>
131+
</item>
132+
<item row="1" column="3" >
133+
<widget class="QLineEdit" name="leSelectRaster" >
134+
<property name="sizePolicy" >
135+
<sizepolicy>
136+
<hsizetype>7</hsizetype>
137+
<vsizetype>0</vsizetype>
138+
<horstretch>0</horstretch>
139+
<verstretch>0</verstretch>
140+
</sizepolicy>
156141
</property>
157142
</widget>
158143
</item>
159144
</layout>
160145
</widget>
161146
<layoutdefault spacing="6" margin="11" />
162147
<pixmapfunction></pixmapfunction>
163-
<customwidgets>
164-
<customwidget>
165-
<class>Q3TextEdit</class>
166-
<extends></extends>
167-
<header>q3textedit.h</header>
168-
<container>0</container>
169-
<pixmap></pixmap>
170-
</customwidget>
171-
</customwidgets>
172148
<resources>
173149
<include location="georeferencer.qrc" />
174150
</resources>

‎src/plugins/georeferencer/qgsgeorefwarpoptionsdialog.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#include <iostream>
2-
3-
#include <qcheckbox.h>
4-
#include <QComboBox>
51

62
#include "qgsgeorefwarpoptionsdialog.h"
73

‎src/plugins/georeferencer/qgsimagewarper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define QGSIMAGEWARPER_H
33

44
#include <gdalwarper.h>
5-
#include <qstring.h>
5+
#include <QString>
66

77

88
class QgsImageWarper {

‎src/plugins/georeferencer/qgsleastsquares.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include <gsl/gsl_linalg.h>
55

6+
#include <QObject>
7+
68
#include "qgsleastsquares.h"
79

810

@@ -11,8 +13,8 @@ void QgsLeastSquares::linear(std::vector<QgsPoint> mapCoords,
1113
QgsPoint& origin, double& pixelSize) {
1214
int n = mapCoords.size();
1315
if (n < 2) {
14-
throw std::domain_error("Fit to a linear transform requires at "
15-
"least 2 points.");
16+
throw std::domain_error(QObject::tr("Fit to a linear transform requires at "
17+
"least 2 points.").toLocal8Bit().constData());
1618
}
1719

1820
double sumPx(0), sumPy(0), sumPx2(0), sumPy2(0), sumPxMx(0), sumPyMy(0),
@@ -48,8 +50,8 @@ void QgsLeastSquares::helmert(std::vector<QgsPoint> mapCoords,
4850
double& rotation) {
4951
int n = mapCoords.size();
5052
if (n < 2) {
51-
throw std::domain_error("Fit to a Helmert transform requires at "
52-
"least 2 points.");
53+
throw std::domain_error(QObject::tr("Fit to a Helmert transform requires at "
54+
"least 2 points.").toLocal8Bit().constData());
5355
}
5456

5557
double A = 0, B = 0, C = 0, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0;
@@ -100,8 +102,8 @@ void QgsLeastSquares::affine(std::vector<QgsPoint> mapCoords,
100102
std::vector<QgsPoint> pixelCoords) {
101103
int n = mapCoords.size();
102104
if (n < 4) {
103-
throw std::domain_error("Fit to an affine transform requires at "
104-
"least 4 points.");
105+
throw std::domain_error(QObject::tr("Fit to an affine transform requires at "
106+
"least 4 points.").toLocal8Bit().constData());
105107
}
106108

107109
double A = 0, B = 0, C = 0, D = 0, E = 0, F = 0,

‎src/plugins/georeferencer/qgspointdialog.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <cmath>
22

3-
#include <Q3Frame>
43
#include <QPushButton>
54
#include <QComboBox>
65
#include <QFileDialog>
@@ -223,15 +222,15 @@ void QgsPointDialog::on_pbnGenerateAndLoad_clicked()
223222
void QgsPointDialog::on_pbnSelectWorldFile_clicked()
224223
{
225224
QString filename = QFileDialog::getSaveFileName(this,
226-
"Choose a name for the world file", ".");
225+
tr("Choose a name for the world file"), ".");
227226
leSelectWorldFile->setText(filename);
228227
}
229228

230229

231230
void QgsPointDialog::on_pbnSelectModifiedRaster_clicked()
232231
{
233232
QString filename = QFileDialog::getSaveFileName(this,
234-
"Choose a name for the world file", ".");
233+
tr("Choose a name for the world file"), ".");
235234
if (filename.right(4) != ".tif")
236235
filename += ".tif";
237236
leSelectModifiedRaster->setText(filename);
@@ -264,29 +263,29 @@ bool QgsPointDialog::generateWorldFile()
264263
}
265264
else if (cmbTransformType->currentItem() == 1)
266265
{
267-
int res = QMessageBox::warning(this, "Warning",
268-
"A Helmert transform requires modifications in "
266+
int res = QMessageBox::warning(this, tr("Warning"),
267+
tr("A Helmert transform requires modifications in "
269268
"the raster layer.\nThe modifed raster will be "
270269
"saved in a new file and a world file will be "
271270
"generated for this new file instead.\nAre you "
272-
"sure that this is what you want?",
271+
"sure that this is what you want?"),
273272
QMessageBox::No, QMessageBox::Yes);
274273
if (res == QMessageBox::No)
275274
return false;
276275
QgsLeastSquares::helmert(mapCoords, pixelCoords, origin, pixelSize, rotation);
277276
}
278277
else if (cmbTransformType->currentItem() == 2)
279278
{
280-
QMessageBox::critical(this, "Not implemented!",
281-
"An affine transform requires changing the "
279+
QMessageBox::critical(this, tr("Not implemented!"),
280+
tr("An affine transform requires changing the "
282281
"original raster file. This is not yet "
283-
"supported.");
282+
"supported."));
284283
return false;
285284
}
286285
}
287286
catch (std::domain_error& e)
288287
{
289-
QMessageBox::critical(this, "Error", QString(e.what()));
288+
QMessageBox::critical(this, tr("Error"), QString(e.what()));
290289
return false;
291290
}
292291

@@ -308,8 +307,8 @@ bool QgsPointDialog::generateWorldFile()
308307
QFile file(leSelectWorldFile->text());
309308
if (!file.open(QIODevice::WriteOnly))
310309
{
311-
QMessageBox::critical(this, "Error",
312-
"Could not write to " + leSelectWorldFile->text());
310+
QMessageBox::critical(this, tr("Error"),
311+
tr("Could not write to ") + leSelectWorldFile->text());
313312
return false;
314313
}
315314
QTextStream stream(&file);

‎src/plugins/georeferencer/qgspointdialog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515
#include <vector>
1616

17-
#include <qcursor.h>
17+
//#include <QCursor>
18+
#include <QDialog>
1819

1920
#include <qgsmapcanvas.h>
2021

2122
#include "qgsrasterlayer.h"
2223

2324
#include <ui_qgspointdialogbase.h>
24-
#include <QDialog>
2525

2626
class QAction;
2727
class QActionGroup;

‎src/plugins/georeferencer/qgspointdialogbase.ui

Lines changed: 122 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,38 @@
88
<rect>
99
<x>0</x>
1010
<y>0</y>
11-
<width>592</width>
12-
<height>403</height>
11+
<width>703</width>
12+
<height>410</height>
1313
</rect>
1414
</property>
1515
<property name="windowTitle" >
1616
<string>Georeferencer</string>
1717
</property>
1818
<layout class="QGridLayout" >
1919
<property name="margin" >
20-
<number>10</number>
20+
<number>9</number>
2121
</property>
2222
<property name="spacing" >
2323
<number>6</number>
2424
</property>
25-
<item row="2" column="0" >
26-
<widget class="QLabel" name="textLabel2" >
27-
<property name="text" >
28-
<string>Transform type:</string>
25+
<item row="0" column="4" colspan="4" >
26+
<spacer>
27+
<property name="orientation" >
28+
<enum>Qt::Horizontal</enum>
2929
</property>
30-
</widget>
31-
</item>
32-
<item row="2" column="1" colspan="3" >
33-
<widget class="QComboBox" name="cmbTransformType" >
34-
<item>
35-
<property name="text" >
36-
<string>Linear</string>
37-
</property>
38-
</item>
39-
<item>
40-
<property name="text" >
41-
<string>Helmert</string>
42-
</property>
43-
</item>
44-
</widget>
30+
<property name="sizeType" >
31+
<enum>QSizePolicy::Expanding</enum>
32+
</property>
33+
<property name="sizeHint" >
34+
<size>
35+
<width>300</width>
36+
<height>20</height>
37+
</size>
38+
</property>
39+
</spacer>
4540
</item>
46-
<item row="0" column="0" colspan="3" >
47-
<widget class="Q3Frame" name="frame4" >
41+
<item row="0" column="2" colspan="2" >
42+
<widget class="QFrame" name="frame5" >
4843
<property name="sizePolicy" >
4944
<sizepolicy>
5045
<hsizetype>0</hsizetype>
@@ -59,20 +54,17 @@
5954
<property name="frameShadow" >
6055
<enum>QFrame::Raised</enum>
6156
</property>
62-
<property name="margin" >
63-
<number>0</number>
64-
</property>
65-
<layout class="QGridLayout" >
57+
<layout class="QHBoxLayout" >
6658
<property name="margin" >
6759
<number>0</number>
6860
</property>
6961
<property name="spacing" >
7062
<number>0</number>
7163
</property>
72-
<item row="0" column="0" >
73-
<widget class="QToolButton" name="tbnZoomIn" >
64+
<item>
65+
<widget class="QToolButton" name="tbnAddPoint" >
7466
<property name="toolTip" >
75-
<string>Zoom in</string>
67+
<string>Add points</string>
7668
</property>
7769
<property name="text" >
7870
<string/>
@@ -91,10 +83,13 @@
9183
</property>
9284
</widget>
9385
</item>
94-
<item row="0" column="1" >
95-
<widget class="QToolButton" name="tbnZoomOut" >
86+
<item>
87+
<widget class="QToolButton" name="tbnDeletePoint" >
88+
<property name="enabled" >
89+
<bool>true</bool>
90+
</property>
9691
<property name="toolTip" >
97-
<string>Zoom out</string>
92+
<string>Delete points</string>
9893
</property>
9994
<property name="text" >
10095
<string/>
@@ -113,10 +108,36 @@
113108
</property>
114109
</widget>
115110
</item>
116-
<item row="0" column="2" >
117-
<widget class="QToolButton" name="tbnZoomToLayer" >
111+
</layout>
112+
</widget>
113+
</item>
114+
<item row="0" column="0" colspan="2" >
115+
<widget class="QFrame" name="frame4" >
116+
<property name="sizePolicy" >
117+
<sizepolicy>
118+
<hsizetype>0</hsizetype>
119+
<vsizetype>0</vsizetype>
120+
<horstretch>0</horstretch>
121+
<verstretch>0</verstretch>
122+
</sizepolicy>
123+
</property>
124+
<property name="frameShape" >
125+
<enum>QFrame::NoFrame</enum>
126+
</property>
127+
<property name="frameShadow" >
128+
<enum>QFrame::Raised</enum>
129+
</property>
130+
<layout class="QHBoxLayout" >
131+
<property name="margin" >
132+
<number>0</number>
133+
</property>
134+
<property name="spacing" >
135+
<number>0</number>
136+
</property>
137+
<item>
138+
<widget class="QToolButton" name="tbnZoomIn" >
118139
<property name="toolTip" >
119-
<string>Zoom to the raster extents</string>
140+
<string>Zoom in</string>
120141
</property>
121142
<property name="text" >
122143
<string/>
@@ -131,14 +152,14 @@
131152
</size>
132153
</property>
133154
<property name="checkable" >
134-
<bool>false</bool>
155+
<bool>true</bool>
135156
</property>
136157
</widget>
137158
</item>
138-
<item row="0" column="3" >
139-
<widget class="QToolButton" name="tbnPan" >
159+
<item>
160+
<widget class="QToolButton" name="tbnZoomOut" >
140161
<property name="toolTip" >
141-
<string>Pan</string>
162+
<string>Zoom out</string>
142163
</property>
143164
<property name="text" >
144165
<string/>
@@ -157,39 +178,10 @@
157178
</property>
158179
</widget>
159180
</item>
160-
</layout>
161-
</widget>
162-
</item>
163-
<item row="0" column="3" colspan="2" >
164-
<widget class="Q3Frame" name="frame5" >
165-
<property name="sizePolicy" >
166-
<sizepolicy>
167-
<hsizetype>0</hsizetype>
168-
<vsizetype>0</vsizetype>
169-
<horstretch>0</horstretch>
170-
<verstretch>0</verstretch>
171-
</sizepolicy>
172-
</property>
173-
<property name="frameShape" >
174-
<enum>QFrame::NoFrame</enum>
175-
</property>
176-
<property name="frameShadow" >
177-
<enum>QFrame::Raised</enum>
178-
</property>
179-
<property name="margin" >
180-
<number>0</number>
181-
</property>
182-
<layout class="QGridLayout" >
183-
<property name="margin" >
184-
<number>0</number>
185-
</property>
186-
<property name="spacing" >
187-
<number>0</number>
188-
</property>
189-
<item row="0" column="0" >
190-
<widget class="QToolButton" name="tbnAddPoint" >
181+
<item>
182+
<widget class="QToolButton" name="tbnZoomToLayer" >
191183
<property name="toolTip" >
192-
<string>Add points</string>
184+
<string>Zoom to the raster extents</string>
193185
</property>
194186
<property name="text" >
195187
<string/>
@@ -204,17 +196,14 @@
204196
</size>
205197
</property>
206198
<property name="checkable" >
207-
<bool>true</bool>
199+
<bool>false</bool>
208200
</property>
209201
</widget>
210202
</item>
211-
<item row="0" column="1" >
212-
<widget class="QToolButton" name="tbnDeletePoint" >
213-
<property name="enabled" >
214-
<bool>true</bool>
215-
</property>
203+
<item>
204+
<widget class="QToolButton" name="tbnPan" >
216205
<property name="toolTip" >
217-
<string>Delete points</string>
206+
<string>Pan</string>
218207
</property>
219208
<property name="text" >
220209
<string/>
@@ -236,44 +225,55 @@
236225
</layout>
237226
</widget>
238227
</item>
239-
<item row="0" column="5" colspan="5" >
240-
<spacer>
241-
<property name="orientation" >
242-
<enum>Qt::Horizontal</enum>
243-
</property>
244-
<property name="sizeType" >
245-
<enum>QSizePolicy::Expanding</enum>
228+
<item row="2" column="7" >
229+
<widget class="QPushButton" name="pbnSelectModifiedRaster" >
230+
<property name="text" >
231+
<string>...</string>
246232
</property>
247-
<property name="sizeHint" >
248-
<size>
249-
<width>300</width>
250-
<height>20</height>
251-
</size>
233+
</widget>
234+
</item>
235+
<item row="3" column="7" >
236+
<widget class="QPushButton" name="pbnSelectWorldFile" >
237+
<property name="text" >
238+
<string>...</string>
252239
</property>
253-
</spacer>
240+
</widget>
254241
</item>
255-
<item row="4" column="8" colspan="2" >
242+
<item row="4" column="6" colspan="2" >
256243
<widget class="QPushButton" name="pbnGenerateAndLoad" >
257244
<property name="text" >
258245
<string>Generate world file and load layer</string>
259246
</property>
260247
</widget>
261248
</item>
262-
<item row="4" column="7" >
249+
<item row="2" column="5" colspan="2" >
250+
<widget class="QLineEdit" name="leSelectModifiedRaster" />
251+
</item>
252+
<item row="3" column="5" colspan="2" >
253+
<widget class="QLineEdit" name="leSelectWorldFile" />
254+
</item>
255+
<item row="4" column="5" >
263256
<widget class="QPushButton" name="pbnGenerateWorldFile" >
264257
<property name="text" >
265258
<string>Generate world file</string>
266259
</property>
267260
</widget>
268261
</item>
269-
<item row="4" column="0" colspan="2" >
270-
<widget class="QPushButton" name="pbnCancel" >
262+
<item row="2" column="4" >
263+
<widget class="QLabel" name="textLabel1_2" >
271264
<property name="text" >
272-
<string>Cancel</string>
265+
<string>Modified raster:</string>
266+
</property>
267+
</widget>
268+
</item>
269+
<item row="3" column="4" >
270+
<widget class="QLabel" name="textLabel1" >
271+
<property name="text" >
272+
<string>World file:</string>
273273
</property>
274274
</widget>
275275
</item>
276-
<item row="4" column="2" colspan="5" >
276+
<item row="4" column="3" colspan="2" >
277277
<spacer>
278278
<property name="orientation" >
279279
<enum>Qt::Horizontal</enum>
@@ -289,35 +289,39 @@
289289
</property>
290290
</spacer>
291291
</item>
292-
<item row="3" column="4" colspan="2" >
293-
<widget class="QLabel" name="textLabel1" >
294-
<property name="text" >
295-
<string>World file:</string>
296-
</property>
292+
<item row="2" column="1" colspan="3" >
293+
<widget class="QComboBox" name="cmbTransformType" >
294+
<item>
295+
<property name="text" >
296+
<string>Linear</string>
297+
</property>
298+
</item>
299+
<item>
300+
<property name="text" >
301+
<string>Helmert</string>
302+
</property>
303+
</item>
297304
</widget>
298305
</item>
299-
<item row="2" column="6" colspan="3" >
300-
<widget class="QLineEdit" name="leSelectModifiedRaster" />
301-
</item>
302-
<item row="3" column="6" colspan="3" >
303-
<widget class="QLineEdit" name="leSelectWorldFile" />
304-
</item>
305-
<item row="3" column="9" >
306-
<widget class="QPushButton" name="pbnSelectWorldFile" >
306+
<item row="2" column="0" >
307+
<widget class="QLabel" name="textLabel2" >
307308
<property name="text" >
308-
<string>...</string>
309+
<string>Transform type:</string>
309310
</property>
310311
</widget>
311312
</item>
312-
<item row="2" column="9" >
313-
<widget class="QPushButton" name="pbnSelectModifiedRaster" >
313+
<item row="4" column="0" colspan="3" >
314+
<widget class="QPushButton" name="pbnCancel" >
314315
<property name="text" >
315-
<string>...</string>
316+
<string>Cancel</string>
316317
</property>
317318
</widget>
318319
</item>
319-
<item row="1" column="0" colspan="10" >
320-
<widget class="Q3Frame" name="canvasFrame" >
320+
<item row="1" column="0" colspan="8" >
321+
<widget class="QFrame" name="canvasFrame" >
322+
<property name="autoFillBackground" >
323+
<bool>true</bool>
324+
</property>
321325
<property name="frameShape" >
322326
<enum>QFrame::StyledPanel</enum>
323327
</property>
@@ -326,26 +330,10 @@
326330
</property>
327331
</widget>
328332
</item>
329-
<item row="2" column="4" colspan="2" >
330-
<widget class="QLabel" name="textLabel1_2" >
331-
<property name="text" >
332-
<string>Modified raster:</string>
333-
</property>
334-
</widget>
335-
</item>
336333
</layout>
337334
</widget>
338335
<layoutdefault spacing="6" margin="11" />
339336
<pixmapfunction></pixmapfunction>
340-
<customwidgets>
341-
<customwidget>
342-
<class>Q3Frame</class>
343-
<extends></extends>
344-
<header>Qt3Support/Q3Frame</header>
345-
<container>1</container>
346-
<pixmap></pixmap>
347-
</customwidget>
348-
</customwidgets>
349337
<resources/>
350338
<connections/>
351339
</ui>

0 commit comments

Comments
 (0)
Please sign in to comment.