# Path: asammdf/gui/ui/resource_rc.py
# def qInitResources():
# def qCleanupResources():
# 
# Path: asammdf/gui/widgets/channel_info.py
# class ChannelInfoWidget(Ui_ChannelInfo, QtWidgets.QWidget):
#     def __init__(self, channel, *args, **kwargs):
#         super().__init__(*args, **kwargs)
#         self.setupUi(self)
# 
#         self.channel_label.setText(channel.metadata())
# 
#         if channel.conversion:
#             self.conversion_label.setText(channel.conversion.metadata())
# 
#         if channel.source:
#             self.source_label.setText(channel.source.metadata())


from PyQt5 import QtCore, QtGui, QtWidgets
from ..ui import resource_rc as resource_rc
from ..widgets.channel_info import ChannelInfoWidget
# -*- coding: utf-8 -*-



class ChannelInfoDialog(QtWidgets.QDialog):
    def __init__(self, channel, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.setWindowFlags(QtCore.Qt.Window)

        layout = QtWidgets.QVBoxLayout()
        self.setLayout(layout)

        self.setWindowTitle(channel.name)


# Path: asammdf/gui/ui/resource_rc.py
# def qInitResources():
# def qCleanupResources():
# 
# Path: asammdf/gui/widgets/channel_info.py
# class ChannelInfoWidget(Ui_ChannelInfo, QtWidgets.QWidget):
#     def __init__(self, channel, *args, **kwargs):
#         super().__init__(*args, **kwargs)
#         self.setupUi(self)
# 
#         self.channel_label.setText(channel.metadata())
# 
#         if channel.conversion:
#             self.conversion_label.setText(channel.conversion.metadata())
# 
#         if channel.source:
#             self.source_label.setText(channel.source.metadata())


# Path: asammdf/gui/dialogs/channel_info.py
from PyQt5 import QtCore, QtGui, QtWidgets
from ..ui import resource_rc as resource_rc
from ..widgets.channel_info import ChannelInfoWidget

# -*- coding: utf-8 -*-



class ChannelInfoDialog(QtWidgets.QDialog):
    def __init__(self, channel, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.setWindowFlags(QtCore.Qt.Window)

        layout = QtWidgets.QVBoxLayout()
        self.setLayout(layout)

        self.setWindowTitle(channel.name)


        layout.addWidget(ChannelInfoWidget(channel, self))