Skip to content

Commit daf2b0f

Browse files
author
wonder
committed
merge from trunk r11750:11800
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11899 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 26b12b6 commit daf2b0f

142 files changed

Lines changed: 5993 additions & 4314 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎i18n/qgis_de.ts‎

Lines changed: 2313 additions & 1344 deletions
Large diffs are not rendered by default.

‎mac/xcode/Qgis.xcodeproj/project.pbxproj‎

Lines changed: 30 additions & 30 deletions
Large diffs are not rendered by default.

‎python/core/qgsdataprovider.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class QgsDataProvider : QObject
6464
* that can be used by the data provider to create a subset.
6565
* Must be implemented in the dataprovider.
6666
*/
67-
virtual void setSubsetString(QString subset);
67+
virtual bool setSubsetString(QString subset);
6868

6969

7070
/**

‎python/core/qgsvectordataprovider.sip‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ class QgsVectorDataProvider : QgsDataProvider
141141
* Return unique values of an attribute
142142
* @param index the index of the attribute
143143
* @param values reference to the list to fill
144+
* @param limit maximum number of values to return (added in 1.4)
144145
*
145146
* Default implementation simply iterates the features
146147
*/
147-
virtual void uniqueValues(int index, QList<QVariant> &uniqueValues /Out/);
148+
virtual void uniqueValues(int index, QList<QVariant> &uniqueValues /Out/, int limit = -1);
148149

149150
/**Returns the possible enum values of an attribute. Returns an empty stringlist if a provider does not support enum types
150151
or if the given attribute is not an enum type.

‎python/core/qgsvectorlayer.sip‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ public:
166166
* @param subset The subset string. This may be the where clause of a sql statement
167167
* or other defintion string specific to the underlying dataprovider
168168
* and data store.
169+
* @return true, when setting the string was successful, false otherwise (added in 1.4)
169170
*/
170-
virtual void setSubsetString(QString subset);
171+
virtual bool setSubsetString(QString subset);
171172

172173
/**
173174
* Get the string (typically sql) used to define a subset of the layer

‎python/plugins/fTools/tools/doIntersectLines.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
#-----------------------------------------------------------
23
#
34
# Locate Line Intersections
@@ -123,11 +124,11 @@ def compute(self, line1, line2, field1, field2, outPath, progressBar):
123124
fieldList = self.getFieldList(layer1)
124125
index1 = provider1.fieldNameIndex(field1)
125126
field1 = fieldList[index1]
126-
field1.setName("1_" + unicode(field1.name()))
127+
field1.setName(unicode(field1.name()) + "_1")
127128
fieldList = self.getFieldList(layer2)
128129
index2 = provider2.fieldNameIndex(field2)
129130
field2 = fieldList[index2]
130-
field2.setName("2_" + unicode(field2.name()))
131+
field2.setName(unicode(field2.name()) + "_2")
131132
fieldList = {0:field1, 1:field2}
132133
sRs = provider1.crs()
133134
check = QFile(self.shapefileName)

‎python/plugins/plugin_installer/LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 2007 Matthew T. Perry
2-
Copyright (c) 2008 Borys Jurgiel
2+
Copyright (c) 2008-2009 Borys Jurgiel
33

44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of

‎python/plugins/plugin_installer/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def name():
1414
return "Plugin Installer"
1515

1616
def version():
17-
return "Version 1.0.3"
17+
return "Version 1.0.5"
1818

1919
def description():
2020
return "Downloads and installs QGIS python plugins"

‎python/plugins/plugin_installer/installer_data.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"valid" bool,
3030
"QPHttp" QPHttp,
3131
"Relay" Relay, # Relay object for transmitting signals from QPHttp with adding the repoName information
32-
"xmlData" QDomDocument,
32+
"xmlData" QBuffer,
3333
"state" int, (0 - disabled, 1-loading, 2-loaded ok, 3-error (to be retried), 4-rejected)
3434
"error" QString}}
3535
mPlugins = dict of dicts {id : {"name" QString,
@@ -87,6 +87,7 @@ def setIface(qgisIface):
8787
("Volkan Kepoglu's Repository","http://ggit.metu.edu.tr/~volkan/plugins.xml", ""),
8888
("GIS-Lab Repository", "http://gis-lab.info/programs/qgis/qgis-repo.xml", ""),
8989
("Marco Hugentobler's Repository","http://karlinapp.ethz.ch/python_plugins/python_plugins.xml", ""),
90+
("Bob Bruce's Repository", "http://www.mappinggeek.ca/QGISPythonPlugins/Bobs-QGIS-plugins.xml", ""),
9091
("Sourcepole Repository", "http://build.sourcepole.ch/qgis/plugins.xml", "")]
9192

9293

@@ -376,7 +377,10 @@ def requestFetching(self,key):
376377
self.mRepositories[key]["state"] = 1
377378
url = QUrl(self.mRepositories[key]["url"])
378379
path = QString(url.toPercentEncoding(url.path(), "!$&'()*+,;=:@/"))
379-
self.mRepositories[key]["QPHttp"] = QPHttp(url.host())
380+
port = url.port()
381+
if port < 0:
382+
port = 80
383+
self.mRepositories[key]["QPHttp"] = QPHttp(url.host(), port)
380384
self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("requestFinished (int, bool)"), self.xmlDownloaded)
381385
self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("stateChanged ( int )"), self.mRepositories[key]["Relay"].stateChanged)
382386
self.connect(self.mRepositories[key]["QPHttp"], SIGNAL("dataReadProgress ( int , int )"), self.mRepositories[key]["Relay"].dataReadProgress)

‎python/plugins/plugin_installer/installer_gui.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ def __init__(self, parent, plugin):
152152
tmpDir = QDir.tempPath()
153153
tmpPath = QDir.cleanPath(tmpDir+"/"+fileName)
154154
self.file = QFile(tmpPath)
155-
self.http = QPHttp(url.host())
155+
port = url.port()
156+
if port < 0:
157+
port = 80
158+
self.http = QPHttp(url.host(), port)
156159
self.connect(self.http, SIGNAL("stateChanged ( int )"), self.stateChanged)
157160
self.connect(self.http, SIGNAL("dataReadProgress ( int , int )"), self.readProgress)
158161
self.connect(self.http, SIGNAL("requestFinished (int, bool)"), self.requestFinished)
@@ -335,7 +338,8 @@ def populateMostWidgets(self):
335338
a.setToolTip(0,self.tr("This repository is disabled"))
336339
else:
337340
a.setToolTip(0,self.tr("This repository is blocked due to incompatibility with your Quantum GIS version"))
338-
a.setDisabled(True)
341+
for i in [0,1,2]:
342+
a.setForeground(i,QBrush(QColor(Qt.gray)))
339343
for i in [0,1,2]:
340344
self.treeRepositories.resizeColumnToContents(i)
341345
self.comboFilter1.addItem(self.tr("orphans"))

0 commit comments

Comments
 (0)