1 All .fd files go in this directory.
2 Each .fd file should have just one form in them
4 NOTE: An exception to the above is any tabbed form which
5 xforms requires multiple forms to create. In that case
6 the group of forms constitutes one gui form.
8 * All forms should be named form_xxx and saved into a file of the same name.
9 For example, the copyright notice is called form_copyright and is stored in
11 Tabbed folders should be named form_xxx_yyy.
12 For example, the file folder in the graphics dialog has the identifier
15 If you match this pattern, the fdfix.sh script will be able to manipulate
16 the generated .c and .h files to produce the .C and .h files used by LyX. A form
17 called form_xxx will result in a struct FD_xxx.
19 * Name all buttons and other form components that are likely to cause a
20 callback. The names should be of the form: button_ok, radio_group_item and
25 ------------------+-------
28 FL_PIXMAPBUTTON | button
29 FL_CHECKBUTTON | check
40 FL_TABFOLDER | tabfolder
43 The only exceptions to this are objects that are to be converted in the sed
44 scripts. At the moment this applies only to bmtable:
46 Convert an FL_BUTTON to a FL_BMTABLE by using prefix "bmtable".
48 Enter the full name of the callback eg.:
51 If you follow these simple rules then you will generate code for functions
52 build_xxx that will need no further editing to make them work. For example,
53 form_graphics.h contains the struct declarations and build methods, so:
55 extern FD_graphics * build_graphics(void *);
56 extern FD_graphics_file * build_graphics_file(void *);
57 extern FD_graphics_size * build_graphics_size(void *);
58 extern FD_graphics_bbox * build_graphics_bbox(void *);
59 extern FD_graphics_special * build_graphics_special(void *);
60 extern FD_graphics_lyxview * build_graphics_lyxview(void *);
62 where the function is to be passed a pointer to the parent dialog
63 (usually "this") so that this pointer can be cast off to FormBase * in the
64 assigned callback function and the appropriate class method called.