mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 10:40:48 +00:00
69013332e2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3748 a592a061-630c-0410-9148-cb99ea01b6c8 |
||
---|---|---|
.. | ||
dialogs | ||
.cvsignore | ||
accessors.py | ||
ChangeLog | ||
Dialogs.C | ||
FileDialog.C | ||
FormCitation.C | ||
FormCitation.h | ||
FormCopyright.C | ||
FormCopyright.h | ||
FormCredits.C | ||
FormCredits.h | ||
FormError.C | ||
FormError.h | ||
FormERT.C | ||
FormERT.h | ||
FormIndex.C | ||
FormIndex.h | ||
FormPrint.C | ||
FormPrint.h | ||
FormRef.C | ||
FormRef.h | ||
FormTabularCreate.C | ||
FormTabularCreate.h | ||
FormToc.C | ||
FormToc.h | ||
FormUrl.C | ||
FormUrl.h | ||
gnome_helpers.C | ||
gnome_helpers.h | ||
GnomeBase.C | ||
GnomeBase.h | ||
gnomeBC.C | ||
gnomeBC.h | ||
GUIRunTime.C | ||
Makefile.am | ||
pixbutton.h | ||
README | ||
support.c | ||
support.h | ||
Timeout_pimpl.C | ||
Timeout_pimpl.h |
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.