added XML resources sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-09-17 19:20:16 +00:00
parent 1c8ac192c6
commit 9f8276c7d4
11 changed files with 539 additions and 1 deletions

View File

@ -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

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -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####.........",
"......###.......................",
"......##........................",
"......##........................"};

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@ -0,0 +1,476 @@
<?xml version="1.0"?>
<resource>
<dialog name="dlg1">
<title>Catalog settings</title>
<children>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<notebook>
<usenotebooksizer>1</usenotebooksizer>
<children>
<notebookpage>
<window>
<panel>
<children>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<flexgridsizer>
<children>
<sizeritem>
<window>
<statictext>
<label>Project name and version:</label>
</statictext>
</window>
<flag>wxLEFT|wxTOP|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<textctrl name="prj_name">
<size>100,-1d</size>
</textctrl>
</window>
<flag>wxEXPAND|wxRIGHT|wxTOP</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<statictext>
<label>Team:</label>
</statictext>
</window>
<flag>wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<textctrl name="team_name"/>
</window>
<flag>wxEXPAND|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<statictext>
<label>Team's e-mail address:</label>
</statictext>
</window>
<flag>wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<textctrl name="team_email"/>
</window>
<flag>wxEXPAND|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<statictext>
<label>Language:</label>
</statictext>
</window>
<flag>wxLEFT|wxRIGHT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<combobox name="language">
<style>wxCB_READONLY</style>
</combobox>
</window>
<flag>wxEXPAND|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<statictext>
<label>Charset:</label>
</statictext>
</window>
<flag>wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<combobox name="charset">
<content>
<item>iso8859-1</item>
<item>iso8859-2</item>
<item>iso8859-3</item>
<item>iso8859-4</item>
<item>iso8859-5</item>
<item>iso8859-6</item>
<item>iso8859-7</item>
<item>iso8859-8</item>
<item>iso8859-9</item>
<item>iso8859-10</item>
<item>iso8859-11</item>
<item>iso8859-12</item>
<item>iso8859-13</item>
<item>iso8859-14</item>
<item>iso8859-15</item>
<item>koi8-r</item>
<item>windows-1250</item>
<item>windows-1251</item>
<item>windows-1252</item>
<item>windows-1253</item>
<item>windows-1254</item>
<item>windows-1255</item>
<item>windows-1256</item>
<item>windows-1257</item>
</content>
<style>wxCB_READONLY</style>
</combobox>
</window>
<flag>wxEXPAND|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<spacer/>
</children>
<cols>2</cols>
<vgap>10</vgap>
<hgap>5</hgap>
</flexgridsizer>
</window>
<flag>wxALIGN_RIGHT</flag>
</sizeritem>
</children>
</boxsizer>
</children>
<style>wxTAB_TRAVERSAL</style>
</panel>
</window>
<label>Project info</label>
</notebookpage>
<notebookpage>
<window>
<panel>
<children>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<boxsizer>
<orient>wxHORIZONTAL</orient>
<children>
<sizeritem>
<window>
<statictext>
<label>Base path: </label>
</statictext>
</window>
<border>10</border>
<flag>wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<textctrl name="basepath"/>
</window>
<option>1</option>
</sizeritem>
</children>
</boxsizer>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxTOP</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<statictext>
<label>Search files in these paths (relative to base path):</label>
</statictext>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxTOP</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<listbox name="dirs_list">
<size>-1,80d</size>
</listbox>
</window>
<flag>wxEXPAND|wxALL</flag>
<option>1</option>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<boxsizer>
<orient>wxHORIZONTAL</orient>
<children>
<sizeritem>
<window>
<textctrl name="dir_input"/>
</window>
<option>1</option>
</sizeritem>
<sizeritem>
<window>
<button name="dir_add">
<label>Add</label>
</button>
</window>
<flag>wxLEFT|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<button name="dir_remove">
<label>Remove</label>
</button>
</window>
</sizeritem>
</children>
</boxsizer>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM</flag>
<border>10</border>
</sizeritem>
</children>
</boxsizer>
</children>
<style>wxTAB_TRAVERSAL</style>
</panel>
</window>
<label>Paths</label>
</notebookpage>
<notebookpage>
<window>
<panel>
<children>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<statictext>
<label>Use these keywords (function names) to recognize translatable strings\nin source files, in addition to default ones:</label>
</statictext>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxTOP</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<listbox name="keywords_list">
<size>-1,80d</size>
</listbox>
</window>
<flag>wxEXPAND|wxALL</flag>
<option>1</option>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<boxsizer>
<orient>wxHORIZONTAL</orient>
<children>
<sizeritem>
<window>
<textctrl name="keyword_input"/>
</window>
<option>1</option>
</sizeritem>
<sizeritem>
<window>
<button name="keyword_add">
<label>Add</label>
</button>
</window>
<flag>wxLEFT|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<sizeritem>
<window>
<button name="keyword_remove">
<label>Remove</label>
</button>
</window>
</sizeritem>
</children>
</boxsizer>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM</flag>
<border>10</border>
</sizeritem>
</children>
</boxsizer>
</children>
<style>wxTAB_TRAVERSAL</style>
</panel>
</window>
<label>Keywords</label>
</notebookpage>
</children>
</notebook>
</window>
<option>1</option>
<border>10</border>
<flag>wxEXPAND|wxALL</flag>
</sizeritem>
<sizeritem>
<window>
<boxsizer>
<children>
<sizeritem>
<window>
<button name="wxID_OK">
<label>Ok</label>
<default>1</default>
</button>
</window>
<flag/>
</sizeritem>
<sizeritem>
<window>
<button name="wxID_CANCEL">
<label>Cancel</label>
</button>
</window>
<border>10</border>
<flag>wxLEFT</flag>
</sizeritem>
</children>
</boxsizer>
</window>
<flag>wxALL|wxALIGN_RIGHT</flag>
<border>10</border>
</sizeritem>
</children>
</boxsizer>
</children>
<style>wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL</style>
</dialog>
<menubar name="mainmenu">
<children>
<menu name="menu_file">
<label>$File</label>
<style>wxMENU_TEAROFF</style>
<children>
<menuitem name="menu_about">
<label>$About...</label>
</menuitem>
<separator/>
<menuitem name="menu_dlg1">
<label>Dialog 1</label>
</menuitem>
<menuitem name="menu_dlg2">
<label>Dialog 2</label>
</menuitem>
<separator/>
<menuitem name="menu_quit">
<label>E$xit\tAlt-X</label>
</menuitem>
</children>
</menu>
</children>
<style>wxMB_DOCKABLE</style>
</menubar>
<dialog name="dlg2">
<title>Updating catalog</title>
<children>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<boxsizer>
<children>
<sizeritem>
<window>
<staticbitmap>
<bitmap>scanning.gif</bitmap>
</staticbitmap>
</window>
<border>25</border>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
<sizeritem>
<window>
<boxsizer>
<orient>wxVERTICAL</orient>
<children>
<sizeritem>
<window>
<statictext name="info">
<label>Scanning files...</label>
</statictext>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT|wxTOP</flag>
<border>10</border>
</sizeritem>
<spacer>
<size>-1,2d</size>
</spacer>
<sizeritem>
<window>
<gauge name="progress">
<size>150,10d</size>
<style>wxGA_SMOOTH</style>
</gauge>
</window>
<flag>wxEXPAND|wxLEFT|wxRIGHT</flag>
<border>10</border>
</sizeritem>
<spacer>
<size>-1,2d</size>
</spacer>
<sizeritem>
<window>
<button name="wxID_CANCEL">
<label>Cancel</label>
</button>
</window>
<flag>wxRIGHT|wxTOP|wxBOTTOM|wxALIGN_RIGHT</flag>
<border>10</border>
</sizeritem>
</children>
</boxsizer>
</window>
<flag>wxALIGN_CENTER_VERTICAL</flag>
</sizeritem>
</children>
</boxsizer>
</window>
</sizeritem>
</children>
</boxsizer>
</children>
</dialog>
<toolbar name="toolbar">
<children>
<tool name="menu_open">
<bitmap>fileopen.gif</bitmap>
<tooltip>Open catalog</tooltip>
</tool>
<tool name="menu_save">
<bitmap>filesave.gif</bitmap>
<tooltip>Save catalog</tooltip>
</tool>
<tool name="menu_update">
<bitmap>update.gif</bitmap>
<tooltip>Update catalog - synchronize it with sources</tooltip>
</tool>
<separator/>
<tool name="menu_quotes">
<bitmap>quotes.gif</bitmap>
<toggle>1</toggle>
<tooltip>Display quotes around the string?</tooltip>
</tool>
<separator/>
<tool name="menu_fuzzy">
<bitmap>fuzzy.gif</bitmap>
<tooltip>Toggled if selected string is fuzzy translation</tooltip>
<toggle>1</toggle>
</tool>
</children>
<style>wxTB_FLAT|wxTB_DOCKABLE</style>
<margins>2,2</margins>
</toolbar>
</resource>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B