# 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.QtGui import QImage
from PyQt4 import QtCore, QtGui
from qgis.core import *
from ui_caricadati import Ui_FloodRisk
from qgis.gui import QgsGenericProjectionSelector
from pyspatialite import dbapi2 as db
from time import sleep
from help import show_context_help
from csv_service import CsvFileCheck
import CreaGeodatabase
import CaricaGeodatiFloodRisk
import CaricaCurve
import sys
import os
        import locale
        QObject.connect(self.btnChooseShellFile_6, SIGNAL("clicked()"), self.setBeniAreali)
        QObject.connect(self.btnChooseShellFile_7, SIGNAL("clicked()"), self.setBeniLineari)
        QObject.connect(self.btnChooseShellFile_8, SIGNAL("clicked()"), self.caricaGeoDati)
        self.checkBox.stateChanged.connect(self.setCheckAreaStud)
        self.checkBox_2.stateChanged.connect(self.setCheckCensimento)
        self.checkBox_3.stateChanged.connect(self.setCheckBA)
        self.checkBox_4.stateChanged.connect(self.setCheckBL)
        self.checkBox_All.stateChanged.connect(self.setCheckAll)
        #Csv
        QObject.connect(self.btnChooseShellFile_16, SIGNAL("clicked()"), self.setFatalityR)
        QObject.connect(self.btnChooseShellFile_17, SIGNAL("clicked()"), self.setFloodS)
        QObject.connect(self.btnChooseShellFile_21, SIGNAL("clicked()"), self.setTipoV)
        QObject.connect(self.btnChooseShellFile_18, SIGNAL("clicked()"), self.setVulnerabilita)
        QObject.connect(self.btnChooseShellFile_22, SIGNAL("clicked()"), self.setTipoCategoriaBeni)
        self.checkBox_9.stateChanged.connect(self.setCheckFatalityR)
        self.checkBox_10.stateChanged.connect(self.setCheckFloodS)
        self.checkBox_12.stateChanged.connect(self.setCheckTipoV)
        self.checkBox_11.stateChanged.connect(self.setCheckTipoVulnerabilita)
        self.checkBox_13.stateChanged.connect(self.setCheckTipoCategoriaBeni)
        self.checkBox_All_3.stateChanged.connect(self.setCheckAllCsv)
        QObject.connect(self.btnChooseShellFile_20, SIGNAL("clicked()"), self.caricaCurve)

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


    #------------- 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: caricadati/caricadatidialog.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtGui import QImage
from PyQt4 import QtCore, QtGui
from qgis.core import *
from ui_caricadati import Ui_FloodRisk
from qgis.gui import QgsGenericProjectionSelector
from pyspatialite import dbapi2 as db
from time import sleep
from help import show_context_help
from csv_service import CsvFileCheck
import CreaGeodatabase
import CaricaGeodatiFloodRisk
import CaricaCurve
import sys
import os
        import locale

        QObject.connect(self.btnChooseShellFile_6, SIGNAL("clicked()"), self.setBeniAreali)
        QObject.connect(self.btnChooseShellFile_7, SIGNAL("clicked()"), self.setBeniLineari)
        QObject.connect(self.btnChooseShellFile_8, SIGNAL("clicked()"), self.caricaGeoDati)
        self.checkBox.stateChanged.connect(self.setCheckAreaStud)
        self.checkBox_2.stateChanged.connect(self.setCheckCensimento)
        self.checkBox_3.stateChanged.connect(self.setCheckBA)
        self.checkBox_4.stateChanged.connect(self.setCheckBL)
        self.checkBox_All.stateChanged.connect(self.setCheckAll)
        #Csv
        QObject.connect(self.btnChooseShellFile_16, SIGNAL("clicked()"), self.setFatalityR)
        QObject.connect(self.btnChooseShellFile_17, SIGNAL("clicked()"), self.setFloodS)
        QObject.connect(self.btnChooseShellFile_21, SIGNAL("clicked()"), self.setTipoV)
        QObject.connect(self.btnChooseShellFile_18, SIGNAL("clicked()"), self.setVulnerabilita)
        QObject.connect(self.btnChooseShellFile_22, SIGNAL("clicked()"), self.setTipoCategoriaBeni)
        self.checkBox_9.stateChanged.connect(self.setCheckFatalityR)
        self.checkBox_10.stateChanged.connect(self.setCheckFloodS)
        self.checkBox_12.stateChanged.connect(self.setCheckTipoV)
        self.checkBox_11.stateChanged.connect(self.setCheckTipoVulnerabilita)
        self.checkBox_13.stateChanged.connect(self.setCheckTipoCategoriaBeni)
        self.checkBox_All_3.stateChanged.connect(self.setCheckAllCsv)
        QObject.connect(self.btnChooseShellFile_20, SIGNAL("clicked()"), self.caricaCurve)

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


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

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

        show_context_help(context='include2')