# Path: pytripgui/view/qt_view_adapter.py
# class PushButton:
#     def __init__(self, push_button):
#         self._ui = push_button
# 
#     def emit_on_click(self, callback):
#         self._ui.clicked.connect(callback)
# 
# class Label:
#     def __init__(self, label):
#         self._ui = label
# 
#     @property
#     def text(self):
#         return self._ui.text()
# 
#     @text.setter
#     def text(self, text):
#         self._ui.setText(str(text))
# 
# Path: pytripgui/view/qt_gui.py
# class AddVOIsDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(AddVOIsDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'add_vois.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint)


from pytripgui.view.qt_view_adapter import PushButton, Label
from pytripgui.view.qt_gui import AddVOIsDialog
import logging


logger = logging.getLogger(__name__)


class AddVOIsQtView:
    """
    """
    def __init__(self, parent=None):
        self.ui = AddVOIsDialog(parent)
        self.name = Label(self.ui.name_label)
        self.width = Label(self.ui.width_label)
        self.height = Label(self.ui.height_label)
        self.depth = Label(self.ui.depth_label)
        self.pixel_size = Label(self.ui.pixelSize_label)
        self.pixel_number_x = Label(self.ui.pixelNumberX_label)
        self.pixel_number_y = Label(self.ui.pixelNumberY_label)
        self.slice_number = Label(self.ui.sliceNumber_label)
        self.slice_distance = Label(self.ui.sliceDistance_label)

# Path: pytripgui/view/qt_view_adapter.py
# class PushButton:
#     def __init__(self, push_button):
#         self._ui = push_button
# 
#     def emit_on_click(self, callback):
#         self._ui.clicked.connect(callback)
# 
# class Label:
#     def __init__(self, label):
#         self._ui = label
# 
#     @property
#     def text(self):
#         return self._ui.text()
# 
#     @text.setter
#     def text(self, text):
#         self._ui.setText(str(text))
# 
# Path: pytripgui/view/qt_gui.py
# class AddVOIsDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(AddVOIsDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'add_vois.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint)


# Path: pytripgui/add_vois_vc/add_vois_view.py
from pytripgui.view.qt_view_adapter import PushButton, Label
from pytripgui.view.qt_gui import AddVOIsDialog
import logging



logger = logging.getLogger(__name__)


class AddVOIsQtView:
    """
    """
    def __init__(self, parent=None):
        self.ui = AddVOIsDialog(parent)
        self.name = Label(self.ui.name_label)
        self.width = Label(self.ui.width_label)
        self.height = Label(self.ui.height_label)
        self.depth = Label(self.ui.depth_label)
        self.pixel_size = Label(self.ui.pixelSize_label)
        self.pixel_number_x = Label(self.ui.pixelNumberX_label)
        self.pixel_number_y = Label(self.ui.pixelNumberY_label)
        self.slice_number = Label(self.ui.sliceNumber_label)
        self.slice_distance = Label(self.ui.sliceDistance_label)

        self.x_offset = Label(self.ui.xOffset_label)