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 Added lyx-func tabular-feature for menu structure. 2000-07-28 14:28:54 +00:00
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 Fixes to get Gnome FE to compile again. 2001-07-16 12:11:27 +00:00
FormCitation.C Add string << operators for the other streams as well, and removes 2001-12-05 08:04:20 +00:00
FormCitation.h Fixed compilation problems. 2001-03-28 11:14:05 +00:00
FormCopyright.C In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormCopyright.h Changed FormCopyright to MVC. 2001-04-02 10:24:07 +00:00
FormCredits.C Edwin's "about" patch + consistent use of Lsstream.h 2001-07-13 14:03:48 +00:00
FormCredits.h Fixes to get it to compile after the latest ButtonController changes. 2001-03-30 18:49:10 +00:00
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 In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormIndex.h Fixed compilation problems. 2001-03-28 11:14:05 +00:00
FormPrint.C new alert code 2001-11-26 10:19:58 +00:00
FormPrint.h remove CXX_WORKING_NAMESPACES 2001-03-15 18:21:56 +00:00
FormRef.C In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormRef.h remove CXX_WORKING_NAMESPACES 2001-03-15 18:21:56 +00:00
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 In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
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 In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
gnome_helpers.h Changed FormCopyright to MVC. 2001-04-02 10:24:07 +00:00
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 Clean-up of the button controller. 2001-06-16 14:48:12 +00:00
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 Patches from Angus and Marko 2000-10-30 11:33:05 +00:00
README Forgot this when I commited Michael's gnome stuff. 2002-01-16 16:02:05 +00:00
support.c Marko's GNOME patch and Baruch's insetgraphic patch + some fixes to make all 2000-08-14 09:44:53 +00:00
support.h Marko's GNOME patch and Baruch's insetgraphic patch + some fixes to make all 2000-08-14 09:44:53 +00:00
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.