Skip to content
Permalink
Browse files

even more font propagation

  • Loading branch information
jef-n committed Jan 25, 2012
1 parent 747e497 commit c25ae5635ca5c7000e573ccb7bf096a45e12abf9
Showing with 71 additions and 70 deletions.
  1. +6 −7 python/plugins/GdalTools/GdalTools.py
  2. +2 −2 python/plugins/GdalTools/tools/dialogSRS.py
  3. +1 −1 python/plugins/GdalTools/tools/doClipper.py
  4. +1 −1 python/plugins/GdalTools/tools/doExtractProj.py
  5. +2 −2 python/plugins/GdalTools/tools/widgetBatchBase.py
  6. +2 −2 python/plugins/GdalTools/tools/widgetPluginBase.py
  7. +1 −1 python/plugins/fTools/tools/doDefineProj.py
  8. +1 −1 python/plugins/fTools/tools/doGeometry.py
  9. +1 −1 python/plugins/fTools/tools/doGeoprocessing.py
  10. +1 −1 python/plugins/fTools/tools/doIntersectLines.py
  11. +1 −1 python/plugins/fTools/tools/doMeanCoords.py
  12. +1 −1 python/plugins/fTools/tools/doMergeShapes.py
  13. +1 −1 python/plugins/fTools/tools/doPointDistance.py
  14. +1 −1 python/plugins/fTools/tools/doPointsInPolygon.py
  15. +1 −1 python/plugins/fTools/tools/doRandPoints.py
  16. +1 −1 python/plugins/fTools/tools/doRandom.py
  17. +1 −1 python/plugins/fTools/tools/doRegPoints.py
  18. +1 −1 python/plugins/fTools/tools/doSelectByLocation.py
  19. +1 −1 python/plugins/fTools/tools/doSimplify.py
  20. +1 −1 python/plugins/fTools/tools/doSpatialIndex.py
  21. +1 −1 python/plugins/fTools/tools/doSpatialJoin.py
  22. +1 −1 python/plugins/fTools/tools/doSubsetSelect.py
  23. +1 −1 python/plugins/fTools/tools/doSumLines.py
  24. +3 −3 python/plugins/fTools/tools/doValidate.py
  25. +1 −1 python/plugins/fTools/tools/doVectorGrid.py
  26. +1 −1 python/plugins/fTools/tools/doVectorSplit.py
  27. +1 −1 python/plugins/fTools/tools/doVisual.py
  28. +1 −1 python/plugins/mapserver_export/mapserverexport.py
  29. +8 −8 python/plugins/mapserver_export/mapserverexportdialog.py
  30. +1 −1 python/plugins/osm/OsmAddRelationDlg.py
  31. +1 −1 python/plugins/osm/OsmDownloadDlg.py
  32. +1 −1 python/plugins/osm/OsmImportDlg.py
  33. +1 −1 python/plugins/osm/OsmLoadDlg.py
  34. +1 −1 python/plugins/osm/OsmSaveDlg.py
  35. +1 −1 python/plugins/osm/OsmUploadDlg.py
  36. +2 −2 src/app/qgisapp.cpp
  37. +2 −2 src/plugins/grass/qgsgrassbrowser.cpp
  38. +2 −2 src/plugins/grass/qgsgrassmapcalc.cpp
  39. +1 −1 src/plugins/grass/qgsgrassmodule.h
  40. +4 −4 src/plugins/grass/qgsgrassplugin.cpp
  41. +1 −1 src/plugins/grass/qgsgrassselect.cpp
  42. +1 −1 src/plugins/grass/qgsgrassselect.h
  43. +2 −2 src/plugins/grass/qgsgrassutils.cpp
  44. +2 −1 src/plugins/grass/qgsgrassutils.h
  45. +2 −1 src/plugins/zonal_statistics/qgszonalstatisticsdialog.cpp
@@ -96,16 +96,15 @@ def initGui( self ):

if rasterMenu == None:
# no Raster menu, create and insert it before the Help menu
self.menu = QMenu()
self.menu.setTitle( rasterText )
self.menu = QMenu( rasterText, self.iface.mainWindow() )
lastAction = actions[ len( actions ) - 1 ]
menu_bar.insertMenu( lastAction, self.menu )
else:
self.menu = rasterMenu
self.menu.addSeparator()

# projections menu (Warp (Reproject), Assign projection)
self.projectionsMenu = QMenu( QCoreApplication.translate( "GdalTools", "Projections" ) )
self.projectionsMenu = QMenu( QCoreApplication.translate( "GdalTools", "Projections" ), self.iface.mainWindow() )

self.warp = QAction( QIcon(":/icons/warp.png"), QCoreApplication.translate( "GdalTools", "Warp (Reproject)" ), self.iface.mainWindow() )
self.warp.setStatusTip( QCoreApplication.translate( "GdalTools", "Warp an image into a new coordinate system") )
@@ -122,7 +121,7 @@ def initGui( self ):
self.projectionsMenu.addActions( [ self.warp, self.projection, self.extractProj ] )

# conversion menu (Rasterize (Vector to raster), Polygonize (Raster to vector), Translate, RGB to PCT, PCT to RGB)
self.conversionMenu = QMenu( QCoreApplication.translate( "GdalTools", "Conversion" ) )
self.conversionMenu = QMenu( QCoreApplication.translate( "GdalTools", "Conversion" ), self.iface.mainWindow() )

if self.GdalVersion >= "1.3":
self.rasterize = QAction( QIcon(":/icons/rasterize.png"), QCoreApplication.translate( "GdalTools", "Rasterize (Vector to raster)" ), self.iface.mainWindow() )
@@ -151,7 +150,7 @@ def initGui( self ):
self.conversionMenu.addActions( [ self.translate, self.paletted, self.rgb ] )

# extraction menu (Clipper, Contour)
self.extractionMenu = QMenu( QCoreApplication.translate( "GdalTools", "Extraction" ) )
self.extractionMenu = QMenu( QCoreApplication.translate( "GdalTools", "Extraction" ), self.iface.mainWindow() )

if self.GdalVersion >= "1.6":
self.contour = QAction( QIcon(":/icons/contour.png"), QCoreApplication.translate( "GdalTools", "Contour" ), self.iface.mainWindow() )
@@ -166,7 +165,7 @@ def initGui( self ):
self.extractionMenu.addActions( [ self.clipper ] )

# analysis menu (DEM (Terrain model), Grid (Interpolation), Near black, Proximity (Raster distance), Sieve)
self.analysisMenu = QMenu( QCoreApplication.translate( "GdalTools", "Analysis" ) )
self.analysisMenu = QMenu( QCoreApplication.translate( "GdalTools", "Analysis" ), self.iface.mainWindow() )

if self.GdalVersion >= "1.6":
self.sieve = QAction( QIcon(":/icons/sieve.png"), QCoreApplication.translate( "GdalTools", "Sieve" ), self.iface.mainWindow() )
@@ -207,7 +206,7 @@ def initGui( self ):
#self.analysisMenu.addActions( [ ] )

# miscellaneous menu (Build overviews (Pyramids), Tile index, Information, Merge, Build Virtual Raster (Catalog))
self.miscellaneousMenu = QMenu( QCoreApplication.translate( "GdalTools", "Miscellaneous" ) )
self.miscellaneousMenu = QMenu( QCoreApplication.translate( "GdalTools", "Miscellaneous" ), self.iface.mainWindow() )

if self.GdalVersion >= "1.6":
self.buildVRT = QAction( QIcon(":/icons/vrt.png"), QCoreApplication.translate( "GdalTools", "Build Virtual Raster (Catalog)" ), self.iface.mainWindow() )
@@ -5,8 +5,8 @@
from qgis.gui import *

class GdalToolsSRSDialog(QDialog):
def __init__(self, title):
QDialog.__init__(self)
def __init__(self, title, parent):
QDialog.__init__(self, parent)
self.setWindowTitle( title )

layout = QVBoxLayout()
@@ -16,7 +16,7 @@ def __init__(self, iface):
self.canvas = self.iface.mapCanvas()

self.setupUi(self)
BasePluginWidget.__init__(self, self.iface, "gdal_translate", self.iface.mainWindow())
BasePluginWidget.__init__(self, self.iface, "gdal_translate")

self.outSelector.setType( self.outSelector.FILE )
self.extentSelector.setCanvas(self.canvas)
@@ -21,7 +21,7 @@

class GdalToolsDialog( QDialog, Ui_Dialog ):
def __init__( self, iface ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.setupUi( self )
self.iface = iface

@@ -9,8 +9,8 @@

class GdalToolsBaseBatchWidget(BasePluginWidget):

def __init__(self, iface, commandName, helpFileBaseName = None):
BasePluginWidget.__init__(self, iface, commandName, helpFileBaseName)
def __init__(self, iface, commandName):
BasePluginWidget.__init__(self, iface, commandName)

def getBatchArguments(self, inFile, outFile = None):
arguments = QStringList()
@@ -9,10 +9,10 @@

class GdalToolsBasePluginWidget:

def __init__(self, iface, commandName, parent = None):
def __init__(self, iface, commandName):
self.iface = iface
self.initialized = False
self.base = BaseDialog(parent, iface, self, self.windowTitle(), commandName)
self.base = BaseDialog( iface.mainWindow(), iface, self, self.windowTitle(), commandName)

self.connect(self.base, SIGNAL("processError(QProcess::ProcessError)"), self.onError)
self.connect(self.base, SIGNAL("processFinished(int, QProcess::ExitStatus)"), self.onFinished)
@@ -38,7 +38,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
self.toolOut.setEnabled(False)
@@ -41,7 +41,7 @@
class GeometryDialog(QDialog, Ui_Dialog):

def __init__(self, iface, function):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
self.myFunction = function
@@ -40,7 +40,7 @@

class GeoprocessingDialog( QDialog, Ui_Dialog ):
def __init__( self, iface, function ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.iface = iface
self.setupUi( self )
self.param.setValidator(QDoubleValidator(self.param))
@@ -37,7 +37,7 @@
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -37,7 +37,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface, function):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.function = function
self.setupUi(self)
@@ -12,7 +12,7 @@

class Dialog( QDialog, Ui_Dialog ):
def __init__( self, iface ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.setupUi( self )
self.iface = iface

@@ -73,7 +73,7 @@ def writerows(self, rows):

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -37,7 +37,7 @@
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -38,7 +38,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
@@ -37,7 +37,7 @@
import random
class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -38,7 +38,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
self.xMin.setValidator(QDoubleValidator(self.xMin))
@@ -37,7 +37,7 @@
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -40,7 +40,7 @@

class Dialog( QDialog, Ui_Dialog ):
def __init__( self, iface, function ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.setupUi( self )
self.iface = iface
self.myFunction = function
@@ -29,7 +29,7 @@

class Dialog( QDialog, Ui_Dialog ):
def __init__( self, iface ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.setupUi( self )
self.iface = iface

@@ -54,7 +54,7 @@ def myself(L):
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -37,7 +37,7 @@
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -37,7 +37,7 @@
class Dialog(QDialog, Ui_Dialog):

def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
# Set up the user interface from Designer.
self.setupUi(self)
@@ -67,11 +67,11 @@ def reset(self):

class ValidateDialog( QDialog, Ui_Dialog ):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
self.setModal(False) # we want to be able to interact with the featuresmc.extent().width()
self.setWindowFlags( Qt.SubWindow )
# self.setModal(False) # we want to be able to interact with the featuresmc.extent().width()
# self.setWindowFlags( Qt.SubWindow )
# adjust user interface
self.setWindowTitle( self.tr( "Check geometry validity" ) )
self.cmbField.setVisible( False )
@@ -36,7 +36,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface
self.setupUi(self)
QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
@@ -36,7 +36,7 @@

class Dialog(QDialog, Ui_Dialog):
def __init__(self, iface):
QDialog.__init__(self)
QDialog.__init__(self, iface.mainWindow())
self.iface = iface

self.setupUi(self)
@@ -37,7 +37,7 @@

class VisualDialog( QDialog, Ui_Dialog ):
def __init__( self, iface, function ):
QDialog.__init__( self )
QDialog.__init__( self, iface.mainWindow() )
self.iface = iface
self.setupUi( self )
self.myFunction = function
@@ -73,7 +73,7 @@ def unload(self):
# run method that performs all the real work
def run(self):
# create and show the MapServerExport dialog
self.dlg = MapServerExportDialog()
self.dlg = MapServerExportDialog(self.iface.mainWindow())
# attach events to inputs and buttons
QObject.connect(self.dlg.ui.btnChooseFile, SIGNAL("clicked()"), self.setMapFile)
QObject.connect(self.dlg.ui.txtMapFilePath, SIGNAL("textChanged(QString)"), self.mapfileChanged)
@@ -17,23 +17,23 @@
* *
***************************************************************************/
"""
from PyQt4 import QtCore, QtGui
from PyQt4 import QtCore, QtGui
from ms_export import defaults
from ui_qgsmapserverexportbase import Ui_QgsMapserverExportBase
# create the dialog for mapserver export
class MapServerExportDialog(QtGui.QDialog):
def __init__(self):
QtGui.QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_QgsMapserverExportBase()
self.ui.setupUi(self)
class MapServerExportDialog(QtGui.QDialog):
def __init__(self, parent):
QtGui.QDialog.__init__(self, parent)
# Set up the user interface from Designer.
self.ui = Ui_QgsMapserverExportBase()
self.ui.setupUi(self)

units = ["meters", "dd", "feet", "miles", "inches", "kilometers"]
# make them able to be translated
tr_units = [ QtGui.QApplication.translate("QgsMapserverExportBase", "meters", None, QtGui.QApplication.UnicodeUTF8), QtGui.QApplication.translate("QgsMapserverExportBase", "dd", None, QtGui.QApplication.UnicodeUTF8), QtGui.QApplication.translate("QgsMapserverExportBase", "feet", None, QtGui.QApplication.UnicodeUTF8), QtGui.QApplication.translate("QgsMapserverExportBase", "miles", None, QtGui.QApplication.UnicodeUTF8), QtGui.QApplication.translate("QgsMapserverExportBase", "inches", None, QtGui.QApplication.UnicodeUTF8), QtGui.QApplication.translate("QgsMapserverExportBase", "kilometers", None, QtGui.QApplication.UnicodeUTF8) ]
for unit in units:
self.ui.cmbMapUnits.addItem( QtGui.QApplication.translate("QgsMapserverExportBase", unit, None, QtGui.QApplication.UnicodeUTF8), QtCore.QVariant(unit) )

# TODO: set default unit. Is now the first value entered in the unit-list above

# Set defaults from ms_export.py:
@@ -37,7 +37,7 @@ def __init__(self, plugin, newRelationFirstMember=None, relationToEdit=None):
@param relationToEdit if relation is given, this dialog is for editing of existing relation, not for creation a new one
"""

QDialog.__init__(self,None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)
self.dockWidget=plugin.dockWidget
self.plugin=plugin
@@ -46,7 +46,7 @@ def __init__(self, plugin):
@param plugin is pointer to instance of OSM Plugin.
"""

QDialog.__init__(self, None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)
self.dbm=plugin.dbm

@@ -53,7 +53,7 @@ def __init__(self, plugin):
@param plugin is pointer to instance of OSM Plugin
"""

QDialog.__init__(self, None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)

self.plugin=plugin
@@ -40,7 +40,7 @@ def __init__(self, plugin):
@param plugin is pointer to instance of OSM Plugin
"""

QDialog.__init__(self, None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)

self.canvas=plugin.canvas
@@ -31,7 +31,7 @@ def __init__(self, plugin):
@param plugin is pointer to instance of OSM Plugin
"""

QDialog.__init__(self, None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)

self.plugin=plugin
@@ -47,7 +47,7 @@ def __init__(self,plugin):
@param plugin is pointer to instance of OSM Plugin.
"""

QDialog.__init__(self,None)
QDialog.__init__(self, plugin.iface.mainWindow())
self.setupUi(self)

self.dockWidget=plugin.dockWidget

0 comments on commit c25ae56

Please sign in to comment.
You can’t perform that action at this time.