lyx_mirror/src/frontends/gnome
Angus Leeming c238196fb2 Michael Koziarski's gnome patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3516 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-11 10:22:27 +00:00
..
dialogs Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
.cvsignore
accessors.py Michael's latest batch of new gnome files. 2002-01-16 12:31:39 +00:00
ChangeLog Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
Dialogs.C Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
FileDialog.C
FormCitation.C Add string << operators for the other streams as well, and removes 2001-12-05 08:04:20 +00:00
FormCitation.h
FormCopyright.C
FormCopyright.h
FormCredits.C
FormCredits.h
FormError.C Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
FormError.h Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
FormERT.C Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
FormERT.h Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
FormIndex.C
FormIndex.h
FormPrint.C new alert code 2001-11-26 10:19:58 +00:00
FormPrint.h
FormRef.C
FormRef.h
FormTabularCreate.C Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
FormTabularCreate.h Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
FormToc.C
FormToc.h
FormUrl.C Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
FormUrl.h Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
gnome_helpers.C
gnome_helpers.h
GnomeBase.C Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
GnomeBase.h Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
gnomeBC.C Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
gnomeBC.h
GUIRunTime.C first steps of gnome frontend rebirth 2002-01-11 16:05:08 +00:00
Makefile.am Michael Koziarski's gnome patch. 2002-02-11 10:22:27 +00:00
pixbutton.h
README Forgot this when I commited Michael's gnome stuff. 2002-01-16 16:02:05 +00:00
support.c
support.h
Timeout_pimpl.C
Timeout_pimpl.h removed most uses of toupper and friends, removed <config.h> from headers and added it to some source files, applied patch from John for search&replace, and perhaps other things you will discover by browsing Changelog :) 2001-12-20 15:11:51 +00:00

GNOME FRONT END
===============

Firstly, this stuff is pre-alpha.  I don't use it so you shouldn't
either.  At all, no exceptions :). 

The GNOME frontend of LyX uses libglade to draw the dialogs.  The base
(GnomeBase.C) class handles the drawing and activating of the Dialogs,
for an example of contructing a simple dialog see FormUrl.[Ch]

FormUrl::FormUrl(ControlUrl & c)
	: FormCB<ControlUrl>(c, "FormUrl")
{}



To manipulate a widget you extract a pointer using getWidget(string).

If you look at FormUrl you'll see that there are a number of
helper functions at the bottom of the .C file.  These are
automatically generated by accessors.py

Glade files now must follow the following conventions:

 * The filename should be the same as the .C and .h Files (i.e
   FormTabularCreate.glade) 
 * The root widget should have the same name
 * Functional widgets should have an r_ as the first two characters of
   their name. (see below)

USING ACCESSORS.PY
==================

Usage:

python accessors.py glade_ui_file DialogClass

Accessors.py will write the helper functions to DialogClass.C_gen and
the function declarations to DialogClass.g_gen.  To ensure the widgets
you're interested in are made available using this method, prefix the
widgets name with r_ when you build the dialog in Glade.