This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 4da574283857472dccf5f614fada4c62bcefe580 | |
Author: Nathan Woodrow <[email protected]> | |
Date: Tue May 22 00:00:10 2012 +1000 | |
Set the default format as INI when using custom settings path | |
diff --git a/src/app/main.cpp b/src/app/main.cpp | |
index 3253a34..b202b46 100644 | |
--- a/src/app/main.cpp | |
+++ b/src/app/main.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( match.contains( "day", Qt::CaseInsensitive ) || | |
match.contains( QObject::tr("day", "Note: Word is part matched in code"), Qt::CaseInsensitive )|| | |
match.contains( QObject::tr("days", "Note: Word is part matched in code"), Qt::CaseInsensitive) ) | |
seconds += value * QgsExpression::Interval::DAY; | |
if ( match.contains( "week", Qt::CaseInsensitive ) || | |
match.contains( QObject::tr("week", "Note: Word is part matched in code"), Qt::CaseInsensitive ) || | |
match.contains( QObject::tr("weeks", "Note: Word is part matched in code"), Qt::CaseInsensitive ) ) | |
seconds += value * QgsExpression::Interval::WEEKS; | |
if ( match.contains( "month", Qt::CaseInsensitive ) || | |
match.contains( QObject::tr("month", "Note: Word is part matched in code"), Qt::CaseInsensitive ) || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def myFunction(dialog, layer, feature): | |
geom = feature.geometry() | |
wkt = geom.exportToWkt() | |
# use the WKT in your PostGIS function to find the closest road |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit cd56dd7408797189cb5c909618ad4e0d22610f35 | |
Author: Nathan Woodrow <[email protected]> | |
Date: Sun Jul 29 22:32:17 2012 +1000 | |
Add interoplate to QgsGeometry | |
diff --git a/python/core/qgsgeometry.sip b/python/core/qgsgeometry.sip | |
index ae805d8..cbd08c2 100644 | |
--- a/python/core/qgsgeometry.sip | |
+++ b/python/core/qgsgeometry.sip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
table, td, th | |
{ | |
border:5px solid green; | |
} | |
th | |
{ | |
background-color:green; | |
color:white; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/utils.py b/python/utils.py | |
index 4bf110f..97e6f13 100755 | |
--- a/python/utils.py | |
+++ b/python/utils.py | |
@@ -55,7 +55,18 @@ def initInterface(pointer): | |
from sip import wrapinstance | |
global iface | |
iface = wrapinstance(pointer, QgisInterface) | |
+ iface.initializationCompleted.connect(runStartUpScripts) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/utils.py b/python/utils.py | |
index 4bf110f..97e6f13 100755 | |
--- a/python/utils.py | |
+++ b/python/utils.py | |
@@ -55,7 +55,18 @@ def initInterface(pointer): | |
from sip import wrapinstance | |
global iface | |
iface = wrapinstance(pointer, QgisInterface) | |
+ iface.initializationCompleted.connect(runStartUpScripts) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/qgsexpression.cpp b/src/core/qgsexpression.cpp | |
index ea6e292..12b911c 100644 | |
--- a/src/core/qgsexpression.cpp | |
+++ b/src/core/qgsexpression.cpp | |
@@ -792,6 +792,13 @@ static QVariant fcnScale( const QVariantList&, QgsFeature*, QgsExpression* paren | |
return QVariant( parent->scale() ); | |
} | |
+static QVariant fcnFormatNumber( const QVariantList& values, QgsFeature*, QgsExpression* parent ) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
h1 {color:red;} | |
p.question {color:blue;} | |
</style> | |
<h1> [% "NAME" %] </h1> | |
<br> | |
<img src="[% "image" %]" /> | |
<br> | |
<p class="question">Is this place a country?</p> | |
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
def func1(*args): | |
print "IN FUNC1" | |
for arg in args: | |
print arg | |
def func2(arg1, arg2): | |
print "IN FUNC2" | |
print arg1 |