From: Václav Slavík Date: Sun, 17 Sep 2000 19:20:16 +0000 (+0000) Subject: added XML resources sample X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f8276c7d49df2d9a12ebc93e2802e487e4e7b92 added XML resources sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/configure.in b/contrib/configure.in index 53c1dd0412..fccbbd25bf 100644 --- a/contrib/configure.in +++ b/contrib/configure.in @@ -56,6 +56,7 @@ AC_OUTPUT([ samples/gizmos/Makefile samples/gizmos/multicell/Makefile samples/gizmos/splittree/Makefile + samples/xml/Makefile utils/Makefile utils/wxrc/Makefile utils/wxrcedit/Makefile diff --git a/contrib/samples/Makefile.in b/contrib/samples/Makefile.in index f867c03d66..fd6917aabd 100644 --- a/contrib/samples/Makefile.in +++ b/contrib/samples/Makefile.in @@ -1,6 +1,6 @@ # $Id$ -CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas +CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas xml all: @for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done diff --git a/contrib/samples/xml/rc/appicon.ico b/contrib/samples/xml/rc/appicon.ico new file mode 100644 index 0000000000..6082b2fd0a Binary files /dev/null and b/contrib/samples/xml/rc/appicon.ico differ diff --git a/contrib/samples/xml/rc/appicon.xpm b/contrib/samples/xml/rc/appicon.xpm new file mode 100644 index 0000000000..948961fe5c --- /dev/null +++ b/contrib/samples/xml/rc/appicon.xpm @@ -0,0 +1,61 @@ +/* XPM */ +static char* appicon_xpm[]={ +"32 32 26 1", +"s c #000000", +"u c #ff8000", +"m c #ffc0ff", +"q c #400000", +". c None", +"t c #004040", +"d c #303030", +"n c #ffdca8", +"e c #c0c0c0", +"x c #808000", +"o c #c00000", +"c c #585858", +"b c #a0a0a4", +"f c #c000c0", +"# c #000000", +"i c #808080", +"p c #ffa858", +"v c #ffff00", +"k c #800000", +"w c #c0c000", +"r c #004000", +"h c #404000", +"j c #ffc0c0", +"a c #ffffff", +"l c #c05800", +"g c #ff0000", +".....#####...........##.........", +"...##abbccd........##c#.........", +"###aaaebfgh########abi#.........", +"#cbaaaejggkiibeeaaaeeic#........", +"#ieaaaefggldggfjmnaaeei#........", +"#ibeaajggggcggggfmaaabi#b.......", +"#iieaajggggolgggggmaaeec#.......", +"#cieaajgggggdgggggpmaeec#.......", +"#cieaajgggggqgggggggaabi#.......", +"#dieaajpgggcc##cggggaaebc###....", +"#ribaamecccccs##cgggaebccth##...", +"#dieaa#qtdcch###tcs#iichd####...", +"##cbea##dccccs##qhhccccct#####..", +"##iiea##rhccch##tsdtcccdh#####..", +"##cbea###tccookk#hrdhccccs####..", +"##ciea###koogookkddtcccch###q#..", +"##tiea##qoggggokkqhqccccckokkk#.", +"##hbeb#qkoogggookkqkoklkoookkk#.", +"###icb#kkooggggokkdkogggggookk#.", +"###d..#kkoogggouukqkooggggookk#.", +"##....#kkkoguvvvwuhkogggggooko#.", +"##....##kolwvvvvvulcllggggulll#.", +"##....##kuuvvvvvuvudwuuuuuvuuu#.", +"......##uuuuvvvvvuuqivvvvvvuuu#.", +"......##uuuvvwwiqcllhuvvvvvuuu#.", +"......##uuuwl##xuphdivvvvvvvul#.", +"......##uuu##e.#vltcuvuvvvvux#..", +"......##ux#e....###uuww######...", +"......##i#......bbb####.........", +"......###.......................", +"......##........................", +"......##........................"}; diff --git a/contrib/samples/xml/rc/fileopen.gif b/contrib/samples/xml/rc/fileopen.gif new file mode 100644 index 0000000000..a93ef2aab7 Binary files /dev/null and b/contrib/samples/xml/rc/fileopen.gif differ diff --git a/contrib/samples/xml/rc/filesave.gif b/contrib/samples/xml/rc/filesave.gif new file mode 100644 index 0000000000..7bd11de000 Binary files /dev/null and b/contrib/samples/xml/rc/filesave.gif differ diff --git a/contrib/samples/xml/rc/fuzzy.gif b/contrib/samples/xml/rc/fuzzy.gif new file mode 100644 index 0000000000..51683572a3 Binary files /dev/null and b/contrib/samples/xml/rc/fuzzy.gif differ diff --git a/contrib/samples/xml/rc/quotes.gif b/contrib/samples/xml/rc/quotes.gif new file mode 100644 index 0000000000..3ea61bde43 Binary files /dev/null and b/contrib/samples/xml/rc/quotes.gif differ diff --git a/contrib/samples/xml/rc/resource.xml b/contrib/samples/xml/rc/resource.xml new file mode 100644 index 0000000000..4deefe0e68 --- /dev/null +++ b/contrib/samples/xml/rc/resource.xml @@ -0,0 +1,476 @@ + + + + Catalog settings + + + wxVERTICAL + + + + + 1 + + + + + + + wxVERTICAL + + + + + + + + + + + + wxLEFT|wxTOP|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + 10 + + + + + 100,-1d + + + wxEXPAND|wxRIGHT|wxTOP + 10 + + + + + + + + wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + + + + + + wxEXPAND|wxRIGHT + 10 + + + + + + + + wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + + + + + + wxEXPAND|wxRIGHT + 10 + + + + + + + + wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + + + + + + + + wxEXPAND|wxRIGHT + 10 + + + + + + + + wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + + + + + + iso8859-1 + iso8859-2 + iso8859-3 + iso8859-4 + iso8859-5 + iso8859-6 + iso8859-7 + iso8859-8 + iso8859-9 + iso8859-10 + iso8859-11 + iso8859-12 + iso8859-13 + iso8859-14 + iso8859-15 + koi8-r + windows-1250 + windows-1251 + windows-1252 + windows-1253 + windows-1254 + windows-1255 + windows-1256 + windows-1257 + + + + + wxEXPAND|wxRIGHT + 10 + + + + 2 + 10 + 5 + + + wxALIGN_RIGHT + + + + + + + + + + + + + + + wxVERTICAL + + + + + wxHORIZONTAL + + + + + + + + 10 + wxALIGN_CENTER_VERTICAL + + + + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxTOP + 10 + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxTOP + 10 + + + + + -1,80d + + + wxEXPAND|wxALL + + 10 + + + + + wxHORIZONTAL + + + + + + + + + + + + wxLEFT|wxRIGHT + 10 + + + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM + 10 + + + + + + + + + + + + + + + wxVERTICAL + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxTOP + 10 + + + + + -1,80d + + + wxEXPAND|wxALL + + 10 + + + + + wxHORIZONTAL + + + + + + + + + + + + wxLEFT|wxRIGHT + 10 + + + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM + 10 + + + + + + + + + + + + + + 10 + wxEXPAND|wxALL + + + + + + + + + + + + + + + + 10 + wxLEFT + + + + + wxALL|wxALIGN_RIGHT + 10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Updating catalog + + + wxVERTICAL + + + + + + + + + scanning.gif + + + 25 + wxALL|wxALIGN_CENTER_VERTICAL + + + + + wxVERTICAL + + + + + + + + wxEXPAND|wxLEFT|wxRIGHT|wxTOP + 10 + + + -1,2d + + + + + 150,10d + + + + wxEXPAND|wxLEFT|wxRIGHT + 10 + + + -1,2d + + + + + + wxRIGHT|wxTOP|wxBOTTOM|wxALIGN_RIGHT + 10 + + + + + wxALIGN_CENTER_VERTICAL + + + + + + + + + + + + + fileopen.gif + Open catalog + + + filesave.gif + Save catalog + + + update.gif + Update catalog - synchronize it with sources + + + + quotes.gif + 1 + Display quotes around the string? + + + + fuzzy.gif + Toggled if selected string is fuzzy translation + 1 + + + + 2,2 + + diff --git a/contrib/samples/xml/rc/scanning.gif b/contrib/samples/xml/rc/scanning.gif new file mode 100644 index 0000000000..c1b1e15caf Binary files /dev/null and b/contrib/samples/xml/rc/scanning.gif differ diff --git a/contrib/samples/xml/rc/update.gif b/contrib/samples/xml/rc/update.gif new file mode 100644 index 0000000000..d6ef70a421 Binary files /dev/null and b/contrib/samples/xml/rc/update.gif differ