|
NAMExmred - garden editor for xmrisSYNOPSISxmred [-option ...] [-toolkitoption ...]DESCRIPTIONMr Ed is a tool for creating and editing alternate gardens for Mr Is. Hopefully its user interface is intuitive enough that most of this manual page need not be read by a casual user.In the default configuration, the main window presents a garden image on the left, a control panel on the right and a list of gardens underneath. Gardens can be loaded and saved using the menu, these then appear in the list below. The insert option loads a file into the copy buffer. It can then be dragged to the desired place in the garden list. To edit a garden (or comment, or include), either select it with a button press and release, or with a drag and drop into the edit box at the lower right. The drag and drop will remove it from the garden list, selection will copy it, and the source garden will be updated too. To delete gardens, drag them to the copy buffer. The main garden display will be updated, if it was a garden being moved to the edit box. The box on the lower right is a copy buffer. You can drag and drop into and out of this to the garden list or one of the edit boxes. Similarly you can drag and drop from the edit boxes to the garden list, and within the garden list itself. Note that drag and drop always removes the source, if it is within the garden list, whereas selection does not delete the source. The control panel shows a set of options, which can be bound to buttons. This can be done either by press and release with the required button, or drag and drop onto the required button's icon. You can bind an option to more than one button. However, press and release on the apples option will simply change the currently selected explicit apple, not necessarily bind that option to a new button. The fill pattern and color can be select by pressing on them. The current garden will be updated. The list of buttons shows which options are bound to which buttons. You can also change button bindings by pressing the destination button with the pointer over the button with the required option's icon, or by drag and drop from button to button. The six options are,
The list of totals show the counts for the explicit apples, cherries, random apples required, apple spaces, unstable apple positions, dens and player positions. A warning is shown on the left of any which are inconsistant, or out of range. The number of apples for a garden can be set by moving the scroll bar at the left of the apple icon. Note that when you change the number of apples, or add or remove explicit apples, a warning will change on on some or all of the explicit apple counts. This is just to remind you that you must do some more work on the garden, before it is consistant. There are two types of random apple spaces, stable and unstable. The unstable space count is shown with an arrow in it, the other apple space count shows the total number of apple spaces. The hazzard warning on the unstable count, just shows that you have some unstable apple positions (this may be intentional on your part). The hazzard on the total apple space count indicates that there are less spaces than the number of apples you specified for the garden. Below this is a comment box for the garden. Selecting this will pop up a dialog which you can enter information about the garden. At the lower right of the control panel is a display mode selector. There are three display modes. The first shows all the explicit apple positions, 4 to a cell when required. The second shows only one set of explicit apples, the set selected using the apples option quadrant. The final mode shows none of the explicit apples, just the random apple spaces. The garden display is on the left of this. It shows the currently edited garden. Clicking or dragging a mouse button on this area will perform the option currently bound to that button. You will notice the totals change when you do this. Mr Ed will use colour sprites, if the visual permits it (has a colour map size of more than 15, and you haven't forced monochrome). All the colours bar black and white are user definable. There are four sets, one for each of the four combinations of gender and swap flag. The colours are allocated in reverse order of their distance in colour space, from currently allocated colours (the most distant colours are allocated first). That way, if allocation fails because the colour map is full, an allocated substitute colour, which is nearest the desired colour, can be used and the allocated colours are kept maximally distant. You can limit the number of distinct colours with the -distinct option. A warning message is sent to stderr, if a colour allocation fails. The -colours argument shows how these are allocated, and -help -colours can be used to get the colour resource names. OPTIONSMr Ed accepts the standard X Toolkit options, as well as these.
RESOURCESMr Ed uses the X toolkit application resource mechanism for setting up the environment. Application resource items start with 'Xmris', so that Mr Ed will pick up your defaults for Mr Is. The resource name can be derived from the given resource class by decapitalizing it. For example 'cherryStalk' is the resource name for the class 'cherryStalk'. The following classes are used (choices in '{}' and defaults in '[]'.)
In addition, you have the normal resources such as '*Font'. COLOUR RESOURCESThere are many colour name defaults. For a full description see the xmris(6) manual page, but note that not all the colors are used for Mr Ed. Provided that you specified the colour resources for Mr Is loosely enough, Mr Ed will pick up the same overrides. The foreground color for the Icon widgets is copied from the apple faint color on color visuals (this is important for the noswap color scheme).WIDGET RESOURCESThere are a few resources which are picked up from widgets within the widget tree. They are the initial button bindings, colors, fills and mode. The bindings are attached to the individual button displays. The options are 'apple', 'random', 'cherry', 'path', 'player' and 'den'. The colors, fills and mode are attached to the color, fill and mode form widgets. The value must be an integer in the correct range.There is an additional composite resource for children of composite widgets (Paned and SimpleMenu), called 'attach'. This allows you to change the ordering of sibling widgets. Mr Ed uses this resource to determine the correct order to create the sibling widgets. For instance, to get the control panel on the left of the garden widget, use the constraint '*one.garden.attach:panel'. In addition, the widgets are created in such an order that Form constraints 'fromHoriz' and 'fromVert' can be specified in any order. There are four new widgets used for Mr Ed, 'Icon', 'Drag', 'Garden' and 'PixmapList'. The Icon widget is a subclass of Simple. It displays a pixmap and
allows its selection with any button press. If a button is dragged on it, it
may invoke a drag widget to perform a drag operation. It has the following
new resources of interest.
The Drag widget is a subclass of OverrideShell. It displays a pixmap, and follows the pointer until a button is released. Its use is for drag and drop. It has no additional resources of user interest. The Garden widget is a subclass of Simple. It performs the garden editing. It has no additional resources of user interest. The PixmapList widget is a subclass of Simple. It displays a list
of pixmaps, and permits them to be scrolled. Each pixmap may be selected by
a button press on it, or a drag widget invoked by dragging on a pixmap. In
addition to the Icon widget additional resources, it has the following
additional resources of user interest.
ENVIRONMENTA few environment variables are used to locate resources.
FILES
SEE ALSOxmris(6)ERRORSIf a loaded garden is incorrect, an error dialog is displayed, enabling you to locate the offending garden and lines.BUGSThe visual class name conversion is performed by a standard toolkit routine. It accepts only American spelling, the English spelling of 'grey' and 'colour' are not allowed.The Drag widget should perhaps just be a shell, having a single child of Icon, to do the rendering. The PixmapList widget should perhaps be a composite widget with Icon children. However when I tried this using a Box widget, it didn't work with the insert function. COPYRIGHTCopyright (C) 1993 Nathan Sidwell.AUTHORNathan Sidwell <nathan@pact.srf.ac.uk> <http://www.pact.srf.ac.uk/~nathan/>Additional sprites by Stefan Gustavson <stefang@isy.liu.se>
Visit the GSP FreeBSD Man Page Interface. |