From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/scripts/xsltproc.kmdr | 294 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 294 insertions(+) create mode 100755 quanta/scripts/xsltproc.kmdr (limited to 'quanta/scripts/xsltproc.kmdr') diff --git a/quanta/scripts/xsltproc.kmdr b/quanta/scripts/xsltproc.kmdr new file mode 100755 index 00000000..0341f681 --- /dev/null +++ b/quanta/scripts/xsltproc.kmdr @@ -0,0 +1,294 @@ + +xslt_processor +Kommander front-end to xsltproc for Quanta Plus. +Chris Hornbaker + + + Form1 + + + + 0 + 0 + 461 + 250 + + + + Quanta+: xsltproc + + + + unnamed + + + 11 + + + 6 + + + + Layout5 + + + + unnamed + + + 0 + + + 6 + + + + Spacer4 + + + Horizontal + + + Expanding + + + + 30 + 0 + + + + + + ExecButton1 + + + &Translate + + + + # Set up the CMDLINE var and run xsltproc +@GroupBox1 +xsltproc $CMDLINE + + + + + + CloseButton1 + + + &Close + + + + + + + GroupBox1 + + + + + + + # get file to be tested location +@CheckBox1 +if [ !$CUR ] + then + TMP0=`dcop | grep quanta` + TMP1=`dcop $TMP0 WindowManagerIf currentURL` + FILE=`echo $TMP1 | cut -b6-` + else + FILE=`echo '@FileSelector1'` +fi + +STYLESHEET=`echo '@FileSelector2'` + +OPFILE=`echo '@LineEdit1'` + +# Put it all together +CMDLINE="-o $HOME/$OPFILE $STYLESHEET $FILE" + + + + + unnamed + + + 11 + + + 6 + + + + Layout17 + + + + unnamed + + + 0 + + + 6 + + + + CheckBox1 + + + Current file + + + true + + + + + + # Check if we're using the current file and make note of it +if [ !@FileSelector1 ] + then + CUR=1 + else + CUR='' +fi + + + + + + Layout15 + + + + unnamed + + + 0 + + + 6 + + + + TextLabel1 + + + false + + + File location: + + + + + FileSelector1 + + + false + + + + @widgetText + + + + + + + + Layout14 + + + + unnamed + + + 0 + + + 6 + + + + TextLabel2 + + + Stylesheet location: + + + + + FileSelector2 + + + + @widgetText + + + + + + + + Layout13 + + + + unnamed + + + 0 + + + 6 + + + + TextLabel1_2 + + + Output file name: + + + + + LineEdit1 + + + + + + + @widgetText + + + + + + + + + + + + + + CheckBox1 + toggled(bool) + FileSelector1 + setDisabled(bool) + + + CheckBox1 + toggled(bool) + TextLabel1 + setDisabled(bool) + + + + -- cgit v1.2.3