From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/examples/old/tidy.kmdr | 1159 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 1159 insertions(+) create mode 100644 kommander/examples/old/tidy.kmdr (limited to 'kommander/examples/old/tidy.kmdr') diff --git a/kommander/examples/old/tidy.kmdr b/kommander/examples/old/tidy.kmdr new file mode 100644 index 00000000..096dec40 --- /dev/null +++ b/kommander/examples/old/tidy.kmdr @@ -0,0 +1,1159 @@ + +Tidy + + + Tidy + + + + 0 + 0 + 578 + 611 + + + + Tidy by Kommander + + + + unnamed + + + 11 + + + 6 + + + + TabWidget1 + + + + tab + + + General Options + + + + GroupBox1 + + + + 11 + 11 + 437 + 110 + + + + Non Tidy Option + + + + TextLabel4 + + + + 10 + 50 + 310 + 40 + + + + + 1 + 1 + + + + Note: This will not work well if you have multiple +instances of Quanta running. + + + + + GUseDCOP + + + + 10 + 20 + 320 + 21 + + + + Use DCOP to send active page from Quanta+ to tidy + + + + + + 1 + + + + + + + GconfigF + + + false + + + + 11 + 377 + 437 + 32 + + + + + @widgetText + + + + + + TextLabel1 + + + + 11 + 127 + 437 + 40 + + + + Path to tidy (required): + + + + + GoutF + + + false + + + + 11 + 309 + 437 + 32 + + + + + @widgetText + + + + + + GinputEN + + + + 11 + 211 + 437 + 24 + + + + Input from file instead of stdin: + + + + 0 + + 1 + + + + + + GerrorEN + + + + 11 + 415 + 437 + 24 + + + + Write errors to file instead of stderr: + + + + 0 + + 1 + + + + + + GconfigEN + + + + 11 + 347 + 437 + 24 + + + + Use configuration from file: + + + + 0 + + 1 + + + + + + GoutputEN + + + + 11 + 279 + 437 + 24 + + + + Output to file instead of stdout: + + + + 0 + + 1 + + + + + + GinF + + + false + + + + 11 + 241 + 437 + 32 + + + + + @widgetText + + + + + + GerrorF + + + false + + + + 11 + 445 + 437 + 32 + + + + + @widgetText + + + + + + GmodF + + + false + + + + 11 + 483 + 437 + 24 + + + + Modify original input files + + + + 0 + + 1 + + + + + + GtidyPath + + + + 11 + 173 + 437 + 32 + + + + + @widgetText + + + + + + ExecButton2 + + + + 454 + 173 + 89 + 32 + + + + /usr/bin + + + + echo "/usr/bin/tidy" + + + + + + + tab + + + Processing Directives + + + + unnamed + + + 11 + + + 6 + + + + Layout1 + + + + unnamed + + + 0 + + + 6 + + + + ParseAsHTML + + + Force XHTML to well formed HTML + + + + + + 1 + + + + + + ParseAsXHTML + + + Convert HTML to well formed XHTML + + + + + + 1 + + + + + + ParseClean + + + Replace FONT, NOBR and CENTER tags by CSS + + + + 0 + + 1 + + + + + + ParseUpper + + + Force tags to upper case + + + + 0 + + 1 + + + + + + ParseXML + + + Specify the input is well formed XML + + + + + + 1 + + + + + + ParseOmit + + + Omit optional end tags + + + + + + 1 + + + + + + TextLabel1_2 + + + Do extra accessibility checks <level>: + + + + + ParseWrap + + + 500 + + + 68 + + + + @widgetText + + + + + + ParseNumeric + + + Output numeric rather than named entities + + + + + + 1 + + + + + + ParseErrors + + + Only show errors + + + + + + 1 + + + + + + ParseAccess + + + + @widgetText + + + + + + TextLabel2 + + + Wrap text at column: + + + + + ParseAsXML + + + Convert HTML to well formed XML + + + + + + 1 + + + + + + ParseIndent + + + Indent element content + + + + 0 + + 1 + + + + + + ParseBare + + + Strip out smart quotes and em dashes, etc. + + + + 0 + + 1 + + + + + + ParseQuiet + + + Suppress nonessential output + + + + + + 1 + + + + + + + + + + tab + + + Character Encodings + + + + unnamed + + + 11 + + + 6 + + + + CharEncoding + + + + + + + unnamed + + + 11 + + + 6 + + + + CEibm858 + + + (ibm858) use IBM-858 (CP850+Euro) for input, US-ASCII for output + + + + + -ibm858 + + + + + + CEraw + + + (raw) output values above 127 without conversion to entities + + + false + + + + + -raw + + + + + + CEutf16Le + + + (utf16le) use UTF-16LE for both input and output + + + + + -utf16le + + + + + + CElatin1 + + + (latin1) use ISO-8859-1 for both input and output + + + + + -latin1 + + + + + + CEwin1252 + + + (win1252) use Windows-1252 for input, US-ASCII for output + + + + + -win1252 + + + + + + CE + + + 2 + + + + + CEshiftjis + + + (shiftjis) use Shift_JIS for both input and output + + + + + -shiftjis + + + + + + CEutf16be + + + (utf16be) use UTF-16BE for both input and output + + + + + -utf16be + + + + + + CEascii + + + (ascii) use US-ASCII for output, ISO-8859-1 for input + + + + + -ascii + + + + + + CElangcode + + + Set the two-letter language code <lang> (for future use): + + + + + -language @CE + + + + + + CEutf16 + + + (utf16) use UTF-16 for both input and output + + + + + -utf16 + + + + + + CEbig5 + + + (big5) use Big5 for both input and output + + + + + -big5 + + + + + + CEutf8 + + + (utf8) use UTF-8 for both input and output + + + + + -utf8 + + + + + + CElatin0 + + + (latin0) use US-ASCII for output, ISO-8859-1 for input + + + + + -latin0 + + + + + + CEmac + + + (mac) use MacRoman for input, US-ASCII for output + + + + + -mac + + + + + + CEiso2022 + + + (iso2022) use ISO-2022 for both input and output + + + + + -iso2022 + + + + + + RadioButton16 + + + Bah, encoding, schmencoding + + + true + + + + + + + + + + + + + + + tab + + + About Tidy + + + + unnamed + + + 11 + + + 6 + + + + TextEdit1 + + + true + + + + 238 + 238 + 230 + + + + 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, ... + + + + true + + + + + + + + ExecButton1 + + + Process + + + + tidyargs="@GtidyPath @CharEncoding" + +[ 1 -eq @GmodF ] && tidyargs="$tidyargs -m" +[ 1 -eq @GoutputEN ] && tidyargs="$tidyargs -o @GoutF" +[ 1 -eq @GerrorEN ] && tidyargs="$tidyargs -f @GerrorF" +[ 1 -eq @GconfigEN ] && tidyargs="$tidyargs -config @GconfigF" +[ 1 -eq @GinputEN ] && tidyargs="$tidyargs @GinF" +[ 1 -eq @ParseIndent ] && tidyargs="$tidyargs -i" +[ 68 -lt @ParseWrap ] && tidyargs="$tidyargs -wrap @ParseWrap" +[ 1 -eq @ParseUpper ] && tidyargs="$tidyargs -u" +[ 1 -eq @ParseClean ] && tidyargs="$tidyargs -c" +[ 1 -eq @ParseBare ] && tidyargs="$tidyargs -b" +[ 1 -eq @ParseNumeric ] && tidyargs="$tidyargs -n" +[ 1 -eq @ParseErrors ] && tidyargs="$tidyargs -e" +[ 1 -eq @ParseQuiet ] && tidyargs="$tidyargs -q" +[ 1 -eq @ParseOmit ] && tidyargs="$tidyargs -omit" +[ 1 -eq @ParseXML ] && tidyargs="$tidyargs -xml" +[ 1 -eq @ParseAsHTML ] && tidyargs="$tidyargs -asxml" +[ 1 -eq @ParseAsXHTML ] && tidyargs="$tidyargs -asxhtml" +[ 1 -eq @ParseAsHTML ] && tidyargs="$tidyargs -ashtml" +[ 0 -lt @ParseAccess ] && 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 + + + + + true + + + + + CloseButton1 + + + Eject! Eject! Eject! + + + + + Spacer1 + + + Horizontal + + + Expanding + + + + 131 + 0 + + + + + + Spacer2 + + + Horizontal + + + Expanding + + + + 121 + 0 + + + + + + + + GoutputEN + toggled(bool) + GoutF + setEnabled(bool) + + + GconfigEN + toggled(bool) + GconfigF + setEnabled(bool) + + + GerrorEN + toggled(bool) + GerrorF + setEnabled(bool) + + + GinputEN + toggled(bool) + GinF + setEnabled(bool) + + + GinputEN + toggled(bool) + GmodF + setEnabled(bool) + + + ExecButton2 + widgetTextChanged(const QString&) + GtidyPath + setWidgetText(const QString&) + + + + -- cgit v1.2.1