lyx_mirror/src/frontends/xforms/forms
Angus Leeming 1a0655a514 * A controller-view split of the math panel and its daughter dialogs.
* Get rid of FormBaseDeprecated.
* Merge FormBase and FeedbackController.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5715 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-25 18:58:15 +00:00
..
.cvsignore fix aiksaurus compile 2002-06-18 18:39:36 +00:00
fdfix.sh Don't use "if [ $? -ne 0 ]"; personally, I blame JMarc ;-) 2002-11-21 17:09:22 +00:00
fdfixc.sed Small clean-up of the sed scripts. 2002-11-08 11:24:45 +00:00
fdfixh.sed I reckon that the generated .h files and the scripts that modify them 2002-11-21 10:58:28 +00:00
form_aboutlyx.fd Rob's about LyX dialog, tweaked a little. 2002-10-22 15:00:45 +00:00
form_bibitem.fd Rob's dialog clean-up and Martin's 'disfucation' of insetgraphics. 2002-09-09 09:49:47 +00:00
form_bibtex.fd (Rob Lahaye): reworking of the BibTeX and citation dialogs. 2002-10-23 10:08:55 +00:00
form_browser.fd (Rob Lahaye): minor xforms nits 'n' bobs. 2002-10-24 12:56:44 +00:00
form_character.fd esc to cancel 2002-09-16 23:01:53 +00:00
form_citation.fd (Rob Lahaye): reworking of the BibTeX and citation dialogs. 2002-10-23 10:08:55 +00:00
form_document.fd Use a control-view split for the xforms document dialog. 2002-11-22 10:47:56 +00:00
form_error.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_ert.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_external.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_filedialog.fd Yet more dialog tweaking from Rob. 2002-09-12 09:07:58 +00:00
form_float.fd (Rob Lahaye): small clean-up of the clean-ups already applied. 2002-10-24 09:48:56 +00:00
form_forks.fd The graphics inset now has: 2002-02-27 09:59:52 +00:00
form_graphics.fd (Rob Lahaye): changes to the xforms graphics dialog. 2002-10-24 11:53:46 +00:00
form_include.fd remove noload/don't typeset 2002-09-09 17:32:53 +00:00
form_index.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_maths_deco.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_maths_delim.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_maths_matrix.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_maths_panel.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_maths_space.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_maths_style.fd * A controller-view split of the math panel and its daughter dialogs. 2002-11-25 18:58:15 +00:00
form_minipage.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_paragraph.fd (Rob Lahaye): changes to the xforms paragraph dialog. 2002-10-30 13:57:01 +00:00
form_preamble.fd fix preamble dialog 2002-10-26 02:19:03 +00:00
form_preferences.fd iport tabular and prefs to MVC 2002-11-15 02:44:20 +00:00
form_print.fd (Rob Lahaye): updates to the xforms print, spellchecker, texinfo and wrap 2002-10-25 09:16:22 +00:00
form_ref.fd (Rob Lahaye): minor xforms nits 'n' bobs. 2002-10-24 12:56:44 +00:00
form_search.fd (Rob Lahaye): minor xforms nits 'n' bobs. 2002-10-24 12:56:44 +00:00
form_sendto.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_spellchecker.fd (Rob Lahaye): updates to the xforms print, spellchecker, texinfo and wrap 2002-10-25 09:16:22 +00:00
form_tabular_create.fd Ensure all widgets follow the naming scheme. 2002-03-12 14:11:15 +00:00
form_tabular.fd Support for block alignment in fixed width columns. 2002-11-21 12:24:50 +00:00
form_texinfo.fd (Rob Lahaye): updates to the xforms print, spellchecker, texinfo and wrap 2002-10-25 09:16:22 +00:00
form_thesaurus.fd escape can close thesaurus 2002-08-08 01:19:47 +00:00
form_toc.fd Rob's dialog clean-up and Martin's 'disfucation' of insetgraphics. 2002-09-09 09:49:47 +00:00
form_url.fd Rob's latest and greatest dialog tweaking. 2002-09-12 08:44:23 +00:00
form_wrap.fd (Rob Lahaye): updates to the xforms print, spellchecker, texinfo and wrap 2002-10-25 09:16:22 +00:00
Makefile.am Add insetwrap. 2002-09-10 10:18:58 +00:00
README Pedantry 2002-06-14 10:58:05 +00:00

All .fd files go in this directory.
Each .fd file should have just one form in them

NOTE: An exception to the above is any tabbed form which 
      xforms requires multiple forms to create.  In that case
      the group of forms constitutes one gui form.

* All forms should be named form_xxx and saved into a file of the same name.
For example, the copyright notice is called form_copyright and is stored in
form_copyright.fd.
Tabbed folders should be named form_xxx_yyy.
For example, the file folder in the graphics dialog has the identifier
form_graphics_file.

If you match this pattern, the fdfix.sh script will be able to manipulate
the generated .c and .h files to produce the .C and .h files used by LyX. A form
called form_xxx will result in a struct FD_xxx.

* Name all buttons and other form components that are likely to cause a
callback. The names should be of the form:  button_ok, radio_group_item and
so on.

Being more explicit:
	class             | prefix
	------------------+-------
	FL_BROWSER        | browser
	FL_BUTTON         | button
	FL_PIXMAPBUTTON   | button
	FL_CHECKBUTTON    | check
	FL_CHOICE         | choice
	FL_COUNTER        | counter
	FL_DIAL           | dial
	FL_INPUT          | input
	FL_FRAME          | frame
	FL_LABELFRAME     | frame
	FL_ROUND3DBUTTON,
	RADIO_BUTTON      | radio
	FL_SLIDER         | slider
	FL_VALSLIDER      | slider
	FL_TABFOLDER      | tabfolder
	FL_TEXT           | text

The only exceptions to this are objects that are to be converted in the sed
scripts. At the moment this applies only to bmtable:

	Convert an FL_BUTTON to a FL_BMTABLE by using prefix "bmtable".

Enter the full name of the callback eg.:
        C_FormBaseOkCB

If you follow these simple rules then you will generate code for functions
build_xxx that will need no further editing to make them work. For example,
form_graphics.h contains the struct declarations and build methods, so:

extern FD_graphics * build_graphics(void *);
extern FD_graphics_file * build_graphics_file(void *);
extern FD_graphics_size * build_graphics_size(void *);
extern FD_graphics_bbox * build_graphics_bbox(void *);
extern FD_graphics_special * build_graphics_special(void *);
extern FD_graphics_lyxview * build_graphics_lyxview(void *);

where the function is to be passed a pointer to the parent dialog
(usually "this") so that this pointer can be cast off to FormBase * in the
assigned callback function and the appropriate class method called.