diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-06-16 17:28:08 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-06-16 17:28:08 +0000 |
commit | 8a9baf2c4c7f12c3d20e625ab2d7dccc59bb337d (patch) | |
tree | 2d114cc25638beefafb07796b058e779609206a0 | |
parent | 23a14fe22674e9f62848f56ad01158dce149913f (diff) |
rmdPrefsWidget.py: Added a text entry on the misc page named "Extra Options", through which users can specify arguments the same way as they would in the commandline.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@356 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | gtk-recordmydesktop/src/rmdPrefsWidget.py | 12 | ||||
-rw-r--r-- | qt-recordmydesktop/src/rmdPrefsWidget.py | 7 |
2 files changed, 14 insertions, 5 deletions
diff --git a/gtk-recordmydesktop/src/rmdPrefsWidget.py b/gtk-recordmydesktop/src/rmdPrefsWidget.py index de0e414..1a587ae 100644 --- a/gtk-recordmydesktop/src/rmdPrefsWidget.py +++ b/gtk-recordmydesktop/src/rmdPrefsWidget.py @@ -42,7 +42,7 @@ from rmdStrings import * class prefsWidget(object): def __tooltips__(self): self.tooltips=gtk.Tooltips() - for i in range(16): + for i in range(17): self.tooltips.set_tip(self.eboxes[i],prefTooltipLabels[i]) self.tooltips.set_tip(self.jack_ebox,prefJacktip) @@ -66,6 +66,7 @@ class prefsWidget(object): self.__getSelectedPorts__() self.values[24]=self.tooltipsComboBox.get_active() self.values[25]=self.rFrameComboBox.get_active() + self.values[26]=self.extraOptsEntry.get_text().strip() self.window.destroy() self.optionsOpen[0]=0 @@ -234,7 +235,7 @@ class prefsWidget(object): self.boxes[9].pack_end(self.deviceEntry,expand=False,fill=False) #misc page - for i in xrange(10,16): + for i in xrange(10,17): self.labels[i]=gtk.Label(prefLabelStrings[i]) self.labels[i].set_justify(gtk.JUSTIFY_LEFT) self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) @@ -287,7 +288,12 @@ class prefsWidget(object): self.rFrameComboBox.show() self.boxes[15].pack_end(self.rFrameComboBox,expand=False,fill=False) - for i in range(16): + self.extraOptsEntry= gtk.Entry(max=0) + self.extraOptsEntry.set_text(self.values[26]) + self.extraOptsEntry.show() + self.boxes[16].pack_end(self.extraOptsEntry,expand=False,fill=False) + + for i in range(17): self.boxes[i].show() self.eboxes[i].show() diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py index 75fe797..a995fe5 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(16): + for i in range(17): self.labels[i].setToolTip(htmlize(prefTooltipLabels[i])) self.jack_button.setToolTip(htmlize(prefJacktip)) self.jack_lsp_label.setToolTip(htmlize(prefJacktip)) @@ -75,6 +75,7 @@ class prefsWidget(object): self.__getSelectedPorts__() self.values[24]=self.tooltipsComboBox.currentIndex() self.values[25]=self.rFrameComboBox.currentIndex() + self.values[26]=str(self.extraOptsEntry.text().trimmed()) self.optionsOpen[0]=0 def __getSelectedPorts__(self): @@ -209,7 +210,7 @@ class prefsWidget(object): self.boxes[9].insertWidget(-1,self.deviceEntry) #misc page - for i in xrange(10,16): + for i in xrange(10,17): self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[3]) self.labels[i].setAlignment(QtCore.Qt.AlignLeft) self.boxes[i]=QtGui.QHBoxLayout() @@ -254,6 +255,8 @@ class prefsWidget(object): self.rFrameComboBox.setCurrentIndex(self.values[25]) self.boxes[15].insertWidget(-1,self.rFrameComboBox) + self.extraOptsEntry= QtGui.QLineEdit(self.values[26]) + self.boxes[16].insertWidget(-1,self.extraOptsEntry) for i in range(4): self.tabWidgets[i].setLayout(self.labelbox[i]) |