lyx_mirror/src/frontends/gnome
Lars Gullik Bjønnes 69013332e2 unification of all Makefiles.am
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3748 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-13 18:24:44 +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 doxygen fixes 2002-03-11 22:47:41 +00:00
Dialogs.C Move Dialogs::redrawGUI to frontends/Dialogs.C from all those guis. 2002-03-04 10:51:40 +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 doxygen fixes 2002-03-11 22:47:41 +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 doxygen fixes 2002-03-11 22:47:41 +00:00
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 Add an image loader using the xforms library routines and compile it if 2002-03-06 12:07:23 +00:00
Makefile.am unification of all Makefiles.am 2002-03-13 18:24:44 +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 doxygen fixes 2002-03-11 22:47:41 +00:00
Timeout_pimpl.h doxygen fixes 2002-03-11 22:47:41 +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.