# 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_calcolodanno import Ui_FloodRisk
from xml.dom import minidom
from xml.dom.minidom import Document
from tableViewer_gui import TableViewer
    from pylab import *
    from osgeo import ogr
from help import show_context_help
            from graficofloodriskdialog import graficofloodriskDialog
import CalcoloDannoInondazione
import os.path
import sys
import os
import sqlite3
import csv
import locale
    import ogr
                import matplotlib
        self.pushButton.setIconSize(QSize(25,25))
        self.buttonGrafici.setIcon(QIcon(":/plugins/floodrisk/icons/images.jpg"))
        self.buttonGrafici.setIconSize(QSize(35,25))
        self.label_red_danno.setPixmap(QPixmap(":/plugins/floodrisk/icons/red20.png"))
        self.label_red_vuln.setPixmap(QPixmap(":/plugins/floodrisk/icons/red20.png"))
        self.label_green_danno.setPixmap(QPixmap(":/plugins/floodrisk/icons/green20.png"))
        self.label_green_vuln.setPixmap(QPixmap(":/plugins/floodrisk/icons/green20.png"))

        # initialize actions
        QObject.connect(self.btnChooseShellFile_3, SIGNAL("clicked()"), self.setFileMaxH)
        QObject.connect(self.buttonGrafici, SIGNAL("clicked()"), self.graficoCurve)
        QObject.connect(self.pushButtonView, SIGNAL("clicked()"), self.VediTabellaDanni)
        QObject.connect(self.toolButtonEsegui, SIGNAL("clicked()"), self.EseguiCalcoloDanni)
        QObject.connect(self.pushButtonSalvaProgetto, SIGNAL("clicked()"), self.writexml)
        QObject.connect(self.pushButtonLoadLayer, SIGNAL("clicked()"), self.CaricaLayers)
        QObject.connect(self.pushButton, SIGNAL("clicked()"), self.istogrammi)

        self.dic_TypeId={}
        self.CurveType=''
        self.TotalDamage=0.0
        #self.sep=set_csv_separator()

        # 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: calcolodanno/calcolodannodialog.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtCore, QtGui
from qgis.core import *
from ui_calcolodanno import Ui_FloodRisk
from xml.dom import minidom
from xml.dom.minidom import Document
from tableViewer_gui import TableViewer
    from pylab import *
    from osgeo import ogr
from help import show_context_help
            from graficofloodriskdialog import graficofloodriskDialog
import CalcoloDannoInondazione
import os.path
import sys
import os
import sqlite3
import csv
import locale
    import ogr
                import matplotlib

        self.pushButton.setIconSize(QSize(25,25))
        self.buttonGrafici.setIcon(QIcon(":/plugins/floodrisk/icons/images.jpg"))
        self.buttonGrafici.setIconSize(QSize(35,25))
        self.label_red_danno.setPixmap(QPixmap(":/plugins/floodrisk/icons/red20.png"))
        self.label_red_vuln.setPixmap(QPixmap(":/plugins/floodrisk/icons/red20.png"))
        self.label_green_danno.setPixmap(QPixmap(":/plugins/floodrisk/icons/green20.png"))
        self.label_green_vuln.setPixmap(QPixmap(":/plugins/floodrisk/icons/green20.png"))

        # initialize actions
        QObject.connect(self.btnChooseShellFile_3, SIGNAL("clicked()"), self.setFileMaxH)
        QObject.connect(self.buttonGrafici, SIGNAL("clicked()"), self.graficoCurve)
        QObject.connect(self.pushButtonView, SIGNAL("clicked()"), self.VediTabellaDanni)
        QObject.connect(self.toolButtonEsegui, SIGNAL("clicked()"), self.EseguiCalcoloDanni)
        QObject.connect(self.pushButtonSalvaProgetto, SIGNAL("clicked()"), self.writexml)
        QObject.connect(self.pushButtonLoadLayer, SIGNAL("clicked()"), self.CaricaLayers)
        QObject.connect(self.pushButton, SIGNAL("clicked()"), self.istogrammi)

        self.dic_TypeId={}
        self.CurveType=''
        self.TotalDamage=0.0
        #self.sep=set_csv_separator()

        # 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='include3')