[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: [PATCH] adjust kpartgui.dtd to include <State>
From: Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date: 2002-02-14 0:00:59
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Attached patch amends kpartgui.dtd with the definition of the <State>
and <enable>, <disable> elements. Is this dtd used anywhere except for
documentation purposes? I ask since not a single *ui.rc I looked at is
valid XML (all are missing the <?xml version="1.0"?> at the beginning
or simply refer to this dtd by <!DOCTYPE kpartgui>, which is missing
the PUBLIC or SYSTEM identifier).
The reason for not commiting directly is the following:
There are two possible definitions for the <State> element:
ELEMENT State ((enable | disable)+)
- -or-
ELEMENT State ( enable | disable | enable disable )
- -or (equivalent to the second)-
ELEMENT State ( enable | enable? disable )
While the first one is "sloppy", the secons is strict in the sense that
only exactly one of each of <enable>,<disable> can be present in any
given <State> and the sequence is prescribed, too (<enable> before
<disable>).
Which one to use?
Marc
- --
Marc Mutz <mutz@kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8av483oWD+L2/6DgRAh5nAJ9CT4ll/dGAj6k2mStjxI44Ty8cLACgkjuz
cJfXN8m6mv33N6pT4u5Odbs=
=KgnF
-----END PGP SIGNATURE-----
["kpartgui-state.diff" (text/x-diff)]
--- kpartgui.dtd.orig Thu Feb 14 00:47:59 2002
+++ kpartgui.dtd Thu Feb 14 00:47:19 2002
@@ -11,7 +11,7 @@
-->
<!--The root element that must enclose all other tags in the document. -->
-<!ELEMENT kpartgui ((ActionProperties | MenuBar | ToolBar | Merge | MergeLocal | \
DefineGroup | MainWindow | StatusBar | Menu)*)> +<!ELEMENT kpartgui \
((ActionProperties | MenuBar | ToolBar | Merge | MergeLocal | DefineGroup | \
MainWindow | StatusBar | Menu | State)*)> <!ATTLIST kpartgui
name CDATA #REQUIRED
version CDATA #REQUIRED
@@ -134,3 +134,17 @@
<!ATTLIST DefineGroup
name CDATA #REQUIRED
>
+
+<!-- Defines a GUI state, esp. which actions to enable and which ones to -->
+<!-- disable on entering this state (see KXMLGUIClient::stateChanged()) -->
+<!-- sloppy version: -->
+<!ELEMENT State (( enable | disable )+)>
+<!-- strict version: ELEMENT State ( enable | disable | enable disable ) -->
+<!ATTLIST State
+ name CDATA #REQUIRED
+>
+
+<!-- used in State to collect actions to be enabled and disabled, resp., -->
+<!-- on entering the state -->
+<!ELEMENT enable (Action+)>
+<!ELEMENT disable (Action+)>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic