Skip to content

Commit e4554d5

Browse files
author
volayaf
committedMar 17, 2012
Severql bug fixes qnd smqll improvements in qgis bindings
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@43 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 1865097 commit e4554d5

Some content is hidden

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

42 files changed

+574
-300
lines changed
 

‎.pydevproject

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<?eclipse-pydev version="1.0"?>
33

44
<pydev_project>
5-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
5+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
6+
<path>/sextante/src</path>
7+
</pydev_pathproperty>
68
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
9+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
710
</pydev_project>

‎src/sextante/SextantePlugin.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from sextante.gui.ConfigDialog import ConfigDialog
1414
from sextante.modeler.ModelerDialog import ModelerDialog
1515
from sextante.gui.ResultsDialog import ResultsDialog
16+
from sextante.about.AboutDialog import AboutDialog
17+
import subprocess
1618

1719
cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
1820
if cmd_folder not in sys.path:
@@ -63,6 +65,20 @@ def initGui(self):
6365
QObject.connect(self.resultsAction, SIGNAL("triggered()"), self.openResults)
6466
self.menu.addAction(self.resultsAction)
6567

68+
icon = QIcon(os.path.dirname(__file__) + "/images/help.png")
69+
self.helpAction = QAction(icon, \
70+
"&SEXTANTE help", self.iface.mainWindow())
71+
QObject.connect(self.helpAction, SIGNAL("triggered()"), self.openHelp)
72+
self.menu.addAction(self.helpAction)
73+
74+
icon = QIcon(os.path.dirname(__file__) + "/images/info.png")
75+
self.aboutAction = QAction(icon, \
76+
"&About SEXTANTE", self.iface.mainWindow())
77+
QObject.connect(self.aboutAction, SIGNAL("triggered()"), self.openAbout)
78+
self.menu.addAction(self.aboutAction)
79+
80+
81+
6682

6783
menuBar = self.iface.mainWindow().menuBar()
6884
menuBar.insertMenu(menuBar.actions()[-1], self.menu)
@@ -102,4 +118,15 @@ def openConfig(self):
102118
dlg = ConfigDialog(self.toolbox)
103119
dlg.exec_()
104120

121+
def openAbout(self):
122+
dlg = AboutDialog()
123+
dlg.exec_()
124+
125+
def openHelp(self):
126+
filename = os.path.dirname(__file__) + "/manual.pdf"
127+
if os.name == "nt":
128+
os.startfile(filename)
129+
else:
130+
subprocess.call(('xdg-open', filename))
131+
105132

0 commit comments

Comments
 (0)
Please sign in to comment.