Esempio n. 1
0
    def reload_ui(self):
        self.ui = get_ui(self)
        self.ui.filterListWidget.currentItemChanged.connect(self.on_selected_filter_changed)
        self.ui.filterchainListWidget.currentItemChanged.connect(self.on_selected_filter_chain_changed)
        self.ui.uploadButton.clicked.connect(self.upload)
        self.ui.editButton.clicked.connect(self.edit)
        self.ui.saveButton.clicked.connect(self.save)
        self.ui.cancelButton.clicked.connect(self.cancel)
        self.ui.deleteButton.clicked.connect(self.delete)
        self.ui.copyButton.clicked.connect(self.copy)
        self.ui.newButton.clicked.connect(self.new)
        self.ui.upButton.clicked.connect(self.move_up_selected_filter)
        self.ui.downButton.clicked.connect(self.move_down_selected_filter)
        self.ui.removeButton.clicked.connect(self.remove_filter)

        self.update_filter_chain_list()
        self.ui.frame_filter_edit.setEnabled(False)
        self.lock_preview = False

        self.edit_mode = False
        self.mode_new = False
        self._mode_edit(False)
        self._list_filterchain_is_selected(False)

        self.shared_info.connect(SharedInfo.GLOBAL_MEDIA, self._update_media_default_edit)
        self.shared_info.connect(SharedInfo.GLOBAL_EXEC, self.select_filterchain)
 def reload_ui(self):
     self.ui = get_ui(self)
     self.ui.addFilterButton.clicked.connect(self._addFilter)
     self.ui.reloadFilterButton.clicked.connect(self._reloadFilter)
     self.ui.filterListWidget.doubleClicked.connect(self._addFilter)
     self.ui.filterListWidget.currentItemChanged.connect(self._selectedFilterChanged)
     self.reload_list_filter(self.controller.get_filter_list())
Esempio n. 3
0
    def __init__(self):

        # self.filtre = filtre
        # self.filtre_init = copy.copy(filtre)
        # self.cb = cb

        self.ui = get_ui(self)
Esempio n. 4
0
    def __init__(self):

        # self.filtre = filtre
        # self.filtre_init = copy.copy(filtre)
        # self.cb = cb

        self.ui = get_ui(self)
Esempio n. 5
0
    def reload_ui(self):
        self.ui = get_ui(self)
        self.ui.filterListWidget.currentItemChanged.connect(
            self.on_selected_filter_changed)
        self.ui.filterchainListWidget.currentItemChanged.connect(
            self.on_selected_filter_chain_changed)
        self.ui.uploadButton.clicked.connect(self.upload)
        self.ui.editButton.clicked.connect(self.edit)
        self.ui.saveButton.clicked.connect(self.save)
        self.ui.cancelButton.clicked.connect(self.cancel)
        self.ui.deleteButton.clicked.connect(self.delete)
        self.ui.copyButton.clicked.connect(self.copy)
        self.ui.newButton.clicked.connect(self.new)
        self.ui.upButton.clicked.connect(self.move_up_selected_filter)
        self.ui.downButton.clicked.connect(self.move_down_selected_filter)
        self.ui.removeButton.clicked.connect(self.remove_filter)

        self.update_filter_chain_list()
        self.ui.frame_filter_edit.setEnabled(False)
        self.lock_preview = False

        self.edit_mode = False
        self.mode_new = False
        self._mode_edit(False)
        self._list_filterchain_is_selected(False)

        self.shared_info.connect(
            SharedInfo.GLOBAL_MEDIA, self._update_media_default_edit)
        self.shared_info.connect(
            SharedInfo.GLOBAL_EXEC, self.select_filterchain)
Esempio n. 6
0
 def reload_ui(self):
     self.ui = get_ui(self)
     self.ui.addFilterButton.clicked.connect(self._add_filter)
     self.ui.reloadFilterButton.clicked.connect(self._reload_filter)
     self.ui.filterListWidget.doubleClicked.connect(self._add_filter)
     self.ui.filterListWidget.currentItemChanged.connect(
         self._selected_filter_changed)
     self.reload_list_filter(self.controller.get_filter_list())
    def reload_ui(self):
        self.ui = get_ui(self)
        self.newImage.connect(self.setPixmap)
        self.ui.filterComboBox.currentIndexChanged.connect(self._changeFilter)
        self.ui.closeButton.clicked.connect(self.__close)
        self.ui.sizeComboBox.currentIndexChanged[str].connect(self.setImageScale)

        self._updateFilters()
        self.actualFilter = self.ui.filterComboBox.currentText()
Esempio n. 8
0
    def __init__(self, controller, host="localhost", islocal=False):
        super(WinMain, self).__init__()

        self.host = host
        self.controller = controller
        self.dct_preview = {}
        self.ui = get_ui(self)
        self.uid_iter = 0
        self.id = -1

        # default maximize Qt
        self.showMaximized()

        # create dockWidgets
        self.winFilter = WinFilter(self.controller)
        self.winCamera = WinCamera(self.controller)
        self.winFilterList = WinFilterList(self.controller)
        self.winMedia = WinMedia(self.controller)
        self.winExecution = WinExecution(self.controller)
        self.winFilterChain = WinFilterChain(self.controller)
        self.WinMainViewer = WinMainViewer()

        # Add default widget
        self.show_win_filter(first_time=True)
        #self.show_win_camera(first_time=True)
        self.show_win_filterlist(first_time=True)
        self.show_win_filterchain(first_time=True)
        self.show_win_media(first_time=True)
        self.show_win_execution(first_time=True)

        # Signal
        self.winFilterList.onAddFilter.connect(self.winFilterChain.add_filter)
        self.ui.btnMedia.clicked.connect(self.show_win_media)
        self.ui.btnFilterChain.clicked.connect(self.show_win_filterchain)
        self.ui.btnFilterList.clicked.connect(self.show_win_filterlist)
        self.ui.btnExecution.clicked.connect(self.show_win_execution)
        self.ui.btnCamera.clicked.connect(self.show_win_camera)
        self.ui.btnParam.clicked.connect(self.show_win_filter)
        self.winExecution.onPreviewClick.connect(self.addPreview)
        self.winExecution.onExecutionChanged.connect(self.winFilterChain.select_filterchain)

        self._addToolBar()

        self.setCentralWidget(self.WinMainViewer.ui)

        # register to notify server
        if not islocal:
            self.id = self.controller.add_notify_server()
            self.start_pull = self.id is not None
            try:
                if self.start_pull:
                    thread.start_new_thread(self.poll_notify_server, ())
            except Exception as e:
                log.printerror_stacktrace(logger, e)
        else:
            self.start_pull = False
Esempio n. 9
0
    def reload_ui(self):
        self.ui = get_ui(self)
        self.ui.lbl_media_name.setText(self.media_name)
        self.newImage.connect(self.set_pixmap)
        self.ui.filterComboBox.currentIndexChanged.connect(self._change_filter)
        self.ui.closeButton.clicked.connect(self.__close)
        self.ui.sizeComboBox.currentIndexChanged[str].connect(
            self.set_image_scale)

        self._update_filters()
        self.actual_filter = self.ui.filterComboBox.currentText()
        self.ui.lbl_exec.setText(self.execution_name)
    def reload_ui(self):
        self.ui = get_ui(self)

        self.ui.newButton.clicked.connect(self.new)
        self.ui.cancelButton.clicked.connect(self.cancel)
        self.ui.executeButton.clicked.connect(self.execute)
        self.ui.previewButton.clicked.connect(self.preview)
        self.ui.stopButton.clicked.connect(self.stop)
        self.ui.lstExecution.currentItemChanged.connect(self._on_selected_lstExecution_change)
        self.ui.lstExecution.itemClicked.connect(self._lst_execution_clicked)

        self.update_execution_list()
Esempio n. 11
0
    def reload_ui(self):
        self.ui = get_ui(self)

        self.ui.newButton.clicked.connect(self.new)
        self.ui.cancelButton.clicked.connect(self.cancel)
        self.ui.executeButton.clicked.connect(self.execute)
        self.ui.previewButton.clicked.connect(self.preview)
        self.ui.stopButton.clicked.connect(self.stop)
        self.ui.lstExecution.currentItemChanged.connect(
            self._on_selected_lst_execution_change)
        self.ui.lstExecution.itemClicked.connect(self._lst_execution_clicked)

        self._update_execution_list()
Esempio n. 12
0
    def reload_ui(self):
        self.ui = get_ui(self, force_name="WinParam")

        self.lst_param = []
        self.clear_widget()

        self.cb_group = self.ui.cb_group
        self.parent_layout = self.ui.layout_params

        self.ui.saveButton.clicked.connect(self.save)
        self.ui.resetButton.clicked.connect(self.reset)
        self.ui.defaultButton.clicked.connect(self.default)
        self.ui.txt_search.returnPressed.connect(self.on_cb_group_item_changed)
        self.cb_group.currentIndexChanged.connect(
            self.on_cb_group_item_changed)
    def reload_ui(self):
        self.ui = get_ui(self)

        self.lst_param = []
        self.dct_param = {}
        self.setValueFloat = None
        self.media_name = None

        self.layout = self.ui.layout_params
        self.cb_param = self.ui.cb_filter_param

        self.ui.saveButton.clicked.connect(self.save)
        self.ui.resetButton.clicked.connect(self.reset)
        self.ui.defaultButton.clicked.connect(self.default)
        self.ui.txt_search.returnPressed.connect(self._search_text_change)
        self.cb_param.currentIndexChanged.connect(self.on_cb_param_item_changed)
Esempio n. 14
0
    def reload_ui(self):
        self.ui = get_ui(self)

        self.ui.recordButton.clicked.connect(self.click_record_button)
        self.ui.cbMedia.currentIndexChanged.connect(self._change_media)
        self.ui.openDirButton.clicked.connect(self.open_directory)
        self.ui.openFileButton.clicked.connect(self.open_file)
        self.ui.btnplay.clicked.connect(self.play)
        self.ui.loopchb.clicked.connect(self.active_loop)
        self.ui.movieLineEdit.textChanged.connect(self._movie_changed)
        self.ui.slider_frame.valueChanged.connect(self._slider_value_change)
        self.ui.txtframe.returnPressed.connect(self._txt_frame_value_change)
        self.ui.spin_box_fps.valueChanged.connect(self._change_fps)
        self.ui.sliceButton.clicked.connect(self.click_slice_button)
        self.ui.cancelButton.clicked.connect(self.click_cancel_button)
        self.ui.cutButton.clicked.connect(self.click_cut_button)
        self.ui.cleanButton.clicked.connect(self.click_clean_button)

        self._set_record_icon()
        self._set_play_icon()
        self._update_media()
Esempio n. 15
0
    def reload_ui(self):
        self.ui = get_ui(self)

        self.ui.recordButton.clicked.connect(self.click_record_button)
        self.ui.cbMedia.currentIndexChanged.connect(self._change_media)
        self.ui.openDirButton.clicked.connect(self.open_directory)
        self.ui.openFileButton.clicked.connect(self.open_file)
        self.ui.btnplay.clicked.connect(self.play)
        self.ui.loopchb.clicked.connect(self.active_loop)
        self.ui.movieLineEdit.textChanged.connect(self._movie_changed)
        self.ui.slider_frame.valueChanged.connect(self._slider_value_change)
        self.ui.txtframe.returnPressed.connect(self._txt_frame_value_change)
        self.ui.spin_box_fps.valueChanged.connect(self._change_fps)
        self.ui.sliceButton.clicked.connect(self.click_slice_button)
        self.ui.cancelButton.clicked.connect(self.click_cancel_button)
        self.ui.cutButton.clicked.connect(self.click_cut_button)
        self.ui.cleanButton.clicked.connect(self.click_clean_button)

        self._set_record_icon()
        self._set_play_icon()
        self._update_media()
Esempio n. 16
0
 def reload_ui(self):
     self.ui = get_ui(self)
     self.refresh_list()
     self.update_old_record_table()
Esempio n. 17
0
 def reload_ui(self):
     self.ui = get_ui(self)
     self.refresh_list()
Esempio n. 18
0
    def __init__(self,
                 controller,
                 subscriber,
                 host="localhost",
                 islocal=False):
        super(WinMain, self).__init__()

        self.host = host
        self.controller = controller
        self.subscriber = subscriber
        self.dct_preview = {}
        self.ui = get_ui(self)
        self.uid_iter = 0
        self.id = -1
        self.toolbar = None

        # default maximize Qt
        self.showMaximized()

        # create dockWidgets
        self.win_filter_param = WinFilterParam(controller, subscriber)
        self.win_rec_historic = WinRecHistoric(controller, subscriber)
        self.win_media_camera = WinMediaParam(controller, subscriber)
        self.win_filter_list = WinFilterList(controller)
        self.win_media = WinMedia(controller, subscriber)
        self.win_execution = WinExecution(controller, subscriber)
        self.win_filter_chain = WinFilterChain(controller)
        self.win_main_viewer = WinMainViewer()
        self.win_debug_keyz = WinDebugKeyz(controller, subscriber)

        # Add default widget
        self.show_win_filter(first_time=True)
        self.show_win_filterlist(first_time=True)
        self.show_win_filterchain(first_time=True)
        self.show_win_media(first_time=True)
        self.show_win_execution(first_time=True)
        self.show_win_camera(first_time=True)
        self.show_win_rec_historic(first_time=True)
        self.show_win_debug_keyz(first_time=True)

        # Tabify dockwidget
        self.tabifyDockWidget(self.win_media.ui, self.win_rec_historic.ui)
        self.tabifyDockWidget(self.win_media.ui, self.win_media_camera.ui)
        self.tabifyDockWidget(self.win_filter_param.ui,
                              self.win_filter_list.ui)
        self.tabifyDockWidget(self.win_filter_chain.ui, self.win_debug_keyz.ui)

        # Signal
        self.win_filter_list.onAddFilter.connect(
            self.win_filter_chain.add_filter)
        self.ui.btnMedia.clicked.connect(self.show_win_media)
        self.ui.btnFilterChain.clicked.connect(self.show_win_filterchain)
        self.ui.btnFilterList.clicked.connect(self.show_win_filterlist)
        self.ui.btnExecution.clicked.connect(self.show_win_execution)
        self.ui.btnCamera.clicked.connect(self.show_win_camera)
        self.ui.btnParam.clicked.connect(self.show_win_filter)
        self.ui.btnRecHistoric.clicked.connect(self.show_win_rec_historic)
        self.ui.btnDebugKeyz.clicked.connect(self.show_win_debug_keyz)
        self.win_execution.onPreviewClick.connect(self.add_preview)

        self._add_tool_bar()
        self._add_menu_bar()

        self.setCentralWidget(self.win_main_viewer.ui)
        self.subscriber.start()
 def __init__(self):
     super(WinMainViewer, self).__init__()
     self.ui = get_ui(self)
     self.grid = self.ui.gridLayout
Esempio n. 20
0
 def __init__(self):
     super(WinMainViewer, self).__init__()
     self.ui = get_ui(self)
     self.grid = self.ui.gridLayout
Esempio n. 21
0
    def __init__(self, controller, subscriber,
                 host="localhost", islocal=False):
        super(WinMain, self).__init__()

        self.host = host
        self.controller = controller
        self.subscriber = subscriber
        self.dct_preview = {}
        self.ui = get_ui(self)
        self.uid_iter = 0
        self.id = -1
        self.toolbar = None

        # default maximize Qt
        self.showMaximized()

        # create dockWidgets
        self.win_filter_param = WinFilterParam(controller, subscriber)
        self.win_rec_historic = WinRecHistoric(controller, subscriber)
        self.win_media_camera = WinMediaParam(controller, subscriber)
        self.win_filter_list = WinFilterList(controller)
        self.win_media = WinMedia(controller, subscriber)
        self.win_execution = WinExecution(controller, subscriber)
        self.win_filter_chain = WinFilterChain(controller)
        self.win_main_viewer = WinMainViewer()
        self.win_debug_keyz = WinDebugKeyz(controller, subscriber)

        # Add default widget
        self.show_win_filter(first_time=True)
        self.show_win_filterlist(first_time=True)
        self.show_win_filterchain(first_time=True)
        self.show_win_media(first_time=True)
        self.show_win_execution(first_time=True)
        self.show_win_camera(first_time=True)
        self.show_win_rec_historic(first_time=True)
        self.show_win_debug_keyz(first_time=True)

        # Tabify dockwidget
        self.tabifyDockWidget(
            self.win_media.ui,
            self.win_rec_historic.ui
        )
        self.tabifyDockWidget(
            self.win_media.ui,
            self.win_media_camera.ui
        )
        self.tabifyDockWidget(
            self.win_filter_param.ui,
            self.win_filter_list.ui
        )
        self.tabifyDockWidget(
            self.win_filter_chain.ui,
            self.win_debug_keyz.ui
        )

        # Signal
        self.win_filter_list.onAddFilter.connect(
            self.win_filter_chain.add_filter)
        self.ui.btnMedia.clicked.connect(self.show_win_media)
        self.ui.btnFilterChain.clicked.connect(self.show_win_filterchain)
        self.ui.btnFilterList.clicked.connect(self.show_win_filterlist)
        self.ui.btnExecution.clicked.connect(self.show_win_execution)
        self.ui.btnCamera.clicked.connect(self.show_win_camera)
        self.ui.btnParam.clicked.connect(self.show_win_filter)
        self.ui.btnRecHistoric.clicked.connect(self.show_win_rec_historic)
        self.ui.btnDebugKeyz.clicked.connect(self.show_win_debug_keyz)
        self.win_execution.onPreviewClick.connect(self.add_preview)

        self._add_tool_bar()
        self._add_menu_bar()

        self.setCentralWidget(self.win_main_viewer.ui)
        self.subscriber.start()