# Path: help.py
# def show_context_help(context=None):
#     """Show help using the user's web browser.
# 
#     :type context: str
#     :param context: Page name (without path) of a document in the
#        user-docs subdirectory. e.g. 'keywords'
#     """
# 
#     try:
#         _show_local_help(context)
#     except HelpFileMissingError:
#         _show_online_help(context)


from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtCore, QtGui
from qgis.core import *
from ui_creaprogetto import Ui_FloodRisk
from xml.dom import minidom
from xml.dom.minidom import Document
from help import show_context_help
    from osgeo import ogr
import os.path
import os, shutil, subprocess
import string
import sys
    import ogr
            self.FilePath2=ListaFilesRecenti[1]
            self.file2_action = QAction(QIcon(":/plugins/floodrisk/icon.png"), self.FilePath2, self.iface.mainWindow())
            QObject.connect(self.file2_action, SIGNAL("triggered()"), self.caricaProgetto2)
        if len(ListaFilesRecenti)>2:
            self.FilePath3=ListaFilesRecenti[2]
            self.file3_action = QAction(QIcon(":/plugins/floodrisk/icon.png"), self.FilePath3, self.iface.mainWindow())
            QObject.connect(self.file3_action, SIGNAL("triggered()"), self.caricaProgetto3)

        # initialize actions
        QObject.connect(self.btnChooseShellFile_1, SIGNAL("clicked()"), self.setToolsFile)
        #QObject.connect(self.btnChooseShellFile_2, SIGNAL("clicked()"), self.setFileGDB)
        QObject.connect(self.btnChooseShellFile_2, SIGNAL("clicked()"), self.contextMenuEvent)
        QObject.connect(self.btnChooseShellFile_3, SIGNAL("clicked()"), self.setFileMaxH)
        QObject.connect(self.btnChooseShellFile_velocita, SIGNAL("clicked()"), self.setFileMaxV)
        QObject.connect(self.btnChooseShellFile_tempi, SIGNAL("clicked()"), self.setFileTime)
        QObject.connect(self.pushButtonSalvaProgetto, SIGNAL("clicked()"), self.writexml)
        QObject.connect(self.pushButtonLoadLayer, SIGNAL("clicked()"), self.CaricaLayers)
        self.comboBox.activated.connect(self.changeProgettoRecente)
        self.comboBox_3.currentIndexChanged.connect(self.selectComboVelocitaAcqua)
        self.comboBox_4.currentIndexChanged.connect(self.selectComboTempiAvviso)

        # help
        QObject.connect(self.buttonBox, SIGNAL(_fromUtf8("helpRequested()")), self.show_help)

        QObject.connect(self.pushButtonSalvaProgettoAs, SIGNAL("clicked()"), self.writexmlas)

    #----------- Actions -----------------------

    def show_help(self):
        """Load the help text into the system browser."""

# Path: help.py
# def show_context_help(context=None):
#     """Show help using the user's web browser.
# 
#     :type context: str
#     :param context: Page name (without path) of a document in the
#        user-docs subdirectory. e.g. 'keywords'
#     """
# 
#     try:
#         _show_local_help(context)
#     except HelpFileMissingError:
#         _show_online_help(context)


# Path: creaprogetto/creaprogettodialog.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtCore, QtGui
from qgis.core import *
from ui_creaprogetto import Ui_FloodRisk
from xml.dom import minidom
from xml.dom.minidom import Document
from help import show_context_help
    from osgeo import ogr
import os.path
import os, shutil, subprocess
import string
import sys
    import ogr

            self.FilePath2=ListaFilesRecenti[1]
            self.file2_action = QAction(QIcon(":/plugins/floodrisk/icon.png"), self.FilePath2, self.iface.mainWindow())
            QObject.connect(self.file2_action, SIGNAL("triggered()"), self.caricaProgetto2)
        if len(ListaFilesRecenti)>2:
            self.FilePath3=ListaFilesRecenti[2]
            self.file3_action = QAction(QIcon(":/plugins/floodrisk/icon.png"), self.FilePath3, self.iface.mainWindow())
            QObject.connect(self.file3_action, SIGNAL("triggered()"), self.caricaProgetto3)

        # initialize actions
        QObject.connect(self.btnChooseShellFile_1, SIGNAL("clicked()"), self.setToolsFile)
        #QObject.connect(self.btnChooseShellFile_2, SIGNAL("clicked()"), self.setFileGDB)
        QObject.connect(self.btnChooseShellFile_2, SIGNAL("clicked()"), self.contextMenuEvent)
        QObject.connect(self.btnChooseShellFile_3, SIGNAL("clicked()"), self.setFileMaxH)
        QObject.connect(self.btnChooseShellFile_velocita, SIGNAL("clicked()"), self.setFileMaxV)
        QObject.connect(self.btnChooseShellFile_tempi, SIGNAL("clicked()"), self.setFileTime)
        QObject.connect(self.pushButtonSalvaProgetto, SIGNAL("clicked()"), self.writexml)
        QObject.connect(self.pushButtonLoadLayer, SIGNAL("clicked()"), self.CaricaLayers)
        self.comboBox.activated.connect(self.changeProgettoRecente)
        self.comboBox_3.currentIndexChanged.connect(self.selectComboVelocitaAcqua)
        self.comboBox_4.currentIndexChanged.connect(self.selectComboTempiAvviso)

        # help
        QObject.connect(self.buttonBox, SIGNAL(_fromUtf8("helpRequested()")), self.show_help)

        QObject.connect(self.pushButtonSalvaProgettoAs, SIGNAL("clicked()"), self.writexmlas)

    #----------- Actions -----------------------

    def show_help(self):
        """Load the help text into the system browser."""

        show_context_help(context='include1')