]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/README
A lean, clean and working start to the new, improved gnome frontend.
[lyx.git] / src / frontends / gnome / README
index d427144ca971f73e52e68e089a733ce163b21613..322cb2e8c99acbccc456f0fa6989a4042cc1c942 100644 (file)
@@ -11,7 +11,7 @@ Adding Dialogs
 
 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]
+for an example of contructing a simple dialog see GUrl.[Ch]
 
 FormUrl::FormUrl(ControlUrl & c)
        : FormCB<ControlUrl>(c, "FormUrl")
@@ -28,9 +28,8 @@ automatically generated by accessors.py
 For accessors.py to work glade files now must adhere to the following
 conventions: 
 
- * The filename should be the same as the .C and .h Files (i.e
-   FormTabularCreate.glade) 
- * The root widget should be named similarly (i.e FormTabularCreate)
+ * The root widget and the file should be named after the form (i.e
+   FormTabularCreate & FormTabularCreate.glade)  
  * Functional widgets, those actually used rather than the filler
    widgets like Gtk::HBox etc,  should have an r_ as the first two
    characters of their name. (see below)
@@ -38,7 +37,7 @@ conventions:
 To make the build system include your new dialog edit Makefile.am as
 follows:
  1) make clean in src/frontends/gnome/
- 2) Add FormX.C and FormX.h to libgnome_la_SOURCES
+ 2) Add GX.C and GX.h to libgnome_la_SOURCES
  3) Remove FormX.lo and form_x.lo (if applicable) from xforms_objects
  4) make clean && make in src/frontends/
  5) make in src/
@@ -51,6 +50,10 @@ Usage:
 
 python accessors.py glade_ui_file DialogClass
 
+e.g
+
+python accessors.py FormTabularCreate.glade GTabularCreate
+
 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