]> git.lyx.org Git - lyx.git/commitdiff
gnome patch from Michael.
authorAngus Leeming <leeming@lyx.org>
Sat, 16 Mar 2002 12:55:22 +0000 (12:55 +0000)
committerAngus Leeming <leeming@lyx.org>
Sat, 16 Mar 2002 12:55:22 +0000 (12:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3760 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gnome/ChangeLog
src/frontends/gnome/Dialogs.C
src/frontends/gnome/Makefile.am
src/frontends/gnome/README

index 10fd6b6d2e7930a72c52237d46ab2cdceb169dc7..b47b48130f0ed662e4c4990897897896deac9beb 100644 (file)
@@ -1,9 +1,14 @@
+2002-03-16  Michael A. Koziarski  <michael@koziarski.com>
+
+       * Makefile.am: Cleanup and linking fix.  
+       * README: Added procedure for adding a new dialog.
+       * Dialogs.C (tooltipsEnable): new method.
+
 2002-03-14  Michael A. Koziarski  <michael@koziarski.org>
 
        * Timeout_pimpl.C
        * Timeout_pimpl.h: implemented running to fix compilation, linking 
        fix still to come 
-       
 
 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
index d4792e2f9bfd731c914ccae8353ad637663b6571..40a4e5e2cccab4a6f2059fcd17c83b5ed963b558 100644 (file)
@@ -19,7 +19,7 @@
 #include "Dialogs.h"
 #include "BufferView.h"
 #include "gnomeBC.h"
-
+#include "Tooltips.h"
 #include "ControlBibitem.h"
 #include "ControlBibtex.h"
 #include "ControlCharacter.h"
 #include "FormUrl.h"
 #include "FormMinipage.h"
 */
-
+bool Dialogs::tooltipsEnabled()
+{
+       return Tooltips::enabled();
+}
 Dialogs::Dialogs(LyXView * lv)
 {
        add(new GUIUrl<FormUrl, gnomeBC>(*lv, *this));
index a6e3d04948bc6341f93b0ece4bd8206f6e985d7b..8cf377138081440628b186c0b8615fad97f26659 100644 (file)
@@ -13,63 +13,44 @@ else
 XFORMSGIMAGE = ../xforms/xformsGImage.lo
 endif
 
+# alphabetised
 xforms_objects = \
-       ../xforms/xforms_helpers.lo \
-       ../xforms/Toolbar_pimpl.lo \
+       ../xforms/Alert_pimpl.lo \
+       ../xforms/bmtable.lo \
        ../xforms/combox.lo \
-       ../xforms/MathsSymbols.lo \
+       ../xforms/Color.lo \
+       ../xforms/DropDown.lo \
+       ../xforms/FeedbackController.lo \
+       ../xforms/FormBaseDeprecated.lo \
        ../xforms/FormMathsBitmap.lo \
        ../xforms/FormMathsDeco.lo \
+       ../xforms/form_maths_deco.lo \
        ../xforms/FormMathsDelim.lo \
+       ../xforms/form_maths_delim.lo \
        ../xforms/FormMathsMatrix.lo \
+       ../xforms/form_maths_matrix.lo \
        ../xforms/FormMathsPanel.lo \
+       ../xforms/form_maths_panel.lo \
        ../xforms/FormMathsSpace.lo \
-       ../xforms/DropDown.lo \
-       ../xforms/Alert_pimpl.lo \
-       $(XFORMSGIMAGE) ../xforms/Menubar_pimpl.lo
+       ../xforms/form_maths_space.lo \
+       ../xforms/FormMathsStyle.lo \
+       ../xforms/form_maths_style.lo \
+       ../xforms/MathsSymbols.lo \
+       ../xforms/Menubar_pimpl.lo \
+       ../xforms/Toolbar_pimpl.lo \
+       ../xforms/Tooltips.lo \
+       ../xforms/xforms_helpers.lo \
+       ../xforms/xformsBC.lo \
+       $(XFORMSGIMAGE) 
 
 libgnome.la: xforms.lo $(libgnome_la_OBJECTS) $(libgnome_la_DEPENDENCIES)
 
 xforms.lo: $(xforms_objects)
        $(CXXLINK) $(xforms_objects)
 
-#      ../xforms/FileDialog.lo \
-#      ../xforms/FormFiledialog.lo \
-#      ../xforms/form_filedialog.lo 
-#      ../xforms/Timeout_pimpl.lo \
-#      ../xforms/Color.lo \
-#      ../xforms/FormFiledialog.lo \
-#      ../xforms/form_filedialog.lo \
-#      ../xforms/FormBase.lo \
-#      ../xforms/FormCitation.lo \
-#      ../xforms/form_citation.lo \
-#      ../xforms/FormCopyright.lo \
-#      ../xforms/form_copyright.lo \
-#      ../xforms/FormDocument.lo \
-#      ../xforms/form_document.lo \
-#      ../xforms/FormError.lo \
-#      ../xforms/form_error.lo \
-#      ../xforms/FormGraphics.lo \
-#      ../xforms/form_graphics.lo \
-#      ../xforms/FormIndex.lo \
-#      ../xforms/form_index.lo \
-#      ../xforms/FormInset.lo \
-#      ../xforms/FormParagraph.lo \
-#      ../xforms/form_paragraph.lo \
-#      ../xforms/FormPreferences.lo \
-#      ../xforms/form_preferences.lo \
-#      ../xforms/FormPrint.lo \
-#      ../xforms/form_print.lo \
-#      ../xforms/FormRef.lo \
-#      ../xforms/form_ref.lo \
-#      ../xforms/FormTabular.lo \
-#      ../xforms/form_tabular.lo \
-#      ../xforms/FormTabularCreate.lo \
-#      ../xforms/form_tabular_create.lo \
-#      ../xforms/FormToc.lo \
-#      ../xforms/form_toc.lo \
-#      ../xforms/input_validators.lo \
-#      ../xforms/RadioButtonGroup.lo \
+###
+# KOZ 20020315 Large commented out removed.
+###
 
 #LDFLAGS= $(libgnome_la_OBJADD)
 LYXDATADIRS = 
index 291b7de43509680989d8ae0097c31eb534fdbb12..d427144ca971f73e52e68e089a733ce163b21613 100644 (file)
@@ -2,7 +2,12 @@ GNOME FRONT END
 ===============
 
 Firstly, this stuff is pre-alpha.  I don't use it so you shouldn't
-either.  At all, no exceptions :). 
+either.  At all, no exceptions :). Secondly I'm no c++ guru, I'm
+learning as I go along so if something looks stupid, there's a good
+chance it is.
+
+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,
@@ -20,16 +25,27 @@ 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:
+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 have the same name
- * Functional widgets should have an r_ as the first two characters of
-   their name. (see below)
-
-USING ACCESSORS.PY
-==================
+ * The root widget should be named similarly (i.e FormTabularCreate)
+ * 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)
+
+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
+ 3) Remove FormX.lo and form_x.lo (if applicable) from xforms_objects
+ 4) make clean && make in src/frontends/
+ 5) make in src/
+
+
+Using accessors.py
+------------------
 
 Usage: