Skip to content
Permalink
Browse files

change line endings to UNIX

  • Loading branch information
alexbruy committed Sep 15, 2012
1 parent 1b803d7 commit 6edc945172d13e43f0e5e7521cefd89c64d4711c
Showing with 17,493 additions and 17,493 deletions.
  1. +130 −130 python/plugins/sextante/SextantePlugin.py
  2. +13 −13 python/plugins/sextante/__init__.py
  3. +36 −36 python/plugins/sextante/about/AboutDialog.py
  4. +60 −60 python/plugins/sextante/algs/AddTableField.py
  5. +48 −48 python/plugins/sextante/algs/AutoincrementalField.py
  6. +60 −60 python/plugins/sextante/algs/EquivalentNumField.py
  7. +69 −69 python/plugins/sextante/algs/Explode.py
  8. +214 −214 python/plugins/sextante/algs/FieldPyculator.py
  9. +71 −71 python/plugins/sextante/algs/FieldsCalculator.py
  10. +76 −76 python/plugins/sextante/algs/SaveSelectedFeatures.py
  11. +38 −38 python/plugins/sextante/algs/SextanteAlgorithmProvider.py
  12. +85 −85 python/plugins/sextante/core/AlgorithmProvider.py
  13. +276 −276 python/plugins/sextante/core/GeoAlgorithm.py
  14. +5 −5 python/plugins/sextante/core/GeoAlgorithmExecutionException.py
  15. +67 −67 python/plugins/sextante/core/LayerExporter.py
  16. +154 −154 python/plugins/sextante/core/QGisLayers.py
  17. +353 −353 python/plugins/sextante/core/Sextante.py
  18. +128 −128 python/plugins/sextante/core/SextanteConfig.py
  19. +110 −110 python/plugins/sextante/core/SextanteLog.py
  20. +23 −23 python/plugins/sextante/core/SextanteResults.py
  21. +61 −61 python/plugins/sextante/core/SextanteUtils.py
  22. +5 −5 python/plugins/sextante/core/WrongHelpFileException.py
  23. +190 −190 python/plugins/sextante/ftools/BasicStatistics.py
  24. +144 −144 python/plugins/sextante/ftools/Buffer.py
  25. +260 −260 python/plugins/sextante/ftools/Clip.py
  26. +170 −170 python/plugins/sextante/ftools/ConvexHull.py
  27. +79 −79 python/plugins/sextante/ftools/Delaunay.py
  28. +193 −193 python/plugins/sextante/ftools/Difference.py
  29. +173 −173 python/plugins/sextante/ftools/Dissolve.py
  30. +133 −133 python/plugins/sextante/ftools/ExportGeometryInfo.py
  31. +74 −74 python/plugins/sextante/ftools/ExtentFromLayer.py
  32. +50 −50 python/plugins/sextante/ftools/ExtractNodes.py
  33. +82 −82 python/plugins/sextante/ftools/FToolsAlgorithmProvider.py
  34. +50 −50 python/plugins/sextante/ftools/FixedDistanceBuffer.py
  35. +198 −198 python/plugins/sextante/ftools/Intersection.py
  36. +74 −74 python/plugins/sextante/ftools/LayerFromExtent.py
  37. +100 −100 python/plugins/sextante/ftools/LinesIntersection.py
  38. +67 −67 python/plugins/sextante/ftools/LinesToPolygons.py
  39. +105 −105 python/plugins/sextante/ftools/MeanCoords.py
  40. +95 −95 python/plugins/sextante/ftools/MultipartToSingleparts.py
  41. +69 −69 python/plugins/sextante/ftools/NearestNeighbourAnalysis.py
  42. +86 −86 python/plugins/sextante/ftools/PointsInPolygon.py
  43. +68 −68 python/plugins/sextante/ftools/PolygonsToLines.py
  44. +46 −46 python/plugins/sextante/ftools/RandomSelection.py
  45. +78 −78 python/plugins/sextante/ftools/RandomSelectionWithinSubsets.py
  46. +85 −85 python/plugins/sextante/ftools/SelectByLocation.py
  47. +108 −108 python/plugins/sextante/ftools/SimplifyGeometries.py
  48. +116 −116 python/plugins/sextante/ftools/SinglePartsToMultiparts.py
  49. +90 −90 python/plugins/sextante/ftools/SumLines.py
  50. +198 −198 python/plugins/sextante/ftools/Union.py
  51. +50 −50 python/plugins/sextante/ftools/VariableDistanceBuffer.py
  52. +162 −162 python/plugins/sextante/ftools/VoronoiPolygons.py
  53. +9 −9 python/plugins/sextante/ftools/copyright.txt
  54. +11 −11 python/plugins/sextante/gdal/GdalAlgorithm.py
  55. +70 −70 python/plugins/sextante/gdal/GdalAlgorithmProvider.py
  56. +75 −75 python/plugins/sextante/gdal/GdalUtils.py
  57. +40 −40 python/plugins/sextante/gdal/information.py
  58. +44 −44 python/plugins/sextante/gdal/merge.py
  59. +38 −38 python/plugins/sextante/gdal/nearblack.py
  60. +43 −43 python/plugins/sextante/gdal/pct2rgb.py
  61. +40 −40 python/plugins/sextante/gdal/polygonize.py
  62. +40 −40 python/plugins/sextante/gdal/rgb2pct.py
  63. +50 −50 python/plugins/sextante/gdal/scripts/fillnodata.py
  64. +78 −78 python/plugins/sextante/gdal/scripts/proximity.py
  65. +47 −47 python/plugins/sextante/gdal/scripts/sieve.py
  66. +31 −31 python/plugins/sextante/gdal/translate.py
  67. +48 −48 python/plugins/sextante/gdal/warp.py
  68. +41 −41 python/plugins/sextante/grass/DefineGrassRegionAction.py
  69. +33 −33 python/plugins/sextante/grass/DefineGrassRegionFromLayerAction.py
  70. +344 −344 python/plugins/sextante/grass/GrassAlgorithm.py
  71. +101 −101 python/plugins/sextante/grass/GrassAlgorithmProvider.py
  72. +284 −284 python/plugins/sextante/grass/GrassUtils.py
  73. +9 −9 python/plugins/sextante/grass/description/i.rgb.his.txt
  74. +7 −7 python/plugins/sextante/grass/description/r.lake.layer.txt
  75. +9 −9 python/plugins/sextante/grass/description/v.distance.toattr.txt
  76. +78 −78 python/plugins/sextante/grass/grass.txt
  77. +69 −69 python/plugins/sextante/grass/nviz.py
  78. +105 −105 python/plugins/sextante/gui/AlgorithmExecutor.py
  79. +57 −57 python/plugins/sextante/gui/AutofillDialog.py
  80. +49 −49 python/plugins/sextante/gui/BatchInputSelectionPanel.py
  81. +78 −78 python/plugins/sextante/gui/BatchOutputSelectionPanel.py
  82. +204 −204 python/plugins/sextante/gui/BatchProcessingDialog.py
  83. +111 −111 python/plugins/sextante/gui/ConfigDialog.py
  84. +4 −4 python/plugins/sextante/gui/ContextAction.py
  85. +26 −26 python/plugins/sextante/gui/CrsSelectionDialog.py
  86. +34 −34 python/plugins/sextante/gui/CrsSelectionPanel.py
  87. +76 −76 python/plugins/sextante/gui/EditRenderingStylesDialog.py
  88. +141 −141 python/plugins/sextante/gui/ExtentSelectionPanel.py
  89. +35 −35 python/plugins/sextante/gui/FileSelectionPanel.py
  90. +76 −76 python/plugins/sextante/gui/FixedTableDialog.py
  91. +36 −36 python/plugins/sextante/gui/FixedTablePanel.py
  92. +35 −35 python/plugins/sextante/gui/Help2Html.py
  93. +157 −157 python/plugins/sextante/gui/HelpEditionDialog.py
  94. +92 −92 python/plugins/sextante/gui/HistoryDialog.py
  95. +28 −28 python/plugins/sextante/gui/InputLayerSelectorPanel.py
  96. +70 −70 python/plugins/sextante/gui/MultipleInputDialog.py
  97. +33 −33 python/plugins/sextante/gui/MultipleInputPanel.py
  98. +114 −114 python/plugins/sextante/gui/NumberInputDialog.py
  99. +40 −40 python/plugins/sextante/gui/NumberInputPanel.py
  100. +83 −83 python/plugins/sextante/gui/OutputSelectionPanel.py
  101. +20 −20 python/plugins/sextante/gui/ParametersDialog.py
  102. +353 −353 python/plugins/sextante/gui/ParametersPanel.py
  103. +26 −26 python/plugins/sextante/gui/RangePanel.py
  104. +80 −80 python/plugins/sextante/gui/RectangleMapTool.py
  105. +31 −31 python/plugins/sextante/gui/RenderingStyleFilePanel.py
  106. +49 −49 python/plugins/sextante/gui/RenderingStyles.py
  107. +76 −76 python/plugins/sextante/gui/ResultsDialog.py
  108. +40 −40 python/plugins/sextante/gui/SextantePostprocessing.py
  109. +229 −229 python/plugins/sextante/gui/SextanteToolbox.py
  110. +15 −15 python/plugins/sextante/gui/ToolboxAction.py
  111. +88 −88 python/plugins/sextante/gui/UnthreadedAlgorithmExecutor.py
  112. +342 −342 python/plugins/sextante/help/_sources/3rdParty.txt
  113. +99 −99 python/plugins/sextante/help/_sources/batch.txt
  114. +50 −50 python/plugins/sextante/help/_sources/history.txt
  115. +62 −62 python/plugins/sextante/help/_sources/intro.txt
  116. +283 −283 python/plugins/sextante/help/_sources/modeler.txt
  117. +75 −75 python/plugins/sextante/lidar/LidarToolsAlgorithmProvider.py
  118. +43 −43 python/plugins/sextante/lidar/fusion/CanopyMaxima.py
  119. +58 −58 python/plugins/sextante/lidar/fusion/CanopyModel.py
  120. +51 −51 python/plugins/sextante/lidar/fusion/ClipData.py
  121. +32 −32 python/plugins/sextante/lidar/fusion/CloudMetrics.py
  122. +62 −62 python/plugins/sextante/lidar/fusion/Cover.py
  123. +5 −5 python/plugins/sextante/lidar/fusion/DensityMetrics.py
  124. +47 −47 python/plugins/sextante/lidar/fusion/FilterData.py
  125. +28 −28 python/plugins/sextante/lidar/fusion/FusionAlgorithm.py
  126. +40 −40 python/plugins/sextante/lidar/fusion/FusionUtils.py
  127. +41 −41 python/plugins/sextante/lidar/fusion/GridMetrics.py
  128. +46 −46 python/plugins/sextante/lidar/fusion/GridSurfaceCreate.py
  129. +42 −42 python/plugins/sextante/lidar/fusion/GroundFilter.py
  130. +31 −31 python/plugins/sextante/lidar/fusion/MergeData.py
  131. +21 −21 python/plugins/sextante/lidar/fusion/OpenViewerAction.py
  132. +37 −37 python/plugins/sextante/lidar/lastools/LasToolsAlgorithm.py
  133. +26 −26 python/plugins/sextante/lidar/lastools/LasToolsUtils.py
  134. +34 −34 python/plugins/sextante/lidar/lastools/las2dem.py
  135. +44 −44 python/plugins/sextante/lidar/lastools/las2iso.py
  136. +28 −28 python/plugins/sextante/lidar/lastools/las2shp.py
  137. +44 −44 python/plugins/sextante/lidar/lastools/lasboundary.py
  138. +27 −27 python/plugins/sextante/lidar/lastools/lasclassify.py
  139. +32 −32 python/plugins/sextante/lidar/lastools/lasclip.py
  140. +39 −39 python/plugins/sextante/lidar/lastools/lasgrid.py
  141. +36 −36 python/plugins/sextante/lidar/lastools/lasground.py
  142. +27 −27 python/plugins/sextante/lidar/lastools/lasheight.py
  143. +33 −33 python/plugins/sextante/lidar/lastools/lasinfo.py
  144. +34 −34 python/plugins/sextante/lidar/lastools/lasprecision.py
  145. +32 −32 python/plugins/sextante/lidar/lastools/lassplit.py
  146. +17 −17 python/plugins/sextante/metadata.txt
  147. +15 −15 python/plugins/sextante/mmqgisx/copyright.txt
  148. +39 −39 python/plugins/sextante/modeler/CalculatorModelerAlgorithm.py
  149. +123 −123 python/plugins/sextante/modeler/CalculatorModelerParametersDialog.py
  150. +20 −20 python/plugins/sextante/modeler/CreateNewModelAction.py
  151. +19 −19 python/plugins/sextante/modeler/DeleteModelAction.py
  152. +16 −16 python/plugins/sextante/modeler/EditModelAction.py
  153. +525 −525 python/plugins/sextante/modeler/ModelerAlgorithm.py
  154. +52 −52 python/plugins/sextante/modeler/ModelerAlgorithmProvider.py
  155. +125 −125 python/plugins/sextante/modeler/ModelerArrowItem.py
  156. +341 −341 python/plugins/sextante/modeler/ModelerDialog.py
  157. +151 −151 python/plugins/sextante/modeler/ModelerGraphicItem.py
  158. +26 −26 python/plugins/sextante/modeler/ModelerOnlyAlgorithmProvider.py
  159. +213 −213 python/plugins/sextante/modeler/ModelerParameterDefinitionDialog.py
  160. +636 −636 python/plugins/sextante/modeler/ModelerParametersDialog.py
  161. +103 −103 python/plugins/sextante/modeler/ModelerScene.py
  162. +36 −36 python/plugins/sextante/modeler/ModelerUtils.py
  163. +2 −2 python/plugins/sextante/modeler/Providers.py
  164. +4 −4 python/plugins/sextante/modeler/WrongModelException.py
  165. +168 −168 python/plugins/sextante/otb/OTBAlgorithm.py
  166. +54 −54 python/plugins/sextante/otb/OTBAlgorithmProvider.py
  167. +72 −72 python/plugins/sextante/otb/OTBUtils.py
  168. +43 −43 python/plugins/sextante/outputs/Output.py
  169. +19 −19 python/plugins/sextante/outputs/OutputFactory.py
  170. +8 −8 python/plugins/sextante/outputs/OutputFile.py
  171. +8 −8 python/plugins/sextante/outputs/OutputHTML.py
  172. +9 −9 python/plugins/sextante/outputs/OutputNumber.py
  173. +12 −12 python/plugins/sextante/outputs/OutputRaster.py
  174. +11 −11 python/plugins/sextante/outputs/OutputTable.py
  175. +44 −44 python/plugins/sextante/outputs/OutputVector.py
  176. +33 −33 python/plugins/sextante/parameters/Parameter.py
  177. +24 −24 python/plugins/sextante/parameters/ParameterBoolean.py
  178. +30 −30 python/plugins/sextante/parameters/ParameterCrs.py
  179. +12 −12 python/plugins/sextante/parameters/ParameterDataObject.py
  180. +37 −37 python/plugins/sextante/parameters/ParameterExtent.py
  181. +25 −25 python/plugins/sextante/parameters/ParameterFactory.py
  182. +24 −24 python/plugins/sextante/parameters/ParameterFile.py
  183. +39 −39 python/plugins/sextante/parameters/ParameterFixedTable.py
  184. +126 −126 python/plugins/sextante/parameters/ParameterMultipleInput.py
  185. +59 −59 python/plugins/sextante/parameters/ParameterNumber.py
  186. +32 −32 python/plugins/sextante/parameters/ParameterRange.py
  187. +61 −61 python/plugins/sextante/parameters/ParameterRaster.py
  188. +33 −33 python/plugins/sextante/parameters/ParameterSelection.py
  189. +29 −29 python/plugins/sextante/parameters/ParameterString.py
  190. +49 −49 python/plugins/sextante/parameters/ParameterTable.py
  191. +34 −34 python/plugins/sextante/parameters/ParameterTableField.py
  192. +69 −69 python/plugins/sextante/parameters/ParameterVector.py
  193. +14 −14 python/plugins/sextante/pymorph/AlgNames.py
  194. +54 −54 python/plugins/sextante/pymorph/PymorphAlgorithm.py
  195. +42 −42 python/plugins/sextante/pymorph/PymorphAlgorithmProvider.py
  196. +65 −65 python/plugins/sextante/pymorph/algnames.txt
  197. +4 −4 python/plugins/sextante/pymorph/scripts/add4dilate.py
  198. +5 −5 python/plugins/sextante/pymorph/scripts/addm.py
  199. +1 −1 python/plugins/sextante/pymorph/scripts/areaclose.py
  200. +2 −2 python/plugins/sextante/pymorph/scripts/areaopen.py
  201. +4 −4 python/plugins/sextante/pymorph/scripts/asf.py
  202. +1 −1 python/plugins/sextante/pymorph/scripts/asfrec.py
  203. +2 −2 python/plugins/sextante/pymorph/scripts/binary.py
  204. +1 −1 python/plugins/sextante/pymorph/scripts/cbisector.py
  205. +6 −6 python/plugins/sextante/pymorph/scripts/cdilate.py
  206. +1 −1 python/plugins/sextante/pymorph/scripts/center.py
  207. +6 −6 python/plugins/sextante/pymorph/scripts/cerode.py
  208. +1 −1 python/plugins/sextante/pymorph/scripts/close.py
  209. +1 −1 python/plugins/sextante/pymorph/scripts/closeholes.py
  210. +1 −1 python/plugins/sextante/pymorph/scripts/closerec.py
  211. +1 −1 python/plugins/sextante/pymorph/scripts/closerecth.py
  212. +1 −1 python/plugins/sextante/pymorph/scripts/closeth.py
  213. +4 −4 python/plugins/sextante/pymorph/scripts/cthick.py
  214. +4 −4 python/plugins/sextante/pymorph/scripts/cthin.py
  215. +4 −4 python/plugins/sextante/pymorph/scripts/cwatershed.py
  216. +1 −1 python/plugins/sextante/pymorph/scripts/dilate.py
  217. +1 −1 python/plugins/sextante/pymorph/scripts/dist.py
  218. +1 −1 python/plugins/sextante/pymorph/scripts/erode.py
  219. +1 −1 python/plugins/sextante/pymorph/scripts/gdist.py
  220. +1 −1 python/plugins/sextante/pymorph/scripts/gradm.py
  221. +2 −2 python/plugins/sextante/pymorph/scripts/hmax.py
  222. +2 −2 python/plugins/sextante/pymorph/scripts/hmin.py
  223. +4 −4 python/plugins/sextante/pymorph/scripts/inpos.py
  224. +2 −2 python/plugins/sextante/pymorph/scripts/isolines.py
  225. +1 −1 python/plugins/sextante/pymorph/scripts/label.py
  226. +2 −2 python/plugins/sextante/pymorph/scripts/labelflat.py
  227. +1 −1 python/plugins/sextante/pymorph/scripts/lastero.py
  228. +1 −1 python/plugins/sextante/pymorph/scripts/neg.py
  229. +1 −1 python/plugins/sextante/pymorph/scripts/openrec.py
  230. +1 −1 python/plugins/sextante/pymorph/scripts/openrecth.py
  231. +1 −1 python/plugins/sextante/pymorph/scripts/openth.py
  232. +1 −1 python/plugins/sextante/pymorph/scripts/opentransf.py
  233. +1 −1 python/plugins/sextante/pymorph/scripts/patspec.py
  234. +1 −1 python/plugins/sextante/pymorph/scripts/randomcolor.py
  235. +1 −1 python/plugins/sextante/pymorph/scripts/regmax.py
  236. +1 −1 python/plugins/sextante/pymorph/scripts/regmin.py
  237. +1 −1 python/plugins/sextante/pymorph/scripts/skelm.py
  238. +1 −1 python/plugins/sextante/pymorph/scripts/skelmrec.py
  239. +1 −1 python/plugins/sextante/pymorph/scripts/skiz.py
  240. +5 −5 python/plugins/sextante/pymorph/scripts/subm.py
  241. +5 −5 python/plugins/sextante/pymorph/scripts/suprec.py
  242. +5 −5 python/plugins/sextante/pymorph/scripts/symdiff.py
  243. +2 −2 python/plugins/sextante/pymorph/scripts/thick.py
  244. +2 −2 python/plugins/sextante/pymorph/scripts/thin.py
  245. +10 −10 python/plugins/sextante/pymorph/scripts/toggle.py
  246. +1 −1 python/plugins/sextante/pymorph/scripts/watershed.py
  247. +20 −20 python/plugins/sextante/r/CreateNewRScriptAction.py
  248. +16 −16 python/plugins/sextante/r/EditRScriptAction.py
  249. +87 −87 python/plugins/sextante/r/EditRScriptDialog.py
  250. +333 −333 python/plugins/sextante/r/RAlgorithm.py
  251. +60 −60 python/plugins/sextante/r/RAlgorithmProvider.py
  252. +101 −101 python/plugins/sextante/r/RUtils.py
  253. +335 −335 python/plugins/sextante/saga/SagaAlgorithm.py
  254. +88 −88 python/plugins/sextante/saga/SagaAlgorithmProvider.py
  255. +55 −55 python/plugins/sextante/saga/SagaDescriptionCreator.py
  256. +68 −68 python/plugins/sextante/saga/SagaGroupNameDecorator.py
  257. +89 −89 python/plugins/sextante/saga/SagaUtils.py
  258. +8 −8 python/plugins/sextante/saga/description/RGBComposite.txt
  259. +19 −19 python/plugins/sextante/script/CreateNewScriptAction.py
  260. +19 −19 python/plugins/sextante/script/DeleteScriptAction.py
  261. +16 −16 python/plugins/sextante/script/EditScriptAction.py
  262. +87 −87 python/plugins/sextante/script/EditScriptDialog.py
  263. +179 −179 python/plugins/sextante/script/ScriptAlgorithm.py
  264. +55 −55 python/plugins/sextante/script/ScriptAlgorithmProvider.py
  265. +22 −22 python/plugins/sextante/script/ScriptUtils.py
  266. +4 −4 python/plugins/sextante/script/WrongScriptException.py
  267. +79 −79 python/plugins/sextanteexampleprovider/ExampleAlgorithm.py
  268. +53 −53 python/plugins/sextanteexampleprovider/ExampleAlgorithmProvider.py
  269. +21 −21 python/plugins/sextanteexampleprovider/SextanteExampleProviderPlugin.py
  270. +13 −13 python/plugins/sextanteexampleprovider/__init__.py
  271. +17 −17 python/plugins/sextanteexampleprovider/metadata.txt
@@ -1,130 +1,130 @@
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
import os, sys
import inspect
from sextante.core.Sextante import Sextante
from sextante.gui.SextanteToolbox import SextanteToolbox
from sextante.core.QGisLayers import QGisLayers
from sextante.gui.HistoryDialog import HistoryDialog
from sextante.core.SextanteUtils import SextanteUtils
from sextante.gui.ConfigDialog import ConfigDialog
from sextante.modeler.ModelerDialog import ModelerDialog
from sextante.gui.ResultsDialog import ResultsDialog
from sextante.about.AboutDialog import AboutDialog
import subprocess
cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)

class SextantePlugin:

def __init__(self, iface):
self.iface = iface
QGisLayers.setInterface(iface)
Sextante.initialize()
Sextante.setInterface(iface)

def initGui(self):
self.toolbox = SextanteToolbox(self.iface)
self.toolbox.setVisible(False)
Sextante.addAlgListListener(self.toolbox)

self.menu = QMenu(self.iface.mainWindow())
self.menu.setTitle("Analysis")

icon = QIcon(os.path.dirname(__file__) + "/images/toolbox.png")
self.toolboxAction = QAction(icon, \
"&SEXTANTE Toolbox", self.iface.mainWindow())
QObject.connect(self.toolboxAction, SIGNAL("triggered()"), self.openToolbox)
self.menu.addAction(self.toolboxAction)

icon = QIcon(os.path.dirname(__file__) + "/images/model.png")
self.modelerAction = QAction(icon, \
"&SEXTANTE Modeler", self.iface.mainWindow())
QObject.connect(self.modelerAction, SIGNAL("triggered()"), self.openModeler)
self.menu.addAction(self.modelerAction)

icon = QIcon(os.path.dirname(__file__) + "/images/history.gif")
self.historyAction = QAction(icon, \
"&SEXTANTE History and log", self.iface.mainWindow())
QObject.connect(self.historyAction, SIGNAL("triggered()"), self.openHistory)
self.menu.addAction(self.historyAction)

icon = QIcon(os.path.dirname(__file__) + "/images/config.png")
self.configAction = QAction(icon, \
"&SEXTANTE options and configuration", self.iface.mainWindow())
QObject.connect(self.configAction, SIGNAL("triggered()"), self.openConfig)
self.menu.addAction(self.configAction)

icon = QIcon(os.path.dirname(__file__) + "/images/results.png")
self.resultsAction = QAction(icon, \
"&SEXTANTE results viewer", self.iface.mainWindow())
QObject.connect(self.resultsAction, SIGNAL("triggered()"), self.openResults)
self.menu.addAction(self.resultsAction)

icon = QIcon(os.path.dirname(__file__) + "/images/help.png")
self.helpAction = QAction(icon, \
"&SEXTANTE help", self.iface.mainWindow())
QObject.connect(self.helpAction, SIGNAL("triggered()"), self.openHelp)
self.menu.addAction(self.helpAction)

icon = QIcon(os.path.dirname(__file__) + "/images/info.png")
self.aboutAction = QAction(icon, \
"&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)

def unload(self):
self.toolbox.setVisible(False)
self.menu.deleteLater()
#delete temporary output files
folder = SextanteUtils.tempFolder()
for f in os.listdir(folder):
path = os.path.join(folder,f)
try:
os.unlink(path)
except:
#leave files that could not be deleted
pass


def openToolbox(self):
self.toolbox.setVisible(True)

def openModeler(self):
dlg = ModelerDialog()
dlg.exec_()
if dlg.update:
self.toolbox.updateTree()

def openResults(self):
dlg = ResultsDialog()
dlg.exec_()

def openHistory(self):
dlg = HistoryDialog()
dlg.exec_()

def openConfig(self):
dlg = ConfigDialog(self.toolbox)
dlg.exec_()

def openAbout(self):
dlg = AboutDialog()
dlg.exec_()

def openHelp(self):
filename = os.path.dirname(__file__) + "/help/index.html"
if os.name == "nt":
os.startfile(filename)
elif sys.platform == "darwin":
subprocess.Popen(('open', filename))
else:
subprocess.call(('xdg-open', filename))

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
import os, sys
import inspect
from sextante.core.Sextante import Sextante
from sextante.gui.SextanteToolbox import SextanteToolbox
from sextante.core.QGisLayers import QGisLayers
from sextante.gui.HistoryDialog import HistoryDialog
from sextante.core.SextanteUtils import SextanteUtils
from sextante.gui.ConfigDialog import ConfigDialog
from sextante.modeler.ModelerDialog import ModelerDialog
from sextante.gui.ResultsDialog import ResultsDialog
from sextante.about.AboutDialog import AboutDialog
import subprocess

cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)

class SextantePlugin:

def __init__(self, iface):
self.iface = iface
QGisLayers.setInterface(iface)
Sextante.initialize()
Sextante.setInterface(iface)

def initGui(self):
self.toolbox = SextanteToolbox(self.iface)
self.toolbox.setVisible(False)
Sextante.addAlgListListener(self.toolbox)

self.menu = QMenu(self.iface.mainWindow())
self.menu.setTitle("Analysis")

icon = QIcon(os.path.dirname(__file__) + "/images/toolbox.png")
self.toolboxAction = QAction(icon, \
"&SEXTANTE Toolbox", self.iface.mainWindow())
QObject.connect(self.toolboxAction, SIGNAL("triggered()"), self.openToolbox)
self.menu.addAction(self.toolboxAction)

icon = QIcon(os.path.dirname(__file__) + "/images/model.png")
self.modelerAction = QAction(icon, \
"&SEXTANTE Modeler", self.iface.mainWindow())
QObject.connect(self.modelerAction, SIGNAL("triggered()"), self.openModeler)
self.menu.addAction(self.modelerAction)

icon = QIcon(os.path.dirname(__file__) + "/images/history.gif")
self.historyAction = QAction(icon, \
"&SEXTANTE History and log", self.iface.mainWindow())
QObject.connect(self.historyAction, SIGNAL("triggered()"), self.openHistory)
self.menu.addAction(self.historyAction)

icon = QIcon(os.path.dirname(__file__) + "/images/config.png")
self.configAction = QAction(icon, \
"&SEXTANTE options and configuration", self.iface.mainWindow())
QObject.connect(self.configAction, SIGNAL("triggered()"), self.openConfig)
self.menu.addAction(self.configAction)

icon = QIcon(os.path.dirname(__file__) + "/images/results.png")
self.resultsAction = QAction(icon, \
"&SEXTANTE results viewer", self.iface.mainWindow())
QObject.connect(self.resultsAction, SIGNAL("triggered()"), self.openResults)
self.menu.addAction(self.resultsAction)

icon = QIcon(os.path.dirname(__file__) + "/images/help.png")
self.helpAction = QAction(icon, \
"&SEXTANTE help", self.iface.mainWindow())
QObject.connect(self.helpAction, SIGNAL("triggered()"), self.openHelp)
self.menu.addAction(self.helpAction)

icon = QIcon(os.path.dirname(__file__) + "/images/info.png")
self.aboutAction = QAction(icon, \
"&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)

def unload(self):
self.toolbox.setVisible(False)
self.menu.deleteLater()
#delete temporary output files
folder = SextanteUtils.tempFolder()
for f in os.listdir(folder):
path = os.path.join(folder,f)
try:
os.unlink(path)
except:
#leave files that could not be deleted
pass


def openToolbox(self):
self.toolbox.setVisible(True)

def openModeler(self):
dlg = ModelerDialog()
dlg.exec_()
if dlg.update:
self.toolbox.updateTree()

def openResults(self):
dlg = ResultsDialog()
dlg.exec_()

def openHistory(self):
dlg = HistoryDialog()
dlg.exec_()

def openConfig(self):
dlg = ConfigDialog(self.toolbox)
dlg.exec_()

def openAbout(self):
dlg = AboutDialog()
dlg.exec_()

def openHelp(self):
filename = os.path.dirname(__file__) + "/help/index.html"
if os.name == "nt":
os.startfile(filename)
elif sys.platform == "darwin":
subprocess.Popen(('open', filename))
else:
subprocess.call(('xdg-open', filename))


@@ -1,13 +1,13 @@
def name():
return "SEXTANTE"
def description():
return "SEXTANTE Geoprocessing Platform for QGIS"
def version():
return "Version 1.0.7"
def icon():
return "icon.png"
def qgisMinimumVersion():
return "1.0"
def classFactory(iface):
from sextante.SextantePlugin import SextantePlugin
return SextantePlugin(iface)
def name():
return "SEXTANTE"
def description():
return "SEXTANTE Geoprocessing Platform for QGIS"
def version():
return "Version 1.0.7"
def icon():
return "icon.png"
def qgisMinimumVersion():
return "1.0"
def classFactory(iface):
from sextante.SextantePlugin import SextantePlugin
return SextantePlugin(iface)
@@ -1,37 +1,37 @@
from PyQt4 import QtCore, QtGui, QtWebKit
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import os

class AboutDialog(QtGui.QDialog):

def __init__(self):
QtGui.QDialog.__init__(self)
self.setModal(True)
self.setupUi()

def setupUi(self):
self.resize(600, 500)
self.webView = QtWebKit.QWebView()
self.setWindowTitle("About SEXTANTE")
self.verticalLayout= QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(2)
self.verticalLayout.setMargin(0)
self.verticalLayout.addWidget(self.webView)
self.closeButton = QtGui.QPushButton()
self.closeButton.setText("Close")
self.closeButton.setMaximumWidth(150)
self.horizontalLayout= QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.addStretch(1000)
self.horizontalLayout.addWidget(self.closeButton)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout.addLayout(self.horizontalLayout)
self.setLayout(self.verticalLayout)
filename = os.path.dirname(__file__) + "/about.htm"
url = QtCore.QUrl(filename)
self.webView.load(url)

def closeWindow(self):
from PyQt4 import QtCore, QtGui, QtWebKit
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import os

class AboutDialog(QtGui.QDialog):

def __init__(self):
QtGui.QDialog.__init__(self)
self.setModal(True)
self.setupUi()

def setupUi(self):
self.resize(600, 500)
self.webView = QtWebKit.QWebView()
self.setWindowTitle("About SEXTANTE")
self.verticalLayout= QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(2)
self.verticalLayout.setMargin(0)
self.verticalLayout.addWidget(self.webView)
self.closeButton = QtGui.QPushButton()
self.closeButton.setText("Close")
self.closeButton.setMaximumWidth(150)
self.horizontalLayout= QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.addStretch(1000)
self.horizontalLayout.addWidget(self.closeButton)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout.addLayout(self.horizontalLayout)
self.setLayout(self.verticalLayout)
filename = os.path.dirname(__file__) + "/about.htm"
url = QtCore.QUrl(filename)
self.webView.load(url)

def closeWindow(self):
self.close()

0 comments on commit 6edc945

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