summaryrefslogtreecommitdiffstats
path: root/quanta/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/scripts')
-rw-r--r--quanta/scripts/Makefile.am17
-rw-r--r--quanta/scripts/TemplateMagic.pl380
-rw-r--r--quanta/scripts/TemplateMagic.pl.info14
-rwxr-xr-xquanta/scripts/checkxml.kmdr286
-rw-r--r--quanta/scripts/checkxml.kmdr.info14
-rwxr-xr-xquanta/scripts/docbook_table.kmdr250
-rwxr-xr-xquanta/scripts/dwt.kmdr192
-rw-r--r--quanta/scripts/dwt.kmdr.info14
-rw-r--r--quanta/scripts/dwt.pl409
-rw-r--r--quanta/scripts/dwt.pl.info13
-rw-r--r--quanta/scripts/externalpreview.sh22
-rw-r--r--quanta/scripts/externalpreview.sh.info14
-rwxr-xr-xquanta/scripts/gubed_install.kmdr295
-rw-r--r--quanta/scripts/gubed_install.kmdr.info13
-rwxr-xr-xquanta/scripts/htmlquickstart.kmdr987
-rw-r--r--quanta/scripts/htmlquickstart.kmdr.info14
-rw-r--r--quanta/scripts/info.css13
-rw-r--r--quanta/scripts/info.xsl73
-rwxr-xr-xquanta/scripts/listwizard.kmdr441
-rwxr-xr-xquanta/scripts/meinproc.kmdr284
-rw-r--r--quanta/scripts/meinproc.kmdr.info14
-rwxr-xr-xquanta/scripts/picturewizard.kmdr587
-rwxr-xr-xquanta/scripts/scriptinfo.kmdr454
-rw-r--r--quanta/scripts/scriptinfo.kmdr.info13
-rwxr-xr-xquanta/scripts/tablewizard.kmdr449
-rwxr-xr-xquanta/scripts/tidy.kmdr1078
-rw-r--r--quanta/scripts/tidy.kmdr.info9
-rwxr-xr-xquanta/scripts/xmlval.kmdr499
-rw-r--r--quanta/scripts/xmlval.kmdr.info14
-rwxr-xr-xquanta/scripts/xsltproc.kmdr294
-rw-r--r--quanta/scripts/xsltproc.kmdr.info14
31 files changed, 7170 insertions, 0 deletions
diff --git a/quanta/scripts/Makefile.am b/quanta/scripts/Makefile.am
new file mode 100644
index 00000000..00a74dea
--- /dev/null
+++ b/quanta/scripts/Makefile.am
@@ -0,0 +1,17 @@
+quantadir = ${quanta_datadir}/scripts
+
+quanta_DATA = scriptinfo.kmdr.info dwt.pl dwt.kmdr.info \
+ tidy.kmdr.info checkxml.kmdr.info meinproc.kmdr.info \
+ xmlval.kmdr.info xsltproc.kmdr.info htmlquickstart.kmdr.info \
+ TemplateMagic.pl TemplateMagic.pl.info info.css externalpreview.sh \
+ info.xsl externalpreview.sh.info dwt.pl.info gubed_install.kmdr.info
+
+
+execquantadir = ${quanta_datadir}/scripts
+
+execquanta_SCRIPTS = scriptinfo.kmdr dwt.kmdr tidy.kmdr \
+ checkxml.kmdr meinproc.kmdr \
+ xmlval.kmdr xsltproc.kmdr \
+ htmlquickstart.kmdr \
+ gubed_install.kmdr \
+ listwizard.kmdr picturewizard.kmdr tablewizard.kmdr docbook_table.kmdr
diff --git a/quanta/scripts/TemplateMagic.pl b/quanta/scripts/TemplateMagic.pl
new file mode 100644
index 00000000..40b3b2d1
--- /dev/null
+++ b/quanta/scripts/TemplateMagic.pl
@@ -0,0 +1,380 @@
+#!/usr/bin/perl
+#
+# Template Magic for Quanta:
+# This script is intended to be used as a sample of some of the possibilities of integrating
+# Kommander and Quanta. It's hoped that this can serve as a basic example of how Kommander works
+# and how it can speed you're web development.
+#
+# This script exists in the public domain and may be freely copied and redistributed. Please just
+# let me know that you used my script and what you're doing (I like new ideas).
+#
+# As usual, if this script by some means manages to do any harm to you, your computer, your animal,
+# your relatives or your animal relatives, feel free to vent to me in email and I'll try to fix the
+# script. You'll have to take care of the livestock.
+#
+# Template variables are of the form [ varname:vartype ] where vartype can be either
+# 'file', 'filename' or 'text'. Filename and file are two slight variations on the same theme
+# as both allow you to select a file from your filesystem, file will insert the contents of that
+# file whereas filename will simply insert the filename (with the path). Text is simply a rich
+# text field that can take a good little bit of text (the limitation if any will exist in
+# Kommander or your computers memory).
+#
+# Cheers,
+# --Robert Nickel <robert@artnickel.com>
+# Quanta Development Team Groupie
+#'
+
+use strict;
+# disable buffereing - otherwise everything waits till we quit
+$| = 1;
+
+my $tmversion = "2.0";
+
+#my $template=`kmdr-executor /tmp/TM.kmdr`;
+
+# adapt - passed parameter is template
+
+my $template = @ARGV[0];
+
+open(IFH, "< $template") || die("Couldn't read $template\n");
+
+my ($tmp,@ar,@OrderedVars,%Vars,%Vals,$i,$k,$v,$l,$r,$ns,@filechars,$fname,@VarData,@VD,$j);
+
+my $max_ui_height=800; #Maximum screen height of ui dialog
+my $calcHeight=0; #Height of ui dialog, up to a max of $max_ui_height
+parseTemplateVars();
+
+close(IFH);
+
+srand (time ^ $$ ^ unpack "%L*", `ps axww | gzip`);
+for (48..57,65..90,97..122) { push @filechars, chr(); } #Chars for tmp filename
+$fname="/tmp/";
+for (0..10) { $fname.=$filechars[rand 62]; }
+$fname.=".quanta.template";
+
+#uncomment this line if you're having grief with the generated kmdr file.'
+#and comment out the rm -f a little farther down.
+#$fname="/tmp/quanta_template.kmdr";
+
+open(OFH, "> $fname") || die("Couldn't create temp file $fname\n");
+&createUI();
+close(OFH);
+
+@VarData=`kmdr-executor $fname`; #We now have var:value one per line.
+
+#Ok. Let's get that pesky template loaded and output it to something useful.'
+#print "Data from kommander:\n";
+$j=0;
+for $i (@VarData) {
+ chomp($i);
+ if($i=~/^\+\+\+\+\z/) { #end of record marker
+ $j++;
+ } else { #add the contents to the end of the string
+ if(length($VD[$j])>0) { $VD[$j].=" "; }
+ $VD[$j].=$i;
+ }
+}
+
+for $i (@VD) {
+ chomp($i);
+ if($i ne "") {
+ ($k,$v)=split(/:/,$i,2); #This should give us key:value pair separated.
+# print "$k: '$v'\n";
+ if(exists($Vars{$k})) {
+ $Vals{$k}=$v;
+ } else { die("Inconsistent variable: $k.\nBailing....\n"); }
+ }
+}
+
+open(IFH, "< $template") || die("Couldn't read $template\n"); #reopen file to reset file pointer
+
+&insertTemplateValues();
+
+close(IFH);
+
+#cleanup temp file
+`rm -f $fname`;
+exit(0);
+
+sub usage() {
+ my $msg=shift();
+ print "$msg\n\nUsage: $0 <path-to-template>\n";
+ exit(1);
+}
+
+sub parseTemplateVars() {
+ $calcHeight=40; #base height for button.
+ @OrderedVars=(); #initialize this! Who knows?
+ while($tmp=<IFH>) {
+ chomp($tmp);
+ if($tmp=~/\[\s*\S+\s*\]/) { #Only parse on matches - Changed delimieters from |<- ->| to [ ]
+ $tmp=~s/^[^\[]*(\[\s*\S+\s*\])[^\[]*/$1/g;
+ $l=index($tmp,"[");
+ while($l>=0) {
+ $r=index($tmp,"]");
+ $ns=substr($tmp,$l+1,$r-1);
+ $ns=~s/\[\s*(\S+)\s*\]/$1/;
+ $ns=~s/\s//g; #no spaces!
+ ($k,$v)=split(/:/,$ns,2);
+ if(exists($Vars{$k}) && $v ne $Vars{$k}) {
+ die("Multiple definitions for variable $k - '$v' != '$Vars{$k}'.\n");
+ }
+ if(! exists($Vars{$k})) { push @OrderedVars, ["$k","$v"]; }
+ $Vars{$k}=$v;
+ $calcHeight+=$v eq "text" ? 35 : 25;
+ $tmp=substr($tmp,$r+1);
+ $l=index($tmp,"[");
+ }
+ }
+ }
+
+=pod
+ print "="x80 . "\n";
+ print "Variables found:\n";
+ for $i (keys %Vars) {
+ print "$i - $Vars{$i}\n";
+ }
+=cut
+}
+
+sub insertTemplateValues() {
+ my ($subcntr, $pre, $post);
+
+ while($tmp=<IFH>) {
+ $subcntr=0; #sanity. Make sure we don't run away with substitutions.'
+ while($tmp=~/\[\s*\S+\s*\]/ && $subcntr<100) { #Only do substitutions on matches.
+ for $k (keys %Vars) {
+ $tmp=~s/\[\s*$k:$Vars{$k}\s*]/$Vals{$k}/;
+ }
+ $subcntr++;
+ }
+ print $tmp;
+ }
+}
+
+sub header() {
+ #----------- Header -----------
+ if($calcHeight>$max_ui_height) { $calcHeight=$max_ui_height; } #Max!
+ print OFH <<E
+ <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+ <class>TemplateVarList</class>
+ <widget class="Dialog">
+ <property name="name">
+ <cstring>TemplateVarList</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>600</width>
+ <height>$calcHeight</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Template Magic (for Quanta 3.1.9) version $tmversion</string>
+ </property>
+E
+;
+}
+
+sub footer() {
+ #----------- Footer -----------
+ my $theSpot=$calcHeight-30;
+ print OFH <<E
+ <widget class="CloseButton">
+ <property name="name">
+ <cstring>CloseButton2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>300</x>
+ <y>$theSpot</y>
+ <width>121</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Create Document</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>
+E
+;
+
+ $i=0;
+ for $k (keys %Vars) {
+ if($i>0) { print OFH "\n"; }
+ $i++;
+ print OFH "echo -e '$k:\@$k\\n++++'";
+ }
+print OFH <<E
+ </string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </widget>
+ <layoutdefaults spacing="6" margin="11"/>
+ </UI>
+
+E
+;
+}
+
+sub createUI() {
+=pod
+Structure for label widget: height is 20
+
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel2_2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>40</y>
+ <width>130</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Variable2-FileInput</string>
+ </property>
+ </widget>
+
+Structure for a file widget: height is 20
+
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>FileSelector2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>50</y>
+ <width>441</width>
+ <height>20</height>
+ </rect>
+ </property>
+ </widget>
+
+Structure for a text widget: height is 30
+
+ <widget class="TextEdit">
+ <property name="name">
+ <cstring>TextEdit1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>10</y>
+ <width>440</width>
+ <height>30</height>
+ </rect>
+ </property>
+ <property name="vScrollBarMode">
+ <enum>AlwaysOff</enum>
+ </property>
+ <property name="hScrollBarMode">
+ <enum>AlwaysOff</enum>
+ </property>
+ </widget>
+.
+=cut
+
+ header();
+
+ my %Layouts;
+ my ($y_loc)=0;
+ for $k (0..$#OrderedVars) {
+ $Layouts{$OrderedVars[$k][0]}{y}=$y_loc;
+ print OFH <<E
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>LBL_$OrderedVars[$k][0]</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>$y_loc</y>
+ <width>130</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>$OrderedVars[$k][0]:</string>
+ </property>
+ </widget>
+E
+;
+ SWITCH: for ($OrderedVars[$k][1]) {
+ /file|filename/ && do { $y_loc+=25; last SWITCH; };
+ /text/ && do { $y_loc+=35; last SWITCH; };
+ }
+ }
+
+ for $k (0..$#OrderedVars) {
+
+ SWITCH: for ($OrderedVars[$k][1]) {
+ /file|filename/ && do {
+ print OFH <<E
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>$OrderedVars[$k][0]</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>$Layouts{$OrderedVars[$k][0]}{y}</y>
+ <width>440</width>
+ <height>20</height>
+ </rect>
+ </property>
+        <property name="associations" stdset="0">
+            <stringlist>
+                <string>\@widgetText</string>
+            </stringlist>
+        </property>
+ </widget>
+E
+;
+ last SWITCH;
+ };
+ /text/ && do {
+ print OFH <<E
+ <widget class="TextEdit">
+ <property name="name">
+ <cstring>$OrderedVars[$k][0]</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>$Layouts{$OrderedVars[$k][0]}{y}</y>
+ <width>440</width>
+ <height>30</height>
+ </rect>
+ </property>
+        <property name="associations" stdset="0">
+            <stringlist>
+                <string>\@widgetText</string>
+            </stringlist>
+        </property>
+ <property name="vScrollBarMode">
+ <enum>AlwaysOff</enum>
+ </property>
+ <property name="hScrollBarMode">
+ <enum>AlwaysOff</enum>
+ </property>
+ </widget>
+E
+;
+ last SWITCH;
+ };
+ }
+ }
+
+ footer();
+}
diff --git a/quanta/scripts/TemplateMagic.pl.info b/quanta/scripts/TemplateMagic.pl.info
new file mode 100644
index 00000000..4f10013e
--- /dev/null
+++ b/quanta/scripts/TemplateMagic.pl.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type=text/xsl href=info.xsl ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options interpreter="perl" />
+<name>TemplateMagic</name>
+<author>Eric Laffoon and Robert Nickel</author>
+<email>sequitur@kde.org</email>
+<website>http://quanta.sf.net</website>
+<version>2.0</version>
+<license>GPL</license>
+<about>This is mostly written by Robert and a result of a collaboration to enhance Quanta templates and demonstrate uses for Kommander. <br /><br />
+You can create fields in your templates by placing them in square brackets like so <strong>[fieldname:type]</strong> where type is text, file or filename. File and filename being different in either contents or name. The fields will be replaced with template insertion. This works with text (text/all) and document (template/all) templates. Other fields and functionality are planned. If you enhance this script please send us a copy.</about>
+</INFO>
diff --git a/quanta/scripts/checkxml.kmdr b/quanta/scripts/checkxml.kmdr
new file mode 100755
index 00000000..4e83a9f6
--- /dev/null
+++ b/quanta/scripts/checkxml.kmdr
@@ -0,0 +1,286 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Form3</class>
+<comment>Quanta+ KDE XML Validator is a Kommander front-end for checkXML.</comment>
+<author>Chris Hornbaker</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form3</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>432</width>
+ <height>153</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Quanta+ KDE XML Validator</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout26</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="1" column="0">
+ <property name="name">
+ <cstring>Layout7</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer8</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>ExecButton2</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;Validate</string>
+ </property>
+ <property name="on">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>if [ !@FileSelector4 ]
+ then
+ CUR=1
+ else
+ CUR=''
+fi
+if [ !$CUR ]
+ then
+ TMP0=`dcop | grep quanta`
+ TMP1=`dcop $TMP0 WindowManagerIf projectURL`
+ DIR=`echo $TMP1 | cut -b6-`
+ else
+ DIR=`echo '@FileSelector4'`
+fi
+cd $DIR
+#meinproc --check --stdout index.docbook
+checkXML index.docbook 2&gt;&amp;1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CloseButton">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="GroupBox" row="0" column="0">
+ <property name="name">
+ <cstring>ValScript</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>Layout10</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>CheckBox4</cstring>
+ </property>
+ <property name="text">
+ <string>C&amp;urrent working folder</string>
+ </property>
+ <property name="autoRepeat">
+ <bool>false</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer9</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Other folder:</string>
+ </property>
+ </widget>
+ <spacer row="1" column="1">
+ <property name="name">
+ <cstring>Spacer5</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>89</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="FileSelector" row="1" column="2">
+ <property name="name">
+ <cstring>FileSelector4</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>FileSelector4</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>CheckBox4</tabstop>
+ <tabstop>ExecButton2</tabstop>
+ <tabstop>CloseButton1</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/checkxml.kmdr.info b/quanta/scripts/checkxml.kmdr.info
new file mode 100644
index 00000000..74d5d488
--- /dev/null
+++ b/quanta/scripts/checkxml.kmdr.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="info.xsl" ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>checkxml</name>
+<author>Chris Hornbaker</author>
+<email>jilks@openschooling.org</email>
+<website></website>
+<version>1.0</version>
+<license>GPL v2</license>
+<about>This Kommander script uses checkXML from kdelibs to validate KDE DocBook files.</about>
+</INFO>
+
diff --git a/quanta/scripts/docbook_table.kmdr b/quanta/scripts/docbook_table.kmdr
new file mode 100755
index 00000000..69778134
--- /dev/null
+++ b/quanta/scripts/docbook_table.kmdr
@@ -0,0 +1,250 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>DocBook_Table</class>
+<comment>Cria uma tabela em um documento docbook</comment>
+<author>Huberto Gastal Mayer</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>266</width>
+ <height>401</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Docbook Table</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property name="font">
+ <font>
+ <pointsize>15</pointsize>
+ <bold>1</bold>
+ </font>
+ </property>
+ <property name="text">
+ <string>DocBook Table</string>
+ </property>
+ <property name="alignment">
+ <set>AlignCenter</set>
+ </property>
+ </widget>
+ <widget class="GroupBox" row="1" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>echo '&lt;table id="@le_id"&gt;'
+echo ' &lt;title&gt;@te_descr&lt;/title&gt;'
+echo ' &lt;tgroup cols=""&gt;'
+
+@cb_title
+
+echo ' &lt;tbody&gt;'
+@sb_lin
+echo ' &lt;/tbody&gt;'
+
+echo ' &lt;/tgroup&gt;'
+echo '&lt;/table&gt;'
+
+
+</string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="3" column="0">
+ <property name="name">
+ <cstring>TextLabel4</cstring>
+ </property>
+ <property name="text">
+ <string>id:</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="3" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>le_id</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="TextEdit" row="5" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>te_descr</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="4" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TextLabel5</cstring>
+ </property>
+ <property name="text">
+ <string>Description:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>Columns</string>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="1" column="2">
+ <property name="name">
+ <cstring>sb_lin</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>l=0
+while [ $l -le @widgetText ]
+do
+
+ echo ' &lt;row&gt;';
+
+ @sb_col
+
+ echo ' &lt;/row&gt;';
+
+ l=$((l+1))
+
+done
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Lines</string>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="0" column="2">
+ <property name="name">
+ <cstring>sb_col</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>c=0
+while [ $c -le @widgetText ]
+do
+
+ echo " &lt;entry&gt;&lt;/entry&gt;"
+
+ c=$((c+1))
+
+done
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="2" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>cb_title</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Include title line</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string>echo ' &lt;thead&gt;';
+echo ' &lt;row&gt;';
+
+@sb_col
+
+echo ' &lt;/row&gt;';
+echo ' &lt;/thead&gt;';</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="CloseButton" row="2" column="0">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;OK</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@GroupBox1</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="2" column="1">
+ <property name="name">
+ <cstring>CloseButton1_2</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<tabstops>
+ <tabstop>sb_col</tabstop>
+ <tabstop>sb_lin</tabstop>
+ <tabstop>cb_title</tabstop>
+ <tabstop>le_id</tabstop>
+ <tabstop>te_descr</tabstop>
+ <tabstop>CloseButton1</tabstop>
+ <tabstop>CloseButton1_2</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/dwt.kmdr b/quanta/scripts/dwt.kmdr
new file mode 100755
index 00000000..1fab1576
--- /dev/null
+++ b/quanta/scripts/dwt.kmdr
@@ -0,0 +1,192 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>dwt</class>
+<comment>Kommander dialog for the dwt script.</comment>
+<author>Benjamin Stocker</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>dwt</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>408</width>
+ <height>338</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>dwt - Apply Dreamweaver Template</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CloseButton" row="1" column="2">
+ <property name="name">
+ <cstring>cmdClose</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ <widget class="ExecButton" row="1" column="1">
+ <property name="name">
+ <cstring>cmdOK</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;OK</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>xclock sdsdsdsdsd </string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="TabWidget" row="0" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>tabMain</cstring>
+ </property>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Script</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>lblProject</cstring>
+ </property>
+ <property name="text">
+ <string>Full project path:</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="4" column="0">
+ <property name="name">
+ <cstring>chkDebug</cstring>
+ </property>
+ <property name="text">
+ <string>Show debug messages</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="3" column="0">
+ <property name="name">
+ <cstring>txtScript</cstring>
+ </property>
+ <property name="text">
+ <string>dwt.pl</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="2" column="0">
+ <property name="name">
+ <cstring>lblScript</cstring>
+ </property>
+ <property name="text">
+ <string>Script location:</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="1" column="0">
+ <property name="name">
+ <cstring>txtProjectPath</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer row="5" column="0">
+ <property name="name">
+ <cstring>Spacer5</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>0</width>
+ <height>80</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Help</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>txtHelp</cstring>
+ </property>
+ <property name="text">
+ <string>The dwt Script will apply actual Dreamweaver templates to all your project files. Just enter the FULL project path and specify where the script dwt.pl can be found.</string>
+ </property>
+ <property name="textFormat">
+ <enum>AutoText</enum>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignTop|AlignLeft</set>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </widget>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>Spacer4</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>225</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/dwt.kmdr.info b/quanta/scripts/dwt.kmdr.info
new file mode 100644
index 00000000..1aca85a1
--- /dev/null
+++ b/quanta/scripts/dwt.kmdr.info
@@ -0,0 +1,14 @@
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>dwt</name>
+<author>Benjamin Stocker</author>
+<email>bstocker@4s-hosting.ch</email>
+<website>http://www.4s-hosting.ch/bstocker/dwt</website>
+<version>1.11</version>
+<license>GPL</license>
+<about>DreamWeaver Template functionality.
+This is a perl script to apply a modified Dreamweaver (DW) template to files using this template. Macromedia Dreamweaver manages this automatically whenever you change a tepmplate. See DW Documentation for more infos.
+When you have a DW-Project with templates but no DW, you can change templates, but this changes will not be added to files using the template.
+This script can solve this problem. It takes the name of the FULL project path as argument, scans this path for html files with Template references and updates them. Therefore, all you have to do after updating a template is running this script instead of loading Dreamweaver.</about>
+</INFO>
diff --git a/quanta/scripts/dwt.pl b/quanta/scripts/dwt.pl
new file mode 100644
index 00000000..af823663
--- /dev/null
+++ b/quanta/scripts/dwt.pl
@@ -0,0 +1,409 @@
+#!/usr/bin/perl
+
+## dwt - perl script to support dreamweaver templates
+## Copyright (C) 2003 Benjamin Stocker <bstocker@4s-hosting.ch>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+## DESCRIPTION:
+## This is a perl script to apply a modified Dreamweaver (DW)
+## template to a file using this template. Macromedia
+## Dreamweaver manages this automatically whenever you
+## change a tepmplate. See DW Documentation for more infos.
+## When you have a DW-Project with templates but no DW, you
+## cann change templates, but this changes will not be added
+## to files using the template.
+## This script can solve this problem. It takes the name of a
+## file as argument, scans this file for a template and adds
+## all template changes to the file.
+##
+## Check http://sys.4s-hosting.ch/bstocker/dwt/
+## for more informations and updates.
+##
+## Please, let me know it this script works for you, your questions
+## and comments are welcome!
+
+use Getopt::Std;
+use IO::Dir;
+
+# Write debug informations to STDOUT (-d)
+$DEBUG=0;
+# Version
+$VERSION="1.11 (06/9/2003)";
+# Display result on screen (-o);
+$SCREEN=0;
+# Extensions to search
+$SEXT="php:php3:php4:htm:html:phtml";
+@AEXT=split(':',$SEXT);
+
+&CheckArguments();
+
+## Check command line arguments
+if ($ARGV[0] eq '') {
+ &Usage;
+}
+$PROJECTPATH=$ARGV[0];
+$PROJECTPATH=&ExpandPath($PROJECTPATH);
+unless (-d $PROJECTPATH) {
+ print "FATAL: Cannot stat '$PROJECTPATH'. argument must be a directory\n";
+ exit;
+}
+
+&ScanDir($PROJECTPATH);
+
+# All done!
+exit(0);
+
+##
+## Scan all directories and files in specified path
+##
+sub ScanDir($) {
+ my $path=$_[0];
+ my ($dirname,$newpath,%dhf);
+ tie %dhf, IO::Dir, $path;
+ if (defined %dhf) {
+ foreach $dirname(keys(%dhf)) {
+ if ($dirname ne '.' and $dirname ne '..') {
+ $newpath="$path/$dirname";
+ &CheckExtension($newpath);
+ if (-d $newpath) {
+ &ScanDir($newpath);
+ }
+ }
+ }
+ } else {
+ die "FATAL: Cannot list $path";
+ }
+ undef $dhf;
+}
+
+##
+## Check if extension matches
+##
+sub CheckExtension($) {
+ my $filename=$_[0];
+ my $s;
+ foreach $s (@AEXT) {
+ if ($filename=~/\.$s$/i) {
+ &DebugMsg($filename);
+ &DoDWT($filename);
+ }
+ }
+}
+
+##
+## Merge template and document
+##
+sub DoDWT($) {
+ my $filename=$_[0];
+ my (@v,$source,$templatesource,$templatename);
+ my ($p1,$p2,$region,$rbegin,$rend,$rbuf,$q1,$q2);
+
+ # Read file into buffer
+ open HF, $filename or die "FATAL: Cannot open: $filename";
+ @v=<HF>; $source=join("",@v); $source=&Dos2Unix($source);
+ close HF;
+
+ # Extract template name from buffer
+ $templatename=&GetTemplateName($source);
+ if ($templatename eq '') {
+ print "NOTE: Could not extract template name from $filename\n";
+ return; # function execution ends here! NW would not like that :)
+ }
+
+ # Open template file
+ $templatename=&BuildPathName($templatename,$PROJECTPATH);
+ open HF, $templatename or die "FATAL: Cannot open template file: $templatename";
+ @v=<HF>; $templatesource=join("",@v);
+ $templatesource=&Dos2Unix($templatesource);
+ close HF;
+
+ # Correct links in template
+ $templatesource=&CorrectLinks($templatesource,$PROJECTPATH,$filename);
+
+ # Rebuild file using template
+ $p1=index($templatesource,"<!-- #BeginEditable ");
+ while ($p1>=0) {
+ $p1=index($templatesource,"\"",$p1);
+ if ($p1>=0) {
+ $p1=$p1+1;
+ $p2=index($templatesource,"\"",$p1);
+ $region=substr($templatesource,$p1,$p2-$p1);
+ &DebugMsg("Region: $region");
+ # Get region from file and paste into template
+ $rbegin="<!-- #BeginEditable \"$region\" -->";
+ $rend="<!-- #EndEditable -->"; # 21 characters, see below!
+ $q1=index($source,$rbegin);
+ $q2=index($source,$rend,$q1);
+ if ($q1>=0 and $q2>=0) {
+ # Extract from file
+ $rbuf=substr($source,$q1,$q2-$q1+21);
+ # Paste into template
+ $q1=index($templatesource,$rbegin);
+ $q2=index($templatesource,$rend,$q1);
+ if ($q1>=0 and $q2>=0) {
+ $q2=$q2+21;
+ $templatesource=substr($templatesource,0,$q1).$rbuf.substr($templatesource,$q2);
+ } else {
+ print "WARNING: Could not find region '$region' in template $templatename";
+ }
+ } else {
+ print "WARNING: Could not find region '$region' in $filename";
+ }
+ }
+ $p1=index($templatesource,"<!-- #BeginEditable ",$p1);
+ } # while
+
+ # Editable blocks inserted, now get library elements
+ $templatesource=&InsertLibs($templatesource, $projectpath, $filename);
+
+ # Finally, build frame
+ $templatesource=&RemoveHtmlTags($templatesource);
+ $templatesource=&AddHtmlTags($templatesource,$source);
+
+ # Save new file or write it to STDOUT
+ if (!$SCREEN) {
+ print "Updating $filename\n";
+ open HF,">$filename" or die "FATAL: Cannot create $filename";
+ print HF $templatesource;
+ close HF;
+ } else {
+ print $templatesource;
+ }
+}
+
+##
+## Extract template filename
+##
+sub GetTemplateName() {
+ my ($p1,$p2,$v);
+ my $source=$_[0];
+ my $templatename="";
+
+ $p1=index($source, "<!-- #BeginTemplate ");
+ if ($p1>=0) {
+ $p1=index($source,"\"",$p1);
+ if ($p1>=0) {
+ $p1=$p1+1;
+ $p2=index($source,"\"",$p1);
+ $templatename=substr($source,$p1,$p2-$p1);
+ &DebugMsg("Template to be used: $templatename");
+ }
+ }
+ return $templatename;
+}
+
+##
+## Add path specification to template filename, so it ca be opened
+##
+sub BuildPathName() {
+ my $templatename=$_[0];
+ my $prp=$_[1];
+ $templatename="$prp/$templatename";
+ # Remove unneeded slashes
+ $templatename=~s/\/\//\//g;
+ return $templatename;
+}
+
+##
+## Remove header and footer from Template
+##
+sub RemoveHtmlTags() {
+ my $p1;
+ my $templatesource=$_[0];
+ $p1=index($templatesource,"<head>"); # 6 chars
+ if ($p1>=0) {
+ $p1=$p1+6;
+ $templatesource=substr($templatesource,$p1);
+ } else {
+ print "WARNING: Could not find <head> tag in template $templatename";
+ }
+ $p1=index($templatesource,"</body>");
+ if ($p1>=0) {
+ $templatesource=substr($templatesource,0,$p1);
+ } else {
+ print "WARNING: Could not find </body> tag in template $templatename";
+ }
+ return $templatesource;
+}
+
+##
+## Add header and footer tags from source file to template
+##
+sub AddHtmlTags() {
+ my ($p1,$hstart,$hend);
+ my $templatesource=$_[0];
+ my $source=$_[1];
+
+ $p1=index($source,"<head>"); # 6 chars
+ if ($p1>=0) {
+ $p1=$p1+6;
+ $hstart=substr($source,0,$p1);
+ } else {
+ print "WARNING: Could not find <head> tag in $filename";
+ }
+ $p1=index($source,"</body>");
+ if ($p1>=0) {
+ $hend=substr($source,$p1);
+ } else {
+ print "WARNING: Could not find </body> tag in $filename";
+ }
+ return "$hstart$templatesource$hend";
+}
+
+##
+## Remove '\r' (DOS CRLF Format -> UNIX)
+##
+sub Dos2Unix() {
+ my $v=$_[0];
+ $v=~s/\r//gm;
+ return $v;
+}
+
+##
+## Correct template links in new created buffer
+##
+sub CorrectLinks() {
+ my $ts=$_[0];
+ my $prp=$_[1];
+ my $filename=$_[2];
+ my $l;
+
+ # Remove filename
+ $l=rindex($filename,'/');
+ $filename=substr($filename,0,$l);
+ # Get remaining path specification
+ $l=length($prp); $filename=substr($filename,$l);
+ $filename.='/'; $filename=~s/\/\//\//;
+ $ts=~s/\.\.$filename//g;
+ return $ts;
+}
+
+##
+## Insert library items (if any)
+##
+sub InsertLibs() {
+ my $source=$_[0];
+ my $projectpath=$_[1];
+ my $sourcepath=$_[2];
+ my ($p1, $p2, $p3, $lib, $libpath);
+
+ my (@alb, $lb);
+
+ # Scan for library items
+ $p1=index($source,"<!-- #BeginLibraryItem ");
+ while ($p1>=0) {
+ # Found, get lib name
+ $p1=index($source,"\"",$p1);
+ if ($p1>=0) {
+ $p1=$p1+1;
+ $p2=index($source,"\"",$p1);
+ $lib=substr($source,$p1,$p2-$p1);
+ &DebugMsg("Library item: $lib");
+ # Read library from disk
+ $libpath="$projectpath$lib";
+ open LHF, $libpath or die "FATAL: Cannot read library file $libpath";
+ @alb=<LHF>;
+ $lb=join("", @alb);
+ $lb=&Dos2Unix($lb);
+ $lb=&CorrectLinks($lb, $projectpath, $sourcepath);
+ close LHF;
+ # Replace item
+ $p2=index($source, "-->", $p2);
+ if ($p2>=0) {
+ $p2=$p2+3;
+ $p3=index($source, "<!-- #EndLibraryItem -->", $p2);
+ if ($p3>=0) {
+ # Build the updated document
+ $source=substr($source, 0, $p2) . $lb . substr($source, $p3);
+ } else {
+ print "WARNING: End tag for library $lib not found ";
+ }
+ } else {
+ print "WARNING: Error in library tag $lib. Please correcet markup";
+ }
+ }
+ $p1=index($source,"<!-- #BeginLibraryItem ", $p1);
+ }
+ return $source;
+}
+
+sub DebugMsg($) {
+ print "# $_[0]\n" if ($DEBUG);
+}
+
+##
+## Show a small help screen
+##
+sub Usage() {
+ print "Usage: dwt.pl [-dov -e extensions] projectpath\n";
+ print " -d Show debug messages\n";
+ print " -o Show result but do not save it to file\n";
+ print " -v Show version\n";
+ print " -e Set extensions to search for (default: $SEXT)\n";
+ exit;
+}
+
+##
+## Show version
+##
+sub Version() {
+ print "this is dwt $VERSION\n";
+ exit;
+}
+
+##
+## Check command line arguments
+##
+sub CheckArguments() {
+ my (%args, $s);
+
+ &getopt('e',\%args);
+ foreach $s (keys(%args)) {
+ if ($s eq 'o') {
+ $SCREEN=1;
+ } elsif ($s eq 'd') {
+ $DEBUG=1;
+ } elsif ($s eq 'v') {
+ &Version();
+ } elsif ($s eq 'e') {
+ @AEXT=split(':',$args{$s});
+ } else {
+ print "Unknown option: -$s\n";
+ &Usage();
+ }
+ }
+}
+
+##
+## Convert relative to absolute path
+##
+sub ExpandPath($) {
+ my $filename=$_[0];
+ my $pwd=$ENV{PWD};
+ # Convert filename to full pathname. Maybe there is a better way to do that?
+ # Could not find answer how to expand filename to full path at comp.lang.perl.*
+ if (substr($filename,0,1) ne '/') {
+ $filename="$pwd/$filename";
+ $filename=~s/\/[a-zA-Z0-9]+?\/\.\.\//\//; # Remove ' xxx/../ '
+ $filename=~s/\/\//\//g; # Remove ' // '
+ $filename=~s/\/\.//g; # Remove ' ./ '
+ }
+ $filename=~s/\/$//;
+ return $filename;
+}
+
+# EOF
+
diff --git a/quanta/scripts/dwt.pl.info b/quanta/scripts/dwt.pl.info
new file mode 100644
index 00000000..584322df
--- /dev/null
+++ b/quanta/scripts/dwt.pl.info
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type=text/xsl href=info.xsl ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options interpreter="perl" />
+<name>dwt.pl</name>
+<author>Benjamin Stocker</author>
+<email>bstocker@4s-hosting.ch</email>
+<website>http://www.4s-hosting.ch/bstocker/dwt </website>
+<version></version>
+<license>GPL</license>
+<about>Internally used by the dwt.kmdr script.</about>
+</INFO>
diff --git a/quanta/scripts/externalpreview.sh b/quanta/scripts/externalpreview.sh
new file mode 100644
index 00000000..9bc67fa7
--- /dev/null
+++ b/quanta/scripts/externalpreview.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#Previews the current document in Mozilla/Netscape/Opera, depending
+#on the last two arguments (browsername, newtab command).
+#Might be adjusted in the feature to support more browsers.
+pid=$1
+currentURL=""
+if test $pid == "unique"
+then
+ currentURL=`dcop quanta WindowManagerIf saveCurrentFile`
+ shift
+else
+ currentURL=`dcop quanta-$pid WindowManagerIf saveCurrentFile`
+fi
+browser=$2
+newTab=$3
+if test $currentURL
+then
+ if ! $browser -remote "openURL($currentURL,$newTab)"
+ then
+ $browser $currentURL
+ fi
+fi \ No newline at end of file
diff --git a/quanta/scripts/externalpreview.sh.info b/quanta/scripts/externalpreview.sh.info
new file mode 100644
index 00000000..78e0db1a
--- /dev/null
+++ b/quanta/scripts/externalpreview.sh.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type=text/xsl href=info.xsl ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options interpreter="sh" />
+<name>externalpreview.sh</name>
+<author>Andras Mantia</author>
+<email>amantia@kde.org</email>
+<website>http://quanta.sf.net</website>
+<version>1.0</version>
+<license>GPL</license>
+<about>Script used by Quanta to display the current document in an external browser.
+If you have added support for new browsers, please send us a copy of the updated script.</about>
+</INFO>
diff --git a/quanta/scripts/gubed_install.kmdr b/quanta/scripts/gubed_install.kmdr
new file mode 100755
index 00000000..c362fabf
--- /dev/null
+++ b/quanta/scripts/gubed_install.kmdr
@@ -0,0 +1,295 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Gubed_install</class>
+<comment>Simple script to make installation of the Gubed PHP debugger server easier.</comment>
+<author>(C) 2004 Andras Mantia &lt;amantia@kde.org&gt;</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Gubed_install</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>578</width>
+ <height>327</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Gubed Installation v0.1</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>
+</string>
+ </stringlist>
+ </property>
+ <widget class="CloseButton">
+ <property name="name">
+ <cstring>CancelButton</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>490</x>
+ <y>289</y>
+ <width>77</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer1</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>332</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>302</y>
+ <width>332</width>
+ <height>16</height>
+ </rect>
+ </property>
+ </spacer>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>0</width>
+ <height>175</height>
+ </size>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>416</x>
+ <y>108</y>
+ <width>16</width>
+ <height>175</height>
+ </rect>
+ </property>
+ </spacer>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout5</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>11</y>
+ <width>556</width>
+ <height>62</height>
+ </rect>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Target directory:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>Archive name:</string>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="0" column="1">
+ <property name="name">
+ <cstring>gubedArchive</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Select the archive containing Gubed (tar.bz2 format)</string>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="1" column="1">
+ <property name="name">
+ <cstring>targetDirectory</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="selectionType">
+ <enum>Directory</enum>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>The target directory (example /var/www)</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>runServerCheck</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>79</y>
+ <width>473</width>
+ <height>23</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Run the server after installation has finished</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>RUN_SERVER=false</string>
+ <string></string>
+ <string>RUN_SERVER=true</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>If checked the server will be run in the background after the installation has finished</string>
+ </property>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>logViewCheck</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>110</y>
+ <width>340</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>View installation log</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string>VIEW_LOG=true</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Uncheck this if you do not want to see the installation log. The log may provide important information in case of installation failure.</string>
+ </property>
+ </widget>
+ <widget class="CloseButton">
+ <property name="name">
+ <cstring>InstallButton</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>349</x>
+ <y>289</y>
+ <width>135</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>&amp;Start Installation</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@logViewCheck
+@runServerCheck
+echo "Archive name: @gubedArchive"
+echo "Target directory: @targetDirectory"
+mkdir /tmp/gubed-install
+cd /tmp/gubed-install
+echo "Extracting the archive..." &gt; /tmp/gubed-install-log
+tar xfj @gubedArchive &gt;&gt; /tmp/gubed-install-log
+dirName=`ls`
+cd $dirName
+echo "Compiling the server..." &gt;&gt; /tmp/gubed-install-log
+cd Server
+echo "Running autogen.sh..." &gt;&gt; /tmp/gubed-install-log
+./autogen.sh &gt;&gt; /tmp/gubed-install-log
+echo "Running configure..." &gt;&gt; /tmp/gubed-install-log
+./configure &gt;&gt; /tmp/gubed-install-log
+echo "Running make..." &gt;&gt; /tmp/gubed-install-log
+make &gt;&gt; /tmp/gubed-install-log
+
+echo "Installing the server..." &gt;&gt; /tmp/gubed-install-log
+cd /tmp/gubed-install
+cp -r $dirName "@targetDirectory"
+
+if test "$RUN_SERVER" == "true"
+then
+ echo "Running the server..." &gt;&gt; /tmp/gubed-install-log
+ cd "@targetDirectory"
+ cd $dirName
+ cd Server/src
+ ./gbdServer &amp;
+fi
+
+if test "$VIEW_LOG" == "true"
+then
+ kwrite /tmp/gubed-install-log &amp;
+ sleep 10
+fi
+
+echo "Cleaning up..."
+rm /tmp/gubed-install-log
+cd /tmp/gubed-install
+find . | xargs rm -f &gt; /dev/null
+cd /tmp/gubed-install
+cd $dirName
+rm -f "docs/Theory of operation" &gt; /dev/null
+cd /tmp/gubed-install
+find . | xargs rmdir -p &gt; /dev/null
+rmdir /tmp/gubed-install &gt; /dev/null
+</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/gubed_install.kmdr.info b/quanta/scripts/gubed_install.kmdr.info
new file mode 100644
index 00000000..e5d017e7
--- /dev/null
+++ b/quanta/scripts/gubed_install.kmdr.info
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type=text/xsl href=info.xsl ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>gubed_install</name>
+<author>Andras Mantia</author>
+<email>amantia@kde.org</email>
+<website>http://quanta.sf.net</website>
+<version>0.1</version>
+<license>GPL</license>
+<about>Simple script to make installation of the Gubed PHP debugger server easier.</about>
+</INFO>
diff --git a/quanta/scripts/htmlquickstart.kmdr b/quanta/scripts/htmlquickstart.kmdr
new file mode 100755
index 00000000..a182dcd4
--- /dev/null
+++ b/quanta/scripts/htmlquickstart.kmdr
@@ -0,0 +1,987 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>quickStartForm</class>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>quickStartForm</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>473</width>
+ <height>577</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="caption">
+ <string>Quick Start</string>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string>@execBegin
+quanta=`dcop quanta-@parentPid`
+if [ -z "$quanta" ]; then
+ quanta=`dcop quanta`
+ if [ ! -z "$quanta" ]; then
+ quantadcop=quanta
+ fi
+else
+ quantadcop=quanta-@parentPid
+fi
+
+if [ ! -z "$quantadcop" ]; then
+ encoding=`dcop $quantadcop SettingsIf encoding`
+ dcop @dcopid KommanderIf setSelection ComboMetachar $encoding
+ dcop @dcopid KommanderIf setChecked CBMetaChar true
+ dtep=`dcop $quantadcop SettingsIf dtep`
+ dcop @dcopid KommanderIf setCurrentListItem DTEPselect "$dtep"
+fi
+@execEnd</string>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0" rowspan="1" colspan="4">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="font">
+ <font>
+ <family>Sans Serif</family>
+ <pointsize>12</pointsize>
+ <bold>1</bold>
+ </font>
+ </property>
+ <property name="text">
+ <string>Quanta Plus Kommander Quick Start</string>
+ </property>
+ <property name="alignment">
+ <set>AlignCenter</set>
+ </property>
+ </widget>
+ <spacer row="2" column="0">
+ <property name="name">
+ <cstring>Spacer6_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>33</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="GroupBox" row="1" column="0" rowspan="1" colspan="4">
+ <property name="name">
+ <cstring>dialogScript</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>#############################
+# Globals
+
+# The indentation level. We have only
+# one level of indentation
+PADDING=' '
+
+# This sets the DTD var
+@DTEPselect
+
+# set parameters that depend on DTD
+if echo $DTD | grep -q xhtml
+then
+ XHTML=true
+ TAGEND=' /&gt;'
+ HTML='&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;'
+else
+ XHTML=FALSE
+ TAGEND='&gt;'
+ HTML='&lt;html&gt;'
+fi
+
+##############################
+# Finally generate the page
+
+@CBDTD
+echo $HTML
+echo '@CBCVS'
+@CBHead
+
+echo '&lt;body&gt;'
+echo '@CBPHPHeader'
+echo '@CBPHPFooter'
+echo '&lt;/body&gt;'
+echo '&lt;/html&gt;'
+
+quanta=`dcop quanta-@parentPid`
+if [ -z "$quanta" ]; then
+ quanta=`dcop quanta`
+ if [ ! -z "$quanta" ]; then
+ quantadcop=quanta
+ fi
+else
+ quantadcop=quanta-@parentPid
+fi
+
+if [ ! -z "$quantadcop" ]; then
+ dcop $quantadcop WindowManagerIf setDtep "@DTEPselect.text" false
+fi</string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property name="text">
+ <string>DTD / Schema:</string>
+ </property>
+ </widget>
+ <widget class="GroupBox" row="4" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>GroupBox3</cstring>
+ </property>
+ <property name="title">
+ <string>Body Area</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;body&gt;
+@CBPHPHeader
+@CBPHPFooter
+&lt;/body&gt;</string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="LineEdit" row="0" column="1">
+ <property name="name">
+ <cstring>phpHeaderFile</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="1" column="1">
+ <property name="name">
+ <cstring>phpFooterFile</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="1" column="0">
+ <property name="name">
+ <cstring>CBPHPFooter</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;PHP footer include:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>&lt;? include_once("@phpFooterFile") ?&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="0" column="0">
+ <property name="name">
+ <cstring>CBPHPHeader</cstring>
+ </property>
+ <property name="text">
+ <string>PHP header include:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>&lt;? include_once("@phpHeaderFile") ?&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="CheckBox" row="1" column="0">
+ <property name="name">
+ <cstring>CBDTD</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;DTD</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>@DTEPselect
+echo "$DTD"</string>
+ <string>echo "$DTD"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="0" column="1">
+ <item>
+ <property name="text">
+ <string>HTML 4.01 Transitional</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>HTML 4.01 Strict</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>HTML 4.01 Frameset</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XHTML 1.0 Transitional</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XHTML 1.0 Strict</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XHTML 1.0 Frameset</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XHTML 1.0 Basic</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XHTML 1.1</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>DTEPselect</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>################################
+# This script sets the DTD var
+
+
+# The various DTD's
+
+htmltrans='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;'
+
+strict='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;'
+
+frameset='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt;'
+
+xhtml1trans='&lt;?xml version="1.0" encoding="@ComboMetachar"?&gt;
+&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;'
+
+xhtml1strict='&lt;?xml version="1.0" encoding="@ComboMetachar"?&gt;
+&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;'
+
+xhtml1frameset='&lt;?xml version="1.0" encoding="@ComboMetachar"?&gt;
+&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;'
+
+xhtml1basic='&lt;?xml version="1.0" encoding="@ComboMetachar"?&gt;
+&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"&gt;'
+
+xhtml11='&lt;?xml version="1.0" encoding="@ComboMetachar"?&gt;
+&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;'
+
+################################
+# Set the DTD based on user selection
+
+case "@widgetText" in
+"HTML 4.01 Transitional" )
+ DTD="$htmltrans"
+;;
+"HTML 4.01 Strict" )
+ DTD="$strict"
+;;
+"HTML 4.01 Frameset" )
+ DTD="$frameset"
+;;
+"XHTML 1.0 Transitional" )
+ DTD="$xhtml1trans"
+;;
+"XHTML 1.0 Strict" )
+ DTD="$xhtml1strict"
+;;
+"XHTML 1.0 Frameset" )
+ DTD="$xhtml1frameset"
+;;
+"XHTML 1.0 Basic" )
+ DTD="$xhtml1basic"
+;;
+"XHTML 1.1" )
+ DTD="$xhtml11"
+;;
+* )
+ echo "No Match"
+;;
+esac
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="2" column="0">
+ <property name="name">
+ <cstring>CBHead</cstring>
+ </property>
+ <property name="text">
+ <string>Head &amp;area</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo '&lt;head&gt;'
+@LETitle
+@CBBasedir
+@CBMetaQuanta
+@CBMetaAuthor
+@CBMetaChar
+@CBMetaKeywords
+@CBStyle
+@CBStyleArea
+@CBJavascript
+echo '&lt;/head&gt;'</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="1" column="1">
+ <property name="name">
+ <cstring>CBCVS</cstring>
+ </property>
+ <property name="text">
+ <string>CVS tag &amp;in comment</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>&lt;!-- $Id$ --&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="GroupBox" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>GroupBox2</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox" row="2" column="0">
+ <property name="name">
+ <cstring>CBMetaAuthor</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Meta author:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;meta name=\"AUTHOR\" content=\"@LEMetaAuthor\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="3" column="0">
+ <property name="name">
+ <cstring>CBMetaChar</cstring>
+ </property>
+ <property name="text">
+ <string>Meta character set:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=@ComboMetachar\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="7" column="0">
+ <property name="name">
+ <cstring>CBStyleArea</cstring>
+ </property>
+ <property name="text">
+ <string>St&amp;yle area</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;style type=\"text/css\"&gt;"
+if [ $XHTML = true ]; then
+ echo "$PADDING/* &lt;![CDATA[ */"
+ echo "$PADDING"
+ echo "$PADDING/* ]]&gt; */"
+fi
+echo "$PADDING&lt;/style&gt;"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="1" column="1">
+ <property name="name">
+ <cstring>LEBasedir</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="2" column="1">
+ <property name="name">
+ <cstring>LEMetaAuthor</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="3" column="1">
+ <item>
+ <property name="text">
+ <string>iso-8859-1</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-2</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-3</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-4</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-5</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-6</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-7</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-8</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-8i</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-9</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-10</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-11</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-12</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-13</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-14</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>iso-8859-15</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>utf-8</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>utf-16</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>koi8-r</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>koi8-u</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1250</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1251</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1252</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1253</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1254</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1255</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1256</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1257</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>windows-1258</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>ComboMetachar</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="4" column="1">
+ <property name="name">
+ <cstring>LEMetaKeywords</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>limit to 8, separate with commas</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="1" column="0">
+ <property name="name">
+ <cstring>CBBasedir</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Base directory:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;base href=\"@LEBasedir\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="6" column="0">
+ <property name="name">
+ <cstring>CBMetaQuanta</cstring>
+ </property>
+ <property name="text">
+ <string>Meta &amp;Quanta</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;meta name=\"GENERATOR\" content=\"Quanta Plus\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="4" column="0">
+ <property name="name">
+ <cstring>CBMetaKeywords</cstring>
+ </property>
+ <property name="text">
+ <string>Meta &amp;keywords:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo -n "$PADDING&lt;meta name=\"KEYWORDS\" content=\""
+echo -n '@LEMetaKeywords'
+echo "\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="5" column="0">
+ <property name="name">
+ <cstring>CBStyle</cstring>
+ </property>
+ <property name="text">
+ <string>Li&amp;nked style sheet:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>echo "$PADDING&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"@cssFile\"$TAGEND"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="5" column="1">
+ <property name="name">
+ <cstring>cssFile</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="0" column="1">
+ <property name="name">
+ <cstring>LETitle</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>echo "$PADDING&lt;title&gt;@widgetText&lt;/title&gt;"</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Title:</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="7" column="1">
+ <property name="name">
+ <cstring>CBJavascript</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;JavaScript area</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>if echo $DTD | grep -q strict
+then
+ echo "$PADDING&lt;script type=\"text/javascript\"&gt;"
+else
+ echo "$PADDING&lt;script language=\"javascript\" type=\"text/javascript\"&gt;"
+fi
+
+
+if [ $XHTML = true ]; then
+ echo "$PADDING/* &lt;![CDATA[ */"
+ echo "$PADDING"
+ echo "$PADDING/* ]]&gt; */"
+else
+ echo "$PADDING// &lt;!--"
+ echo "$PADDING"
+ echo "$PADDING// --&gt;"
+fi
+
+echo "$PADDING&lt;/script&gt;"</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="CloseButton" row="2" column="3">
+ <property name="name">
+ <cstring>CloseButton1_2</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="2" column="1">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;OK</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@dialogScript
+</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>CBBasedir</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>LEBasedir</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBMetaAuthor</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>LEMetaAuthor</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBMetaKeywords</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>LEMetaKeywords</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBMetaChar</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>ComboMetachar</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBStyle</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cssFile</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBHead</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GroupBox2</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBPHPHeader</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>phpHeaderFile</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CBPHPFooter</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>phpFooterFile</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>quickStartForm</sender>
+ <signal>widgetOpened()</signal>
+ <receiver>GroupBox2</receiver>
+ <slot>populate()</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>DTEPselect</tabstop>
+ <tabstop>CBDTD</tabstop>
+ <tabstop>CBCVS</tabstop>
+ <tabstop>CBHead</tabstop>
+ <tabstop>LETitle</tabstop>
+ <tabstop>CBBasedir</tabstop>
+ <tabstop>LEBasedir</tabstop>
+ <tabstop>CBMetaAuthor</tabstop>
+ <tabstop>LEMetaAuthor</tabstop>
+ <tabstop>CBMetaChar</tabstop>
+ <tabstop>ComboMetachar</tabstop>
+ <tabstop>CBMetaKeywords</tabstop>
+ <tabstop>LEMetaKeywords</tabstop>
+ <tabstop>CBStyle</tabstop>
+ <tabstop>cssFile</tabstop>
+ <tabstop>CBMetaQuanta</tabstop>
+ <tabstop>CBStyleArea</tabstop>
+ <tabstop>CBJavascript</tabstop>
+ <tabstop>CBPHPHeader</tabstop>
+ <tabstop>phpHeaderFile</tabstop>
+ <tabstop>CBPHPFooter</tabstop>
+ <tabstop>phpFooterFile</tabstop>
+ <tabstop>CloseButton1</tabstop>
+ <tabstop>CloseButton1_2</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/htmlquickstart.kmdr.info b/quanta/scripts/htmlquickstart.kmdr.info
new file mode 100644
index 00000000..2bf48c23
--- /dev/null
+++ b/quanta/scripts/htmlquickstart.kmdr.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>htmlquickstart</name>
+<author>Eric Laffoon / Frederik Nosi</author>
+<email>sequitur@kde.org</email>
+<website>http://quanta.sf.net/</website>
+<version>1.1</version>
+<license>GPL</license>
+<about>This replaces the old HTML 3.2 oriented quick start hard coded into Quanta. This dialog allows for various HTML dialects and additional structural setup.
+
+Enjoy!</about>
+</INFO>
diff --git a/quanta/scripts/info.css b/quanta/scripts/info.css
new file mode 100644
index 00000000..434d18fa
--- /dev/null
+++ b/quanta/scripts/info.css
@@ -0,0 +1,13 @@
+H1 {
+ background-color:#a3dada;
+ text-align:center;
+}
+
+TH {
+ background-color:lightGray;
+ text-align:right;
+}
+
+TD {
+ background-color:#ffffcc;
+}
diff --git a/quanta/scripts/info.xsl b/quanta/scripts/info.xsl
new file mode 100644
index 00000000..07a10ed3
--- /dev/null
+++ b/quanta/scripts/info.xsl
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
+doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
+
+<xsl:template match="/">
+ <html>
+ <xsl:attribute name="xmlns"><xsl:text>http://www.w3.org/1999/xhtml</xsl:text></xsl:attribute>
+ <head>
+ <title><xsl:value-of select="INFO/name"/></title>
+ <meta>
+ <xsl:attribute name="http-equiv"><xsl:text>Content-Type</xsl:text></xsl:attribute>
+ <xsl:attribute name="content"><xsl:text>text/xhtml; charset=UTF-8</xsl:text></xsl:attribute>
+ </meta>
+ <link rel="stylesheet" type="text/css" href="info.css" />
+ </head>
+ <body>
+ <h1><xsl:value-of select="INFO/name"/></h1>
+ <table>
+ <tr>
+ <th>Author:</th>
+ <td><xsl:value-of select="INFO/author"/></td>
+ </tr>
+ <tr>
+ <th>Contact:</th>
+ <td>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>mailto:</xsl:text>
+ <xsl:value-of select="INFO/email"/>
+ </xsl:attribute>
+ <xsl:value-of select="INFO/email"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <th>Website:</th>
+ <td>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="INFO/website"/>
+ </xsl:attribute>
+ <xsl:value-of select="INFO/website"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <th>Version:</th>
+ <td><xsl:value-of select="INFO/version"/></td>
+ </tr>
+ <tr>
+ <th>License:</th>
+ <td><xsl:value-of select="INFO/license"/></td>
+ </tr>
+ <tr>
+ <th>About:</th>
+ <td><xsl:value-of select="INFO/about"/></td>
+ </tr>
+ </table>
+ <br /><br />
+ <div align="center"><hr width="50%" />
+ Quanta Information File<br />
+ <em>The Quanta Team</em>
+ </div>
+ </body>
+ </html>
+</xsl:template>
+
+</xsl:stylesheet>
+
diff --git a/quanta/scripts/listwizard.kmdr b/quanta/scripts/listwizard.kmdr
new file mode 100755
index 00000000..818a1b92
--- /dev/null
+++ b/quanta/scripts/listwizard.kmdr
@@ -0,0 +1,441 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>DocBook_List</class>
+<comment>This dialog creates a variable, itemized, or ordered list, or a procedure for DocBook documents.</comment>
+<author>Carlos Leonhard Woelz</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>504</width>
+ <height>538</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Docbook List Wizard</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="3" column="0">
+ <property name="name">
+ <cstring>Layout12</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <spacer row="0" column="0">
+ <property name="name">
+ <cstring>Spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>296</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="CloseButton" row="0" column="2">
+ <property name="name">
+ <cstring>CloseButton1_2</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Press this button to cancel the creation of the list or procedure. No action will be performed.</string>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="0" column="1">
+ <property name="name">
+ <cstring>OKButton</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>&amp;OK</string>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@VariableOption
+@ItemizedOption
+@OrderedOption
+@ProcedureOption</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Press this button to create the selected list or procedure.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="GroupBox" row="2" column="0">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="title">
+ <string>List Options</string>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout7</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="SpinBoxInt" row="0" column="1">
+ <property name="name">
+ <cstring>sb_lin</cstring>
+ </property>
+ <property name="value">
+ <number>5</number>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of list entries or steps that should be created by the wizard. After using the wizard, you can add (or remove) more entries or steps manually.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Number of list items or steps:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of list entries or steps that should be created by the wizard. After using the wizard, you can add (or remove) more entries or steps manually.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel1_2_2</cstring>
+ </property>
+ <property name="font">
+ <font>
+ </font>
+ </property>
+ <property name="text">
+ <string>&lt;qt&gt;
+Select the list type:
+&lt;ul&gt;
+&lt;li&gt;&lt;b&gt;variablelist:&lt;/b&gt; a list with two sections for each item: the term and the definition.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;itemizedlist:&lt;/b&gt; a list used when the order of the items is not important.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;orderedlist:&lt;/b&gt; a list used when the order of the items is important (for instance, a list of things in order of preference). Do not use orderedlist to describe the steps required to perform an action.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;procedure:&lt;/b&gt; list of an sequence of ordered steps, describing to the reader how to perform a task. You can add substeps later.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;/qt&gt;</string>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignJustify|AlignTop</set>
+ </property>
+ </widget>
+ <widget class="ButtonGroup" row="1" column="0">
+ <property name="name">
+ <cstring>ButtonGroup1</cstring>
+ </property>
+ <property name="title">
+ <string>List Type</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="RadioButton" row="1" column="1">
+ <property name="name">
+ <cstring>ProcedureOption</cstring>
+ </property>
+ <property name="focusPolicy">
+ <enum>NoFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;procedure</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;procedure&gt;'
+echo ''
+l=1
+while [ $l -le @sb_lin ]; do
+ echo '&lt;step&gt;&lt;para&gt;'
+ echo 'Step '$l'.'
+ echo '&lt;/para&gt;&lt;/step&gt;'
+ echo ''
+ l=$((l+1))
+done
+echo '&lt;/procedure&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create a procedure. A procedure is a sequence of ordered steps, describing to the reader how to perform a task. You can add nested substeps.
+
+Here is one example of a procedure:
+
+&lt;procedure&gt;
+
+&lt;step&gt;&lt;para&gt;First step.&lt;/para&gt;&lt;/step&gt;
+
+&lt;step&gt;&lt;para&gt;Second step.&lt;/para&gt;
+&lt;substeps&gt;
+&lt;step&gt;&lt;para&gt;First substep of the second step.&lt;/para&gt;&lt;/step&gt;
+&lt;/substeps&gt;
+&lt;/step&gt;
+
+&lt;/procedure&gt;</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="1" column="0">
+ <property name="name">
+ <cstring>ItemizedOption</cstring>
+ </property>
+ <property name="text">
+ <string>itemi&amp;zedlist</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;itemizedlist&gt;'
+echo ''
+l=1
+while [ $l -le @sb_lin ] ; do
+ echo '&lt;listitem&gt;&lt;para&gt;'
+ echo 'Text entry '$l'.'
+ echo '&lt;/para&gt;&lt;/listitem&gt;'
+ echo ''
+ l=$((l+1))
+done
+echo '&lt;/itemizedlist&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create a itemizedlist. A itemizedlist is a list used when the order of the items is not important.
+
+Here is one example of a itemizedlist:
+
+&lt;itemizedlist&gt;
+
+&lt;listitem&gt;&lt;para&gt;
+First item.
+&lt;/para&gt;&lt;/listitem&gt;
+
+&lt;listitem&gt;&lt;para&gt;
+Second item.
+&lt;/para&gt;&lt;/listitem&gt;
+
+&lt;/itemizedlist&gt;</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="0" column="1">
+ <property name="name">
+ <cstring>OrderedOption</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="focusPolicy">
+ <enum>NoFocus</enum>
+ </property>
+ <property name="text">
+ <string>or&amp;deredlist</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;orderedlist&gt;'
+echo ''
+l=1
+while [ $l -le @sb_lin ] ; do
+ echo '&lt;listitem&gt;&lt;para&gt;'
+ echo 'Text entry '$l'.'
+ echo '&lt;/para&gt;&lt;/listitem&gt;'
+ echo ''
+ l=$((l+1))
+ done
+echo '&lt;/orderedlist&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create a orderedlist. A orderedlist is a list used when the order of the items is important. A number will be associated with each entry, in order, starting from one.
+
+Here is one example of a orderedlist:
+
+&lt;orderedlist&gt;
+
+&lt;listitem&gt;&lt;para&gt;
+First item.
+&lt;/para&gt;&lt;/listitem&gt;
+
+&lt;listitem&gt;&lt;para&gt;
+Second item.
+&lt;/para&gt;&lt;/listitem&gt;
+
+&lt;/orderedlist&gt;</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="0" column="0">
+ <property name="name">
+ <cstring>VariableOption</cstring>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;variablelist</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;variablelist&gt;'
+echo ''
+l=1
+while [ $l -le @sb_lin ]; do
+ echo '&lt;varlistentry&gt;'
+ echo '&lt;term&gt;Term '$l'&lt;/term&gt;'
+ echo '&lt;listitem&gt;&lt;para&gt;'
+ echo 'Definition '$l'.'
+ echo '&lt;/para&gt;&lt;/listitem&gt;'
+ echo '&lt;/varlistentry&gt;'
+ echo ''
+ l=$((l+1))
+done
+echo '&lt;/variablelist&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create a variablelist. A variablelist is a list with two sections for each item: the term (the tag used is &lt;term&gt;) and the definition (the tag used is &lt;listitem&gt;). To mark each entry of the list, the &lt;varlistentry&gt; tag is used.
+
+Here is one example of a variablelist:
+
+&lt;variablelist&gt;
+
+&lt;varlistentry&gt;
+&lt;term&gt;Term text&lt;/term&gt;
+&lt;listitem&gt;&lt;para&gt;Definition text.&lt;/para&gt;&lt;/listitem&gt;
+&lt;/varlistentry&gt;
+
+&lt;/variablelist&gt;</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+</widget>
+<tabstops>
+ <tabstop>VariableOption</tabstop>
+ <tabstop>sb_lin</tabstop>
+ <tabstop>OKButton</tabstop>
+ <tabstop>CloseButton1_2</tabstop>
+ <tabstop>ItemizedOption</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/meinproc.kmdr b/quanta/scripts/meinproc.kmdr
new file mode 100755
index 00000000..c931e426
--- /dev/null
+++ b/quanta/scripts/meinproc.kmdr
@@ -0,0 +1,284 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Form3</class>
+<comment>Quanta+: meinproc is a Kommander front-end for meinproc.</comment>
+<author>Chris Hornbaker</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form3</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>471</width>
+ <height>179</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Quanta+: meinproc</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CloseButton" row="1" column="2">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ <widget class="ExecButton" row="1" column="1">
+ <property name="name">
+ <cstring>ExecButton2</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;Process</string>
+ </property>
+ <property name="on">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>if [ !@OtherDir ]
+ then
+ CUR=1
+ else
+ CUR=''
+fi
+if [ !$CUR ]
+ then
+ TMP0=`dcop | grep -e "quanta"`
+ TMP1=`dcop $TMP0 WindowManagerIf projectURL`
+ DIR=`echo $TMP1 | cut -b6-`
+ else
+ DIR=`echo '@OtherDir'`
+fi
+cd $DIR
+rm -f *.html
+meinproc index.docbook
+if [ "@PrevKonq" = "true" ]
+then
+ konqueror index.html
+fi</string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>Spacer8</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>292</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="GroupBox" row="0" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>StyleScript</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout10</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>CheckBox4</cstring>
+ </property>
+ <property name="text">
+ <string>Current working folder &amp;in Quanta</string>
+ </property>
+ <property name="autoRepeat">
+ <bool>false</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string></string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer9</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget" row="1" column="0">
+ <property name="name">
+ <cstring>Layout4</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Other folder:</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer5</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>OtherDir</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="selectionType">
+ <enum>Directory</enum>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="CheckBox" row="2" column="0">
+ <property name="name">
+ <cstring>PrevKonq</cstring>
+ </property>
+ <property name="text">
+ <string>View in &amp;Konqueror</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>"false"</string>
+ <string></string>
+ <string>"true"</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>OtherDir</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>CheckBox4</tabstop>
+ <tabstop>PrevKonq</tabstop>
+ <tabstop>ExecButton2</tabstop>
+ <tabstop>CloseButton1</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/meinproc.kmdr.info b/quanta/scripts/meinproc.kmdr.info
new file mode 100644
index 00000000..99c12d12
--- /dev/null
+++ b/quanta/scripts/meinproc.kmdr.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="info.xsl" ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>meinproc</name>
+<author>Chris Hornbaker</author>
+<email>jilks@openschooling.org</email>
+<website></website>
+<version>1.0</version>
+<license>GPL v2</license>
+<about>This Kommander script uses meinproc from kdelibs to convert KDE DocBook files to HTML files for viewing.</about>
+</INFO>
+
diff --git a/quanta/scripts/picturewizard.kmdr b/quanta/scripts/picturewizard.kmdr
new file mode 100755
index 00000000..95d488f1
--- /dev/null
+++ b/quanta/scripts/picturewizard.kmdr
@@ -0,0 +1,587 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>DocBook_Image</class>
+<comment>This dialog creates a screenshot, a mediaobject or an inlinemediaobject for DocBook documents.</comment>
+<author>Carlos Leonhard Woelz</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>649</width>
+ <height>529</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Docbook Image Wizard</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="3" column="0">
+ <property name="name">
+ <cstring>Layout12</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <spacer row="0" column="0">
+ <property name="name">
+ <cstring>Spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>342</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="CloseButton" row="0" column="2">
+ <property name="name">
+ <cstring>CloseButton1_2</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Press this button to cancel the creation of the image markup. No action will be performed.</string>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="0" column="1">
+ <property name="name">
+ <cstring>OKButton</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>O&amp;K</string>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@ScreenshotOption
+@MediaOption
+@InlineMediaOption
+</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Press this button to create the image markup.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel1_2_2</cstring>
+ </property>
+ <property name="font">
+ <font>
+ </font>
+ </property>
+ <property name="text">
+ <string>&lt;qt&gt;
+Select the type of markup appropriated to wrap your image:
+&lt;ul&gt;
+&lt;li&gt;&lt;b&gt;screenshot:&lt;/b&gt; used for screenshot images.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;mediaobject:&lt;/b&gt; used for all kinds of images which are not presented inside the flow of text or table entry.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;inlinemediaobject:&lt;/b&gt; used for images which are presented in the middle of flow of text, or in a table entry. Use mediaobject for all other images.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;/qt&gt;</string>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignJustify|AlignTop</set>
+ </property>
+ </widget>
+ <widget class="ButtonGroup" row="1" column="0">
+ <property name="name">
+ <cstring>ButtonGroup1</cstring>
+ </property>
+ <property name="title">
+ <string>Wrapper Type</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="RadioButton" row="0" column="0">
+ <property name="name">
+ <cstring>ScreenshotOption</cstring>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;screenshot</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;screenshot&gt;'
+echo '&lt;screeninfo&gt;@le_description&lt;/screeninfo&gt;'
+echo '&lt;mediaobject&gt;'
+echo '&lt;imageobject&gt;'
+echo '&lt;imagedata fileref="@le_imagefile" format="@cb_imagetype" /&gt;'
+echo '&lt;/imageobject&gt;'
+echo '&lt;textobject&gt;'
+echo '&lt;phrase&gt;@le_description&lt;/phrase&gt;'
+echo '&lt;/textobject&gt;'
+@cb_caption
+echo '&lt;/mediaobject&gt;'
+echo '&lt;/screenshot&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create the necessary markup for a screenshot. The screenshot markup contains the mediaoption markup. Use for screenshots only. Other figures and images should use inlinemediaobject if inside text, or mediaobject to separate the image from the text.</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="1" column="0">
+ <property name="name">
+ <cstring>MediaOption</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;mediaobject</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;mediaobject&gt;'
+echo '&lt;imageobject&gt;'
+echo '&lt;imagedata fileref="@le_imagefile" format="@cb_imagetype" /&gt;'
+echo '&lt;/imageobject&gt;'
+echo '&lt;textobject&gt;'
+echo '&lt;phrase&gt;@le_description&lt;/phrase&gt;'
+echo '&lt;/textobject&gt;'
+@cb_caption
+echo '&lt;/mediaobject&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create the necessary markup for a image outside the normal flow of text. Check the "Create caption, using the image description text." box, to add text description for the image.</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="2" column="0">
+ <property name="name">
+ <cstring>InlineMediaOption</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="focusPolicy">
+ <enum>NoFocus</enum>
+ </property>
+ <property name="text">
+ <string>i&amp;nlinemediaobject</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;inlinemediaobject&gt;'
+echo '&lt;imageobject&gt;'
+echo '&lt;imagedata fileref="@le_imagefile" format="@cb_imagetype" /&gt;'
+echo '&lt;/imageobject&gt;'
+echo '&lt;textobject&gt;'
+echo '&lt;phrase&gt;@le_description&lt;/phrase&gt;'
+echo '&lt;/textobject&gt;'
+echo '&lt;/inlinemediaobject&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to create the necessary markup for a image inside the normal flow of text. You should use this option for images inside a table entry (entry tag) or a paragraph (para tag). This option is specially suited for small images, such as icons.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="GroupBox" row="2" column="0">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="title">
+ <string>Image Options</string>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout5</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="ComboBox" row="2" column="1">
+ <item>
+ <property name="text">
+ <string>BMP</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>CGM-BINARY</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>CGM-CHAR</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>CGM-CLEAR</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>DITROFF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>DVI</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>EPS</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>EQN</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>FAX</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>GIF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>GIF87a</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>GIF89a</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>IGES</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>JPEG</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>JPG</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>linespecific</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>PCX</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>PDF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>PIC</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>PNG</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>PS</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>SGML</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>SVG</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>SWF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>TBL</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>TEX</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>TIFF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>WMF</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>WPG</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>cb_imagetype</cstring>
+ </property>
+ <property name="currentItem">
+ <number>19</number>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select the image format here. The image format is usually reflects the file extension of your image file (.png corresponds to PNG in the drop down, .jpg corresponds to JPG, etc.).</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>cb_caption</cstring>
+ </property>
+ <property name="text">
+ <string>Create caption, &amp;using the image description text.</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>@null</string>
+ <string>echo '&lt;caption&gt;@le_description&lt;/caption&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Check this box add caption text to the image. The caption text will appear below the image, allowing you to introduce or explain the image.</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="0" column="1">
+ <property name="name">
+ <cstring>le_description</cstring>
+ </property>
+ <property name="text">
+ <string>Image description.</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter the description of the image here. For instance, a screenshot of a configuration dialog should be described as "Configuration dialog.". This text will be used as caption text if the box below is checked.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="2" column="0">
+ <property name="name">
+ <cstring>TextLabel2_2_2</cstring>
+ </property>
+ <property name="text">
+ <string>Image Type:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select the image format here. The image format is usually reflects the file extension of your image file (.png corresponds to PNG in the drop down, .jpg corresponds to JPG, etc.).</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel2_2</cstring>
+ </property>
+ <property name="text">
+ <string>Image file name:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter the file name of the image here, including the extension (.png, .jpg, etc.). Enter only the file name, not the location (path) of the image file. The image files should be located in the same folder as the DocBook sources.</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="1" column="1">
+ <property name="name">
+ <cstring>le_imagefile</cstring>
+ </property>
+ <property name="text">
+ <string>image.png</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter the file name of the image here, including the extension (.png, .jpg, etc.). Enter only the file name, not the location (path) of the image file. The image files should be located in the same folder as the DocBook sources.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Image Description:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter the description of the image here. For instance, a screenshot of a configuration dialog should be described as "Configuration dialog.". This text will be used as caption text if the box below is checked.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>InlineMediaOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cb_caption</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>MediaOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cb_caption</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>ScreenshotOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cb_caption</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>ScreenshotOption</tabstop>
+ <tabstop>le_description</tabstop>
+ <tabstop>le_imagefile</tabstop>
+ <tabstop>cb_imagetype</tabstop>
+ <tabstop>cb_caption</tabstop>
+ <tabstop>OKButton</tabstop>
+ <tabstop>CloseButton1_2</tabstop>
+ <tabstop>MediaOption</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/scriptinfo.kmdr b/quanta/scripts/scriptinfo.kmdr
new file mode 100755
index 00000000..c225a132
--- /dev/null
+++ b/quanta/scripts/scriptinfo.kmdr
@@ -0,0 +1,454 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Form1</class>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>473</width>
+ <height>531</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Quanta Script Info Generator</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>6</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TabWidget" row="0" column="0">
+ <property name="name">
+ <cstring>TabWidget1</cstring>
+ </property>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Enter Info</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TextLabel1_3</cstring>
+ </property>
+ <property name="font">
+ <font>
+ <family>Sans Serif</family>
+ <bold>1</bold>
+ <italic>1</italic>
+ </font>
+ </property>
+ <property name="text">
+ <string>Please fill in all fields</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>Script name:</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="1" column="1">
+ <property name="name">
+ <cstring>Name</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Enter the script name with the extension</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="8" column="0">
+ <property name="name">
+ <cstring>TextLabel5</cstring>
+ </property>
+ <property name="text">
+ <string>About script:</string>
+ </property>
+ </widget>
+ <widget class="TextEdit" row="8" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>about</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;about&gt;@widgetText&lt;/about&gt;</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Formatting may be done with XHTML tags</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="5" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>website</cstring>
+ </property>
+ <property name="text">
+ <string>http://</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;website&gt;@widgetText&lt;/website&gt;</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>The location of your up-to-date file on the web</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="3" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Script author:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="7" column="0">
+ <property name="name">
+ <cstring>TextLabel4</cstring>
+ </property>
+ <property name="text">
+ <string>Script license:</string>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="9" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>FileSelector1</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText/"@Name".info</string>
+ </stringlist>
+ </property>
+ <property name="selectionType">
+ <enum>Directory</enum>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Select the directory to write the .info file to</string>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="7" column="1" rowspan="1" colspan="2">
+ <item>
+ <property name="text">
+ <string>GPL-2</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>LGPL</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>BSD</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Public Domain</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Other</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>license</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;license&gt;@widgetText&lt;/license&gt;</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>If other include in about</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="2" column="0">
+ <property name="name">
+ <cstring>TextLabel1_4</cstring>
+ </property>
+ <property name="text">
+ <string>Editor/Executor:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="4" column="0">
+ <property name="name">
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property name="text">
+ <string>Author email:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="5" column="0">
+ <property name="name">
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property name="text">
+ <string>Web address:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="6" column="0">
+ <property name="name">
+ <cstring>TextLabel2_2</cstring>
+ </property>
+ <property name="text">
+ <string>Version number:</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="3" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>Author</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;author&gt;@widgetText&lt;/author&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="4" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>email</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;email&gt;@widgetText&lt;/email&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="6" column="1">
+ <property name="name">
+ <cstring>version</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>&lt;version&gt;@widgetText&lt;/version&gt;</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="2" column="1">
+ <item>
+ <property name="text">
+ <string></string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kmdr-editor</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kwrite</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kate</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kdevelop</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>editor</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Optional: Editor other than Quanta to use for this script</string>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="2" column="2">
+ <item>
+ <property name="text">
+ <string></string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kmdr-executor -c quanta</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>kmdr-executor</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>perl</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>php</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>executor</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Optional: External program executor</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="9" column="0">
+ <property name="name">
+ <cstring>TextLabel6</cstring>
+ </property>
+ <property name="text">
+ <string>Script location:</string>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="10" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>Write File</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>options=""
+if [ "@editor" ] || [ "@executor" ]; then
+# echo "@editor @executor"
+# editor=''
+# executor=''
+ options="&lt;options "
+ if [ @editor ]; then
+ options=$options'editor="@editor"'
+ fi
+ if [ @executor ]; then
+ options=$options' interpreter="@executor"'
+ fi
+ options=$options" /&gt;
+"
+fi
+
+echo "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;
+&lt;?xml-stylesheet type="text/xsl" href="info.xsl" ?&gt;
+&lt;!DOCTYPE QuantaScriptInfo&gt;
+&lt;INFO&gt;
+$options&lt;name&gt;@Name&lt;/name&gt;
+@Author
+@email
+@website
+@version
+@license
+@about
+&lt;/INFO&gt;" &gt; @FileSelector1</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>About</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>6</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TextEdit" row="0" column="0">
+ <property name="name">
+ <cstring>TextEdit3</cstring>
+ </property>
+ <property name="text">
+ <string>&lt;html&gt;&lt;head&gt;&lt;meta name="qrichtext" content="1" /&gt;&lt;/head&gt;&lt;body style="font-size:11pt;font-family:sans-serif"&gt;
+&lt;p style="margin-top:16px"&gt;&lt;span style="font-weight:600"&gt;Quanta Plus Submitter Info Files&lt;/span&gt;&lt;/p&gt;
+&lt;p&gt;The purpose of these files is to provide developers with proper credit, expose licensing information and give users thumbnail information about scripts and templates at a glance. We ask that you try to do several things here.&lt;/p&gt;
+&lt;ul type="disc"&gt;&lt;li&gt;Fill in all the fields. They are all there for a reason.&lt;/li&gt;
+&lt;li&gt;Contact the appropriate Quanta script and template maintainer or a member of our team when you have new releases so we can include them. As we plan to build a huge repository we have to rely on you here.&lt;/li&gt;&lt;/ul&gt;
+&lt;p&gt;The additional information serves as a backup. Any time a user wants they can click the link to go to your site and get updates, docs or whatever they require. Thank you for helping us to make this a great feature&lt;/p&gt;
+&lt;p align="center" style="margin-top:14px"&gt;&lt;span style="font-weight:600"&gt;Contact Information&lt;/span&gt;&lt;/p&gt;
+&lt;p align="center"&gt;Quanta Resource Maintainer - (none at this time)&lt;br /&gt;Lead Developer - Andras Mantia &lt;a href="mailto:amantia@kde.org?subject=ScriptInfo"&gt;amantia@kde.org&lt;/a&gt;&lt;br /&gt;Kommander - Michal Rudolf &lt;a href="mailto:mrudolf@kdewebdev.org?subject=ScriptInfo"&gt;mrudolf@kdewebdev.org&lt;/a&gt;&lt;br /&gt;Project Lead - Eric Laffoon &lt;a href="mailto:sequitur@kde.org?subject=ScriptInfo"&gt;sequitur@kde.org&lt;/a&gt;&lt;/p&gt;
+&lt;/body&gt;&lt;/html&gt;
+</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </widget>
+ </grid>
+</widget>
+<tabstops>
+ <tabstop>Name</tabstop>
+ <tabstop>Author</tabstop>
+ <tabstop>email</tabstop>
+ <tabstop>website</tabstop>
+ <tabstop>version</tabstop>
+ <tabstop>license</tabstop>
+ <tabstop>about</tabstop>
+ <tabstop>CloseButton1</tabstop>
+ <tabstop>editor</tabstop>
+ <tabstop>executor</tabstop>
+ <tabstop>TabWidget1</tabstop>
+ <tabstop>TextEdit3</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/scriptinfo.kmdr.info b/quanta/scripts/scriptinfo.kmdr.info
new file mode 100644
index 00000000..382eed34
--- /dev/null
+++ b/quanta/scripts/scriptinfo.kmdr.info
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type=text/xsl href=info.xsl ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>scriptinfo.kmdr</name>
+<author>Eric Laffoon</author>
+<email>sequitur@kde.org</email>
+<website>http://quanta.sf.net</website>
+<version>1.0</version>
+<license>GPL</license>
+<about>This dialog assists user/developers in creating the helpful *.info files like the one you're reading now. ;-)</about>
+</INFO>
diff --git a/quanta/scripts/tablewizard.kmdr b/quanta/scripts/tablewizard.kmdr
new file mode 100755
index 00000000..6f78c3c8
--- /dev/null
+++ b/quanta/scripts/tablewizard.kmdr
@@ -0,0 +1,449 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>DocBook_Table</class>
+<comment>Create a formal and informal table for DocBook documents.</comment>
+<author>Carlos Leonhard Woelz (based on Huberto Gastal Mayer initial work)</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>487</width>
+ <height>531</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Docbook Table Wizard</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="3" column="0">
+ <property name="name">
+ <cstring>Layout10</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CloseButton" row="0" column="2">
+ <property name="name">
+ <cstring>CloseButton1_2</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Click here to cancel the creation of the table. No action will be performed.</string>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="0" column="1">
+ <property name="name">
+ <cstring>OKButton</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>&amp;OK</string>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@InformaltableOption
+@TableOption
+</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Press this button to create the table or informaltable.</string>
+ </property>
+ </widget>
+ <spacer row="0" column="0">
+ <property name="name">
+ <cstring>Spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>141</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <widget class="GroupBox" row="2" column="0">
+ <property name="name">
+ <cstring>TableOptionsGroup</cstring>
+ </property>
+ <property name="title">
+ <string>Table Options</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter here the id of the table or informaltable. You can use the id to link or reference to the table or informaltable elsewhere in the document.</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout12</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>ColumnLabel</cstring>
+ </property>
+ <property name="text">
+ <string>Number of columns:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of columns that should be created by the wizard.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="2" column="0">
+ <property name="name">
+ <cstring>TableIdLabel</cstring>
+ </property>
+ <property name="text">
+ <string>Table id:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter here the id of the table or informaltable. You can use the id to link or reference to the table or informaltable elsewhere in the document.</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="4" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>cb_header</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>&amp;Add table header</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>echo '';</string>
+ <string>echo '';</string>
+ <string>echo '&lt;thead&gt;'
+echo '&lt;row&gt;'
+@sb_col
+echo '&lt;/row&gt;'
+echo '&lt;/thead&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Check this box to create a table header. The table header is the first row of the table, and has the same number of entries as the other rows.</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="2" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>le_id</cstring>
+ </property>
+ <property name="text">
+ <string>table_id</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter here the id of the table or informaltable. You can use the id to link or reference to the table or informaltable elsewhere in the document.</string>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="1" column="2">
+ <property name="name">
+ <cstring>sb_lin</cstring>
+ </property>
+ <property name="value">
+ <number>5</number>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>l=1
+while [ $l -le @widgetText ]; do
+echo ''
+ echo '&lt;row&gt;'
+ @sb_col
+ echo '&lt;/row&gt;'
+ l=$((l+1))
+done;
+</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of rows that should be created by the wizard. After using the wizard, you can add (or remove) more rows. To add more rows, add the same number of &lt;entry&gt; tags per &lt;row&gt; tag as in the rest of the table.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>LinesLabel</cstring>
+ </property>
+ <property name="text">
+ <string>Number of rows:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of rows that should be created by the wizard. After using the wizard, you can add (or remove) more rows. To add more rows, add the same number of &lt;entry&gt; tags per &lt;row&gt; tag as in the rest of the table.</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="3" column="0">
+ <property name="name">
+ <cstring>TableTitleLabel5</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Table title:</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter here the title of the table. The title of the table will appear in the table of contents as well, under the "List of Tables", if you are using the KDE DocBook tools.</string>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="0" column="2">
+ <property name="name">
+ <cstring>sb_col</cstring>
+ </property>
+ <property name="value">
+ <number>3</number>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>c=1
+while [ $c -le @widgetText ]; do
+ echo "&lt;entry&gt;&lt;/entry&gt;"
+ c=$((c+1))
+done
+</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select or enter in this spin box the number of columns that should be created by the wizard.</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="3" column="1" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>TitleLineBox</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Table Title</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>echo '&lt;title&gt;@widgetText&lt;/title&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enter here the title of the table. The title of the table will appear in the table of contents as well, under the "List of Tables", if you are using the KDE DocBook tools.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="ButtonGroup" row="1" column="0">
+ <property name="name">
+ <cstring>TableTypeGroup</cstring>
+ </property>
+ <property name="title">
+ <string>Table Type</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="RadioButton" row="1" column="0">
+ <property name="name">
+ <cstring>TableOption</cstring>
+ </property>
+ <property name="text">
+ <string>ta&amp;ble</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;table id="@le_id"&gt;'
+@TitleLineBox
+echo '&lt;tgroup cols="@sb_col.text"&gt;'
+echo ''
+@cb_header
+echo ''
+echo '&lt;tbody&gt;'
+@sb_lin
+echo '&lt;/tbody&gt;'
+echo ''
+echo '&lt;/tgroup&gt;'
+echo '&lt;/table&gt;'
+</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to generate a formal table (table).</string>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="0" column="0">
+ <property name="name">
+ <cstring>InformaltableOption</cstring>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;informaltable</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string>echo '&lt;informaltable id="@le_id"&gt;'
+echo '&lt;tgroup cols="@sb_col.text"&gt;'
+echo ''
+echo '&lt;tbody&gt;'
+@sb_lin
+echo '&lt;/tbody&gt;'
+echo ''
+echo '&lt;/tgroup&gt;'
+echo '&lt;/informaltable&gt;'</string>
+ </stringlist>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Select this option to generate an informal table (informaltable).</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TableTypeLabel</cstring>
+ </property>
+ <property name="font">
+ <font>
+ </font>
+ </property>
+ <property name="text">
+ <string>&lt;qt&gt;
+Select the table type:
+&lt;ul&gt;
+&lt;li&gt;&lt;b&gt;informaltable:&lt;/b&gt; the most used table type in KDE docs. A informaltable does not contain title, table head or entry in the table of contents.&lt;/li&gt;
+&lt;li&gt;&lt;b&gt;table:&lt;/b&gt; a complete and formal table type, including title, table head and entry in the table of contents.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;/qt&gt;</string>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignJustify|AlignTop</set>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>TableOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TableTitleLabel5</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>TableOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TitleLineBox</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>TableOption</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cb_header</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>InformaltableOption</tabstop>
+ <tabstop>TableOption</tabstop>
+ <tabstop>sb_col</tabstop>
+ <tabstop>sb_lin</tabstop>
+ <tabstop>le_id</tabstop>
+ <tabstop>TitleLineBox</tabstop>
+ <tabstop>cb_header</tabstop>
+ <tabstop>OKButton</tabstop>
+ <tabstop>CloseButton1_2</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/tidy.kmdr b/quanta/scripts/tidy.kmdr
new file mode 100755
index 00000000..4682470d
--- /dev/null
+++ b/quanta/scripts/tidy.kmdr
@@ -0,0 +1,1078 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Tidy</class>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Tidy</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>578</width>
+ <height>573</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Tidy by Kommander</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TabWidget" row="0" column="0" rowspan="1" colspan="5">
+ <property name="name">
+ <cstring>TabWidget1</cstring>
+ </property>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>General Options</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="GroupBox" row="0" column="0">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="title">
+ <string>Non Tidy Option</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel4</cstring>
+ </property>
+ <property name="font">
+ <font>
+ <bold>1</bold>
+ <italic>1</italic>
+ </font>
+ </property>
+ <property name="text">
+ <string>Note: This will not work well if you have multiple
+instances of Quanta running.</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="0" column="0">
+ <property name="name">
+ <cstring>GUseDCOP</cstring>
+ </property>
+ <property name="text">
+ <string>Use DCOP to send active page from Quanta+ to tidy</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="FileSelector" row="8" column="0">
+ <property name="name">
+ <cstring>GconfigF</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>Path to tidy (required):</string>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="6" column="0">
+ <property name="name">
+ <cstring>GoutF</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="3" column="0">
+ <property name="name">
+ <cstring>GinputEN</cstring>
+ </property>
+ <property name="text">
+ <string>Input from file instead of stdin:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="9" column="0">
+ <property name="name">
+ <cstring>GerrorEN</cstring>
+ </property>
+ <property name="text">
+ <string>Write errors to file instead of stderr:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="7" column="0">
+ <property name="name">
+ <cstring>GconfigEN</cstring>
+ </property>
+ <property name="text">
+ <string>Use configuration from file:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="5" column="0">
+ <property name="name">
+ <cstring>GoutputEN</cstring>
+ </property>
+ <property name="text">
+ <string>Output to file instead of stdout:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="4" column="0">
+ <property name="name">
+ <cstring>GinF</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="10" column="0">
+ <property name="name">
+ <cstring>GerrorF</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="11" column="0">
+ <property name="name">
+ <cstring>GmodF</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Modify original input files</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="FileSelector" row="2" column="0">
+ <property name="name">
+ <cstring>GtidyPath</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ExecButton" row="2" column="1">
+ <property name="name">
+ <cstring>ExecButton2</cstring>
+ </property>
+ <property name="text">
+ <string>/usr/bin</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>echo "/usr/bin/tidy"</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Processing Directives</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout1</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox" row="13" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>ParseAsHTML</cstring>
+ </property>
+ <property name="text">
+ <string>Force XHTML to well-formed HTML</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="12" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>ParseAsXHTML</cstring>
+ </property>
+ <property name="text">
+ <string>Convert HTML to well-formed XHTML</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="4" column="0">
+ <property name="name">
+ <cstring>ParseClean</cstring>
+ </property>
+ <property name="text">
+ <string>Replace FONT, NOBR and CENTER tags by CSS</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="3" column="0">
+ <property name="name">
+ <cstring>ParseUpper</cstring>
+ </property>
+ <property name="text">
+ <string>Force tags to upper case</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="10" column="0">
+ <property name="name">
+ <cstring>ParseXML</cstring>
+ </property>
+ <property name="text">
+ <string>Specify the input is well-formed XML</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="9" column="0">
+ <property name="name">
+ <cstring>ParseOmit</cstring>
+ </property>
+ <property name="text">
+ <string>Omit optional end tags</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property name="text">
+ <string>Do extra accessibility checks &lt;level&gt;:</string>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="1" column="1">
+ <property name="name">
+ <cstring>ParseWrap</cstring>
+ </property>
+ <property name="maxValue">
+ <number>500</number>
+ </property>
+ <property name="minValue">
+ <number>68</number>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="6" column="0">
+ <property name="name">
+ <cstring>ParseNumeric</cstring>
+ </property>
+ <property name="text">
+ <string>Output numeric rather than named entities</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="7" column="0">
+ <property name="name">
+ <cstring>ParseErrors</cstring>
+ </property>
+ <property name="text">
+ <string>Only show errors</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="SpinBoxInt" row="0" column="1">
+ <property name="name">
+ <cstring>ParseAccess</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Wrap text at column:</string>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="11" column="0">
+ <property name="name">
+ <cstring>ParseAsXML</cstring>
+ </property>
+ <property name="text">
+ <string>Convert HTML to well-formed XML</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="2" column="0">
+ <property name="name">
+ <cstring>ParseIndent</cstring>
+ </property>
+ <property name="text">
+ <string>Indent element content</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="5" column="0">
+ <property name="name">
+ <cstring>ParseBare</cstring>
+ </property>
+ <property name="text">
+ <string>Strip out smart quotes and em dashes, etc.</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox" row="8" column="0">
+ <property name="name">
+ <cstring>ParseQuiet</cstring>
+ </property>
+ <property name="text">
+ <string>Suppress nonessential output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>0</string>
+ <string></string>
+ <string>1</string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Character Encodings</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="ButtonGroup" row="0" column="0">
+ <property name="name">
+ <cstring>CharEncoding</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="RadioButton" row="9" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEibm858</cstring>
+ </property>
+ <property name="text">
+ <string>(ibm858) use IBM-858 (CP850+Euro) for input, US-ASCII for output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -ibm858</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="1" column="0">
+ <property name="name">
+ <cstring>CEraw</cstring>
+ </property>
+ <property name="text">
+ <string>(raw) output values above 127 without conversion to entities</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -raw</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="10" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEutf16Le</cstring>
+ </property>
+ <property name="text">
+ <string>(utf16le) use UTF-16LE for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -utf16le</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="4" column="0">
+ <property name="name">
+ <cstring>CElatin1</cstring>
+ </property>
+ <property name="text">
+ <string>(latin1) use ISO-8859-1 for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -latin1</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="8" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEwin1252</cstring>
+ </property>
+ <property name="text">
+ <string>(win1252) use Windows-1252 for input, US-ASCII for output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -win1252</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="15" column="1">
+ <property name="name">
+ <cstring>CE</cstring>
+ </property>
+ <property name="maxLength">
+ <number>2</number>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="14" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEshiftjis</cstring>
+ </property>
+ <property name="text">
+ <string>(shiftjis) use Shift_JIS for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -shiftjis</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="11" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEutf16be</cstring>
+ </property>
+ <property name="text">
+ <string>(utf16be) use UTF-16BE for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -utf16be</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="2" column="0">
+ <property name="name">
+ <cstring>CEascii</cstring>
+ </property>
+ <property name="text">
+ <string>(ascii) use US-ASCII for output, ISO-8859-1 for input</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -ascii</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="15" column="0">
+ <property name="name">
+ <cstring>CElangcode</cstring>
+ </property>
+ <property name="text">
+ <string>set the two-letter language code &lt;lang&gt; (for future use)</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -language @CE</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="12" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEutf16</cstring>
+ </property>
+ <property name="text">
+ <string>(utf16) use UTF-16 for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -utf16</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="13" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEbig5</cstring>
+ </property>
+ <property name="text">
+ <string>(big5) use Big5 for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -big5</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="6" column="0">
+ <property name="name">
+ <cstring>CEutf8</cstring>
+ </property>
+ <property name="text">
+ <string>(utf8) use UTF-8 for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -utf8</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CElatin0</cstring>
+ </property>
+ <property name="text">
+ <string>(latin0) use US-ASCII for output, ISO-8859-1 for input</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -latin0</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="7" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEmac</cstring>
+ </property>
+ <property name="text">
+ <string>(mac) use MacRoman for input, US-ASCII for output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -mac</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="5" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>CEiso2022</cstring>
+ </property>
+ <property name="text">
+ <string>(iso2022) use ISO-2022 for both input and output</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string> -iso2022</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="RadioButton" row="0" column="0">
+ <property name="name">
+ <cstring>RadioButton16</cstring>
+ </property>
+ <property name="text">
+ <string>Do not specify an encoding</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>About Tidy</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TextEdit" row="0" column="0">
+ <property name="name">
+ <cstring>TextEdit1</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="paletteBackgroundColor">
+ <color>
+ <red>255</red>
+ <green>255</green>
+ <blue>255</blue>
+ </color>
+ </property>
+ <property name="text">
+ <string>HTML Tidy Configuration Settings
+
+Within a file, use the form:
+
+wrap: 72
+split: no
+
+When specified on the command line, use the form:
+
+--wrap 72 --split no
+
+Name Type Allowable values
+==================== ========= ==============================
+indent-spaces Integer 0, 1, 2, ...
+wrap Integer 0 (no wrapping), 1, 2, ...
+tab-size Integer 0, 1, 2, ...
+char-encoding Encoding ascii, latin0, latin1, raw, utf8, iso202
+ utf16le, utf16be, utf16,
+ mac, win1252, ibm858, big5, shiftjis
+input-encoding Encoding ascii, latin0, latin1, raw, utf8, iso202
+ utf16le, utf16be, utf16,
+ mac, win1252, ibm858, big5, shiftjis
+output-encoding Encoding ascii, latin0, latin1, raw, utf8, iso202
+ utf16le, utf16be, utf16,
+ mac, win1252, ibm858, big5, shiftjis
+newline enum LF, CRLF, CR
+doctype DocType auto, omit, strict, loose, transitional,
+ user specified fpi (string)
+repeated-attributes enum keep-first, keep-last
+alt-text String -
+slide-style String -
+error-file String -
+output-file String -
+write-back Boolean y/n, yes/no, t/f, true/false, 1/0
+markup Boolean y/n, yes/no, t/f, true/false, 1/0
+show-warnings Boolean y/n, yes/no, t/f, true/false, 1/0
+quiet Boolean y/n, yes/no, t/f, true/false, 1/0
+indent AutoBool auto, y/n, yes/no, t/f, true/false, 1/0
+hide-endtags Boolean y/n, yes/no, t/f, true/false, 1/0
+input-xml Boolean y/n, yes/no, t/f, true/false, 1/0
+output-xml Boolean y/n, yes/no, t/f, true/false, 1/0
+output-xhtml Boolean y/n, yes/no, t/f, true/false, 1/0
+output-html Boolean y/n, yes/no, t/f, true/false, 1/0
+add-xml-decl Boolean y/n, yes/no, t/f, true/false, 1/0
+uppercase-tags Boolean y/n, yes/no, t/f, true/false, 1/0
+uppercase-attributes Boolean y/n, yes/no, t/f, true/false, 1/0
+bare Boolean y/n, yes/no, t/f, true/false, 1/0
+clean Boolean y/n, yes/no, t/f, true/false, 1/0
+logical-emphasis Boolean y/n, yes/no, t/f, true/false, 1/0
+drop-proprietary-attributes Boolean y/n, yes/no, t/f, true/false, 1/0
+drop-font-tags Boolean y/n, yes/no, t/f, true/false, 1/0
+drop-empty-paras Boolean y/n, yes/no, t/f, true/false, 1/0
+fix-bad-comments Boolean y/n, yes/no, t/f, true/false, 1/0
+break-before-br Boolean y/n, yes/no, t/f, true/false, 1/0
+split Boolean y/n, yes/no, t/f, true/false, 1/0
+numeric-entities Boolean y/n, yes/no, t/f, true/false, 1/0
+quote-marks Boolean y/n, yes/no, t/f, true/false, 1/0
+quote-nbsp Boolean y/n, yes/no, t/f, true/false, 1/0
+quote-ampersand Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-attributes Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-script-literals Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-sections Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-asp Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-jste Boolean y/n, yes/no, t/f, true/false, 1/0
+wrap-php Boolean y/n, yes/no, t/f, true/false, 1/0
+fix-backslash Boolean y/n, yes/no, t/f, true/false, 1/0
+indent-attributes Boolean y/n, yes/no, t/f, true/false, 1/0
+assume-xml-procins Boolean y/n, yes/no, t/f, true/false, 1/0
+add-xml-space Boolean y/n, yes/no, t/f, true/false, 1/0
+enclose-text Boolean y/n, yes/no, t/f, true/false, 1/0
+enclose-block-text Boolean y/n, yes/no, t/f, true/false, 1/0
+keep-time Boolean y/n, yes/no, t/f, true/false, 1/0
+word-2000 Boolean y/n, yes/no, t/f, true/false, 1/0
+tidy-mark Boolean y/n, yes/no, t/f, true/false, 1/0
+gnu-emacs Boolean y/n, yes/no, t/f, true/false, 1/0
+gnu-emacs-file String -
+literal-attributes Boolean y/n, yes/no, t/f, true/false, 1/0
+show-body-only Boolean y/n, yes/no, t/f, true/false, 1/0
+fix-uri Boolean y/n, yes/no, t/f, true/false, 1/0
+lower-literals Boolean y/n, yes/no, t/f, true/false, 1/0
+hide-comments Boolean y/n, yes/no, t/f, true/false, 1/0
+indent-cdata Boolean y/n, yes/no, t/f, true/false, 1/0
+force-output Boolean y/n, yes/no, t/f, true/false, 1/0
+show-errors Integer 0, 1, 2, ...
+ascii-chars Boolean y/n, yes/no, t/f, true/false, 1/0
+join-classes Boolean y/n, yes/no, t/f, true/false, 1/0
+join-styles Boolean y/n, yes/no, t/f, true/false, 1/0
+escape-cdata Boolean y/n, yes/no, t/f, true/false, 1/0
+language String -
+ncr Boolean y/n, yes/no, t/f, true/false, 1/0
+output-bom AutoBool auto, y/n, yes/no, t/f, true/false, 1/0
+replace-color Boolean y/n, yes/no, t/f, true/false, 1/0
+css-prefix Name CSS1 selector
+new-inline-tags Tag names tagX, tagY, ...
+new-blocklevel-tags Tag names tagX, tagY, ...
+new-empty-tags Tag names tagX, tagY, ...
+new-pre-tags Tag names tagX, tagY, ...
+accessibility-check Integer 0, 1, 2, ...
+</string>
+ </property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </widget>
+ <widget class="ExecButton" row="1" column="1">
+ <property name="name">
+ <cstring>ExecButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Process</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>tidyargs="@GtidyPath @CharEncoding"
+
+[ 1 -eq @GmodF ] &amp;&amp; tidyargs="$tidyargs -m"
+[ 1 -eq @GoutputEN ] &amp;&amp; tidyargs="$tidyargs -o @GoutF"
+[ 1 -eq @GerrorEN ] &amp;&amp; tidyargs="$tidyargs -f @GerrorF"
+[ 1 -eq @GconfigEN ] &amp;&amp; tidyargs="$tidyargs -config @GconfigF"
+[ 1 -eq @GinputEN ] &amp;&amp; tidyargs="$tidyargs @GinF"
+[ 1 -eq @ParseIndent ] &amp;&amp; tidyargs="$tidyargs -i"
+[ 68 -lt @ParseWrap ] &amp;&amp; tidyargs="$tidyargs -wrap @ParseWrap"
+[ 1 -eq @ParseUpper ] &amp;&amp; tidyargs="$tidyargs -u"
+[ 1 -eq @ParseClean ] &amp;&amp; tidyargs="$tidyargs -c"
+[ 1 -eq @ParseBare ] &amp;&amp; tidyargs="$tidyargs -b"
+[ 1 -eq @ParseNumeric ] &amp;&amp; tidyargs="$tidyargs -n"
+[ 1 -eq @ParseErrors ] &amp;&amp; tidyargs="$tidyargs -e"
+[ 1 -eq @ParseQuiet ] &amp;&amp; tidyargs="$tidyargs -q"
+[ 1 -eq @ParseOmit ] &amp;&amp; tidyargs="$tidyargs -omit"
+[ 1 -eq @ParseXML ] &amp;&amp; tidyargs="$tidyargs -xml"
+[ 1 -eq @ParseAsHTML ] &amp;&amp; tidyargs="$tidyargs -asxml"
+[ 1 -eq @ParseAsXHTML ] &amp;&amp; tidyargs="$tidyargs -asxhtml"
+[ 1 -eq @ParseAsHTML ] &amp;&amp; tidyargs="$tidyargs -ashtml"
+[ 0 -lt @ParseAccess ] &amp;&amp; tidyargs="$tidyargs -access @ParseAccess"
+
+if [ @GUseDCOP -eq 1 ]; then
+ dcopid=`dcop quanta*`
+ ifstr="EditInterface#"`dcop $dcopid WindowManagerIf currentEditorIfNum`
+ dcop $dcopid $ifstr text | $tidyargs
+else
+ $tidyargs
+fi
+</string>
+ </stringlist>
+ </property>
+ <property name="writeStdout">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>Spacer1</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="1" column="2">
+ <property name="name">
+ <cstring>Spacer1_3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>80</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="1" column="4">
+ <property name="name">
+ <cstring>Spacer1_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>125</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="CloseButton" row="1" column="3">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Cancel</string>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>GoutputEN</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GoutF</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>GconfigEN</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GconfigF</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>GerrorEN</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GerrorF</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>GinputEN</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GinF</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>GinputEN</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>GmodF</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>ExecButton2</sender>
+ <signal>widgetTextChanged(const QString&amp;)</signal>
+ <receiver>GtidyPath</receiver>
+ <slot>setWidgetText(const QString&amp;)</slot>
+ </connection>
+</connections>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/tidy.kmdr.info b/quanta/scripts/tidy.kmdr.info
new file mode 100644
index 00000000..a6658718
--- /dev/null
+++ b/quanta/scripts/tidy.kmdr.info
@@ -0,0 +1,9 @@
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>tidy</name>
+<author>Robert Nickel</author>
+<email>robert@artnickel.com</email>
+<license>GPL</license>
+<about>An advanced Kommander dialog for HTML Tidy that also demonstrates some advanced Kommander features.</about>
+</INFO>
diff --git a/quanta/scripts/xmlval.kmdr b/quanta/scripts/xmlval.kmdr
new file mode 100755
index 00000000..ea8b5078
--- /dev/null
+++ b/quanta/scripts/xmlval.kmdr
@@ -0,0 +1,499 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Form3</class>
+<comment>Quanta+ XML Validator is a Kommander front-end for xmllint.</comment>
+<author>Chris Hornbaker</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form3</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>439</width>
+ <height>254</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Quanta+ XML Validator</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="GroupBox" row="0" column="0" rowspan="1" colspan="3">
+ <property name="name">
+ <cstring>ValScript</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string># get file to be tested location
+@CheckBox4
+if [ !$CUR ]
+ then
+ TMP0=`dcop | grep quanta`
+ TMP1=`dcop $TMP0 WindowManagerIf currentURL`
+ FILE=`echo $TMP1 | cut -b6-`
+ else
+ FILE=`echo '@FileSelector4'`
+fi
+
+# Get validation type info
+@CheckBox3
+if [ !$WF ]
+ then
+ @ComboBox2
+ VALSTR="$VAL @FileSelector5"
+ else
+ VALSTR="$VAL"
+fi
+# Put it all together
+CMDLINE="$VALSTR $FILE"</string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout10</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>CheckBox4</cstring>
+ </property>
+ <property name="text">
+ <string>C&amp;urrent file</string>
+ </property>
+ <property name="autoRepeat">
+ <bool>false</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string># Check if we're using the current file and make note of it
+if [ !@FileSelector4 ]
+ then
+ CUR=1
+ else
+ CUR=''
+fi</string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer9</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget" row="1" column="0">
+ <property name="name">
+ <cstring>Layout4</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Other file:</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer5</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>FileSelector4</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget" row="3" column="0">
+ <property name="name">
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel4</cstring>
+ </property>
+ <property name="text">
+ <string>Validate against:</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer4</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>DTD (Internal)</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>DTD (External)</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>XML Schema</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>RelaxNG Schema</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>ComboBox2</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>################################
+# Set up variables
+# W3C XML Schema
+WXS='--schema'
+# RelaxNG Schema
+RNGS='--relaxng'
+# DTD specified in document
+DTD1='--valid'
+# DTD not specified in document and
+# needs loaded from URL
+DTD2='--dtdvalid'
+
+################################
+# Set validation type
+
+case "@widgetText" in
+"XML Schema" )
+ VAL="$WXS"
+;;
+"RelaxNG Schema" )
+ VAL="$RNGS"
+;;
+"DTD (Internal)" )
+ VAL="$DTD1"
+;;
+"DTD (External)" )
+ VAL="$DTD1"
+;;
+* )
+ VAL=""
+;;
+esac</string>
+ </stringlist>
+ </property>
+ <property name="items" stdset="0">
+ <stringlist>
+ <string>DTD</string>
+ <string>RelaxNG Schema</string>
+ <string>W3C XML Schema</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget" row="2" column="0">
+ <property name="name">
+ <cstring>Layout11</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>CheckBox3</cstring>
+ </property>
+ <property name="text">
+ <string>Well-formed checking &amp;only</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string># Are we just checking well-formedness?
+@ComboBox2
+if [ !$VAL ]
+ then
+ WF=1
+ else
+ WF=''
+fi
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer10</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget" row="4" column="0">
+ <property name="name">
+ <cstring>Layout6</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel5</cstring>
+ </property>
+ <property name="text">
+ <string>Definition URI:</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>FileSelector5</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="ExecButton" row="1" column="1">
+ <property name="name">
+ <cstring>ExecButton2</cstring>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>&amp;Validate</string>
+ </property>
+ <property name="on">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string># Set up the CMDLINE var and run xmllint
+@ValScript
+xmllint $CMDLINE 2&gt;&amp;1
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CloseButton" row="1" column="2">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>Spacer8</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>228</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>FileSelector4</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox4</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel4</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>ComboBox2</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel5</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>FileSelector5</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+</connections>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/xmlval.kmdr.info b/quanta/scripts/xmlval.kmdr.info
new file mode 100644
index 00000000..56533d03
--- /dev/null
+++ b/quanta/scripts/xmlval.kmdr.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="info.xsl" ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>xmlval</name>
+<author>Chris Hornbaker</author>
+<email>jilks@openschooling.org</email>
+<website></website>
+<version>1.0</version>
+<license>GPL v2</license>
+<about>This Kommander script uses xmllint from the libxml2 package to validate XML files.</about>
+</INFO>
+
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 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>xslt_processor</class>
+<comment>Kommander front-end to xsltproc for Quanta Plus.</comment>
+<author>Chris Hornbaker</author>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>461</width>
+ <height>250</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Quanta+: xsltproc</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="1" column="0">
+ <property name="name">
+ <cstring>Layout5</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer4</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>ExecButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Translate</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string># Set up the CMDLINE var and run xsltproc
+@GroupBox1
+xsltproc $CMDLINE</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CloseButton">
+ <property name="name">
+ <cstring>CloseButton1</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="GroupBox" row="0" column="0">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string># 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"</string>
+ </stringlist>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>Layout17</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>CheckBox1</cstring>
+ </property>
+ <property name="text">
+ <string>Current file</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string># Check if we're using the current file and make note of it
+if [ !@FileSelector1 ]
+ then
+ CUR=1
+ else
+ CUR=''
+fi</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout15</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel1</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>File location:</string>
+ </property>
+ </widget>
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>FileSelector1</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout14</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Stylesheet location:</string>
+ </property>
+ </widget>
+ <widget class="FileSelector">
+ <property name="name">
+ <cstring>FileSelector2</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout13</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property name="text">
+ <string>Output file name:</string>
+ </property>
+ </widget>
+ <widget class="LineEdit">
+ <property name="name">
+ <cstring>LineEdit1</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+ </widget>
+ </grid>
+ </widget>
+ </grid>
+</widget>
+<connections>
+ <connection>
+ <sender>CheckBox1</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>FileSelector1</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>CheckBox1</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel1</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+</connections>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/quanta/scripts/xsltproc.kmdr.info b/quanta/scripts/xsltproc.kmdr.info
new file mode 100644
index 00000000..c44976b5
--- /dev/null
+++ b/quanta/scripts/xsltproc.kmdr.info
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="info.xsl" ?>
+<!DOCTYPE QuantaScriptInfo>
+<INFO>
+<options editor="kmdr-editor" interpreter="kmdr-executor -c quanta" />
+<name>xsltproc</name>
+<author>Chris Hornbaker</author>
+<email>jilks@openschooling.org</email>
+<website></website>
+<version>1.0</version>
+<license>GPL v2</license>
+<about>This Kommander script uses xsltproc from the libxslt package to apply XSLT file to XML files.</about>
+</INFO>
+