# Path: pcloudpy/gui/components/customWidgets.py
# class LineEdit(QLineEdit):
# class SpinBox(QSpinBox):
# class DoubleSpinBox(QDoubleSpinBox):
# class CheckBox(QCheckBox):
# class Extent(QWidget):
#      def __init__(self, parent=None):
#     def __init__(self, parent=None):
#     def set_values(self, vmin, vmax, step, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def set_values(self, vmin, vmax, step, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def set_values(self, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def get_extent(self):


import markdown2
from PyQt5.QtCore import  *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import pyqtSignal as Signal
from pcloudpy.gui.components import customWidgets
        def init_apply(self, text):
            grid = QGridLayout()

            self.apply_button = QPushButton("Apply")
            self.apply_button.setObjectName("apply")
            self.apply_button.setFixedSize(60,60)
            grid.addWidget(self.apply_button, 0, 0)

            html = markdown2.markdown(str(text))
            textEdit = QTextEdit(html)
            textEdit.setMinimumWidth(350)
            textEdit.setMinimumHeight(350)
            textEdit.setReadOnly(True)
            grid.addWidget(textEdit,1, 0, 1, 5)

            self.setLayout(grid)


        def init_params(self, parms, text):
            self.parms = dict(parms)

            grid = QGridLayout()
            index = 0
            for (k,v) in parms.items():

                if v['type'] == "Extent":
                    item = customWidgets.Extent()
                    item.setObjectName(k)
                    grid.addWidget(item, index, 0, 1, 1)
                else:

# Path: pcloudpy/gui/components/customWidgets.py
# class LineEdit(QLineEdit):
# class SpinBox(QSpinBox):
# class DoubleSpinBox(QDoubleSpinBox):
# class CheckBox(QCheckBox):
# class Extent(QWidget):
#      def __init__(self, parent=None):
#     def __init__(self, parent=None):
#     def set_values(self, vmin, vmax, step, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def set_values(self, vmin, vmax, step, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def set_values(self, value):
#     def get_values(self):
#     def __init__(self, parent=None):
#     def get_extent(self):


# Path: pcloudpy/gui/components/widgetGenerator.py
import markdown2
from PyQt5.QtCore import  *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import pyqtSignal as Signal
from pcloudpy.gui.components import customWidgets

        def init_apply(self, text):
            grid = QGridLayout()

            self.apply_button = QPushButton("Apply")
            self.apply_button.setObjectName("apply")
            self.apply_button.setFixedSize(60,60)
            grid.addWidget(self.apply_button, 0, 0)

            html = markdown2.markdown(str(text))
            textEdit = QTextEdit(html)
            textEdit.setMinimumWidth(350)
            textEdit.setMinimumHeight(350)
            textEdit.setReadOnly(True)
            grid.addWidget(textEdit,1, 0, 1, 5)

            self.setLayout(grid)


        def init_params(self, parms, text):
            self.parms = dict(parms)

            grid = QGridLayout()
            index = 0
            for (k,v) in parms.items():

                if v['type'] == "Extent":
                    item = customWidgets.Extent()
                    item.setObjectName(k)
                    grid.addWidget(item, index, 0, 1, 1)
                else:

                    item = getattr(customWidgets, v['type'])()