Skip to content

Commit 10178d7

Browse files
committed
Merge branch master of https://github.com/qgis/Quantum-GIS
2 parents e3cd56f + 234709d commit 10178d7

35 files changed

+795
-819
lines changed

CMakeLists.txt

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,9 @@ ELSE (WIN32)
388388
SET (DEFAULT_PLUGIN_SUBDIR ../PlugIns/qgis)
389389
SET (QGIS_PLUGIN_SUBDIR_REV ../../MacOS)
390390
SET (DEFAULT_INCLUDE_SUBDIR include/qgis)
391-
# path for framework references
392-
IF (ENABLE_TESTS)
393-
SET (CMAKE_INSTALL_NAME_DIR ${CMAKE_BINARY_DIR}/output/lib)
394-
ELSE (ENABLE_TESTS)
395-
SET (CMAKE_INSTALL_NAME_DIR @executable_path/${QGIS_FW_SUBDIR})
396-
ENDIF (ENABLE_TESTS)
391+
# path for framework references when running from build directory
392+
# changed later to reference in-app resources upon install
393+
SET (CMAKE_INSTALL_NAME_DIR ${CMAKE_BINARY_DIR}/output/lib)
397394
IF (WITH_GLOBE)
398395
SET (OSG_PLUGINS_PATH "" CACHE PATH "Path to OSG plugins for bundling")
399396
ENDIF (WITH_GLOBE)
@@ -480,16 +477,6 @@ SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIB_SUBDIR})
480477
# if run from the build directory QGIS will detect it and alter the paths
481478
FILE(WRITE ${QGIS_OUTPUT_DIRECTORY}/${QGIS_BIN_SUBDIR}/path.txt "${CMAKE_SOURCE_DIR}\n${QGIS_OUTPUT_DIRECTORY}")
482479

483-
# symlink extra provider plugin frameworks for Mac unit tests
484-
IF (APPLE AND ENABLE_TESTS)
485-
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
486-
"${CMAKE_BINARY_DIR}/Plugins/qgis/qgisgrass.framework"
487-
"${CMAKE_BINARY_DIR}/output/lib/qgisgrass.framework")
488-
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
489-
"${CMAKE_BINARY_DIR}/Plugins/qgis/qgissqlanyconnection.framework"
490-
"${CMAKE_BINARY_DIR}/output/lib/qgissqlanyconnection.framework")
491-
ENDIF (APPLE AND ENABLE_TESTS)
492-
493480
# manual page - makes sense only on unix systems
494481
IF (UNIX AND NOT APPLE)
495482
SET (DEFAULT_MANUAL_SUBDIR man)
@@ -625,11 +612,12 @@ IF (APPLE)
625612
# must be last for install, so install_name_tool can do its work
626613
ADD_SUBDIRECTORY(mac)
627614

628-
# make hard link to embedded app bundle binary (symlink won't work)
629-
# allows QGIS to be run directly from build directory
630-
ADD_CUSTOM_TARGET(mac_hardlink ALL
631-
COMMAND /bin/ln -f QGIS.app/Contents/MacOS/QGIS QGIS
632-
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/output/bin"
615+
# allow QGIS to be run directly from build directory and to run unit tests
616+
ADD_CUSTOM_TARGET(mac_run_from_build ALL
617+
# make symlinks to extra provider-plugin
618+
COMMAND /bin/ln -fs ../../Plugins/qgis/qgisgrass.framework lib/
619+
COMMAND /bin/ln -fs ../../Plugins/qgis/qgissqlanyconnection.framework lib/
620+
WORKING_DIRECTORY "${QGIS_OUTPUT_DIRECTORY}"
633621
DEPENDS QGIS
634622
)
635623
ENDIF (APPLE)

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SourceForge in June of the same year. We've worked hard to make GIS
66
software (which is traditionally expensive commercial software) a viable
77
prospect for anyone with basic access to a Personal Computer. QGIS
88
currently runs on most Unix platforms, Windows, and OS X. QGIS is
9-
developed using the Qt toolkit (http://qt.nokia.com) and C++. This
9+
developed using the Qt toolkit (http://qt.digia.com) and C++. This
1010
means that QGIS feels snappy to use and has a pleasing, easy to use
1111
graphical user interface.
1212

build.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

cmake/MacBundleMacros.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ FUNCTION (COPY_FRAMEWORK FWPREFIX FWNAME FWDEST)
7575
EXECUTE_PROCESS (COMMAND cp -Rfp "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/Resources" "${FWDEST}/${FWNAME}.framework/Versions/${FWVER}")
7676
EXECUTE_PROCESS (COMMAND ln -sfh Versions/Current/Resources "${FWDEST}/${FWNAME}.framework/Resources")
7777
ENDIF (IS_DIRECTORY "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/Resources")
78+
EXECUTE_PROCESS (COMMAND install_name_tool -id "${ATEXECUTABLE}/${QGIS_FW_SUBDIR}/${FWNAME}" "${FWDEST}/${FWNAME}.framework/${FWNAME}")
7879
# debug variants
7980
SET (FWD "${FWNAME}_debug")
8081
IF ("${FWDEBUG}" STREQUAL "Debug" AND EXISTS "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/${FWD}")

doc/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ René-Luc D'Hont <rldhont at gmail.com>
4949
Etienne Tourigny <etourigny.dev at gmail.com>
5050
Larry Shaffer <larrys at dakotacarto.com>
5151
Victor Olaya <volayaf at gmail.com>
52+
Dave DeHaan <dave.dehaan@sap.com>

images/developers/essen-2012.jpg

58.8 KB
Loading

images/images.qrc

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

images/splash/splash.png

75.3 KB
Loading

images/splash/splash.xcf.bz2

3.64 MB
Binary file not shown.

mac/cmake/0qgis.cmake.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ IF (@OSX_HAVE_LOADERPATH@)
2020
GET_INSTALL_NAME ("${QFWDIR}/${QL}.framework/${QL}" ${QL}.framework QQ)
2121
SET (QFW_CHG "${QQ}")
2222
UPDATEQGISPATHS ("${QFW_CHG}" ${QL})
23+
# change id of the framework
24+
IF (NOT @QGIS_MACAPP_INSTALL_DEV@)
25+
EXECUTE_PROCESS(COMMAND install_name_tool -id "${ATEXECUTABLE}/${QGIS_FW_SUBDIR}/${QL}.framework/${QL}" "${QFWDIR}/${QL}.framework/${QL}")
26+
ENDIF ()
2327
ENDFOREACH (QL)
2428
ENDIF (@OSX_HAVE_LOADERPATH@)

ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REM * (at your option) any later version. *
1313
REM * *
1414
REM ***************************************************************************
1515
@echo off
16-
set GRASS_VERSION=6.4.2
16+
set GRASS_VERSION=6.4.3RC1
1717

1818
set BUILDDIR=%CD%\build
1919
REM set BUILDDIR=%TEMP%\qgis_unstable

ms-windows/osgeo4w/package.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REM * (at your option) any later version. *
1313
REM * *
1414
REM ***************************************************************************
1515
@echo off
16-
set GRASS_VERSION=6.4.2
16+
set GRASS_VERSION=6.4.3RC1
1717

1818
set BUILDDIR=%CD%\build
1919
REM set BUILDDIR=%TEMP%\qgis_unstable

python/console_help.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,22 @@ def __init__(self, parent):
3535
QDialog.__init__(self, parent)
3636
self.setModal(True)
3737
self.setupUi(self)
38-
38+
3939
self.setWindowTitle(QCoreApplication.translate("PythonConsole","Help Python Console"))
4040
self.setMaximumSize(500, 300)
4141

4242
qgisDataDir = QgsApplication.pkgDataPath()
4343
listFile = os.listdir(qgisDataDir + "/python/console_help/i18n")
4444
localeFullName = QSettings().value( "locale/userLocale", QVariant( "" ) ).toString()
45+
locale = "en_US"
4546
for i in listFile:
4647
lang = i[0:5]
4748
if localeFullName in (lang[0:2], lang):
4849
locale = lang
49-
50+
5051
filename = qgisDataDir + "/python/console_help/help.htm? \
5152
lang=" + locale \
5253
+ "&pkgDir=" + qgisDataDir
53-
54-
url = QUrl(filename)
54+
55+
url = QtCore.QUrl(filename)
5556
self.webView.load(url)

python/plugins/sextante/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
SET (SEXTANTE_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/sextante)
22

3-
ADD_SUBDIRECTORY(about)
43
ADD_SUBDIRECTORY(algs)
54
ADD_SUBDIRECTORY(core)
65
ADD_SUBDIRECTORY(ftools)
@@ -27,6 +26,4 @@ FILE(GLOB PY_FILES *.py)
2726

2827
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)
2928

30-
31-
3229
PLUGIN_INSTALL(sextante . ${PY_FILES} ${OTHER_FILES} ${PYRC_FILES})

python/plugins/sextante/SextantePlugin.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242

4343
from sextante.modeler.ModelerDialog import ModelerDialog
4444

45-
from sextante.about.AboutDialog import AboutDialog
46-
4745
import resources_rc
4846

4947
cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
@@ -102,12 +100,6 @@ def initGui(self):
102100
QObject.connect(self.helpAction, SIGNAL("triggered()"), self.openHelp)
103101
self.menu.addAction(self.helpAction)
104102

105-
self.aboutAction = QAction(QIcon(":/sextante/images/info.png"),
106-
QCoreApplication.translate("SEXTANTE", "&About SEXTANTE"),
107-
self.iface.mainWindow())
108-
QObject.connect(self.aboutAction, SIGNAL("triggered()"), self.openAbout)
109-
self.menu.addAction(self.aboutAction)
110-
111103
menuBar = self.iface.mainWindow().menuBar()
112104
menuBar.insertMenu(menuBar.actions()[-1], self.menu)
113105

@@ -145,9 +137,5 @@ def openConfig(self):
145137
dlg = ConfigDialog(self.toolbox)
146138
dlg.exec_()
147139

148-
def openAbout(self):
149-
dlg = AboutDialog()
150-
dlg.exec_()
151-
152140
def openHelp(self):
153141
QDesktopServices.openUrl(QUrl(os.path.dirname(__file__) + "/help/index.html"))

python/plugins/sextante/about/AboutDialog.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

python/plugins/sextante/about/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

python/plugins/sextante/about/__init__.py

Whitespace-only changes.

python/plugins/sextante/about/aboutdialogbase.ui

Lines changed: 0 additions & 86 deletions
This file was deleted.

python/plugins/sextante/gui/MultipleInputPanel.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
class MultipleInputPanel(QtGui.QWidget):
3737

38-
def __init__(self, options, datatype, parent = None):
38+
def __init__(self, options, datatype = None, parent = None):
3939
super(MultipleInputPanel, self).__init__(parent)
4040
self.options = options
4141
self.datatype = datatype
@@ -54,17 +54,18 @@ def __init__(self, options, datatype, parent = None):
5454
self.setLayout(self.horizontalLayout)
5555

5656
def showSelectionDialog(self):
57-
if self.datatype == ParameterMultipleInput.TYPE_RASTER:
58-
options = QGisLayers.getRasterLayers()
59-
elif self.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
60-
options = QGisLayers.getVectorLayers()
61-
else:
62-
options = QGisLayers.getVectorLayers(self.datatype)
63-
opts = []
64-
for opt in options:
65-
opts.append(opt.name())
66-
self.options = opts
67-
57+
#If there is a datatype, we use it to create the list of options
58+
if self.datatype is not None:
59+
if self.datatype == ParameterMultipleInput.TYPE_RASTER:
60+
options = QGisLayers.getRasterLayers()
61+
elif self.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
62+
options = QGisLayers.getVectorLayers()
63+
else:
64+
options = QGisLayers.getVectorLayers(self.datatype)
65+
opts = []
66+
for opt in options:
67+
opts.append(opt.name())
68+
self.options = opts
6869
dlg = MultipleInputDialog(self.options, self.selectedoptions)
6970
dlg.exec_()
7071
if dlg.selectedoptions != None:
-201 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)