diff options
Diffstat (limited to 'qt-recordmydesktop/src')
-rw-r--r-- | qt-recordmydesktop/src/rmdConfig.py.in | 2 | ||||
-rw-r--r-- | qt-recordmydesktop/src/rmdPrefsWidget.py | 13 | ||||
-rw-r--r-- | qt-recordmydesktop/src/rmdSimple.py | 28 | ||||
-rw-r--r-- | qt-recordmydesktop/src/rmdStrings.py | 2 | ||||
-rw-r--r-- | qt-recordmydesktop/src/rmdTrayIcon.py | 5 |
5 files changed, 38 insertions, 12 deletions
diff --git a/qt-recordmydesktop/src/rmdConfig.py.in b/qt-recordmydesktop/src/rmdConfig.py.in index 7085433..5d4184f 100644 --- a/qt-recordmydesktop/src/rmdConfig.py.in +++ b/qt-recordmydesktop/src/rmdConfig.py.in @@ -22,7 +22,7 @@ default_values=[15, #framerate "$DISPLAY", #display, this is not interpreted as an env variable #but when the value is set to this the argument is omitted 0, #shared memory,0 on 1 off - 1, #drop frames,unused in 0.3,0, removed at 0.3.4, preserved for compatibility of prefs file. + 0, #reset recording area ,0 on 1 off 75, #shared threshold.Removed at 0.3.4, preserved for compatibility of prefs file. 1, #quick subsampling,0 on 1 off "/tmp", #working directory diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py index 09db5b5..407a9f4 100644 --- a/qt-recordmydesktop/src/rmdPrefsWidget.py +++ b/qt-recordmydesktop/src/rmdPrefsWidget.py @@ -42,7 +42,7 @@ from rmdStrings import * class prefsWidget(object): def __tooltips__(self): - for i in range(17): + for i in range(18): self.labels[i].setToolTip(htmlize(prefTooltipLabels[i])) self.jack_button.setToolTip(htmlize(prefJacktip)) self.jack_lsp_label.setToolTip(htmlize(prefJacktip)) @@ -59,6 +59,7 @@ class prefsWidget(object): self.values[9]=self.deviceEntry.text().replace(' ','') self.values[12]=self.displayEntry.text().replace(' ','') self.values[13]=self.sharedComboBox.currentIndex() + self.values[14]=self.areaResetComboBox.currentIndex() self.values[16]=self.quickComboBox.currentIndex() self.values[17]=self.workdirEntry.text() self.values[18]=self.onTheFlyComboBox.currentIndex() @@ -210,7 +211,7 @@ class prefsWidget(object): self.boxes[9].insertWidget(-1,self.deviceEntry) #misc page - for i in xrange(10,17): + for i in xrange(10,18): self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[3]) self.labels[i].setAlignment(QtCore.Qt.AlignLeft) self.boxes[i]=QtGui.QHBoxLayout() @@ -255,8 +256,14 @@ class prefsWidget(object): self.rFrameComboBox.setCurrentIndex(self.values[25]) self.boxes[15].insertWidget(-1,self.rFrameComboBox) + self.areaResetComboBox = QtGui.QComboBox(self.tabWidgets[3]) + for i in range(2): + self.areaResetComboBox.addItem(prefStateStrings[i]) + self.areaResetComboBox.setCurrentIndex(self.values[14]) + self.boxes[16].insertWidget(-1,self.areaResetComboBox) + self.extraOptsEntry= QtGui.QLineEdit(self.values[26]) - self.boxes[16].insertWidget(-1,self.extraOptsEntry) + self.boxes[17].insertWidget(-1,self.extraOptsEntry) for i in range(4): self.tabWidgets[i].setLayout(self.labelbox[i]) diff --git a/qt-recordmydesktop/src/rmdSimple.py b/qt-recordmydesktop/src/rmdSimple.py index 62e597b..5c2be25 100644 --- a/qt-recordmydesktop/src/rmdSimple.py +++ b/qt-recordmydesktop/src/rmdSimple.py @@ -268,7 +268,7 @@ class simpleWidget(object): savefile.readline() self.values.append(savefile.readline().replace("\n","")) #recording area is not saved - self.values.append(rmdConfig.default_values[5]) + self.values.append([]) for i in range(3): savefile.readline() self.values.append(int(savefile.readline())) @@ -279,10 +279,24 @@ class simpleWidget(object): self.values.append(int(savefile.readline())) savefile.readline() self.values.append(savefile.readline().replace("\n","")) - for i in range(4): + for i in range(2): savefile.readline() self.values.append(int(savefile.readline())) savefile.readline() + areastring=savefile.readline() + try: + as1=areastring.replace('\n','').split(',') + for i in range(4): + self.values[5].append(int(as1[i])) + except: + self.values[5]=[] + for i in rmdConfig.default_values[5]: + self.values[5].append(i) + #open for some future option + self.values.append(0) + savefile.readline() + self.values.append(int(savefile.readline())) + savefile.readline() self.values.append(savefile.readline().replace("\n","")) for i in range(2): savefile.readline() @@ -359,11 +373,13 @@ class simpleWidget(object): savefile.write("%s\n"%self.values[12]) savefile.write("#Shared memory,1 disabled 0 enabled\n") savefile.write("%d\n"%self.values[13]) - savefile.write("#Drop frames(encoder option),1 disabled 0 enabled.Unused at 0.3.0, removed at 0.3.4, preserved for compatibility of prefs file.\n") + savefile.write("#Reset capture area,1 disabled 0 enabled\n") savefile.write("%d\n"%self.values[14]) - savefile.write("#Shared memory threshold,0-100. Removed at 0.3.4," - " preserved for compatibility of prefs file\n") - savefile.write("%d\n"%self.values[15]) + savefile.write("#Recording area\n") + if(self.values[14]): + savefile.write("%d,%d,%d,%d\n"%(self.values[5][0],self.values[5][1],self.values[5][2],self.values[5][3])) + else: + savefile.write("%d,%d,%d,%d\n"%(rmdConfig.default_values[5][0],rmdConfig.default_values[5][1],rmdConfig.default_values[5][2],rmdConfig.default_values[5][3])) savefile.write("#Quick subsampling,1 disabled 0 enabled\n") savefile.write("%d\n"%self.values[16]) savefile.write("#Working directory(temporary files)\n") diff --git a/qt-recordmydesktop/src/rmdStrings.py b/qt-recordmydesktop/src/rmdStrings.py index 6c1d726..b588d2c 100644 --- a/qt-recordmydesktop/src/rmdStrings.py +++ b/qt-recordmydesktop/src/rmdStrings.py @@ -71,6 +71,7 @@ prefLabelStrings=[_('Overwite Existing Files'),_('Working Directory'), _('Channels'),_('Frequency'),_('Device'),_('Display'),_('Mouse Cursor'), _('MIT-Shm extension'),_('Include Window Decorations'),_('Tooltips'), _('Outline Capture Area On Screen'), + _('Reset Capture Area'), _('Extra Options'), _('Video Quality'),_('Sound Quality'), _('Drop Frames(encoder)'),_('Startup Delay(secs)'),] @@ -93,6 +94,7 @@ prefTooltipLabels=[_('By default, if you try to save under a filename that alrea _('When selecting a window via the "Select Window" button,\ninclude that window\'s decorations in the recording area.'), _('Enable or disable tooltips, like this one.\n(Requires restart)'), _('Draw a frame on the screen, around the area\nthat will get captured.\n(This frame will remain throughout the recording.)'), + _('Reset capture area after every recording\nand at program shutdown.'), _('Extra commandline options that will get\npassed to recordMyDesktop during initialization.\nThese options must be entered the same way\nthey would in the commandline (i.e. separated with spaces).\nConsult the manpage for more information on using them.')] prefJacktip=_("Enable this option to record audio through\nJACK. The Jack server must be running in order to\nobtain the ports that will be recorded.\nThe audio recorded from each one\nwill be written on a channel of its own.\nrecordMyDesktop must be compiled with JACK\nsupport for this option to work.") diff --git a/qt-recordmydesktop/src/rmdTrayIcon.py b/qt-recordmydesktop/src/rmdTrayIcon.py index 57a7ca7..bd70af4 100644 --- a/qt-recordmydesktop/src/rmdTrayIcon.py +++ b/qt-recordmydesktop/src/rmdTrayIcon.py @@ -151,8 +151,9 @@ class trayIcon(object): self.execargs.append('%d'%(self.parent.values[5][2]-self.parent.values[5][0])) self.execargs.append('-height') self.execargs.append('%d'%(self.parent.values[5][3]-self.parent.values[5][1])) - for i in range(4): - self.parent.values[5][i]=-1 + if(not self.parent.values[14]): + for i in range(4): + self.parent.values[5][i]=-1 if self.parent.values[6]>0: self.execargs.append('-delay') self.execargs.append('%d'%self.parent.values[6]) |