@@ -126,17 +126,17 @@ def initGui( self ):
126
126
self .projectionsMenu = QMenu ( QCoreApplication .translate ( "GdalTools" , "Projections" ), self .iface .mainWindow () )
127
127
self .projectionsMenu .setObjectName ("projectionsMenu" )
128
128
129
- self .warp = QAction ( QIcon (":/icons/warp.png" ), QCoreApplication .translate ( "GdalTools" , "Warp (Reproject)" ), self .iface .mainWindow () )
129
+ self .warp = QAction ( QIcon (":/icons/warp.png" ), QCoreApplication .translate ( "GdalTools" , "Warp (Reproject)... " ), self .iface .mainWindow () )
130
130
self .warp .setObjectName ("warp" )
131
131
self .warp .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Warp an image into a new coordinate system" ) )
132
132
QObject .connect ( self .warp , SIGNAL ( "triggered()" ), self .doWarp )
133
133
134
- self .projection = QAction ( QIcon ( ":icons/projection-add.png" ), QCoreApplication .translate ( "GdalTools" , "Assign projection " ), self .iface .mainWindow () )
134
+ self .projection = QAction ( QIcon ( ":icons/projection-add.png" ), QCoreApplication .translate ( "GdalTools" , "Assign Projection... " ), self .iface .mainWindow () )
135
135
self .projection .setObjectName ("projection" )
136
136
self .projection .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Add projection info to the raster" ) )
137
137
QObject .connect ( self .projection , SIGNAL ( "triggered()" ), self .doProjection )
138
138
139
- self .extractProj = QAction ( QIcon ( ":icons/projection-export.png" ), QCoreApplication .translate ( "GdalTools" , "Extract projection " ), self .iface .mainWindow () )
139
+ self .extractProj = QAction ( QIcon ( ":icons/projection-export.png" ), QCoreApplication .translate ( "GdalTools" , "Extract Projection... " ), self .iface .mainWindow () )
140
140
self .extractProj .setObjectName ("extractProj" )
141
141
self .extractProj .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Extract projection information from raster(s)" ) )
142
142
QObject .connect ( self .extractProj , SIGNAL ( "triggered()" ), self .doExtractProj )
@@ -148,30 +148,30 @@ def initGui( self ):
148
148
self .conversionMenu .setObjectName ("conversionMenu" )
149
149
150
150
if self .GdalVersionNum >= 1300 :
151
- self .rasterize = QAction ( QIcon (":/icons/rasterize.png" ), QCoreApplication .translate ( "GdalTools" , "Rasterize (Vector to raster) " ), self .iface .mainWindow () )
151
+ self .rasterize = QAction ( QIcon (":/icons/rasterize.png" ), QCoreApplication .translate ( "GdalTools" , "Rasterize (Vector to Raster)... " ), self .iface .mainWindow () )
152
152
self .rasterize .setObjectName ("rasterize" )
153
153
self .rasterize .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Burns vector geometries into a raster" ) )
154
154
QObject .connect ( self .rasterize , SIGNAL ( "triggered()" ), self .doRasterize )
155
155
self .conversionMenu .addAction ( self .rasterize )
156
156
157
157
if self .GdalVersionNum >= 1600 :
158
- self .polygonize = QAction ( QIcon (":/icons/polygonize.png" ), QCoreApplication .translate ( "GdalTools" , "Polygonize (Raster to vector) " ), self .iface .mainWindow () )
158
+ self .polygonize = QAction ( QIcon (":/icons/polygonize.png" ), QCoreApplication .translate ( "GdalTools" , "Polygonize (Raster to Vector)... " ), self .iface .mainWindow () )
159
159
self .polygonize .setObjectName ("polygonize" )
160
160
self .polygonize .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Produces a polygon feature layer from a raster" ) )
161
161
QObject .connect ( self .polygonize , SIGNAL ( "triggered()" ), self .doPolygonize )
162
162
self .conversionMenu .addAction ( self .polygonize )
163
163
164
- self .translate = QAction ( QIcon (":/icons/translate.png" ), QCoreApplication .translate ( "GdalTools" , "Translate (Convert format) " ), self .iface .mainWindow () )
164
+ self .translate = QAction ( QIcon (":/icons/translate.png" ), QCoreApplication .translate ( "GdalTools" , "Translate (Convert Format)... " ), self .iface .mainWindow () )
165
165
self .translate .setObjectName ("translate" )
166
166
self .translate .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Converts raster data between different formats" ) )
167
167
QObject .connect ( self .translate , SIGNAL ( "triggered()" ), self .doTranslate )
168
168
169
- self .paletted = QAction ( QIcon ( ":icons/24-to-8-bits.png" ), QCoreApplication .translate ( "GdalTools" , "RGB to PCT" ), self .iface .mainWindow () )
169
+ self .paletted = QAction ( QIcon ( ":icons/24-to-8-bits.png" ), QCoreApplication .translate ( "GdalTools" , "RGB to PCT... " ), self .iface .mainWindow () )
170
170
self .paletted .setObjectName ("paletted" )
171
171
self .paletted .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Convert a 24bit RGB image to 8bit paletted" ) )
172
172
QObject .connect ( self .paletted , SIGNAL ( "triggered()" ), self .doPaletted )
173
173
174
- self .rgb = QAction ( QIcon ( ":icons/8-to-24-bits.png" ), QCoreApplication .translate ( "GdalTools" , "PCT to RGB" ), self .iface .mainWindow () )
174
+ self .rgb = QAction ( QIcon ( ":icons/8-to-24-bits.png" ), QCoreApplication .translate ( "GdalTools" , "PCT to RGB... " ), self .iface .mainWindow () )
175
175
self .rgb .setObjectName ("rgb" )
176
176
self .rgb .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Convert an 8bit paletted image to 24bit RGB" ) )
177
177
QObject .connect ( self .rgb , SIGNAL ( "triggered()" ), self .doRGB )
@@ -183,13 +183,13 @@ def initGui( self ):
183
183
self .extractionMenu .setObjectName ("extractionMenu" )
184
184
185
185
if self .GdalVersionNum >= 1600 :
186
- self .contour = QAction ( QIcon (":/icons/contour.png" ), QCoreApplication .translate ( "GdalTools" , "Contour" ), self .iface .mainWindow () )
186
+ self .contour = QAction ( QIcon (":/icons/contour.png" ), QCoreApplication .translate ( "GdalTools" , "Contour... " ), self .iface .mainWindow () )
187
187
self .contour .setObjectName ("contour" )
188
188
self .contour .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Builds vector contour lines from a DEM" ) )
189
189
QObject .connect ( self .contour , SIGNAL ( "triggered()" ), self .doContour )
190
190
self .extractionMenu .addAction ( self .contour )
191
191
192
- self .clipper = QAction ( QIcon ( ":icons/raster-clip.png" ), QCoreApplication .translate ( "GdalTools" , "Clipper" ), self .iface .mainWindow () )
192
+ self .clipper = QAction ( QIcon ( ":icons/raster-clip.png" ), QCoreApplication .translate ( "GdalTools" , "Clipper... " ), self .iface .mainWindow () )
193
193
self .clipper .setObjectName ("clipper" )
194
194
#self.clipper.setStatusTip( QCoreApplication.translate( "GdalTools", "Converts raster data between different formats") )
195
195
QObject .connect ( self .clipper , SIGNAL ( "triggered()" ), self .doClipper )
@@ -201,42 +201,42 @@ def initGui( self ):
201
201
self .analysisMenu .setObjectName ("analysisMenu" )
202
202
203
203
if self .GdalVersionNum >= 1600 :
204
- self .sieve = QAction ( QIcon (":/icons/sieve.png" ), QCoreApplication .translate ( "GdalTools" , "Sieve" ), self .iface .mainWindow () )
204
+ self .sieve = QAction ( QIcon (":/icons/sieve.png" ), QCoreApplication .translate ( "GdalTools" , "Sieve... " ), self .iface .mainWindow () )
205
205
self .sieve .setObjectName ("sieve" )
206
206
self .sieve .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Removes small raster polygons" ) )
207
207
QObject .connect ( self .sieve , SIGNAL ( "triggered()" ), self .doSieve )
208
208
self .analysisMenu .addAction ( self .sieve )
209
209
210
210
if self .GdalVersionNum >= 1500 :
211
- self .nearBlack = QAction ( QIcon (":/icons/nearblack.png" ), QCoreApplication .translate ( "GdalTools" , "Near black " ), self .iface .mainWindow () )
211
+ self .nearBlack = QAction ( QIcon (":/icons/nearblack.png" ), QCoreApplication .translate ( "GdalTools" , "Near Black... " ), self .iface .mainWindow () )
212
212
self .nearBlack .setObjectName ("nearBlack" )
213
213
self .nearBlack .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Convert nearly black/white borders to exact value" ) )
214
214
QObject .connect ( self .nearBlack , SIGNAL ( "triggered()" ), self .doNearBlack )
215
215
self .analysisMenu .addAction ( self .nearBlack )
216
216
217
217
if self .GdalVersionNum >= 1700 :
218
- self .fillNodata = QAction ( QIcon (":/icons/fillnodata.png" ), QCoreApplication .translate ( "GdalTools" , "Fill nodata" ), self .iface .mainWindow () )
218
+ self .fillNodata = QAction ( QIcon (":/icons/fillnodata.png" ), QCoreApplication .translate ( "GdalTools" , "Fill nodata... " ), self .iface .mainWindow () )
219
219
self .fillNodata .setObjectName ("fillNodata" )
220
220
self .fillNodata .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Fill raster regions by interpolation from edges" ) )
221
221
QObject .connect ( self .fillNodata , SIGNAL ( "triggered()" ), self .doFillNodata )
222
222
self .analysisMenu .addAction ( self .fillNodata )
223
223
224
224
if self .GdalVersionNum >= 1600 :
225
- self .proximity = QAction ( QIcon (":/icons/proximity.png" ), QCoreApplication .translate ( "GdalTools" , "Proximity (Raster distance) " ), self .iface .mainWindow () )
225
+ self .proximity = QAction ( QIcon (":/icons/proximity.png" ), QCoreApplication .translate ( "GdalTools" , "Proximity (Raster Distance)... " ), self .iface .mainWindow () )
226
226
self .proximity .setObjectName ("proximity" )
227
227
self .proximity .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Produces a raster proximity map" ) )
228
228
QObject .connect ( self .proximity , SIGNAL ( "triggered()" ), self .doProximity )
229
229
self .analysisMenu .addAction ( self .proximity )
230
230
231
231
if self .GdalVersionNum >= 1500 :
232
- self .grid = QAction ( QIcon (":/icons/grid.png" ), QCoreApplication .translate ( "GdalTools" , "Grid (Interpolation)" ), self .iface .mainWindow () )
232
+ self .grid = QAction ( QIcon (":/icons/grid.png" ), QCoreApplication .translate ( "GdalTools" , "Grid (Interpolation)... " ), self .iface .mainWindow () )
233
233
self .grid .setObjectName ("grid" )
234
234
self .grid .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Create raster from the scattered data" ) )
235
235
QObject .connect ( self .grid , SIGNAL ( "triggered()" ), self .doGrid )
236
236
self .analysisMenu .addAction ( self .grid )
237
237
238
238
if self .GdalVersionNum >= 1700 :
239
- self .dem = QAction ( QIcon ( ":icons/dem.png" ), QCoreApplication .translate ( "GdalTools" , "DEM (Terrain models) " ), self .iface .mainWindow () )
239
+ self .dem = QAction ( QIcon ( ":icons/dem.png" ), QCoreApplication .translate ( "GdalTools" , "DEM (Terrain Models)... " ), self .iface .mainWindow () )
240
240
self .dem .setObjectName ("dem" )
241
241
self .dem .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Tool to analyze and visualize DEMs" ) )
242
242
QObject .connect ( self .dem , SIGNAL ( "triggered()" ), self .doDEM )
@@ -249,28 +249,28 @@ def initGui( self ):
249
249
self .miscellaneousMenu .setObjectName ("miscellaneousMenu" )
250
250
251
251
if self .GdalVersionNum >= 1600 :
252
- self .buildVRT = QAction ( QIcon (":/icons/vrt.png" ), QCoreApplication .translate ( "GdalTools" , "Build Virtual Raster (Catalog)" ), self .iface .mainWindow () )
252
+ self .buildVRT = QAction ( QIcon (":/icons/vrt.png" ), QCoreApplication .translate ( "GdalTools" , "Build Virtual Raster (Catalog)... " ), self .iface .mainWindow () )
253
253
self .buildVRT .setObjectName ("buildVRT" )
254
254
self .buildVRT .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Builds a VRT from a list of datasets" ) )
255
255
QObject .connect ( self .buildVRT , SIGNAL ( "triggered()" ), self .doBuildVRT )
256
256
self .miscellaneousMenu .addAction ( self .buildVRT )
257
257
258
- self .merge = QAction ( QIcon (":/icons/merge.png" ), QCoreApplication .translate ( "GdalTools" , "Merge" ), self .iface .mainWindow () )
258
+ self .merge = QAction ( QIcon (":/icons/merge.png" ), QCoreApplication .translate ( "GdalTools" , "Merge... " ), self .iface .mainWindow () )
259
259
self .merge .setObjectName ("merge" )
260
260
self .merge .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Build a quick mosaic from a set of images" ) )
261
261
QObject .connect ( self .merge , SIGNAL ( "triggered()" ), self .doMerge )
262
262
263
- self .info = QAction ( QIcon ( ":/icons/raster-info.png" ), QCoreApplication .translate ( "GdalTools" , "Information" ), self .iface .mainWindow () )
263
+ self .info = QAction ( QIcon ( ":/icons/raster-info.png" ), QCoreApplication .translate ( "GdalTools" , "Information... " ), self .iface .mainWindow () )
264
264
self .info .setObjectName ("info" )
265
265
self .info .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Lists information about raster dataset" ) )
266
266
QObject .connect ( self .info , SIGNAL ("triggered()" ), self .doInfo )
267
267
268
- self .overview = QAction ( QIcon ( ":icons/raster-overview.png" ), QCoreApplication .translate ( "GdalTools" , "Build overviews (Pyramids)" ), self .iface .mainWindow () )
268
+ self .overview = QAction ( QIcon ( ":icons/raster-overview.png" ), QCoreApplication .translate ( "GdalTools" , "Build Overviews (Pyramids)... " ), self .iface .mainWindow () )
269
269
self .overview .setObjectName ("overview" )
270
270
self .overview .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Builds or rebuilds overview images" ) )
271
271
QObject .connect ( self .overview , SIGNAL ( "triggered()" ), self .doOverview )
272
272
273
- self .tileindex = QAction ( QIcon ( ":icons/tiles.png" ), QCoreApplication .translate ( "GdalTools" , "Tile index " ), self .iface .mainWindow () )
273
+ self .tileindex = QAction ( QIcon ( ":icons/tiles.png" ), QCoreApplication .translate ( "GdalTools" , "Tile Index... " ), self .iface .mainWindow () )
274
274
self .tileindex .setObjectName ("tileindex" )
275
275
self .tileindex .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Build a shapefile as a raster tileindex" ) )
276
276
QObject .connect ( self .tileindex , SIGNAL ( "triggered()" ), self .doTileIndex )
@@ -286,7 +286,7 @@ def initGui( self ):
286
286
287
287
self .menu .addMenu ( self .miscellaneousMenu )
288
288
289
- self .settings = QAction ( QCoreApplication .translate ( "GdalTools" , "GdalTools settings " ), self .iface .mainWindow () )
289
+ self .settings = QAction ( QCoreApplication .translate ( "GdalTools" , "GdalTools Settings... " ), self .iface .mainWindow () )
290
290
self .settings .setObjectName ("settings" )
291
291
self .settings .setStatusTip ( QCoreApplication .translate ( "GdalTools" , "Various settings for Gdal Tools" ) )
292
292
QObject .connect ( self .settings , SIGNAL ( "triggered()" ), self .doSettings )
0 commit comments