summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src/rmdSimple.py
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-07-08 15:49:23 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-07-08 15:49:23 +0000
commit7f399d7c3c68c67e34241f91a1c9776049ae3ca7 (patch)
tree0b9f20800a5f7b9345c18383dfd612ec2fb2f564 /qt-recordmydesktop/src/rmdSimple.py
parent16586bbc661ab6edafd819cb4cda0fda87d8be52 (diff)
rmdConfig.py.in, rmdPrefsWidget.py, rmdSimple.py,
rmdStrings.py, rmdTrayIcon.py: made area resting after every capture optional. The area is also saved in the options file, if reseting is disabled. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@376 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src/rmdSimple.py')
-rw-r--r--qt-recordmydesktop/src/rmdSimple.py28
1 files changed, 22 insertions, 6 deletions
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")
© All Rights Reserved