summaryrefslogtreecommitdiff
path: root/gtk-recordmydesktop/rmdTrayIcon.py
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-09-18 04:54:51 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-09-18 04:54:51 +0000
commit89d82d91656488c975551954329320198a9cf4db (patch)
tree87d738259fd2b8b7ab56c480a8e29f81c483f53e /gtk-recordmydesktop/rmdTrayIcon.py
parent57c7e35fa5e081eb8339d21b93d4c87fbdd42b93 (diff)
options parsing
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@56 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop/rmdTrayIcon.py')
-rw-r--r--gtk-recordmydesktop/rmdTrayIcon.py54
1 files changed, 46 insertions, 8 deletions
diff --git a/gtk-recordmydesktop/rmdTrayIcon.py b/gtk-recordmydesktop/rmdTrayIcon.py
index 4358b7c..9f1aa57 100644
--- a/gtk-recordmydesktop/rmdTrayIcon.py
+++ b/gtk-recordmydesktop/rmdTrayIcon.py
@@ -93,24 +93,62 @@ class trayIcon(object):
def __execRMD__(self):
- execargs=["recordmydesktop","-o","%s"%self.values[4],
- "--no-quick-subsampling",
+ execargs=["recordmydesktop","-o",'%s'%self.values[4],
"-fps","%d"%self.values[0]]
if self.values[2]==1 :
execargs.append("--nosound")
- if self.values[1] == 0:
+ if self.values[1] == 1:
execargs.append("-dummy-cursor")
execargs.append("white")
-
- elif self.values[1] == 1:
+ elif self.values[1] == 2:
execargs.append("-dummy-cursor")
execargs.append("black")
- else:
- execargs.append("--no-dummy-cursor")
+ elif self.values[1] == 3:
+ execargs.append("--no-cursor")
if self.values[3] == 0:
execargs.append("--full-shots")
- execargs.append("--with-shared")
+ if self.values[13] == 0:
+ execargs.append("--with-shared")
+ if self.values[3] == 1 and self.values[13] == 1 :
+ execargs.append("--no-cond-shared")
+
+ if self.values[5][0]>=0 and self.values[5][1]>=0 and self.values[5][2]>0 and self.values[5][3]>0:
+ execargs.append('-x')
+ execargs.append('%d'%self.values[5][0])
+ execargs.append('-y')
+ execargs.append('%d'%self.values[5][1])
+ execargs.append('-width')
+ execargs.append('%d'%(self.values[5][2]-self.values[5][0]))
+ execargs.append('-height')
+ execargs.append('%d'%(self.values[5][3]-self.values[5][1]))
+ for i in range(4):
+ self.values[5][i]=-1
+ if self.values[6]>0:
+ execargs.append('-delay')
+ execargs.append('%d'%self.values[6])
+ execargs.append('-channels')
+ execargs.append('%d'%self.values[7])
+ execargs.append('-freq')
+ execargs.append('%d'%self.values[8])
+ execargs.append('-device')
+ execargs.append('%s'%self.values[9])
+ execargs.append('-v_quality')
+ execargs.append('%d'%self.values[10])
+ execargs.append('-s_quality')
+ execargs.append('%d'%self.values[11])
+ if self.values[12] != "$DISPLAY":
+ execargs.append('-display')
+ execargs.append('%s'%self.values[12])
+ if self.values[14] == 0:
+ execargs.append('--drop-frames')
+ execargs.append('-shared-threshold')
+ execargs.append('%d'%self.values[15])
+ if self.values[16] == 0:
+ execargs.append('--quick-subsampling')
+
+
+ print execargs
self.rmdPid=os.fork()
© All Rights Reserved