diff --git a/CMakeLists.txt b/CMakeLists.txt index 91df52adda93..9e18ad405b01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -388,12 +388,9 @@ ELSE (WIN32) SET (DEFAULT_PLUGIN_SUBDIR ../PlugIns/qgis) SET (QGIS_PLUGIN_SUBDIR_REV ../../MacOS) SET (DEFAULT_INCLUDE_SUBDIR include/qgis) - # path for framework references - IF (ENABLE_TESTS) - SET (CMAKE_INSTALL_NAME_DIR ${CMAKE_BINARY_DIR}/output/lib) - ELSE (ENABLE_TESTS) - SET (CMAKE_INSTALL_NAME_DIR @executable_path/${QGIS_FW_SUBDIR}) - ENDIF (ENABLE_TESTS) + # path for framework references when running from build directory + # changed later to reference in-app resources upon install + SET (CMAKE_INSTALL_NAME_DIR ${CMAKE_BINARY_DIR}/output/lib) IF (WITH_GLOBE) SET (OSG_PLUGINS_PATH "" CACHE PATH "Path to OSG plugins for bundling") ENDIF (WITH_GLOBE) @@ -480,16 +477,6 @@ SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIB_SUBDIR}) # if run from the build directory QGIS will detect it and alter the paths FILE(WRITE ${QGIS_OUTPUT_DIRECTORY}/${QGIS_BIN_SUBDIR}/path.txt "${CMAKE_SOURCE_DIR}\n${QGIS_OUTPUT_DIRECTORY}") -# symlink extra provider plugin frameworks for Mac unit tests -IF (APPLE AND ENABLE_TESTS) - EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink - "${CMAKE_BINARY_DIR}/Plugins/qgis/qgisgrass.framework" - "${CMAKE_BINARY_DIR}/output/lib/qgisgrass.framework") - EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink - "${CMAKE_BINARY_DIR}/Plugins/qgis/qgissqlanyconnection.framework" - "${CMAKE_BINARY_DIR}/output/lib/qgissqlanyconnection.framework") -ENDIF (APPLE AND ENABLE_TESTS) - # manual page - makes sense only on unix systems IF (UNIX AND NOT APPLE) SET (DEFAULT_MANUAL_SUBDIR man) @@ -625,11 +612,12 @@ IF (APPLE) # must be last for install, so install_name_tool can do its work ADD_SUBDIRECTORY(mac) - # make hard link to embedded app bundle binary (symlink won't work) - # allows QGIS to be run directly from build directory - ADD_CUSTOM_TARGET(mac_hardlink ALL - COMMAND /bin/ln -f QGIS.app/Contents/MacOS/QGIS QGIS - WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/output/bin" + # allow QGIS to be run directly from build directory and to run unit tests + ADD_CUSTOM_TARGET(mac_run_from_build ALL + # make symlinks to extra provider-plugin + COMMAND /bin/ln -fs ../../Plugins/qgis/qgisgrass.framework lib/ + COMMAND /bin/ln -fs ../../Plugins/qgis/qgissqlanyconnection.framework lib/ + WORKING_DIRECTORY "${QGIS_OUTPUT_DIRECTORY}" DEPENDS QGIS ) ENDIF (APPLE) diff --git a/build.xml b/build.xml deleted file mode 100644 index 94a0a0d04e35..000000000000 --- a/build.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - SEXTANTE - - - - - - - - \ No newline at end of file diff --git a/cmake/MacBundleMacros.cmake b/cmake/MacBundleMacros.cmake index a4e007e29df7..f44eea6d70a7 100644 --- a/cmake/MacBundleMacros.cmake +++ b/cmake/MacBundleMacros.cmake @@ -75,6 +75,7 @@ FUNCTION (COPY_FRAMEWORK FWPREFIX FWNAME FWDEST) EXECUTE_PROCESS (COMMAND cp -Rfp "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/Resources" "${FWDEST}/${FWNAME}.framework/Versions/${FWVER}") EXECUTE_PROCESS (COMMAND ln -sfh Versions/Current/Resources "${FWDEST}/${FWNAME}.framework/Resources") ENDIF (IS_DIRECTORY "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/Resources") + EXECUTE_PROCESS (COMMAND install_name_tool -id "${ATEXECUTABLE}/${QGIS_FW_SUBDIR}/${FWNAME}" "${FWDEST}/${FWNAME}.framework/${FWNAME}") # debug variants SET (FWD "${FWNAME}_debug") IF ("${FWDEBUG}" STREQUAL "Debug" AND EXISTS "${FWPREFIX}/${FWNAME}.framework/Versions/${FWVER}/${FWD}") diff --git a/doc/AUTHORS b/doc/AUTHORS index 1160147fc396..5c44a2124b2d 100644 --- a/doc/AUTHORS +++ b/doc/AUTHORS @@ -49,3 +49,4 @@ René-Luc D'Hont Etienne Tourigny Larry Shaffer Victor Olaya +Dave DeHaan diff --git a/images/developers/essen-2012.jpg b/images/developers/essen-2012.jpg new file mode 100644 index 000000000000..97ba6830b142 Binary files /dev/null and b/images/developers/essen-2012.jpg differ diff --git a/images/images.qrc b/images/images.qrc index 0b9a872f9d08..eafffedb6a47 100644 --- a/images/images.qrc +++ b/images/images.qrc @@ -1,488 +1,488 @@ - - developers/lyon-2012.jpg - icons/qgis-icon-16x16.png - icons/qgis-icon-60x60.png - north_arrows/gpsarrow2.svg - north_arrows/gpsarrow.svg - themes/default/cap_flat.png - themes/default/cap_round.png - themes/default/cap_square.png - themes/default/clearInput.png - themes/default/extents.png - themes/default/favourites.png - themes/default/geographic.png - themes/default/gpsicons/barchart.svg - themes/default/gpsicons/polarchart.svg - themes/default/grass_location.png - themes/default/grass_mapset.png - themes/default/join_bevel.png - themes/default/join_miter.png - themes/default/join_round.png - themes/default/join_style.svg - themes/default/mActionAddAllToOverview.png - themes/default/mActionAddArrow.png - themes/default/mActionAddBasicShape.png - themes/default/mActionAddImage.png - themes/default/mActionAddPart.png - themes/default/mActionAddLayer.png - themes/default/mActionAddLegend.png - themes/default/mActionAddMap.png - themes/default/mActionAddNonDbLayer.png - themes/default/mActionAddOgrLayer.png - themes/default/mActionAddRasterLayer.png - themes/default/mActionAddRing.png - themes/default/mActionAddSpatiaLiteLayer.png - themes/default/mActionAddVertex.png - themes/default/mActionAddWcsLayer.png - themes/default/mActionAddWmsLayer.png - themes/default/mActionAlignBottom.png - themes/default/mActionAlignHCenter.png - themes/default/mActionAlignLeft.png - themes/default/mActionAlignRight.png - themes/default/mActionAlignTop.png - themes/default/mActionAlignVCenter.png - themes/default/mActionAnnotation.png - themes/default/mActionArrowDown.png - themes/default/mActionArrowUp.png - themes/default/mActionCalculateField.png - themes/default/mActionCaptureLine.png - themes/default/mActionCapturePoint.png - themes/default/mActionCapturePolygon.png - themes/default/mActionChangeLabelProperties.png - themes/default/mActionCheckQgisVersion.png - themes/default/mActionCollapseTree.png - themes/default/mActionComposerManager.png - themes/default/mActionContextHelp.png - themes/default/mActionCopySelected.png - themes/default/mActionCustomProjection.png - themes/default/mActionDeleteAttribute.png - themes/default/mActionDeletePart.png - themes/default/mActionDeleteRing.png - themes/default/mActionDeleteSelected.png - themes/default/mActionDeleteVertex.png - themes/default/mActionDeselectAll.png - themes/default/mActionDraw.png - themes/default/mActionEditCopy.png - themes/default/mActionEditCut.png - themes/default/mActionEditPaste.png - themes/default/mActionExpandTree.png - themes/default/mActionExpandNewTree.png - themes/default/mActionExportMapServer.png - themes/default/mActionFileExit.png - themes/default/mActionFileNew.png - themes/default/mActionFileOpen.png - themes/default/mActionFilePrint.png - themes/default/mActionFileSaveAs.png - themes/default/mActionFileSave.png - themes/default/mActionFileSmall.png - themes/default/mActionFolder.png - themes/default/mActionFormAnnotation.png - themes/default/mActionFromSelectedFeature.png - themes/default/mActionFullCumulativeCutStretch.png - themes/default/mActionFullHistogramStretch.png - themes/default/mActionGroupItems.png - themes/default/mActionHelpAbout.png - themes/default/mActionHelpAPI.png - themes/default/mActionHelpContents.png - themes/default/mActionHelpSponsors.png - themes/default/mActionHideAllLayers.png - themes/default/mActionIdentify.png - themes/default/mActionInOverview.png - themes/default/mActionInvertSelection.png - themes/default/mActionLabeling.png - themes/default/mActionLabel.png - themes/default/mActionLocalCumulativeCutStretch.png - themes/default/mActionLocalHistogramStretch.png - themes/default/mActionLowerItems.png - themes/default/mActionMapTips.png - themes/default/mActionMeasureAngle.png - themes/default/mActionMeasureArea.png - themes/default/mActionMeasure.png - themes/default/mActionMergeFeatureAttributes.png - themes/default/mActionMergeFeatures.png - themes/default/mActionMoveFeature.png - themes/default/mActionMoveItemContent.png - themes/default/mActionMoveItemsToBottom.png - themes/default/mActionMoveItemsToTop.png - themes/default/mActionMoveLabel.png - themes/default/mActionMoveVertex.png - themes/default/mActionNewAttribute.png - themes/default/mActionNewBookmark.png - themes/default/mActionNewComposer.png - themes/default/mActionNewFolder.png - themes/default/mActionNewVectorLayer.png - themes/default/mActionNodeTool.png - themes/default/mActionOffsetCurve.png - themes/default/mActionOpenTable.png - themes/default/mActionOptions.png - themes/default/mActionPan.png - themes/default/mActionPanToSelected.png - themes/default/mActionPanToSelected.svg - themes/default/mActionPinLabels.svg - themes/default/mActionShowRasterCalculator.png - themes/default/mAction.png - themes/default/mActionProjectProperties.png - themes/default/mActionPropertyItem.png - themes/default/mActionQgisHomePage.png - themes/default/mActionRaiseItems.png - themes/default/mActionRedo.png - themes/default/mActionRemoveAllFromOverview.png - themes/default/mActionRemoveLayer.png - themes/default/mActionRemove.png - themes/default/mActionRemoveSelectedFeature.png - themes/default/mActionReshape.png - themes/default/mActionRotateLabel.png - themes/default/mActionRotateLabel.svg - themes/default/mActionRotatePointSymbols.png - themes/default/mActionSaveAsPDF.png - themes/default/mActionSaveAsSVG.png - themes/default/mActionSaveEdits.png - themes/default/mActionSaveMapAsImage.png - themes/default/mActionScaleBar.png - themes/default/mActionSelectedToTop.png - themes/default/mActionSelectFreehand.png - themes/default/mActionSelectPan.png - themes/default/mActionSelect.png - themes/default/mActionSelectPolygon.png - themes/default/mActionSelectPolygon.svg - themes/default/mActionSelectRadius.png - themes/default/mActionSelectRectangle.png - themes/default/mActionShowAllLayers.png - themes/default/mActionShowBookmarks.png - themes/default/mActionShowHideLabels.svg - themes/default/mActionShowPinnedLabels.svg - themes/default/mActionShowPluginManager.png - themes/default/mActionSimplify.png - themes/default/mActionSplitFeatures.png - themes/default/mActionSplitFeatures.svg - themes/default/mActionTextAnnotation.png - themes/default/mActionToggleEditing.png - themes/default/mActionUndo.png - themes/default/mActionUngroupItems.png - themes/default/mActionUnselectAttributes.png - themes/default/mActionZoomActual.png - themes/default/mActionZoomFullExtent.png - themes/default/mActionZoomIn.png - themes/default/mActionZoomLast.png - themes/default/mActionZoomNext.png - themes/default/mActionZoomOut.png - themes/default/mActionZoomToLayer.png - themes/default/mActionZoomToSelected.png - themes/default/mIconClose.png - themes/default/mIconCollapse.png - themes/default/mIconConnect.png - themes/default/mIconDbSchema.png - themes/default/mIconDelete.png - themes/default/mIconEditable.png - themes/default/mIconExpand.png - themes/default/mIconFavourites.png - themes/default/mIconFirst.png - themes/default/mIconGeometryLayer.png - themes/default/mIconLast.png - themes/default/mIconLayer.png - themes/default/mIconLineLayer.png - themes/default/mIconLock.png - themes/default/mIconNew.png - themes/default/mIconMssql.png - themes/default/mIconNext.png - themes/default/mIconNoPyramid.png - themes/default/mIconOws.png - themes/default/mIconPointLayer.png - themes/default/mIconPolygonLayer.png - themes/default/mIconPostgis.png - themes/default/mIconPrevious.png - themes/default/mIconProjectionDisabled.png - themes/default/mIconProjectionEnabled.png - themes/default/mIconProjectionProblem.png - themes/default/mIconProperties.png - themes/default/mIconPyramid.png - themes/default/mIconSpatialite.png - themes/default/mIconStopRendering.png - themes/default/mIconRaster.png - themes/default/mIconRenderingEnabled.png - themes/default/mIconRenderingDisabled.png - themes/default/mIconSymbology.png - themes/default/mIconTableLayer.png - themes/default/mIconUnknownLayerType.png - themes/default/mIconVectorLayer.png - themes/default/mIconWaitingForLayerType.png - themes/default/mIconWcs.png - themes/default/mIconWfs.png - themes/default/mIconWms.png - themes/default/mIconWmsLayer.png - themes/default/mIconWarn.png - themes/default/mIconZoom.png - themes/default/mIconZip.png - themes/default/mMapserverExport.png - themes/default/plugin.png - themes/default/propertyicons/action.png - themes/default/propertyicons/attributes.png - themes/default/propertyicons/colormap.png - themes/default/propertyicons/CRS.png - themes/default/propertyicons/diagram.png - themes/default/propertyicons/digitising.png - themes/default/propertyicons/general.png - themes/default/propertyicons/histogram.png - themes/default/propertyicons/join.png - themes/default/propertyicons/labels.png - themes/default/propertyicons/locale.png - themes/default/propertyicons/map_tools.png - themes/default/propertyicons/metadata.png - themes/default/propertyicons/network_and_proxy.png - themes/default/propertyicons/overlay.png - themes/default/propertyicons/pyramids.png - themes/default/propertyicons/rendering.png - themes/default/propertyicons/symbology.png - themes/default/propertyicons/transparency.png - themes/default/propertyicons/gdal.png - themes/default/qgis.xpm - themes/default/rendererCategorizedSymbol.png - themes/default/rendererGraduatedSymbol.png - themes/default/rendererSingleSymbol.png - themes/default/styleicons/color.png - themes/default/styleicons/style-line.png - themes/default/styleicons/style-point.png - themes/default/styleicons/style-polygon.png - themes/default/symbologyAdd.png - themes/default/symbologyDown.png - themes/default/symbologyEdit.png - themes/default/symbologyRemove.png - themes/default/symbologyUp.png - themes/default/tracking.png - themes/default/transformed.png - themes/default/user.png - themes/default/mActionAddHtml.png - themes/gis/mActionAddArrow.png - themes/gis/mActionAddBasicShape.png - themes/gis/mActionAddGPSLayer.png - themes/gis/mActionAddImage.png - themes/gis/mActionAddPart.png - themes/gis/mActionAddLayer.png - themes/gis/mActionAddLegend.png - themes/gis/mActionAddMap.png - themes/gis/mActionAddOgrLayer.png - themes/gis/mActionAddRasterLayer.png - themes/gis/mActionAddRing.png - themes/gis/mActionAddSpatiaLiteLayer.png - themes/gis/mActionAddVertex.png - themes/gis/mActionAddWcsLayer.png - themes/gis/mActionAddWfsLayer.png - themes/gis/mActionAddWmsLayer.png - themes/gis/mActionAlignBottom.png - themes/gis/mActionAlignHCenter.png - themes/gis/mActionAlignLeft.png - themes/gis/mActionAlignRight.png - themes/gis/mActionAlignTop.png - themes/gis/mActionAlignVCenter.png - themes/gis/mActionAnnotation.png - themes/gis/mActionCalculateField.png - themes/gis/mActionCaptureLine.png - themes/gis/mActionCapturePoint.png - themes/gis/mActionCapturePolygon.png - themes/gis/mActionChangeLabelProperties.png - themes/gis/mActionComposerManager.png - themes/gis/mActionCopySelected.png - themes/gis/mActionDeleteAttribute.png - themes/gis/mActionDeletePart.png - themes/gis/mActionDeleteRing.png - themes/gis/mActionDeleteSelected.png - themes/gis/mActionDeleteVertex.png - themes/gis/mActionDeselectAll.png - themes/gis/mActionDraw.png - themes/gis/mActionEditCopy.png - themes/gis/mActionEditCut.png - themes/gis/mActionEditPaste.png - themes/gis/mActionFileNew.png - themes/gis/mActionFileOpen.png - themes/gis/mActionFilePrint.png - themes/gis/mActionFileSaveAs.png - themes/gis/mActionFileSave.png - themes/gis/mActionFolder.png - themes/gis/mActionFormAnnotation.png - themes/gis/mActionGroupItems.png - themes/gis/mActionHelpContents.png - themes/gis/mActionHideAllLayers.png - themes/gis/mActionIdentify.png - themes/gis/mActionInOverview.png - themes/gis/mActionInvertSelection.png - themes/gis/mActionLabeling.png - themes/gis/mActionLabel.png - themes/gis/mActionLowerItems.png - themes/gis/mActionMapTips.png - themes/gis/mActionMeasureAngle.png - themes/gis/mActionMeasureArea.png - themes/gis/mActionMeasure.png - themes/gis/mActionMergeFeatureAttributes.png - themes/gis/mActionMergeFeatures.png - themes/gis/mActionMoveFeature.png - themes/gis/mActionMoveItemContent.png - themes/gis/mActionMoveItemsToBottom.png - themes/gis/mActionMoveItemsToTop.png - themes/gis/mActionMoveLabel.png - themes/gis/mActionMoveVertex.png - themes/gis/mActionNewAttribute.png - themes/gis/mActionNewBookmark.png - themes/gis/mActionNewComposer.png - themes/gis/mActionNewVectorLayer.png - themes/gis/mActionNodeTool.png - themes/gis/mActionOpenTable.png - themes/gis/mActionPan.png - themes/gis/mActionPanToSelected.png - themes/gis/mActionPanToSelected.svg - themes/gis/mActionPinLabels.svg - themes/gis/mActionShowRasterCalculator.png - themes/gis/mActionRaiseItems.png - themes/gis/mActionRedo.png - themes/gis/mActionRemoveLayer.png - themes/gis/mActionReshape.png - themes/gis/mActionRotateLabel.png - themes/gis/mActionRotateLabel.svg - themes/gis/mActionSaveAsPDF.png - themes/gis/mActionSaveAsSVG.png - themes/gis/mActionSaveEdits.png - themes/gis/mActionSaveMapAsImage.png - themes/gis/mActionScaleBar.png - themes/gis/mActionSelectedToTop.png - themes/gis/mActionSelectFreehand.png - themes/gis/mActionSelectPan.png - themes/gis/mActionSelect.png - themes/gis/mActionSelectPolygon.png - themes/gis/mActionSelectPolygon.svg - themes/gis/mActionSelectRadius.png - themes/gis/mActionSelectRectangle.png - themes/gis/mActionShowAllLayers.png - themes/gis/mActionShowBookmarks.png - themes/gis/mActionShowHideLabels.svg - themes/gis/mActionShowPinnedLabels.svg - themes/gis/mActionSimplify.png - themes/gis/mActionSplitFeatures.png - themes/gis/mActionSplitFeatures.svg - themes/gis/mActionTextAnnotation.png - themes/gis/mActionToggleEditing.png - themes/gis/mActionUndo.png - themes/gis/mActionUngroupItems.png - themes/gis/mActionUnselectAttributes.png - themes/gis/mActionZoomActual.png - themes/gis/mActionZoomFullExtent.png - themes/gis/mActionZoomIn.png - themes/gis/mActionZoomLast.png - themes/gis/mActionZoomNext.png - themes/gis/mActionZoomOut.png - themes/gis/mActionZoomToLayer.png - themes/gis/mActionZoomToSelected.png - themes/gis/mIconClose.png - themes/gis/mIconEditable.png - themes/gis/mIconLineLayer.png - themes/gis/mIconPointLayer.png - themes/gis/mIconPolygonLayer.png - themes/gis/mIconTableLayer.png - themes/gis/plugins/coordinate_capture/coordinate_capture.png - themes/gis/plugins/copyright_label.png - themes/gis/plugins/delimited_text.png - themes/gis/plugins/dxf2shp_converter.png - themes/gis/plugins/gps_importer.png - themes/gis/plugins/interpolation.png - themes/gis/plugins/mapserver_export.png - themes/gis/plugins/mGeorefRun.png - themes/gis/plugins/north_arrow.png - themes/gis/plugins/ogr_converter.png - themes/gis/plugins/quick_print.png - themes/gis/plugins/scale_bar.png - themes/gis/plugins/spit.png - splash/splash.png - north_arrows/default.png - themes/default/locked.png - themes/default/unlocked.png - themes/default/plugins/copyright_label.png - themes/default/plugins/north_arrow.png - themes/default/plugins/scale_bar.png - themes/default/mActionAddWfsLayer.png - themes/gis/mIconOws.png - themes/gis/mIconVectorLayer.png - themes/gis/mIconWcs.png - themes/gis/mIconWms.png - themes/gis/mIconWfs.png - themes/gis/mIconWarn.png - themes/gis/mIconSpatialite.png - themes/gis/mIconRaster.png - themes/gis/mIconPostgis.png - themes/gis/mIconMssql.png - themes/gis/mIconConnect.png - themes/gis/mIconDbSchema.png - themes/gis/mActionTouch.png - themes/default/mActionAddMssqlLayer.png - themes/default/mActionTouch.png - themes/default/mActionTouch2.png - themes/classic/mActionTouch.png - flags/af.png - flags/ar.png - flags/bg.png - flags/ca_ES.png - flags/cs_CZ.png - flags/de.png - flags/el_GR.png - flags/es.png - flags/fa.png - flags/fi.png - flags/fr.png - flags/gl_ES.png - flags/he.png - flags/hr_HR.png - flags/hu.png - flags/id.png - flags/is.png - flags/it.png - flags/ja.png - flags/ka_GE.png - flags/ko_KR.png - flags/lo.png - flags/lt.png - flags/lv.png - flags/mn.png - flags/nl.png - flags/no.png - flags/pl_PL.png - flags/pt_BR.png - flags/pt_PT.png - flags/ro.png - flags/ru.png - flags/sk.png - flags/sl_SI.png - flags/sq_AL.png - flags/sv.png - flags/ta.png - flags/th.png - flags/tr.png - flags/uk.png - flags/vi.png - flags/xh.png - flags/zh_CN.png - flags/zh_TW.png - flags/en_US.png - flags/da_DK.png - flags/et_EE.png - themes/default/text.png - themes/default/histogram.png - themes/default/pie-chart.png - console/iconClassConsole.png - console/iconSaveConsole.png - console/iconHelpConsole.png - console/iconSettingsConsole.png - console/iconOpenConsole.png - console/iconClearConsole.png - console/imgHelpDialog.png - console/iconSextanteConsole.png - console/iconScriptConsole.png - console/iconIfaceConsole.png - console/iconQtCoreConsole.png - console/iconQtGuiConsole.png - console/iconRunConsole.png - console/iconAboutConsole.png - flags/sr_Cyrl.png - flags/sr_Latn.png - - - qgis_tips/symbol_levels.png - + + icons/qgis-icon-16x16.png + developers/essen-2012.jpg + icons/qgis-icon-60x60.png + north_arrows/gpsarrow2.svg + north_arrows/gpsarrow.svg + themes/default/cap_flat.png + themes/default/cap_round.png + themes/default/cap_square.png + themes/default/clearInput.png + themes/default/extents.png + themes/default/favourites.png + themes/default/geographic.png + themes/default/gpsicons/barchart.svg + themes/default/gpsicons/polarchart.svg + themes/default/grass_location.png + themes/default/grass_mapset.png + themes/default/join_bevel.png + themes/default/join_miter.png + themes/default/join_round.png + themes/default/join_style.svg + themes/default/mActionAddAllToOverview.png + themes/default/mActionAddArrow.png + themes/default/mActionAddBasicShape.png + themes/default/mActionAddImage.png + themes/default/mActionAddPart.png + themes/default/mActionAddLayer.png + themes/default/mActionAddLegend.png + themes/default/mActionAddMap.png + themes/default/mActionAddNonDbLayer.png + themes/default/mActionAddOgrLayer.png + themes/default/mActionAddRasterLayer.png + themes/default/mActionAddRing.png + themes/default/mActionAddSpatiaLiteLayer.png + themes/default/mActionAddVertex.png + themes/default/mActionAddWcsLayer.png + themes/default/mActionAddWmsLayer.png + themes/default/mActionAlignBottom.png + themes/default/mActionAlignHCenter.png + themes/default/mActionAlignLeft.png + themes/default/mActionAlignRight.png + themes/default/mActionAlignTop.png + themes/default/mActionAlignVCenter.png + themes/default/mActionAnnotation.png + themes/default/mActionArrowDown.png + themes/default/mActionArrowUp.png + themes/default/mActionCalculateField.png + themes/default/mActionCaptureLine.png + themes/default/mActionCapturePoint.png + themes/default/mActionCapturePolygon.png + themes/default/mActionChangeLabelProperties.png + themes/default/mActionCheckQgisVersion.png + themes/default/mActionCollapseTree.png + themes/default/mActionComposerManager.png + themes/default/mActionContextHelp.png + themes/default/mActionCopySelected.png + themes/default/mActionCustomProjection.png + themes/default/mActionDeleteAttribute.png + themes/default/mActionDeletePart.png + themes/default/mActionDeleteRing.png + themes/default/mActionDeleteSelected.png + themes/default/mActionDeleteVertex.png + themes/default/mActionDeselectAll.png + themes/default/mActionDraw.png + themes/default/mActionEditCopy.png + themes/default/mActionEditCut.png + themes/default/mActionEditPaste.png + themes/default/mActionExpandTree.png + themes/default/mActionExpandNewTree.png + themes/default/mActionExportMapServer.png + themes/default/mActionFileExit.png + themes/default/mActionFileNew.png + themes/default/mActionFileOpen.png + themes/default/mActionFilePrint.png + themes/default/mActionFileSaveAs.png + themes/default/mActionFileSave.png + themes/default/mActionFileSmall.png + themes/default/mActionFolder.png + themes/default/mActionFormAnnotation.png + themes/default/mActionFromSelectedFeature.png + themes/default/mActionFullCumulativeCutStretch.png + themes/default/mActionFullHistogramStretch.png + themes/default/mActionGroupItems.png + themes/default/mActionHelpAbout.png + themes/default/mActionHelpAPI.png + themes/default/mActionHelpContents.png + themes/default/mActionHelpSponsors.png + themes/default/mActionHideAllLayers.png + themes/default/mActionIdentify.png + themes/default/mActionInOverview.png + themes/default/mActionInvertSelection.png + themes/default/mActionLabeling.png + themes/default/mActionLabel.png + themes/default/mActionLocalCumulativeCutStretch.png + themes/default/mActionLocalHistogramStretch.png + themes/default/mActionLowerItems.png + themes/default/mActionMapTips.png + themes/default/mActionMeasureAngle.png + themes/default/mActionMeasureArea.png + themes/default/mActionMeasure.png + themes/default/mActionMergeFeatureAttributes.png + themes/default/mActionMergeFeatures.png + themes/default/mActionMoveFeature.png + themes/default/mActionMoveItemContent.png + themes/default/mActionMoveItemsToBottom.png + themes/default/mActionMoveItemsToTop.png + themes/default/mActionMoveLabel.png + themes/default/mActionMoveVertex.png + themes/default/mActionNewAttribute.png + themes/default/mActionNewBookmark.png + themes/default/mActionNewComposer.png + themes/default/mActionNewFolder.png + themes/default/mActionNewVectorLayer.png + themes/default/mActionNodeTool.png + themes/default/mActionOffsetCurve.png + themes/default/mActionOpenTable.png + themes/default/mActionOptions.png + themes/default/mActionPan.png + themes/default/mActionPanToSelected.png + themes/default/mActionPanToSelected.svg + themes/default/mActionPinLabels.svg + themes/default/mActionShowRasterCalculator.png + themes/default/mAction.png + themes/default/mActionProjectProperties.png + themes/default/mActionPropertyItem.png + themes/default/mActionQgisHomePage.png + themes/default/mActionRaiseItems.png + themes/default/mActionRedo.png + themes/default/mActionRemoveAllFromOverview.png + themes/default/mActionRemoveLayer.png + themes/default/mActionRemove.png + themes/default/mActionRemoveSelectedFeature.png + themes/default/mActionReshape.png + themes/default/mActionRotateLabel.png + themes/default/mActionRotateLabel.svg + themes/default/mActionRotatePointSymbols.png + themes/default/mActionSaveAsPDF.png + themes/default/mActionSaveAsSVG.png + themes/default/mActionSaveEdits.png + themes/default/mActionSaveMapAsImage.png + themes/default/mActionScaleBar.png + themes/default/mActionSelectedToTop.png + themes/default/mActionSelectFreehand.png + themes/default/mActionSelectPan.png + themes/default/mActionSelect.png + themes/default/mActionSelectPolygon.png + themes/default/mActionSelectPolygon.svg + themes/default/mActionSelectRadius.png + themes/default/mActionSelectRectangle.png + themes/default/mActionShowAllLayers.png + themes/default/mActionShowBookmarks.png + themes/default/mActionShowHideLabels.svg + themes/default/mActionShowPinnedLabels.svg + themes/default/mActionShowPluginManager.png + themes/default/mActionSimplify.png + themes/default/mActionSplitFeatures.png + themes/default/mActionSplitFeatures.svg + themes/default/mActionTextAnnotation.png + themes/default/mActionToggleEditing.png + themes/default/mActionUndo.png + themes/default/mActionUngroupItems.png + themes/default/mActionUnselectAttributes.png + themes/default/mActionZoomActual.png + themes/default/mActionZoomFullExtent.png + themes/default/mActionZoomIn.png + themes/default/mActionZoomLast.png + themes/default/mActionZoomNext.png + themes/default/mActionZoomOut.png + themes/default/mActionZoomToLayer.png + themes/default/mActionZoomToSelected.png + themes/default/mIconClose.png + themes/default/mIconCollapse.png + themes/default/mIconConnect.png + themes/default/mIconDbSchema.png + themes/default/mIconDelete.png + themes/default/mIconEditable.png + themes/default/mIconExpand.png + themes/default/mIconFavourites.png + themes/default/mIconFirst.png + themes/default/mIconGeometryLayer.png + themes/default/mIconLast.png + themes/default/mIconLayer.png + themes/default/mIconLineLayer.png + themes/default/mIconLock.png + themes/default/mIconNew.png + themes/default/mIconMssql.png + themes/default/mIconNext.png + themes/default/mIconNoPyramid.png + themes/default/mIconOws.png + themes/default/mIconPointLayer.png + themes/default/mIconPolygonLayer.png + themes/default/mIconPostgis.png + themes/default/mIconPrevious.png + themes/default/mIconProjectionDisabled.png + themes/default/mIconProjectionEnabled.png + themes/default/mIconProjectionProblem.png + themes/default/mIconProperties.png + themes/default/mIconPyramid.png + themes/default/mIconSpatialite.png + themes/default/mIconStopRendering.png + themes/default/mIconRaster.png + themes/default/mIconRenderingEnabled.png + themes/default/mIconRenderingDisabled.png + themes/default/mIconSymbology.png + themes/default/mIconTableLayer.png + themes/default/mIconUnknownLayerType.png + themes/default/mIconVectorLayer.png + themes/default/mIconWaitingForLayerType.png + themes/default/mIconWcs.png + themes/default/mIconWfs.png + themes/default/mIconWms.png + themes/default/mIconWmsLayer.png + themes/default/mIconWarn.png + themes/default/mIconZoom.png + themes/default/mIconZip.png + themes/default/mMapserverExport.png + themes/default/plugin.png + themes/default/propertyicons/action.png + themes/default/propertyicons/attributes.png + themes/default/propertyicons/colormap.png + themes/default/propertyicons/CRS.png + themes/default/propertyicons/diagram.png + themes/default/propertyicons/digitising.png + themes/default/propertyicons/general.png + themes/default/propertyicons/histogram.png + themes/default/propertyicons/join.png + themes/default/propertyicons/labels.png + themes/default/propertyicons/locale.png + themes/default/propertyicons/map_tools.png + themes/default/propertyicons/metadata.png + themes/default/propertyicons/network_and_proxy.png + themes/default/propertyicons/overlay.png + themes/default/propertyicons/pyramids.png + themes/default/propertyicons/rendering.png + themes/default/propertyicons/symbology.png + themes/default/propertyicons/transparency.png + themes/default/propertyicons/gdal.png + themes/default/qgis.xpm + themes/default/rendererCategorizedSymbol.png + themes/default/rendererGraduatedSymbol.png + themes/default/rendererSingleSymbol.png + themes/default/styleicons/color.png + themes/default/styleicons/style-line.png + themes/default/styleicons/style-point.png + themes/default/styleicons/style-polygon.png + themes/default/symbologyAdd.png + themes/default/symbologyDown.png + themes/default/symbologyEdit.png + themes/default/symbologyRemove.png + themes/default/symbologyUp.png + themes/default/tracking.png + themes/default/transformed.png + themes/default/user.png + themes/default/mActionAddHtml.png + themes/gis/mActionAddArrow.png + themes/gis/mActionAddBasicShape.png + themes/gis/mActionAddGPSLayer.png + themes/gis/mActionAddImage.png + themes/gis/mActionAddPart.png + themes/gis/mActionAddLayer.png + themes/gis/mActionAddLegend.png + themes/gis/mActionAddMap.png + themes/gis/mActionAddOgrLayer.png + themes/gis/mActionAddRasterLayer.png + themes/gis/mActionAddRing.png + themes/gis/mActionAddSpatiaLiteLayer.png + themes/gis/mActionAddVertex.png + themes/gis/mActionAddWcsLayer.png + themes/gis/mActionAddWfsLayer.png + themes/gis/mActionAddWmsLayer.png + themes/gis/mActionAlignBottom.png + themes/gis/mActionAlignHCenter.png + themes/gis/mActionAlignLeft.png + themes/gis/mActionAlignRight.png + themes/gis/mActionAlignTop.png + themes/gis/mActionAlignVCenter.png + themes/gis/mActionAnnotation.png + themes/gis/mActionCalculateField.png + themes/gis/mActionCaptureLine.png + themes/gis/mActionCapturePoint.png + themes/gis/mActionCapturePolygon.png + themes/gis/mActionChangeLabelProperties.png + themes/gis/mActionComposerManager.png + themes/gis/mActionCopySelected.png + themes/gis/mActionDeleteAttribute.png + themes/gis/mActionDeletePart.png + themes/gis/mActionDeleteRing.png + themes/gis/mActionDeleteSelected.png + themes/gis/mActionDeleteVertex.png + themes/gis/mActionDeselectAll.png + themes/gis/mActionDraw.png + themes/gis/mActionEditCopy.png + themes/gis/mActionEditCut.png + themes/gis/mActionEditPaste.png + themes/gis/mActionFileNew.png + themes/gis/mActionFileOpen.png + themes/gis/mActionFilePrint.png + themes/gis/mActionFileSaveAs.png + themes/gis/mActionFileSave.png + themes/gis/mActionFolder.png + themes/gis/mActionFormAnnotation.png + themes/gis/mActionGroupItems.png + themes/gis/mActionHelpContents.png + themes/gis/mActionHideAllLayers.png + themes/gis/mActionIdentify.png + themes/gis/mActionInOverview.png + themes/gis/mActionInvertSelection.png + themes/gis/mActionLabeling.png + themes/gis/mActionLabel.png + themes/gis/mActionLowerItems.png + themes/gis/mActionMapTips.png + themes/gis/mActionMeasureAngle.png + themes/gis/mActionMeasureArea.png + themes/gis/mActionMeasure.png + themes/gis/mActionMergeFeatureAttributes.png + themes/gis/mActionMergeFeatures.png + themes/gis/mActionMoveFeature.png + themes/gis/mActionMoveItemContent.png + themes/gis/mActionMoveItemsToBottom.png + themes/gis/mActionMoveItemsToTop.png + themes/gis/mActionMoveLabel.png + themes/gis/mActionMoveVertex.png + themes/gis/mActionNewAttribute.png + themes/gis/mActionNewBookmark.png + themes/gis/mActionNewComposer.png + themes/gis/mActionNewVectorLayer.png + themes/gis/mActionNodeTool.png + themes/gis/mActionOpenTable.png + themes/gis/mActionPan.png + themes/gis/mActionPanToSelected.png + themes/gis/mActionPanToSelected.svg + themes/gis/mActionPinLabels.svg + themes/gis/mActionShowRasterCalculator.png + themes/gis/mActionRaiseItems.png + themes/gis/mActionRedo.png + themes/gis/mActionRemoveLayer.png + themes/gis/mActionReshape.png + themes/gis/mActionRotateLabel.png + themes/gis/mActionRotateLabel.svg + themes/gis/mActionSaveAsPDF.png + themes/gis/mActionSaveAsSVG.png + themes/gis/mActionSaveEdits.png + themes/gis/mActionSaveMapAsImage.png + themes/gis/mActionScaleBar.png + themes/gis/mActionSelectedToTop.png + themes/gis/mActionSelectFreehand.png + themes/gis/mActionSelectPan.png + themes/gis/mActionSelect.png + themes/gis/mActionSelectPolygon.png + themes/gis/mActionSelectPolygon.svg + themes/gis/mActionSelectRadius.png + themes/gis/mActionSelectRectangle.png + themes/gis/mActionShowAllLayers.png + themes/gis/mActionShowBookmarks.png + themes/gis/mActionShowHideLabels.svg + themes/gis/mActionShowPinnedLabels.svg + themes/gis/mActionSimplify.png + themes/gis/mActionSplitFeatures.png + themes/gis/mActionSplitFeatures.svg + themes/gis/mActionTextAnnotation.png + themes/gis/mActionToggleEditing.png + themes/gis/mActionUndo.png + themes/gis/mActionUngroupItems.png + themes/gis/mActionUnselectAttributes.png + themes/gis/mActionZoomActual.png + themes/gis/mActionZoomFullExtent.png + themes/gis/mActionZoomIn.png + themes/gis/mActionZoomLast.png + themes/gis/mActionZoomNext.png + themes/gis/mActionZoomOut.png + themes/gis/mActionZoomToLayer.png + themes/gis/mActionZoomToSelected.png + themes/gis/mIconClose.png + themes/gis/mIconEditable.png + themes/gis/mIconLineLayer.png + themes/gis/mIconPointLayer.png + themes/gis/mIconPolygonLayer.png + themes/gis/mIconTableLayer.png + themes/gis/plugins/coordinate_capture/coordinate_capture.png + themes/gis/plugins/copyright_label.png + themes/gis/plugins/delimited_text.png + themes/gis/plugins/dxf2shp_converter.png + themes/gis/plugins/gps_importer.png + themes/gis/plugins/interpolation.png + themes/gis/plugins/mapserver_export.png + themes/gis/plugins/mGeorefRun.png + themes/gis/plugins/north_arrow.png + themes/gis/plugins/ogr_converter.png + themes/gis/plugins/quick_print.png + themes/gis/plugins/scale_bar.png + themes/gis/plugins/spit.png + splash/splash.png + north_arrows/default.png + themes/default/locked.png + themes/default/unlocked.png + themes/default/plugins/copyright_label.png + themes/default/plugins/north_arrow.png + themes/default/plugins/scale_bar.png + themes/default/mActionAddWfsLayer.png + themes/gis/mIconOws.png + themes/gis/mIconVectorLayer.png + themes/gis/mIconWcs.png + themes/gis/mIconWms.png + themes/gis/mIconWfs.png + themes/gis/mIconWarn.png + themes/gis/mIconSpatialite.png + themes/gis/mIconRaster.png + themes/gis/mIconPostgis.png + themes/gis/mIconMssql.png + themes/gis/mIconConnect.png + themes/gis/mIconDbSchema.png + themes/gis/mActionTouch.png + themes/default/mActionAddMssqlLayer.png + themes/default/mActionTouch.png + themes/default/mActionTouch2.png + themes/classic/mActionTouch.png + flags/af.png + flags/ar.png + flags/bg.png + flags/ca_ES.png + flags/cs_CZ.png + flags/de.png + flags/el_GR.png + flags/es.png + flags/fa.png + flags/fi.png + flags/fr.png + flags/gl_ES.png + flags/he.png + flags/hr_HR.png + flags/hu.png + flags/id.png + flags/is.png + flags/it.png + flags/ja.png + flags/ka_GE.png + flags/ko_KR.png + flags/lo.png + flags/lt.png + flags/lv.png + flags/mn.png + flags/nl.png + flags/no.png + flags/pl_PL.png + flags/pt_BR.png + flags/pt_PT.png + flags/ro.png + flags/ru.png + flags/sk.png + flags/sl_SI.png + flags/sq_AL.png + flags/sv.png + flags/ta.png + flags/th.png + flags/tr.png + flags/uk.png + flags/vi.png + flags/xh.png + flags/zh_CN.png + flags/zh_TW.png + flags/en_US.png + flags/da_DK.png + flags/et_EE.png + themes/default/text.png + themes/default/histogram.png + themes/default/pie-chart.png + console/iconClassConsole.png + console/iconSaveConsole.png + console/iconHelpConsole.png + console/iconSettingsConsole.png + console/iconOpenConsole.png + console/iconClearConsole.png + console/imgHelpDialog.png + console/iconSextanteConsole.png + console/iconScriptConsole.png + console/iconIfaceConsole.png + console/iconQtCoreConsole.png + console/iconQtGuiConsole.png + console/iconRunConsole.png + console/iconAboutConsole.png + flags/sr_Cyrl.png + flags/sr_Latn.png + + + qgis_tips/symbol_levels.png + diff --git a/images/splash/splash.png b/images/splash/splash.png index 3b906be9880e..c55aa270af97 100644 Binary files a/images/splash/splash.png and b/images/splash/splash.png differ diff --git a/images/splash/splash.xcf.bz2 b/images/splash/splash.xcf.bz2 index 52f664910d06..a211da568bb9 100644 Binary files a/images/splash/splash.xcf.bz2 and b/images/splash/splash.xcf.bz2 differ diff --git a/mac/cmake/0qgis.cmake.in b/mac/cmake/0qgis.cmake.in index 1c4e3453a378..ae66f4839618 100644 --- a/mac/cmake/0qgis.cmake.in +++ b/mac/cmake/0qgis.cmake.in @@ -20,5 +20,9 @@ IF (@OSX_HAVE_LOADERPATH@) GET_INSTALL_NAME ("${QFWDIR}/${QL}.framework/${QL}" ${QL}.framework QQ) SET (QFW_CHG "${QQ}") UPDATEQGISPATHS ("${QFW_CHG}" ${QL}) + # change id of the framework + IF (NOT @QGIS_MACAPP_INSTALL_DEV@) + EXECUTE_PROCESS(COMMAND install_name_tool -id "${ATEXECUTABLE}/${QGIS_FW_SUBDIR}/${QL}.framework/${QL}" "${QFWDIR}/${QL}.framework/${QL}") + ENDIF () ENDFOREACH (QL) ENDIF (@OSX_HAVE_LOADERPATH@) diff --git a/python/console_help.py b/python/console_help.py index b44d489339b0..1291cadedcaa 100644 --- a/python/console_help.py +++ b/python/console_help.py @@ -35,7 +35,7 @@ def __init__(self): QtGui.QDialog.__init__(self) self.setModal(True) self.setupUi() - + def setupUi(self): self.setMaximumSize(500, 300) self.webView = QtWebKit.QWebView() @@ -58,15 +58,16 @@ def setupUi(self): qgisDataDir = QgsApplication.pkgDataPath() listFile = os.listdir(qgisDataDir + "/python/console_help/i18n") localeFullName = QSettings().value( "locale/userLocale", QVariant( "" ) ).toString() + locale = "en_US" for i in listFile: lang = i[0:5] if localeFullName in (lang[0:2], lang): locale = lang - + filename = qgisDataDir + "/python/console_help/help.htm? \ lang=" + locale \ + "&pkgDir=" + qgisDataDir - + url = QtCore.QUrl(filename) self.webView.load(url) diff --git a/python/console_help/help.htm b/python/console_help/help.htm index 993eada7eb65..65588f761033 100644 --- a/python/console_help/help.htm +++ b/python/console_help/help.htm @@ -1,5 +1,5 @@ - - + + Help Python Console diff --git a/python/console_output.py b/python/console_output.py index 617a8014e428..e458e0193ea9 100644 --- a/python/console_output.py +++ b/python/console_output.py @@ -108,6 +108,12 @@ def __init__(self, parent=None): self.SendScintilla(QsciScintilla.SCI_SETWRAPMODE, 2) self.SendScintilla(QsciScintilla.SCI_SETHSCROLLBAR, 0) + self.runShortcut = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_E), self) + self.runShortcut.activated.connect(self.enteredSelected) + # Reimplemeted copy action to prevent paste prompt (>>>,...) in command view + self.copyShortcut = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_C), self) + self.copyShortcut.activated.connect(self.copy) + def refreshLexerProperties(self): self.setLexers() @@ -143,18 +149,16 @@ def clearConsole(self): def contextMenuEvent(self, e): menu = QMenu(self) - runAction = menu.addAction("Enter Selected") - copyAction = menu.addAction("Copy CTRL+C") + iconRun = QIcon(":/images/console/iconRunConsole.png") + runAction = menu.addAction(iconRun, "Enter Selected", self.enteredSelected, QKeySequence(Qt.CTRL + Qt.Key_E)) + menu.addSeparator() + copyAction = menu.addAction("Copy", self.copy, QKeySequence.Copy) runAction.setEnabled(False) + copyAction.setEnabled(False) if self.hasSelectedText(): runAction.setEnabled(True) + copyAction.setEnabled(True) action = menu.exec_(self.mapToGlobal(e.pos())) - if action == runAction: - cmd = self.selectedText() - self.edit.insertFromDropPaste(cmd) - self.edit.entered() - if action == copyAction: - self.copy() def copy(self): """Copy text to clipboard... or keyboard interrupt""" @@ -165,3 +169,8 @@ def copy(self): else: self.emit(SIGNAL("keyboard_interrupt()")) + def enteredSelected(self): + cmd = self.selectedText() + self.edit.insertFromDropPaste(cmd) + self.edit.entered() + diff --git a/python/console_sci.py b/python/console_sci.py index d19a8f5e3d9b..f9b0045bf839 100755 --- a/python/console_sci.py +++ b/python/console_sci.py @@ -119,9 +119,7 @@ def __init__(self, parent=None): self.newShortcutCAS.activated.connect(self.showHistory) self.connect(self, SIGNAL('userListActivated(int, const QString)'), self.completion_list_selected) - - self.createStandardContextMenu() - + def showHistory(self): self.showUserList(1, QStringList(self.history)) @@ -413,13 +411,12 @@ def keyPressEvent(self, e): def contextMenuEvent(self, e): menu = QMenu(self) - copyAction = menu.addAction("Copy CTRL+C") - pasteAction = menu.addAction("Paste CTRL+V") + copyAction = menu.addAction("Copy", self.copy, QKeySequence.Copy) + pasteAction = menu.addAction("Paste", self.paste, QKeySequence.Paste) + copyAction.setEnabled(False) + if self.hasSelectedText(): + copyAction.setEnabled(True) action = menu.exec_(self.mapToGlobal(e.pos())) - if action == copyAction: - self.copy() - elif action == pasteAction: - self.paste() def mousePressEvent(self, e): """ diff --git a/python/console_settings.py b/python/console_settings.py index 0f9deaf29979..17cce1a7f7f5 100644 --- a/python/console_settings.py +++ b/python/console_settings.py @@ -40,10 +40,6 @@ def __init__(self, parent): self.fontConfig() self.lineEdit.setReadOnly(True) - self.tabWidget.setTabText(0, QCoreApplication.translate("PythonConsole", "General")) - self.tabWidget.setTabIcon(0, QIcon(":/images/themes/default/propertyicons/general.png")) - self.tabWidget.setTabText(1, QCoreApplication.translate("PythonConsole", "About")) - self.tabWidget.setTabIcon(1, QIcon(":/images/console/iconAboutConsole.png")) self.addAPIpath.setIcon(QIcon(":/images/themes/default/symbologyAdd.png")) self.addAPIpath.setToolTip(QCoreApplication.translate("PythonConsole", "Add API path")) diff --git a/python/console_settings.ui b/python/console_settings.ui index c9ec95e88740..38cad1d4d258 100644 --- a/python/console_settings.ui +++ b/python/console_settings.ui @@ -9,255 +9,239 @@ 0 0 - 472 - 388 + 411 + 352 true - + + + + + + + Font + + + + + + + + 0 + 0 + + + + QComboBox::NoInsert + + + + + + + Size + + + + + + + + 51 + 26 + + + + + 51 + 26 + + + + 6 + + + 15 + + + 10 + + + + + - + - Qt::Horizontal + Qt::Vertical - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + 20 + 40 + - + - - - - Qt::NoFocus + + + + + + API file + + + + + + + + + + Browse + + + + + + + + + Use preloaded API file - - 0 + + true - - - Tab 1 - - - - - - Use preloaded API file + + + + + + + + QAbstractItemView::NoEditTriggers + + + false + + + false + + + false + + + QAbstractItemView::ExtendedSelection + + + QAbstractItemView::SelectItems + + + QAbstractItemView::ScrollPerItem + + + QAbstractItemView::ScrollPerPixel + + + 0 + + + true + + + false + + + + + + + + + + 0 + 0 + - - true + + + 32 + 32 + + + + + 32 + 32 + + + + - - - - - - - 51 - 26 - - - - - 51 - 26 - - - - 6 - - - 15 - - - 10 - - - - - - - Font - - - - - - - - 0 - 0 - - - - QComboBox::NoInsert - - - - - - - Size - - - - - - - - - - - - - - 0 - 0 - - - - - 32 - 32 - - - - - 32 - 32 - - - - - - - - - - - - 32 - 32 - - - - - 32 - 32 - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - QAbstractItemView::NoEditTriggers - - - false - - - false - - - false - - - QAbstractItemView::ExtendedSelection - - - QAbstractItemView::SelectItems - - - QAbstractItemView::ScrollPerItem - - - QAbstractItemView::ScrollPerPixel - - - 0 - - - true - - - false - - - - - - - - - - - API file - - - - - - - - - - Browse - - - - - - - - - - Tab 2 - - - - - - true + + + + + 32 + 32 + + + + + 32 + 32 + - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Aurulent Sans'; font-size:9pt; font-weight:400; font-style:normal;"> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600;">Python Console for QGIS</span></p> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Developed by Salvatore Larosa</span></p> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">---------------------------</span></p> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</span></p></body></html> + + + + + + Qt::Vertical + + + + 20 + 40 + + + + - + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + buttonBox + layoutWidget + layoutWidget_2 + layoutWidget_3 + label + fontComboBox + label_3 + fontComboBox + label + label_3 + preloadAPI + verticalSpacer_2 diff --git a/python/plugins/sextante/CMakeLists.txt b/python/plugins/sextante/CMakeLists.txt index 6ba91c184200..cf375de62732 100644 --- a/python/plugins/sextante/CMakeLists.txt +++ b/python/plugins/sextante/CMakeLists.txt @@ -1,6 +1,5 @@ SET (SEXTANTE_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/sextante) -ADD_SUBDIRECTORY(about) ADD_SUBDIRECTORY(algs) ADD_SUBDIRECTORY(core) ADD_SUBDIRECTORY(ftools) @@ -27,6 +26,4 @@ FILE(GLOB PY_FILES *.py) PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc) - - PLUGIN_INSTALL(sextante . ${PY_FILES} ${OTHER_FILES} ${PYRC_FILES}) diff --git a/python/plugins/sextante/SextantePlugin.py b/python/plugins/sextante/SextantePlugin.py index 95ee6b4b49a9..1724ffe515cf 100644 --- a/python/plugins/sextante/SextantePlugin.py +++ b/python/plugins/sextante/SextantePlugin.py @@ -42,8 +42,6 @@ from sextante.modeler.ModelerDialog import ModelerDialog -from sextante.about.AboutDialog import AboutDialog - import resources_rc cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0] @@ -102,12 +100,6 @@ def initGui(self): QObject.connect(self.helpAction, SIGNAL("triggered()"), self.openHelp) self.menu.addAction(self.helpAction) - self.aboutAction = QAction(QIcon(":/sextante/images/info.png"), - QCoreApplication.translate("SEXTANTE", "&About SEXTANTE"), - self.iface.mainWindow()) - QObject.connect(self.aboutAction, SIGNAL("triggered()"), self.openAbout) - self.menu.addAction(self.aboutAction) - menuBar = self.iface.mainWindow().menuBar() menuBar.insertMenu(menuBar.actions()[-1], self.menu) @@ -145,9 +137,5 @@ def openConfig(self): dlg = ConfigDialog(self.toolbox) dlg.exec_() - def openAbout(self): - dlg = AboutDialog() - dlg.exec_() - def openHelp(self): QDesktopServices.openUrl(QUrl(os.path.dirname(__file__) + "/help/index.html")) diff --git a/python/plugins/sextante/about/AboutDialog.py b/python/plugins/sextante/about/AboutDialog.py deleted file mode 100644 index bfd861fea2af..000000000000 --- a/python/plugins/sextante/about/AboutDialog.py +++ /dev/null @@ -1,71 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -*************************************************************************** - AboutDialog.py - --------------------- - Date : August 2012 - Copyright : (C) 2012 by Tim Sutton - Email : tim at linfiniti dot com -*************************************************************************** -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -*************************************************************************** -""" - -__author__ = 'Tim Sutton' -__date__ = 'August 2012' -__copyright__ = '(C) 2012, Tim Sutton' -# This will get replaced with a git SHA1 when you do a git archive -__revision__ = '$Format:%H$' - -import os - -from PyQt4.QtCore import * -from PyQt4.QtGui import * - -from sextante.__init__ import version -from ui_aboutdialogbase import Ui_DlgAbout - -import sextante.resources_rc - -class AboutDialog(QDialog, Ui_DlgAbout): - - def __init__(self): - QDialog.__init__(self) - self.setupUi(self) - - self.buttonBox.helpRequested.connect(self.openHelp) - - self.setAboutText() - - def setAboutText(self): - strAbout = self.tr(""" - -

SEXTANTE for QGIS

-

SEXTANTE, a geoprocessing platform for QGIS

-

A development by Victor Olaya (volayaf@gmail.com).

-

Portions of this software contributed by: -

    -
  • Alexander Bruy
  • -
  • Carson Farmer (fTools algorithms)
  • -
  • Julien Malik (Orfeo Toolbox connectors)
  • -
  • Evgeniy Nikulin (Original Field Pyculator code)
  • -
  • Michael Nimm (mmqgis algorithms)
  • -
  • Camilo Polymeris (Threading). Developed as part of Google - Summer of Code 2012
  • -
-

-

You are currently using SEXTANTE v%1

-

This software is distributed under the terms of the GNU GPL License v2. -

For more information, please visit our website at - http://sextantegis.com

- """).arg(version()) - self.webView.setHtml(strAbout) - - def openHelp(self): - QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/index.html")) diff --git a/python/plugins/sextante/about/CMakeLists.txt b/python/plugins/sextante/about/CMakeLists.txt deleted file mode 100644 index 1f274b6b89f8..000000000000 --- a/python/plugins/sextante/about/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -FILE(GLOB PY_FILES *.py) - -FILE(GLOB UI_FILES *.ui) -PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES}) - -PLUGIN_INSTALL(sextante ./about ${PY_FILES} ${PYUI_FILES}) diff --git a/python/plugins/sextante/about/__init__.py b/python/plugins/sextante/about/__init__.py deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/python/plugins/sextante/about/aboutdialogbase.ui b/python/plugins/sextante/about/aboutdialogbase.ui deleted file mode 100644 index 49b21bd364e5..000000000000 --- a/python/plugins/sextante/about/aboutdialogbase.ui +++ /dev/null @@ -1,86 +0,0 @@ - - - DlgAbout - - - - 0 - 0 - 492 - 401 - - - - About SEXTANTE - - - - 2 - - - 0 - - - - - - about:blank - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Help - - - - - - - - QWebView - QWidget -
QtWebKit/QWebView
-
-
- - - - buttonBox - accepted() - DlgAbout - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - DlgAbout - reject() - - - 316 - 260 - - - 286 - 274 - - - - -
diff --git a/python/plugins/sextante/images/info.png b/python/plugins/sextante/images/info.png deleted file mode 100644 index 6627835ba32d..000000000000 Binary files a/python/plugins/sextante/images/info.png and /dev/null differ diff --git a/python/plugins/sextante/resources.qrc b/python/plugins/sextante/resources.qrc index 1e390ec721d5..f9659c89c7a2 100644 --- a/python/plugins/sextante/resources.qrc +++ b/python/plugins/sextante/resources.qrc @@ -5,7 +5,6 @@ images/grass.png images/help.png images/history.gif - images/info.png images/input.png images/iterate.png images/model.png diff --git a/src/core/qgsapplication.cpp b/src/core/qgsapplication.cpp index aade37de2a3c..5d79b158e4c5 100644 --- a/src/core/qgsapplication.cpp +++ b/src/core/qgsapplication.cpp @@ -91,7 +91,8 @@ void QgsApplication::init( QString customConfigPath ) // check if QGIS is run from build directory (not the install directory) QFile f; - foreach ( QString path, QStringList() << "" << "/.." << "/bin" ) + // "/../../.." is for Mac bundled app in build directory + foreach ( QString path, QStringList() << "" << "/.." << "/bin" << "/../../.." ) { f.setFileName( prefixPath + path + "/path.txt" ); if ( f.exists() ) diff --git a/src/mapserver/qgsprojectparser.cpp b/src/mapserver/qgsprojectparser.cpp index 39833ab59fe3..e20298fabfe5 100644 --- a/src/mapserver/qgsprojectparser.cpp +++ b/src/mapserver/qgsprojectparser.cpp @@ -1723,6 +1723,8 @@ void QgsProjectParser::serviceCapabilities( QDomElement& parentElement, QDomDocu QDomElement keywordListElem = propertiesElem.firstChildElement( "WMSKeywordList" ); if ( !keywordListElem.isNull() ) { + bool siaFormat = featureInfoFormatSIA2045(); + QDomElement wmsKeywordElem = doc.createElement( "KeywordList" ); QDomNodeList keywordList = keywordListElem.elementsByTagName( "value" ); for ( int i = 0; i < keywordList.size(); ++i ) @@ -1730,6 +1732,10 @@ void QgsProjectParser::serviceCapabilities( QDomElement& parentElement, QDomDocu QDomElement keywordElem = doc.createElement( "Keyword" ); QDomText keywordText = doc.createTextNode( keywordList.at( i ).toElement().text() ); keywordElem.appendChild( keywordText ); + if ( siaFormat ) + { + keywordElem.setAttribute( "vocabulary", "SIA_Geo405" ); + } wmsKeywordElem.appendChild( keywordElem ); } diff --git a/src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp b/src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp index 13549592e5f6..78559bbfd7b1 100644 --- a/src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp +++ b/src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp @@ -166,7 +166,7 @@ void QgsDelimitedTextSourceSelect::on_buttonBox_accepted() settings.setValue( key + "/delimiterType", "plain" ); else settings.setValue( key + "/delimiterType", "regexp" ); - settings.setValue( key + "/delimiterChars", selectedChars() ); + settings.setValue( key + "/delimiterChars", selectedChars().join( "" ) ); accept(); } @@ -181,37 +181,50 @@ void QgsDelimitedTextSourceSelect::on_buttonBox_rejected() reject(); } -QString QgsDelimitedTextSourceSelect::selectedChars() +QStringList QgsDelimitedTextSourceSelect::selectedChars() { - QString chars = ""; + QStringList chars; if ( cbxDelimSpace->isChecked() ) - chars += " "; + chars << " "; if ( cbxDelimTab->isChecked() ) - chars += "\\t"; + chars << "\\t"; if ( cbxDelimSemicolon->isChecked() ) - chars += ";"; + chars << ";"; if ( cbxDelimComma->isChecked() ) - chars += ","; + chars << ","; if ( cbxDelimColon->isChecked() ) - chars += ":"; + chars << ":"; return chars; } QStringList QgsDelimitedTextSourceSelect::splitLine( QString line ) { - QString delimiter = txtDelimiter->text(); + QString delimiter; + if ( delimiterSelection->isChecked() ) + { + if ( selectedChars().size() > 1 ) + { + delimiter = "[" + selectedChars().join( "" ) + "]"; + } + else + { + delimiter = selectedChars().join( "" ); + } + txtDelimiter->setText( delimiter ); + } + else + { + delimiter = txtDelimiter->text(); + } if ( delimiterPlain->isChecked() ) { return QgsDelimitedTextProvider::splitLine( line, "plain", delimiter ); } - if ( delimiterSelection->isChecked() ) + if ( delimiterSelection->isChecked() && selectedChars().size() <= 1 ) { - delimiter = "["; - delimiter += selectedChars(); - delimiter += "]"; - txtDelimiter->setText( delimiter ); + return QgsDelimitedTextProvider::splitLine( line, "plain", delimiter ); } return QgsDelimitedTextProvider::splitLine( line, "regexp", delimiter ); @@ -291,8 +304,6 @@ void QgsDelimitedTextSourceSelect::updateFieldLists() QgsDebugMsg( QString( "Attempting to split the input line: %1 using delimiter %2" ).arg( line ).arg( txtDelimiter->text() ) ); - QString delimiter = txtDelimiter->text(); - QStringList fieldList = splitLine( line ); QgsDebugMsg( QString( "Split line into %1 parts" ).arg( fieldList.size() ) ); diff --git a/src/providers/delimitedtext/qgsdelimitedtextsourceselect.h b/src/providers/delimitedtext/qgsdelimitedtextsourceselect.h index 341d52fc8d2c..8d16e4c4e6aa 100644 --- a/src/providers/delimitedtext/qgsdelimitedtextsourceselect.h +++ b/src/providers/delimitedtext/qgsdelimitedtextsourceselect.h @@ -38,7 +38,7 @@ class QgsDelimitedTextSourceSelect : public QDialog, private Ui::QgsDelimitedTex bool haveValidFileAndDelimiters(); void updateFieldLists(); void getOpenFileName(); - QString selectedChars(); + QStringList selectedChars(); private slots: void on_buttonBox_accepted(); diff --git a/src/ui/qgsabout.ui b/src/ui/qgsabout.ui index 7b225d5b023b..3d64bba5ae53 100644 --- a/src/ui/qgsabout.ui +++ b/src/ui/qgsabout.ui @@ -179,8 +179,8 @@ p, li { white-space: pre-wrap; } Developers - - + + true @@ -190,13 +190,13 @@ p, li { white-space: pre-wrap; } - + - :/images/developers/lyon-2012.jpg + :/images/last-hackfest.jpg false @@ -206,6 +206,21 @@ p, li { white-space: pre-wrap; } + + + + + 17 + + + + Essen (Germany), Developer meeting 2012 + + + Qt::AlignCenter + + + diff --git a/src/ui/qgsrasterlayerpropertiesbase.ui b/src/ui/qgsrasterlayerpropertiesbase.ui index 9f0b86133191..2c3c7b048033 100644 --- a/src/ui/qgsrasterlayerpropertiesbase.ui +++ b/src/ui/qgsrasterlayerpropertiesbase.ui @@ -72,7 +72,7 @@ - 0 + 1 @@ -251,69 +251,6 @@ - - - - No data value - - - - - - 1 - - - - - Use original source no data value. - - - No data value: - - - - - - - - 0 - 0 - - - - Original data source no data value, if exists. - - - <src no data value> - - - - - - - - - - - Additional user defined no data value. - - - Additional no data value - - - - - - - Additional user defined no data value. - - - - - - - - @@ -395,6 +332,69 @@ + + + + No data value + + + + + + 1 + + + + + Use original source no data value. + + + No data value: + + + + + + + + 0 + 0 + + + + Original data source no data value, if exists. + + + <src no data value> + + + + + + + + + + + Additional user defined no data value. + + + Additional no data value + + + + + + + Additional user defined no data value. + + + + + + + + diff --git a/tests/src/analysis/CMakeLists.txt b/tests/src/analysis/CMakeLists.txt index 98c9018b20ec..1a134aea8b99 100644 --- a/tests/src/analysis/CMakeLists.txt +++ b/tests/src/analysis/CMakeLists.txt @@ -42,7 +42,7 @@ ENDIF (WIN32) # ensure the qgis libs can be found. IF (APPLE) # For Mac OS X, the executable must be at the root of the bundle's executable folder - SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) +# SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) ENDIF (APPLE) #note for tests we should not include the moc of our diff --git a/tests/src/core/CMakeLists.txt b/tests/src/core/CMakeLists.txt index 92bfef502c5b..dfd92cffd770 100644 --- a/tests/src/core/CMakeLists.txt +++ b/tests/src/core/CMakeLists.txt @@ -41,7 +41,7 @@ ENDIF (WIN32) # ensure the qgis libs can be found. IF (APPLE) # For Mac OS X, the executable must be at the root of the bundle's executable folder - SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) +# SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) ENDIF (APPLE) #note for tests we should not include the moc of our diff --git a/tests/src/gui/CMakeLists.txt b/tests/src/gui/CMakeLists.txt index 23f0f1e01f1e..57d4190b5d27 100644 --- a/tests/src/gui/CMakeLists.txt +++ b/tests/src/gui/CMakeLists.txt @@ -48,7 +48,7 @@ ENDIF(WIN32) # ensure the omg libs can be found. IF (APPLE) # For Mac OS X, the executable must be at the root of the bundle's executable folder - SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/gui) +# SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/gui) ENDIF (APPLE) #note for tests we should not include the moc of our diff --git a/tests/src/providers/CMakeLists.txt b/tests/src/providers/CMakeLists.txt index f27aa77fac78..7caf15ce3ce2 100644 --- a/tests/src/providers/CMakeLists.txt +++ b/tests/src/providers/CMakeLists.txt @@ -39,7 +39,7 @@ ENDIF (WIN32) # ensure the qgis libs can be found. IF (APPLE) # For Mac OS X, the executable must be at the root of the bundle's executable folder - SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) +# SET (CMAKE_INSTALL_NAME_DIR @executable_path/../../../src/core) ENDIF (APPLE) #note for tests we should not include the moc of our diff --git a/tests/src/python/test_qgssymbollayerv2.py b/tests/src/python/test_qgssymbollayerv2.py index bf43c724c220..b2856f491cef 100644 --- a/tests/src/python/test_qgssymbollayerv2.py +++ b/tests/src/python/test_qgssymbollayerv2.py @@ -34,27 +34,39 @@ Qt) from PyQt4.QtXml import QDomDocument -from qgis.core import (QgsSymbolLayerV2, - QgsSimpleFillSymbolLayerV2, - QgsVectorFieldSymbolLayer, - QgsMarkerSymbolLayerV2, +from qgis.core import (QgsCentroidFillSymbolLayerV2, + QgsEllipseSymbolLayerV2, QgsFontMarkerSymbolLayerV2, - QgsCentroidFillSymbolLayerV2, - QgsPointPatternFillSymbolLayer, - QgsSVGFillSymbolLayer, + QgsLineDecorationSymbolLayerV2, QgsLinePatternFillSymbolLayer, QgsMarkerLineSymbolLayerV2, - QgsEllipseSymbolLayerV2, + QgsMarkerSymbolLayerV2, + QgsPointPatternFillSymbolLayer, + QgsSimpleFillSymbolLayerV2, + QgsSimpleLineSymbolLayerV2, + QgsSimpleMarkerSymbolLayerV2, + QgsSVGFillSymbolLayer, QgsSvgMarkerSymbolLayerV2, + QgsSymbolLayerV2, + QgsVectorFieldSymbolLayer, QgsCentroidFillSymbolLayerV2, + QgsEllipseSymbolLayerV2, + QgsFillSymbolLayerV2, + QgsFontMarkerSymbolLayerV2, + QgsImageFillSymbolLayer, + QgsLineDecorationSymbolLayerV2, QgsLinePatternFillSymbolLayer, - QgsCentroidFillSymbolLayerV2, + QgsLineSymbolLayerV2, QgsMarkerLineSymbolLayerV2, - QgsSimpleMarkerSymbolLayerV2, + QgsMarkerSymbolLayerV2, + QgsPointPatternFillSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleLineSymbolLayerV2, - QgsLineDecorationSymbolLayerV2 - ) + QgsSimpleMarkerSymbolLayerV2, + QgsSVGFillSymbolLayer, + QgsSvgMarkerSymbolLayerV2, + QgsVectorFieldSymbolLayer, + ) from utilities import (unitTestDataPath, getQgisTestApp, TestCase,