lyx_mirror/src/frontends/gnome
Angus Leeming 3cf8597069 Forgot this when I commited Michael's gnome stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3393 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-16 16:02:05 +00:00
..
dialogs Michael's latest batch of new gnome files. 2002-01-16 12:31:39 +00:00
.cvsignore
accessors.py Michael's latest batch of new gnome files. 2002-01-16 12:31:39 +00:00
ChangeLog Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
Dialogs.C Michael Koziarski's fix gnome compilation patch 2002-01-03 03:44:19 +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
FormCopyright.C In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormCopyright.h
FormCredits.C Edwin's "about" patch + consistent use of Lsstream.h 2001-07-13 14:03:48 +00:00
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
FormIndex.C In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormIndex.h
FormPrint.C new alert code 2001-11-26 10:19:58 +00:00
FormPrint.h
FormRef.C In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
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 In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FormToc.h In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20: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
GnomeBase.C Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
GnomeBase.h Michael's latest gnome changes. 2002-01-16 12:30:17 +00:00
gnomeBC.C
gnomeBC.h Clean-up of the button controller. 2001-06-16 14:48:12 +00:00
GUIRunTime.C first steps of gnome frontend rebirth 2002-01-11 16:05:08 +00:00
Makefile.am first steps of gnome frontend rebirth 2002-01-11 16:05:08 +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.