summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src/rmdPrefsWidget.py
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-09 23:11:43 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-09 23:11:43 +0000
commitc364387c6657769e29ade8fe16038a1c9b6fa1e0 (patch)
tree57e4a0e606ec4c32c70d41b185fe5e399801063d /qt-recordmydesktop/src/rmdPrefsWidget.py
parentb5244639d1b3e38b1c56e03e7f65b8da44970233 (diff)
rmdConfig.py.in, rmdFrame.py, rmdPrefsWidget.py,
rmdSelectThumb.py, rmdSimple.py, rmdStrings.py, rmdTrayIcon.py : Added follow mouse option in the Preferences Widget and all relevant functionality ( save/load , defaults, string/tooltip). Also added moveFrame method so that the frame can follow the mouse. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@406 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src/rmdPrefsWidget.py')
-rw-r--r--qt-recordmydesktop/src/rmdPrefsWidget.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py
index 407a9f4..5aa8ede 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(18):
+ for i in range(19):
self.labels[i].setToolTip(htmlize(prefTooltipLabels[i]))
self.jack_button.setToolTip(htmlize(prefJacktip))
self.jack_lsp_label.setToolTip(htmlize(prefJacktip))
@@ -60,6 +60,7 @@ class prefsWidget(object):
self.values[12]=self.displayEntry.text().replace(' ','')
self.values[13]=self.sharedComboBox.currentIndex()
self.values[14]=self.areaResetComboBox.currentIndex()
+ self.values[15]=self.followMouseComboBox.currentIndex()
self.values[16]=self.quickComboBox.currentIndex()
self.values[17]=self.workdirEntry.text()
self.values[18]=self.onTheFlyComboBox.currentIndex()
@@ -211,7 +212,7 @@ class prefsWidget(object):
self.boxes[9].insertWidget(-1,self.deviceEntry)
#misc page
- for i in xrange(10,18):
+ for i in xrange(10,19):
self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[3])
self.labels[i].setAlignment(QtCore.Qt.AlignLeft)
self.boxes[i]=QtGui.QHBoxLayout()
@@ -227,43 +228,48 @@ class prefsWidget(object):
self.mouseComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(4):
self.mouseComboBox.addItem(prefMouseStrings[i])
- self.mouseComboBox.setCurrentIndex(self.values[1])
+ self.mouseComboBox.setCurrentIndex(self.values[15])
self.boxes[11].insertWidget(-1,self.mouseComboBox)
+ self.followMouseComboBox = QtGui.QComboBox(self.tabWidgets[3])
+ for i in range(2):
+ self.followMouseComboBox.addItem(prefStateStrings[i])
+ self.followMouseComboBox.setCurrentIndex(self.values[15])
+ self.boxes[12].insertWidget(-1,self.followMouseComboBox)
self.sharedComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
self.sharedComboBox.addItem(prefStateStrings[i])
self.sharedComboBox.setCurrentIndex(self.values[13])
- self.boxes[12].insertWidget(-1,self.sharedComboBox)
+ self.boxes[13].insertWidget(-1,self.sharedComboBox)
self.winDecoComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
self.winDecoComboBox.addItem(prefStateStrings[i])
self.winDecoComboBox.setCurrentIndex(self.values[21])
- self.boxes[13].insertWidget(-1,self.winDecoComboBox)
+ self.boxes[14].insertWidget(-1,self.winDecoComboBox)
self.tooltipsComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
self.tooltipsComboBox.addItem(prefStateStrings[i])
self.tooltipsComboBox.setCurrentIndex(self.values[24])
- self.boxes[14].insertWidget(-1,self.tooltipsComboBox)
+ self.boxes[15].insertWidget(-1,self.tooltipsComboBox)
self.rFrameComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
self.rFrameComboBox.addItem(prefStateStrings[i])
self.rFrameComboBox.setCurrentIndex(self.values[25])
- self.boxes[15].insertWidget(-1,self.rFrameComboBox)
+ self.boxes[16].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.boxes[17].insertWidget(-1,self.areaResetComboBox)
self.extraOptsEntry= QtGui.QLineEdit(self.values[26])
- self.boxes[17].insertWidget(-1,self.extraOptsEntry)
+ self.boxes[18].insertWidget(-1,self.extraOptsEntry)
for i in range(4):
self.tabWidgets[i].setLayout(self.labelbox[i])
© All Rights Reserved