summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-04 12:07:32 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-04 12:07:32 +0000
commitf1a9989a2a735fac913184218e2f9f7443d0aaad (patch)
tree8977bbe8aadf4b6c59b3cd297afc48b42860147f
parent782eb0a76de25ff72d9a2c1cceb75087e425e2a6 (diff)
rmdPrefsWidget.py: added dialog for workdir selection
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@455 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r--qt-recordmydesktop/src/rmdPrefsWidget.py26
1 files changed, 23 insertions, 3 deletions
diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py
index 44d5ae2..72f5d91 100644
--- a/qt-recordmydesktop/src/rmdPrefsWidget.py
+++ b/qt-recordmydesktop/src/rmdPrefsWidget.py
@@ -127,9 +127,22 @@ class prefsWidget(object):
self.boxes[i].insertWidget(-1,self.labels[i])
self.boxes[i].insertStretch(-1,0)
self.labelbox[0].insertLayout(-1,self.boxes[i])
- self.labelbox[0].insertSpacing(-1,20)
+ self.labelbox[0].insertSpacing(-1,(1-i)*30+10)
+ self.workdir_layout=QtGui.QHBoxLayout()
+
+ self.workdirEntry= QtGui.QLineEdit(self.values[17],self.tabWidgets[0])
+ self.workdir_layout.insertWidget(-1,self.workdirEntry)
+ style=QtGui.QApplication.style()
+ self.workdir_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogSaveButton)),"")
+ self.workdir_layout.insertWidget(-1,self.workdir_button)
+
+ self.labelbox[0].insertLayout(-1,self.workdir_layout)
+ self.labelbox[0].insertSpacing(-1,20)
+ self.labelbox[0].insertStretch(-1,0)
+
self.labelbox[0].setSizeConstraint(QtGui.QLayout.SetMaximumSize)
+
self.overwriteFilesButton=QtGui.QCheckBox(self.tabWidgets[0])
if self.values[20]:
self.overwriteFilesButton.setCheckState(QtCore.Qt.Checked)
@@ -137,8 +150,10 @@ class prefsWidget(object):
self.overwriteFilesButton.setCheckState(QtCore.Qt.Unchecked)
self.boxes[0].insertWidget(-1,self.overwriteFilesButton)
- self.workdirEntry= QtGui.QLineEdit(self.values[17],self.tabWidgets[0])
- self.boxes[1].insertWidget(-1,self.workdirEntry)
+
+
+
+
#Performance page
for i in xrange(2,7):
@@ -309,12 +324,17 @@ class prefsWidget(object):
for i in self.ports:
self.jack_lsp_liststore.insertItem(-1,QtGui.QListWidgetItem(i))
+ def __workdirSelect__(self,Event=None):
+ tpath=QtGui.QFileDialog.getExistingDirectory(self.window,'',self.workdirEntry.text())
+ if tpath!= '':
+ self.workdirEntry.setText(tpath)
def __makeCons__(self):
self.jack_button.connect(self.jack_button,QtCore.SIGNAL("clicked()"),self.__jack_enabled_check__)
self.jack_lsp_refresh.connect(self.jack_lsp_refresh,QtCore.SIGNAL("clicked()"),self.__runJackLSP__)
self.jack_lsp_liststore.connect(self.jack_lsp_liststore,QtCore.SIGNAL("itemDoubleClicked(QListWidgetItem *)"),self.addPort)
self.jack_lsp_listSave.connect(self.jack_lsp_listSave,QtCore.SIGNAL("itemDoubleClicked(QListWidgetItem *)"),self.remPort)
+ self.workdir_button.connect(self.workdir_button,QtCore.SIGNAL("clicked()"),self.__workdirSelect__)
def __jack_enabled_check__(self):
val=False
© All Rights Reserved