# Path: lazylyst/CustomWidgets.py
# class HoverLineEdit(QtWidgets.QLineEdit):
#     hoverOut = QtCore.pyqtSignal()
#     
#     def __init__(self, parent=None):
#         super(HoverLineEdit, self).__init__(parent)   
#         self.changeState=False        
#         self.textChanged.connect(self.updateChangeState)
#         
#     def leaveEvent(self, ev):
#         # Only emit if the text was changed
#         if self.changeState:
#             self.hoverOut.emit()
#             self.changeState=False
#     
#     def updateChangeState(self,ev):
#         self.changeState=True


from PyQt5 import QtCore, QtGui, QtWidgets
from lazylyst.CustomWidgets import HoverLineEdit
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!


class Ui_mapProjDialog(object):
    def setupUi(self, mapProjDialog):
        mapProjDialog.setObjectName("mapProjDialog")
        mapProjDialog.resize(260, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(mapProjDialog)
        self.verticalLayout.setSpacing(1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.upperProjLayout = QtWidgets.QGridLayout()
        self.upperProjLayout.setSpacing(1)
        self.upperProjLayout.setObjectName("upperProjLayout")
        self.simpleProjComboBox = QtWidgets.QComboBox(mapProjDialog)
        self.simpleProjComboBox.setObjectName("simpleProjComboBox")
        self.upperProjLayout.addWidget(self.simpleProjComboBox, 0, 1, 1, 1)
        self.simpleProjRadio = QtWidgets.QRadioButton(mapProjDialog)
        self.simpleProjRadio.setObjectName("simpleProjRadio")
        self.upperProjLayout.addWidget(self.simpleProjRadio, 0, 0, 1, 1)
        self.customProjRadio = QtWidgets.QRadioButton(mapProjDialog)
        self.customProjRadio.setObjectName("customProjRadio")
        self.upperProjLayout.addWidget(self.customProjRadio, 1, 0, 1, 1)
        self.epsgLineEdit = HoverLineEdit(mapProjDialog)
        self.epsgLineEdit.setObjectName("epsgLineEdit")
        self.upperProjLayout.addWidget(self.epsgLineEdit, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.upperProjLayout)
        self.lowerProjLayout = QtWidgets.QHBoxLayout()

# Path: lazylyst/CustomWidgets.py
# class HoverLineEdit(QtWidgets.QLineEdit):
#     hoverOut = QtCore.pyqtSignal()
#     
#     def __init__(self, parent=None):
#         super(HoverLineEdit, self).__init__(parent)   
#         self.changeState=False        
#         self.textChanged.connect(self.updateChangeState)
#         
#     def leaveEvent(self, ev):
#         # Only emit if the text was changed
#         if self.changeState:
#             self.hoverOut.emit()
#             self.changeState=False
#     
#     def updateChangeState(self,ev):
#         self.changeState=True


# Path: lazylyst/UI/MapProj.py
from PyQt5 import QtCore, QtGui, QtWidgets
from lazylyst.CustomWidgets import HoverLineEdit

#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!


class Ui_mapProjDialog(object):
    def setupUi(self, mapProjDialog):
        mapProjDialog.setObjectName("mapProjDialog")
        mapProjDialog.resize(260, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(mapProjDialog)
        self.verticalLayout.setSpacing(1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.upperProjLayout = QtWidgets.QGridLayout()
        self.upperProjLayout.setSpacing(1)
        self.upperProjLayout.setObjectName("upperProjLayout")
        self.simpleProjComboBox = QtWidgets.QComboBox(mapProjDialog)
        self.simpleProjComboBox.setObjectName("simpleProjComboBox")
        self.upperProjLayout.addWidget(self.simpleProjComboBox, 0, 1, 1, 1)
        self.simpleProjRadio = QtWidgets.QRadioButton(mapProjDialog)
        self.simpleProjRadio.setObjectName("simpleProjRadio")
        self.upperProjLayout.addWidget(self.simpleProjRadio, 0, 0, 1, 1)
        self.customProjRadio = QtWidgets.QRadioButton(mapProjDialog)
        self.customProjRadio.setObjectName("customProjRadio")
        self.upperProjLayout.addWidget(self.customProjRadio, 1, 0, 1, 1)
        self.epsgLineEdit = HoverLineEdit(mapProjDialog)
        self.epsgLineEdit.setObjectName("epsgLineEdit")
        self.upperProjLayout.addWidget(self.epsgLineEdit, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.upperProjLayout)
        self.lowerProjLayout = QtWidgets.QHBoxLayout()

        self.lowerProjLayout.setSpacing(1)