Exemple #1
0
    def __init__(self, parent):
        super(qClipEditDlg, self).__init__(parent)

        self.setMinimumSize(800, 600)
        self.setWindowTitle('Clip editor')
        self.setSizeGripEnabled(True)
        self.setWindowFlags(self.windowFlags()
                            & (~Qt.WindowContextHelpButtonHint))

        exedir = util.get_exec_dir(__file__)
        self.icn_play = QIcon(
            os.path.normcase(exedir + '/img/glyphicons_173_play.png'))
        self.icn_pause = QIcon(
            os.path.normcase(exedir + '/img/glyphicons_174_pause.png'))

        layout = QVBoxLayout()

        layout2 = QHBoxLayout()
        self.eng_view = eng_view.qEngineView(self)
        layout2.addWidget(self.eng_view)
        self.wnd_clips = qClipList(self)
        layout2.addWidget(self.wnd_clips)
        layout.addLayout(layout2)

        layout3 = QHBoxLayout()
        self.btn_play = QPushButton(self)
        self.btn_play.setIcon(self.icn_play)
        self.btn_play_state = False  # keeps playing state of 'play/pause' button
        self.btn_play_state_prev = False

        self.clip_ctrl = qClipController(self)
        self.btn_play.setFixedSize(32, 32)
        layout3.addWidget(self.btn_play)
        layout3.addWidget(self.clip_ctrl)
        layout.addLayout(layout3)

        self.setLayout(layout)

        self.tm_play = QTimer(self)
        self.tm_play.setInterval(20)

        self.tm_preview = QTimer(self)
        self.tm_preview.setInterval(33)
        self.preview_clip = {}
        self.preview_frame = 0
        self.camera = None

        # events
        self.btn_play.clicked.connect(self.btn_play_clicked)
        self.tm_play.timeout.connect(self.tm_play_timeout)
        self.tm_preview.timeout.connect(self.tm_preview_timeout)
Exemple #2
0
    def __init__(self, parent):
        super(qModelPrev, self).__init__(parent)

        self.setMinimumSize(800, 600)
        self.setWindowTitle('Model preview')
        self.setSizeGripEnabled(True)
        self.setWindowFlags(self.windowFlags() & (~Qt.WindowContextHelpButtonHint))

        layout = QVBoxLayout()
        self.eng_view = eng_view.qEngineView(self)
        layout.addWidget(self.eng_view)
        self.setLayout(layout)

        self.camera = None
Exemple #3
0
    def __init__(self, parent):
        super(qModelPrev, self).__init__(parent)

        self.setMinimumSize(800, 600)
        self.setWindowTitle('Model preview')
        self.setSizeGripEnabled(True)
        self.setWindowFlags(self.windowFlags()
                            & (~Qt.WindowContextHelpButtonHint))

        layout = QVBoxLayout()
        self.eng_view = eng_view.qEngineView(self)
        layout.addWidget(self.eng_view)
        self.setLayout(layout)

        self.camera = None
Exemple #4
0
    def __init__(self, parent):
        super(qClipEditDlg, self).__init__(parent)

        self.setMinimumSize(800, 600)
        self.setWindowTitle('Clip editor')
        self.setSizeGripEnabled(True)
        self.setWindowFlags(self.windowFlags() & (~Qt.WindowContextHelpButtonHint))

        exedir = util.get_exec_dir(__file__)
        self.icn_play = QIcon(os.path.normcase(exedir + '/img/glyphicons_173_play.png'))
        self.icn_pause = QIcon(os.path.normcase(exedir + '/img/glyphicons_174_pause.png'))

        layout = QVBoxLayout()

        layout2 = QHBoxLayout()
        self.eng_view = eng_view.qEngineView(self)
        layout2.addWidget(self.eng_view)
        self.wnd_clips = qClipList(self)
        layout2.addWidget(self.wnd_clips)
        layout.addLayout(layout2)

        layout3 = QHBoxLayout()
        self.btn_play = QPushButton(self)
        self.btn_play.setIcon(self.icn_play)
        self.btn_play_state = False # keeps playing state of 'play/pause' button
        self.btn_play_state_prev = False

        self.clip_ctrl = qClipController(self)
        self.btn_play.setFixedSize(32, 32)
        layout3.addWidget(self.btn_play)
        layout3.addWidget(self.clip_ctrl)
        layout.addLayout(layout3)

        self.setLayout(layout)

        self.tm_play = QTimer(self)
        self.tm_play.setInterval(20)

        self.tm_preview = QTimer(self)
        self.tm_preview.setInterval(33)
        self.preview_clip = {}
        self.preview_frame = 0
        self.camera = None

        # events
        self.btn_play.clicked.connect(self.btn_play_clicked)
        self.tm_play.timeout.connect(self.tm_play_timeout)
        self.tm_preview.timeout.connect(self.tm_preview_timeout)