def __init__(self, obj_mng: ObjectManager, tpl_mng: TemplateManager, sgn_mng: SignageManager, mtm_mng: MultimediaManager, chn_mng: ChannelManager): super().__init__() self._obj_mng = obj_mng self._tpl_mng = tpl_mng self._sgn_mng = sgn_mng self._mtm_mng = mtm_mng self._chn_mng = chn_mng self._multimedia_list = QTreeWidget() self._res = ResourceManager() def template_change_handler(change_type: utils.ChangeType, tpl_text: str = ''): get_selected = self._multimedia_list.selectedItems() if get_selected: item = get_selected[0] if change_type == utils.ChangeType.DELETE: parent = item.parent() parent.removeChild(item) self._template_widget = TemplateWidget(self._tpl_mng, template_change_handler) self.init_ui()
def __init__(self): super().__init__() self._ledit_duration = QLineEdit() self._cbox_type = QComboBox() self._res = ResourceManager() self.init_ui()
def __init__(self, obj_mng: ObjectManager, mtm_mng: MultimediaManager): super().__init__() self._vbox_data = QVBoxLayout() self._component_widgets = dict() # id -> ComponentWidget self._tview_detail = QTextBrowser() self._obj_mng = obj_mng self._mtm_mng = mtm_mng self._res = ResourceManager() self.init_ui()
def __init__(self, mtm_mng: MultimediaManager, value_change_handler: Callable[[utils.ChangeType, str], None]): super().__init__() self._ledit_name = QLineEdit() self._mtm_mng = mtm_mng self._mtm = None self._value_change_handler = value_change_handler self._res = ResourceManager() self.init_ui()
def __init__(self, obj_mng: ObjectManager, tpl_mng: TemplateManager, sgn_mng: SignageManager, mtm_mng: MultimediaManager, chn_mng: ChannelManager): super().__init__() self._obj_mng = obj_mng self._tpl_mng = tpl_mng self._sgn_mng = sgn_mng self._mtm_mng = mtm_mng self._chn_mng = chn_mng self._res = ResourceManager() self.init_ui()
def __init__(self, tpl_mng: TemplateManager, obj_mng: ObjectManager, mtm_mng: MultimediaManager, value_change_handler: Callable[[utils.ChangeType, str], None]): super().__init__() self._tpl_mng = tpl_mng self._obj_mng = obj_mng self._mtm_mng = mtm_mng self._frame = None self._value_change_handler = value_change_handler self._cbox_tpl = QComboBox() self._tab_data = FrameDataTab(obj_mng, mtm_mng) self._res = ResourceManager() self.init_ui()
def __init__(self, tpl_mng: TemplateManager, value_change_handler: Callable[[utils.ChangeType, str], None]): super().__init__() self._ledit_id = QLineEdit() self._ledit_name = QLineEdit() self._ledit_author = QLineEdit() self._ledit_homepage = QLineEdit() self._ptedit_descript = QPlainTextEdit() self._tpl_mng = tpl_mng self._tpl = None self._value_change_handler = value_change_handler self._res = ResourceManager() self.init_ui()
def __init__(self): super().__init__() self._res = ResourceManager() self._cbox_type = QComboBox() self._check_day = list() days = self._res['days'].split(', ') for day in days: self._check_day.append(QCheckBox(day)) self._time_from = QTimeEdit() self._time_to = QTimeEdit() self.init_ui()
def __init__(self, obj_mng: ObjectManager, tpl_mng: TemplateManager, sgn_mng: SignageManager, mtm_mng: MultimediaManager, chn_mng: ChannelManager): super().__init__() self._obj_mng = obj_mng self._tpl_mng = tpl_mng self._sgn_mng = sgn_mng self._mtm_mng = mtm_mng self._chn_mng = chn_mng self._data_list = QTreeWidget() self._res = ResourceManager() self._stacked_widget = QStackedWidget() self._widget_idx = dict() self.init_ui()
def __init__(self, obj_mng: ObjectManager, mtm_mng: MultimediaManager, value_change_handler: Callable[[utils.ChangeType, str], None]): super().__init__() self._data = None self._obj_mng = obj_mng self._mtm_mng = mtm_mng self._ledit_id = QLineEdit() self._vbox_data = QVBoxLayout() self._component_widgets = dict() # id -> ComponentWidget self._tview_detail = QTextBrowser() self._value_change_handler = value_change_handler self._res = ResourceManager() self.init_ui()
def __init__(self, root_path: Path): super().__init__() self._root_path = root_path.resolve() self._mtm_mng = MultimediaManager(root_path / 'media') self._obj_mng = ObjectManager(self._root_path / 'data', self._mtm_mng) self._tpl_mng = TemplateManager(self._root_path / 'template', self._obj_mng) self._sgn_mng = SignageManager(self._root_path / 'signage', self._obj_mng, self._tpl_mng) self._chn_mng = ChannelManager(self._root_path / 'channel', self._sgn_mng) self._mtm_mng.bind_managers(self._sgn_mng, self._obj_mng) self._obj_mng.bind_managers(self._tpl_mng, self._sgn_mng) self._tpl_mng.bind_managers(self._sgn_mng) self._sgn_mng.bind_managers(self._chn_mng) self._res = ResourceManager() self.init_ui()
def __init__(self, tpl_mng: TemplateManager, obj_mng: ObjectManager, mtm_mng: MultimediaManager, value_change_handler: Callable[[utils.ChangeType, str], None]): super().__init__() self._tpl_mng = tpl_mng self._obj_mng = obj_mng self._mtm_mng = mtm_mng self._cbox_tpl = QComboBox() self._tab_data = SceneDataTab(obj_mng, mtm_mng) self._tab_transition = SceneTransitionTab() self._tab_scheduling = SceneSchedulingTab() self._signage = None self._scene_idx = 0 self._value_change_handler = value_change_handler self._res = ResourceManager() self.init_ui()
def __init__(self, obj_mng: ObjectManager, tpl_mng: TemplateManager, sgn_mng: SignageManager, mtm_mng: MultimediaManager, chn_mng: ChannelManager): super().__init__() self._obj_mng = obj_mng self._tpl_mng = tpl_mng self._sgn_mng = sgn_mng self._mtm_mng = mtm_mng self._chn_mng = chn_mng self._res = ResourceManager() # Left part of screen self._signage_list = QTreeWidget() self._btn_up = QPushButton(self._res['upButtonText']) self._btn_down = QPushButton(self._res['downButtonText']) # Right part of screen self._stacked_widget = QStackedWidget() self._widget_idx = dict() self.init_ui()
def __init__(self, obj_mng: ObjectManager, tpl_mng: TemplateManager, sgn_mng: SignageManager, mtm_mng: MultimediaManager, chn_mng: ChannelManager): super().__init__() self._obj_mng = obj_mng self._tpl_mng = tpl_mng self._sgn_mng = sgn_mng self._mtm_mng = mtm_mng self._chn_mng = chn_mng self._res = ResourceManager() self._web_server = WebServer(self._chn_mng, self._obj_mng, self._tpl_mng, self._sgn_mng, self._mtm_mng) self._btn_run = QPushButton(self._res['runButtonText']) self._btn_stop = QPushButton(self._res['stopButtonText']) self._vbox_outmost = QVBoxLayout() self.init_ui()