2001-08-31 17:38:03 -04:00
|
|
|
********************************************************************************
|
|
|
|
|
|
|
|
XRCed README
|
|
|
|
|
|
|
|
********************************************************************************
|
|
|
|
|
2003-10-01 20:58:06 -04:00
|
|
|
System requirements
|
|
|
|
-------------------
|
2001-08-31 17:38:03 -04:00
|
|
|
|
2005-11-10 19:23:31 -05:00
|
|
|
wxPython version must be recent enough to support all features (a warning
|
|
|
|
message is shown if not).
|
2001-08-31 17:38:03 -04:00
|
|
|
|
2005-11-10 19:23:31 -05:00
|
|
|
|
|
|
|
User requirements
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
To use XRCed it is really important to be familiar with wxWindows class names
|
|
|
|
and at least partially with XRC resource format (read
|
|
|
|
wxWindows/doc/tech/tn0014.txt for reference).
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
Short manual
|
|
|
|
------------
|
|
|
|
|
2002-03-06 16:41:19 -05:00
|
|
|
XRCed's idea is very straightforward: it is a visual tool for editing an XML
|
|
|
|
file conforming to XRC format. Every operation performed in XRCed has direct
|
|
|
|
correspondence to XML structure. So it is not really a usual point-and-click
|
|
|
|
GUI builder, but don't let that scare you.
|
|
|
|
|
2001-08-31 17:38:03 -04:00
|
|
|
To start xrced, change to the directory where you installed it and run
|
2002-03-06 16:41:19 -05:00
|
|
|
"python2.2 xrced.py".
|
|
|
|
|
|
|
|
On UNIX you can edit wrapper script "xrced.sh" to point to your installation
|
|
|
|
directory.
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
To create an object, first you should select some object in the tree (or the
|
2002-03-06 16:41:19 -05:00
|
|
|
root item if it's empty) then press the right mouse button and select an
|
|
|
|
appropriate command. The pulldown menu is context-dependent on the selected
|
|
|
|
object.
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
XRCed tries to guess if new object should be added as a next sibling or a
|
|
|
|
child of current object, depending on the possibility of the object to have
|
|
|
|
child objects and expanded state (if tree item is collapsed, new object will
|
|
|
|
be sibling). You can change this behavior to create siblings by pressing and
|
2002-03-06 16:41:19 -05:00
|
|
|
holding the Shift and Control keys before clicking the mouse.
|
|
|
|
|
|
|
|
Pressed Control key while pressing right button makes next item a sibling of
|
|
|
|
selected item regardless of its expanded state.
|
2001-08-31 17:38:03 -04:00
|
|
|
|
2002-03-06 16:41:19 -05:00
|
|
|
Pressed Shift key changes the place for inserting new child to be before
|
|
|
|
selected child, not after as by default.
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
Panel on the right contains object properties. Properties which are optional
|
2002-03-06 16:41:19 -05:00
|
|
|
should be "checked" first. This panel can be made separate by unchecking
|
|
|
|
"Embed Panel" in View menu.
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
All properties can be edited as text, and some are supplied with special
|
|
|
|
editing controls.
|
|
|
|
|
2005-11-10 19:23:31 -05:00
|
|
|
When no 'Edit' button is provided for editing a property's value, it is
|
|
|
|
supposed to be copied verbatim to XRC file.
|
|
|
|
|
2002-03-06 16:41:19 -05:00
|
|
|
The names of the properties are exactly as in XRC file, and it's usually not
|
2005-11-10 19:23:31 -05:00
|
|
|
hard to guess what they do. "XML ID" is the name of the window, and must be
|
2002-03-06 16:41:19 -05:00
|
|
|
present for top-level windows (though this is not enforced by XRCed).
|
|
|
|
|
2001-08-31 17:38:03 -04:00
|
|
|
To display the preview window double-click a top-level object (you should
|
2002-03-06 16:41:19 -05:00
|
|
|
assign an XMLID to it first), press "Test" toolbar button or select command
|
|
|
|
from View menu, or press F5. After that, if you select a child object, it
|
2001-08-31 17:38:03 -04:00
|
|
|
becomes highlighted, and if you change it, preview is updated when you select
|
|
|
|
another item or press Ctrl-R (refresh). To turn off automatic update, toggle
|
2002-03-06 16:41:19 -05:00
|
|
|
"View->Auto-refresh" or toolbar auto-refresh button (to the right of the
|
2005-11-10 19:23:31 -05:00
|
|
|
refresh button). If you double-click a non-window object (a button for
|
|
|
|
example), then test view is created for a closest ancestor which is a window.
|
|
|
|
|
|
|
|
|
|
|
|
Bugs
|
|
|
|
----
|
|
|
|
|
|
|
|
- Some combinations of parent/child windows are not valid but possible to put
|
|
|
|
into XML tree by using XRCed. Usually this produces a meaningful error
|
|
|
|
message from XRC library when test view is opened.
|
|
|
|
|
|
|
|
- Be careful when replacing a non-empty container control with another class,
|
|
|
|
and check parameters which can be copied from the previous object but not
|
|
|
|
valid for the new one. Is it not possible to undo replacement yet.
|
|
|
|
|
2001-08-31 17:38:03 -04:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2005-11-10 19:23:31 -05:00
|
|
|
Copyright 2001-2005 Roman Rolinsky <rollrom@xrced.sourceforge.net>
|