# Path: qad_msg.py
# class QadMsgClass():
#    def __init__(self):
#    def translate(self, context, sourceText, disambiguation = None, encoding = QCoreApplication.UnicodeUTF8, n = -1):
# def qadShowPluginHelp(section = "", filename = "index", packageName = None):


from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_entity import *
from qad_variables import *
from qad_msg import QadMsg
 ***************************************************************************/
"""


# Import the PyQt and QGIS libraries




#===============================================================================
# QadCursorTypeEnum class.
#===============================================================================
class QadCursorTypeEnum():
   NONE     = 0   # nessun cursore
   BOX      = 1   # un quadratino usato per selezionare entità
   CROSS    = 2   # una croce usata per selezionare un punto
   APERTURE = 4   # un quadratino usato per selezionare i punti di snap


#===============================================================================
# createCursorRubberBand
#===============================================================================
# Classe che gestisce rubber band per disegnare il cursore a croce e il quadratino di pickbox
class QadCursorRubberBand():
   def __init__(self, mapCanvas, cursorType):
      self.mapCanvas = mapCanvas
      self.cursorType = cursorType
      
      if cursorType & QadCursorTypeEnum.BOX:
         self.__boxRubberBand = QgsRubberBand(mapCanvas, QGis.Line)

# Path: qad_msg.py
# class QadMsgClass():
#    def __init__(self):
#    def translate(self, context, sourceText, disambiguation = None, encoding = QCoreApplication.UnicodeUTF8, n = -1):
# def qadShowPluginHelp(section = "", filename = "index", packageName = None):


# Path: qad_rubberband.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_entity import *
from qad_variables import *
from qad_msg import QadMsg

 ***************************************************************************/
"""


# Import the PyQt and QGIS libraries




#===============================================================================
# QadCursorTypeEnum class.
#===============================================================================
class QadCursorTypeEnum():
   NONE     = 0   # nessun cursore
   BOX      = 1   # un quadratino usato per selezionare entità
   CROSS    = 2   # una croce usata per selezionare un punto
   APERTURE = 4   # un quadratino usato per selezionare i punti di snap


#===============================================================================
# createCursorRubberBand
#===============================================================================
# Classe che gestisce rubber band per disegnare il cursore a croce e il quadratino di pickbox
class QadCursorRubberBand():
   def __init__(self, mapCanvas, cursorType):
      self.mapCanvas = mapCanvas
      self.cursorType = cursorType
      
      if cursorType & QadCursorTypeEnum.BOX:
         self.__boxRubberBand = QgsRubberBand(mapCanvas, QGis.Line)

         self.__boxRubberBand.setColor(QColor(QadVariables.get(QadMsg.translate("Environment variables", "PICKBOXCOLOR"))))