]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tools/XRCed/README
Updates for new wxToolBar API
[wxWidgets.git] / wxPython / tools / XRCed / README
CommitLineData
09f3d4e6
RD
1********************************************************************************
2
3 XRCed README
4
5********************************************************************************
6
7Installation on UNIX
8--------------------
9
f0c20d94
RD
10XRCed requires wxGTK and wxPython greater than 2.3.2, and Python 2.2 (it may
11work with earlier version, but was not tested).
09f3d4e6 12
f0c20d94 13Of course wxGTK's XRC library (libwxxrc) must be installed.
09f3d4e6 14
f0c20d94
RD
15Installation on Windows
16-----------------------
09f3d4e6 17
f0c20d94 18Works with wxPython 2.3.2 for Python 2.2.
09f3d4e6
RD
19
20Short manual
21------------
22
f0c20d94
RD
23XRCed's idea is very straightforward: it is a visual tool for editing an XML
24file conforming to XRC format. Every operation performed in XRCed has direct
25correspondence to XML structure. So it is not really a usual point-and-click
26GUI builder, but don't let that scare you.
27
09f3d4e6 28To start xrced, change to the directory where you installed it and run
f0c20d94
RD
29"python2.2 xrced.py".
30
31On UNIX you can edit wrapper script "xrced.sh" to point to your installation
32directory.
09f3d4e6
RD
33
34To create an object, first you should select some object in the tree (or the
f0c20d94
RD
35root item if it's empty) then press the right mouse button and select an
36appropriate command. The pulldown menu is context-dependent on the selected
37object.
09f3d4e6
RD
38
39XRCed tries to guess if new object should be added as a next sibling or a
40child of current object, depending on the possibility of the object to have
41child objects and expanded state (if tree item is collapsed, new object will
42be sibling). You can change this behavior to create siblings by pressing and
f0c20d94
RD
43holding the Shift and Control keys before clicking the mouse.
44
45Pressed Control key while pressing right button makes next item a sibling of
46selected item regardless of its expanded state.
09f3d4e6 47
f0c20d94
RD
48Pressed Shift key changes the place for inserting new child to be before
49selected child, not after as by default.
09f3d4e6
RD
50
51Panel on the right contains object properties. Properties which are optional
f0c20d94
RD
52should be "checked" first. This panel can be made separate by unchecking
53"Embed Panel" in View menu.
09f3d4e6
RD
54
55All properties can be edited as text, and some are supplied with special
56editing controls.
57
f0c20d94
RD
58The names of the properties are exactly as in XRC file, and it's usually not
59hard to guess what they do. XML ID is the name of the window, and must be
60present for top-level windows (though this is not enforced by XRCed).
61
09f3d4e6 62To display the preview window double-click a top-level object (you should
f0c20d94
RD
63assign an XMLID to it first), press "Test" toolbar button or select command
64from View menu, or press F5. After that, if you select a child object, it
09f3d4e6
RD
65becomes highlighted, and if you change it, preview is updated when you select
66another item or press Ctrl-R (refresh). To turn off automatic update, toggle
f0c20d94
RD
67"View->Auto-refresh" or toolbar auto-refresh button (to the right of the
68refresh button).
09f3d4e6
RD
69
70--------------------------------------------------------------------------------
71
72Copyright 2001 Roman Rolinsky <rolinsky@mema.ucl.ac.be>