@@ -490,7 +490,7 @@ def stopProgress(self):
490490
491491 def enableUserActions (self , enable ):
492492 self .ui_Dial .setEnabled (enable )
493- self .ui_Slider .setEnabled (enable )
493+ # self.ui_Slider.setEnabled(enable)
494494 self .gotoAction .setEnabled (enable )
495495 self .ui_GotoField .setEnabled (enable )
496496
@@ -1442,15 +1442,19 @@ def statusbar(self):
14421442
14431443 def addStartMarker (self ):
14441444 #TODO switch to timebase: ts=self.player.getCurrentFrameTime()
1445+ QApplication .setOverrideCursor (QtCore .Qt .CursorShape .WaitCursor )
14451446 pos = self .player .getCurrentFrameNumber ()
14461447 self ._createVideoCutEntry (pos ,VideoCutEntry .MODE_START )
14471448 self .statusbar ().say ("Start video" )
1449+ QApplication .restoreOverrideCursor ()
14481450
14491451 def addStopMarker (self ):
14501452 #TODO switch to timebase: ts=self.player.getCurrentFrameTime()
1453+ QApplication .setOverrideCursor (QtCore .Qt .CursorShape .WaitCursor )
14511454 pos = self .player .getCurrentFrameNumber ()
14521455 self ._createVideoCutEntry (pos ,VideoCutEntry .MODE_STOP )
14531456 self .statusbar ().say ("Stop video" )
1457+ QApplication .restoreOverrideCursor ()
14541458
14551459 def _createVideoCutEntry (self , pos , mode ):
14561460 cutEntry = VideoCutEntry (pos , - 1 , mode )
@@ -1515,14 +1519,18 @@ def purgeVideoCuts(self):
15151519 XMLAccessor (self .currentPath ).clear ()
15161520
15171521 def removeVideoCutIndex (self , index ):
1522+ QApplication .setOverrideCursor (QtCore .Qt .CursorShape .WaitCursor )
15181523 cut = self .videoCuts [index ]
15191524 self .videoCuts .remove (cut )
15201525 XMLAccessor (self .currentPath ).writeXML (self .videoCuts )
1526+ QApplication .restoreOverrideCursor ()
15211527
15221528 def gotoCutIndex (self , index ):
1529+ QApplication .setOverrideCursor (QtCore .Qt .CursorShape .WaitCursor )
15231530 cut = self .videoCuts [index ]
15241531 #self.__dispatchShowFrame(cut.frameNumber)
15251532 self ._gotoFrame (cut .frameNumber )
1533+ QApplication .restoreOverrideCursor ()
15261534
15271535 # callback from stop button
15281536 def killSaveProcessing (self ):
@@ -1704,6 +1712,7 @@ def onSettingsChanged(self,settingsModel):
17041712 '''
17051713 #called by plugin: self.updateUI.emit(frameNumber,self.player.framecount,timeinfo)
17061714 def _onUpdateInfo (self ,frameNbr ,frameCount ,timeMS ):
1715+ frameNbr = min (frameNbr ,sys .maxsize ) #Might happen on remote files
17071716 s = int (timeMS / 1000 )
17081717 ms = int (timeMS % 1000 )
17091718 ts = '{:02}:{:02}:{:02}.{:03}' .format (s // 3600 , s % 3600 // 60 , s % 60 , ms )
0 commit comments