use XML namespace in XRC files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<resource>
|
<resource xmlns="http://www.wxwindows.org/wxxrc">
|
||||||
<object class="wxMenuBar" name="mainmenu">
|
<object class="wxMenuBar" name="mainmenu">
|
||||||
<style>wxMB_DOCKABLE</style>
|
<style>wxMB_DOCKABLE</style>
|
||||||
<object class="wxMenu" name="menu_file">
|
<object class="wxMenu" name="menu_file">
|
||||||
|
@@ -33,7 +33,7 @@ of an <object> or <object_ref> node. In the example bellow, <pos>, <label> and
|
|||||||
<style> are attributes, while neither <resource> nor either of <object>s is:
|
<style> are attributes, while neither <resource> nor either of <object>s is:
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8">
|
<?xml version="1.0" encoding="utf-8">
|
||||||
<resource version="2.3.0.1">
|
<resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
|
||||||
<object class="wxPanel">
|
<object class="wxPanel">
|
||||||
<style>wxSUNKEN_BORDER</style>
|
<style>wxSUNKEN_BORDER</style>
|
||||||
<object class="wxStaticText">
|
<object class="wxStaticText">
|
||||||
@@ -46,7 +46,8 @@ of an <object> or <object_ref> node. In the example bellow, <pos>, <label> and
|
|||||||
2. Elementary description
|
2. Elementary description
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
XRC resource file is a well-formed XML 1.0 document.
|
XRC resource file is a well-formed XML 1.0 document. All elements of XRC file are
|
||||||
|
from the http://www.wxwindows.org/wxxrc namespace.
|
||||||
|
|
||||||
The root node of XRC document must be <resource>. The <resource> node has
|
The root node of XRC document must be <resource>. The <resource> node has
|
||||||
optional "version" property. Default version (in absence of the version
|
optional "version" property. Default version (in absence of the version
|
||||||
@@ -62,6 +63,10 @@ the second etc.
|
|||||||
Differences between versions are described within this document in paragraphs
|
Differences between versions are described within this document in paragraphs
|
||||||
entitled "Version Note".
|
entitled "Version Note".
|
||||||
|
|
||||||
|
The <resource> node contains namespace declaration, too:
|
||||||
|
|
||||||
|
<resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
|
||||||
|
|
||||||
The <resource> node is only allowed to have <object> and <object_ref>
|
The <resource> node is only allowed to have <object> and <object_ref>
|
||||||
subnodes, all of which must have the "name" property.
|
subnodes, all of which must have the "name" property.
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<resource>
|
<resource xmlns="http://www.wxwindows.org/wxxrc">
|
||||||
<object class="wxMenuBar" name="mainmenu">
|
<object class="wxMenuBar" name="mainmenu">
|
||||||
<style>wxMB_DOCKABLE</style>
|
<style>wxMB_DOCKABLE</style>
|
||||||
<object class="wxMenu" name="menu_file">
|
<object class="wxMenu" name="menu_file">
|
||||||
|
Reference in New Issue
Block a user