]> git.lyx.org Git - features.git/commitdiff
* Throw out DialogBase.h
authorAngus Leeming <leeming@lyx.org>
Wed, 14 Aug 2002 19:19:47 +0000 (19:19 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 14 Aug 2002 19:19:47 +0000 (19:19 +0000)
* Only #include what's needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4979 a592a061-630c-0410-9148-cb99ea01b6c8

41 files changed:
src/frontends/ChangeLog
src/frontends/DialogBase.h [deleted file]
src/frontends/Dialogs.C
src/frontends/Dialogs.h
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlButtons.h
src/frontends/controllers/ControlCharacter.C
src/frontends/controllers/ControlCommand.C
src/frontends/controllers/ControlConnections.C
src/frontends/controllers/ControlError.h
src/frontends/controllers/ControlGraphics.C
src/frontends/controllers/ControlInclude.C
src/frontends/controllers/ControlParagraph.C
src/frontends/controllers/ControlPreamble.C
src/frontends/controllers/ControlPrint.C
src/frontends/controllers/ControlSearch.C
src/frontends/controllers/ControlSpellchecker.C
src/frontends/controllers/ControlTexinfo.C
src/frontends/controllers/ControlThesaurus.C
src/frontends/controllers/GUI.h
src/frontends/controllers/Makefile.am
src/frontends/controllers/ViewBase.h
src/frontends/controllers/helper_funcs.h
src/frontends/controllers/tex_helpers.C
src/frontends/controllers/tex_helpers.h
src/frontends/guiapi.h
src/frontends/xforms/ChangeLog
src/frontends/xforms/FeedbackController.h
src/frontends/xforms/FormBaseDeprecated.h
src/frontends/xforms/FormDocument.C
src/frontends/xforms/FormMathsBitmap.C
src/frontends/xforms/FormMathsDeco.C
src/frontends/xforms/FormMathsDelim.C
src/frontends/xforms/FormMathsMatrix.C
src/frontends/xforms/FormMathsPanel.C
src/frontends/xforms/FormMathsPanel.h
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/FormPreferences.h
src/frontends/xforms/FormTabular.C
src/frontends/xforms/FormTabular.h
src/frontends/xforms/guiapi.C

index 96a9f2beb48678cf8bab2925d4e21e982f341d52..2579aef45abcfa209afbd9ddf5e3f34ca2b64883 100644 (file)
@@ -1,3 +1,13 @@
+2002-08-13  Angus Leeming  <leeming@lyx.org>
+
+       * DialogBase.h: removed.
+
+       * Dialogs.h: rearrange #includes, forward declarations and some
+       functions. Remove commented out, historical code.
+
+       * Dialogs.[Ch] (showInfo): removed.
+
+       * guiapi.h (gui_ShowInfo): removed.
 
 2002-08-13  André Pönitz <poenitz@gmx.net>
 
diff --git a/src/frontends/DialogBase.h b/src/frontends/DialogBase.h
deleted file mode 100644 (file)
index e4179d0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-// -*- C++ -*-
-/* DialogBase.h
- * Abstract base class of all dialogs.
- * Author: Allan Rae <rae@lyx.org>
- * This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- *           This file Copyright 2000
- *           Allan Rae
- * ======================================================
- */
-#ifndef DIALOGBASE_H
-#define DIALOGBASE_H
-
-#include <boost/utility.hpp>
-
-/** Abstract base class of all dialogs.
-    The outside world only needs some way to tell a dialog when to show, hide
-    or update itself.  A dialog then takes whatever steps are necessary to
-    satisfy that request.  Thus a dialog will have to "pull" the necessary
-    details from the core of the program.
- */
-class DialogBase : boost::noncopyable
-{
-public:
-       /**@name Constructors and Deconstructors */
-       //@{
-       /// Virtual base destructor
-       virtual ~DialogBase() {}
-       //@}
-
-       /**@name Signal Targets */
-       //@{
-       ///
-       //virtual void show() = 0;
-       ///
-       virtual void hide() = 0;
-       ///
-       virtual void update() {};
-       ///
-       virtual void close() {};
-       //@}
-};
-
-#endif // DIALOGBASE_H
index 30b5260055aaaa81ac123dffb4676ef93bf1e258..77e6b2e948dfc223f96b6f694491b94c0f329413 100644 (file)
@@ -150,14 +150,6 @@ void Dialogs::createIndex()
 }
 
 
-void Dialogs::showInfo(InsetInfo * /*ii*/)
-{
-#if 0
-       gui_ShowInfo(ii, *dialogs_lyxview, *this);
-#endif
-}
-
-
 void Dialogs::showLogFile()
 {
        gui_ShowLogFile(*dialogs_lyxview, *this);
index db12181ec18b9de87200c93e9a5de6d1a4d4ca2e..97e3bb873db74171155a3b172d36957a7cc6a0d6 100644 (file)
@@ -1,53 +1,41 @@
 // -*- C++ -*-
-/* Dialogs.h
- * Container of all dialogs and signals a LyXView needs or uses to access them.
- * Author: Allan Rae <rae@lyx.org>
- * This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- *           This file Copyright 2000
- *           Allan Rae
- * ======================================================
+/**
+ * \file Dialogs.h
+ * Copyright 1995-2002 The LyX Team.
+ * See the file COPYING.
+ * \author Allan Rae, rae@lyx.org
  */
 
 #ifndef DIALOGS_H
 #define DIALOGS_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "LString.h"
 
 #include <boost/utility.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/signal1.hpp>
-#include <vector>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "DialogBase.h"
 
 // Maybe this should be a UIFunc modelled on LyXFunc
 class LyXView;
 
-class InsetGraphics;
 class InsetBibKey;
 class InsetBibtex;
+class InsetCommand;
 class InsetError;
+class InsetERT;
 class InsetExternal;
+class InsetFloat;
+class InsetGraphics;
 class InsetInclude;
 class InsetInfo;
-class InsetTabular;
-class InsetCommand;
 class InsetMinipage;
-class InsetFloat;
-class InsetERT;
 class Paragraph;
+class InsetTabular;
 
 /** Container of all dialogs and signals a LyXView needs or uses to access them
     The list of dialog signals isn't comprehensive but should be a good guide
@@ -57,12 +45,9 @@ class Dialogs : boost::noncopyable
 {
 public:
        ///
-       typedef boost::shared_ptr<DialogBase> db_ptr;
-       /**@name Constructor */
-       //@{
+       typedef boost::shared_ptr<boost::noncopyable> db_ptr;
        ///
        Dialogs(LyXView *);
-       //@}
 
        /** Redraw all visible dialogs because, for example, the GUI colours
            have been re-mapped. */
@@ -110,10 +95,16 @@ public:
        void showDocument();
        ///
        void showError(InsetError *);
+       ///
+       void showERT(InsetERT *);
+       ///
+       void updateERT(InsetERT *);
        /// show the external inset dialog
        void showExternal(InsetExternal *);
        /// show the contents of a file.
        void showFile(string const &);
+       ///
+       void showFloat(InsetFloat *);
        /// show all forked child processes
        void showForks();
        ///
@@ -124,8 +115,6 @@ public:
        void showIndex(InsetCommand *);
        ///
        void createIndex();
-       ///
-       void showInfo(InsetInfo *);
        /// show the LaTeX log or build file
        void showLogFile();
        /// display the top-level maths panel
@@ -135,12 +124,6 @@ public:
        ///
        void updateMinipage(InsetMinipage *);
        ///
-       void showERT(InsetERT *);
-       ///
-       void updateERT(InsetERT *);
-       ///
-       void showFloat(InsetFloat *);
-       ///
        void showParagraph();
        ///
        boost::signal0<void>  updateParagraph;
@@ -181,11 +164,6 @@ public:
        /// show the version control log
        void showVCLogFile();
        //@}
-private:
-       /// Add a dialog to the vector of dialogs.
-       //void add(DialogBase *);
-       /// the dialogs being managed
-       //std::vector<db_ptr> dialogs_;
 };
 
 #endif
index 8a84487c38bb583de84dcb9c4153363ed5c60f33..d215f240390d291e3b8d6e4237cfd17c5612064a 100644 (file)
@@ -1,3 +1,34 @@
+2002-08-14  Angus Leeming  <leeming@lyx.org>
+
+       * GUI.h: class GUI deries from boost::noncopyable
+
+       * ControlButtons.h: no longer derives from DialogBase, but instead
+       derives directly from boost::noncopyable.
+
+       * ViewBase.h: derives from boost::noncopyable.
+
+       * ControlCharacter.C:
+       * ControlCommand.C:
+       * ControlConnections.C:
+       * ControlGraphics.C:
+       * ControlInclude.C:
+       * ControlParagraph.C:
+       * ControlPreamble.C:
+       * ControlPrint.C:
+       * ControlSearch.C:
+       * ControlSpellchecker.C:
+       * ControlTexinfo.C:
+       * ControlThesaurus.C:
+       rearrange #includes. Remove unnecessary ones.
+
+       * ControlError.h: add "insets/inseterror.h".
+
+       * helper_funcs.h: add necessary #includes.
+
+       * tex_helpers.[Ch]: add #pragma directives for g++.
+
+       * Makefile.am: remove src/frontends from -I list to compiler.
+
 2002-08-13  Angus Leeming  <leeming@lyx.org>
 
        * ControlConnections.C:
index 2e5e796cae83667fdc3d89ad08d216fc14fba199..42e8b8376b4fae6c845f483efcd7595f17c46323 100644 (file)
 #pragma interface
 #endif
 
-#include "DialogBase.h" // This can go eventually
+#include <boost/utility.hpp>
 
 class ViewBase;
 class ButtonControllerBase;
 
 /** Abstract base class for Controllers with a ButtonController.
  */
-class ControlButtons : public DialogBase
+class ControlButtons : boost::noncopyable
 {
 public:
        ///
index 92cfdb6b7400f0e5bfbc32c8245e0cd03de099b9..2d88494d5783595010fe2f6596a12c78a141070f 100644 (file)
 #endif
 
 #include "ControlCharacter.h"
+
 #include "ViewBase.h"
 #include "ButtonControllerBase.h"
+
 #include "buffer.h"
-#include "Liason.h"
 #include "bufferview_funcs.h" // ToggleAndShow
 #include "gettext.h"
 #include "language.h"
 
+#include "frontends/Liason.h"
 #include "frontends/LyXView.h"
 
 using Liason::setMinibuffer;
index 869ad31c07234261ebcee909134651021b53db9e..00f909eaab12c85c7f9575c21647a7bf2af05acf 100644 (file)
 #pragma implementation
 #endif
 
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
 #include "ControlCommand.h"
-#include "buffer.h"
-#include "Dialogs.h"
-#include "lyxfunc.h"
+
 #include "BufferView.h"
 #include "funcrequest.h"
+#include "lyxfunc.h"
 
 
 ControlCommand::ControlCommand(LyXView & lv, Dialogs & d, kb_action ac)
index 0f99ed064190cd2ca5b814a3260ed879865bcfa3..a154f07a24625571acaf2e5082d255024e2c865d 100644 (file)
 #endif
 
 #include "ControlConnections.h"
+
 #include "ViewBase.h"
-#include "Dialogs.h"
+
 #include "buffer.h"
 #include "BufferView.h"
 
+#include "frontends/Dialogs.h"
 #include "frontends/LyXView.h"
 
 #include <boost/bind.hpp>
index ee47576a063bce87ff2f985a28b4aeb3a5da277e..b74f07ac19bba239e30a35f6d40f5f246594ecd3 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include "ControlInset.h"
+#include "insets/inseterror.h" // needed for proper instantiation of GUI<>.
 
 class InsetError;
 
index f096f51ea9e633e471c0d419264eb3fc07256ca5..b9fb684ff5a667e2ff2431f7898707b7076a6a24 100644 (file)
 
 #include "helper_funcs.h"
 
-#include "converter.h"
 #include "buffer.h"
 #include "BufferView.h"
-#include "Dialogs.h"
+#include "converter.h"
 #include "gettext.h"
 #include "lyxrc.h"
 
index 0d16a4c2197d770a0f6be56c41ccaa4b5e996f26..7550790c0b75eca40d055fb5ca937f7b79c6a0b4 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \author Alejandro Aguilar Sierra
  * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming, a.leeming@.ac.uk
+ * \author Angus Leeming, a.leeming@ic.ac.uk
  */
 
 #include <config.h>
 #endif
 
 #include "ControlInclude.h"
-#include "Alert.h"
+
+#include "helper_funcs.h"
+
 #include "BufferView.h"
-#include "lyxfunc.h"
+#include "funcrequest.h"
 #include "gettext.h"
-#include "helper_funcs.h"
+#include "lyxfunc.h"
 #include "lyxrc.h"
-#include "funcrequest.h"
+
+#include "frontends/Alert.h"
 
 #include "support/filetools.h"
 
index 58738aed9549abb35e56c7f667562a86489b7e7b..08750e7c134ebdc82a5abad080995d8a3069431e 100644 (file)
 #endif
 
 #include "ControlParagraph.h"
+
 #include "ButtonControllerBase.h"
 #include "ViewBase.h"
-#include "ParagraphParameters.h"
-#include "Liason.h"
+
+#include "buffer.h"
 #include "BufferView.h"
 #include "gettext.h"
-#include "buffer.h"
 #include "lyxtext.h"
+#include "ParagraphParameters.h"
+
+#include "frontends/Dialogs.h"
+#include "frontends/Liason.h"
+
 #include "support/LAssert.h"
-#include "Dialogs.h"
+
 #include <boost/bind.hpp>
 
 using Liason::setMinibuffer;
@@ -32,9 +37,8 @@ using Liason::setMinibuffer;
 ControlParagraph::ControlParagraph(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d), pp_(0), ininset_(false)
 {
-     d_.updateParagraph.connect(
-            boost::bind(&ControlParagraph::changedParagraph, this));
-
+       d_.updateParagraph.connect(
+               boost::bind(&ControlParagraph::changedParagraph, this));
 }
 
 
index b1eb78c120f349d34e814582c1aa028824ca3613..7b068a98ba3ff6a699f380069335338b26dc735b 100644 (file)
 #endif
 
 #include "ControlPreamble.h"
+
 #include "ViewBase.h"
+
 #include "buffer.h"
-#include "Liason.h"
 #include "gettext.h"
 
+#include "frontends/Liason.h"
+
 
 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d),
index 0845ec8648b00a951ca2fff0065d82db982a2b95..5feb5aa7c941fe7c9ccb48b4904d653e3048a1e4 100644 (file)
 #endif
 
 #include "ControlPrint.h"
+
 #include "ViewBase.h"
 #include "ButtonControllerBase.h"
+
 #include "buffer.h"
-#include "PrinterParams.h"
-#include "Liason.h"
+#include "gettext.h"
 #include "helper_funcs.h"
+#include "PrinterParams.h"
+
 #include "frontends/Alert.h"
-#include "gettext.h"
+#include "frontends/Liason.h"
+
 #include "support/LAssert.h"
 
 using Liason::printBuffer;
index 0ccfd73f0c156f02bb8129298dafc3315de3505b..5a734197df0f598268a5254a5a596a5cc72c444a 100644 (file)
 #endif
 
 #include "ControlSearch.h"
-#include "Liason.h"
-#include "lyxfind.h"
+
 #include "gettext.h"
+#include "lyxfind.h"
 
+#include "frontends/Liason.h"
 
 #include "support/lstrings.h"
 
index 488319605af58a811fe7553d7a048f0a88518027..24c6f23b7cdca4ca3b6ce04ddef0b8946099a28c 100644 (file)
 #endif
 
 #include "ControlSpellchecker.h"
+
+#include "ViewBase.h"
+
 #include "buffer.h"
-#include "lyxrc.h"
 #include "BufferView.h"
-#include "lyxtext.h"
 #include "gettext.h"
 #include "language.h"
-
-#include "ViewBase.h"
-#include "Dialogs.h"
-#include "Liason.h"
+#include "lyxrc.h"
+#include "lyxtext.h"
 
 #include "frontends/Alert.h"
 
index 46b4c4678966eb131bbe1a376a1e29ff1448e432..16b3f32ce27d70d24db406070b53814f4f4305e8 100644 (file)
 #endif
 
 #include "ControlTexinfo.h"
-#include "Dialogs.h"
-#include "gettext.h"
+
 #include "helper_funcs.h"
 #include "tex_helpers.h"
 
+#include "frontends/Dialogs.h"
 #include "frontends/LyXView.h"
 
 #include "support/filetools.h" // FileSearch
index 51db250e522f8bf94d0b30f67c1d0912b4da5bbc..aa1234117ff2a7f8f5baab58b022212f85a0902a 100644 (file)
 #endif
 
 #include "ControlThesaurus.h"
-#include "Liason.h"
-#include "lyxfind.h"
+
 #include "gettext.h"
+#include "lyxfind.h"
+
+#include "frontends/Liason.h"
 
 
 using Liason::setMinibuffer;
index c54320a786fdd6ccaeee70a7529e1d4e137b3aab..74e7c26fce0e1f2aace4aab371490a1a7239bea6 100644 (file)
 
 #include "ButtonController.h"
 
+#include <boost/utility.hpp>
 
 /** This class makes a whole out of the disparate parts of a dialog.
  */
 template <typename Controller, typename GUIview,
          typename Policy,     typename GUIbc>
-class GUI {
+class GUI : boost::noncopyable {
 public:
        ///
        GUI(LyXView & lv, Dialogs & d);
index 1639786496fe1bab5e4611518e9805c79c7b86b9..0de486400e81a7c473a39e9fe11c2ac8e4ce22b3 100644 (file)
@@ -3,7 +3,6 @@ include $(top_srcdir)/config/common.am
 noinst_LTLIBRARIES = libcontrollers.la
 
 INCLUDES = -I$(top_srcdir)/src/ \
-       -I$(top_srcdir)/src/frontends/ \
        $(SIGC_CFLAGS) $(BOOST_INCLUDES)
 
 EXTRA_DIST = ButtonController.tmpl ControlDialog.tmpl ControlInset.tmpl
index c1d98ab83b7b003a1cc3aa9dfc39640fa0a2007a..90a565ea9a0d8e1d250e08693225cc0618853ed4 100644 (file)
 
 #include "support/LAssert.h"
 
+#include <boost/utility.hpp>
+
 class ControlButtons;
 
 
-class ViewBase {
+class ViewBase : boost::noncopyable {
 public:
        ///
        ViewBase() : controller_ptr_(0) {}
index eb8e77a50cd001596c34c226d57bf048cdf2b50d..279f5ce0a8d64cc0a6fef660436367773bc97890 100644 (file)
 #ifndef HELPERFUNCS_H
 #define HELPERFUNCS_H
 
-#include <utility> // pair
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
+#include "LString.h"
+
+#include <utility> // pair
+#include <vector> // pair
+
 class LyXView;
 
 /** Launch a file dialog and return the chosen file.
index ed5c4021c4f8c272c26ae8d347764f337961b565..eb74039082f34b90ab1aa2533b95725a22e1d4f6 100644 (file)
@@ -8,6 +8,10 @@
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "tex_helpers.h"
 
 #include "debug.h"
index c2be1d4a70a35373dba308a71ac59c96c78ac924..a14ab6d41adb1c11fbe58634101f3fefac040b7a 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef TEX_HELPERS_H
 #define TEX_HELPERS_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "LString.h"
 
 // build filelists of all availabe bst/cls/sty-files. done through
index 692d0da83658cdb108a479ac78ccc25871499386..fda0fe1841cc1d87d52eb3c460bd9b41ac5ba974 100644 (file)
@@ -11,7 +11,6 @@ class InsetExternal;
 class InsetFloat;
 class InsetGraphics;
 class InsetInclude;
-class InsetInfo;
 class InsetMinipage;
 class InsetTabular;
 
@@ -36,7 +35,6 @@ extern "C" {
        void gui_ShowInclude(InsetInclude *, LyXView & lv, Dialogs & d);
        void gui_ShowIndex(InsetCommand *, LyXView & lv, Dialogs & d);
        void gui_CreateIndex(LyXView & lv, Dialogs & d);
-       void gui_ShowInfo(InsetInfo *, LyXView & lv, Dialogs & d);
        void gui_ShowLogFile(LyXView & lv, Dialogs & d);
        void gui_ShowMathPanel(LyXView & lv, Dialogs & d);
        void gui_ShowMinipage(InsetMinipage *, LyXView & lv, Dialogs & d);
index 8e4ad9c20bcba17dec6c07dfa1849e3c5d8b91a0..03d702352547b8763c323effaadd9f111281c7b1 100644 (file)
@@ -1,9 +1,32 @@
+2002-08-14  Angus Leeming  <leeming@lyx.org>
+
+       * FormBaseDeprecated.h: no longer derives from DialogBase, but instead
+       derives directly from boost::noncopyable.
+       (show): made public.
+
+       * FeedbackController.h: rearrange #includes.
+
+       * FormDocument.C:
+       * FormMathsDeco.C:
+       * FormMathsDelim.C:
+       * FormMathsMatrix.C:
+       * FormMathsPanel.C:
+       * FormTabular.C: remove #include "Dialogs.h"
+
+       * FormMathsBitmap.C: remove #include "Dialogs.h", "LyXView.h".
+
+       * FormPreferences.C: rearrange #includes.
+
+       * FormTabular.h (showInset, updateInset): make public.
+
+       * FormDocument.C (build): enable the bmtable to find the right file!
+
+       * guiapi.C (gui_ShowInfo): removed.
 
 2002-08-13  André Poenitz  <poenitz@gmx.net>
 
        * Toolbar_pimpl.C: small cleanup
 
-
 2002-08-13  Angus Leeming  <leeming@lyx.org>
 
        * FileDialog.C:
index 371b653d7cf559fc0a93cd8c4f6d4a2e19ccb0f7..5d3a93038ed22038c7cbc05bd55921f3ce3a56a2 100644 (file)
 #ifndef FEEDBACKCONTROLLER_H
 #define FEEDBACKCONTROLLER_H
 
-#include "forms_fwd.h"
-#include "LString.h"
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
+#include "forms_fwd.h"
+#include "LString.h"
+
 class FeedbackController
 {
 public:
index 8e514b4056d947a18f9c97c40ff2360a5052e2b8..e83bacc84d7993ab002e257db748969cf5d16fdd 100644 (file)
 #pragma interface
 #endif
 
-#include "DialogBase.h"
 #include "LString.h"
 #include "xformsBC.h"
 #include "FeedbackController.h"
 
 #include "forms_fwd.h"
 
+#include <boost/utility.hpp>
 #include <boost/signals/connection.hpp>
 
 class Buffer;
@@ -34,7 +34,7 @@ class Dialogs;
 class LyXView;
 class Tooltips;
 
-class FormBaseDeprecated : public DialogBase, public FeedbackController
+class FormBaseDeprecated : boost::noncopyable, public FeedbackController
 {
 public:
        ///
@@ -57,7 +57,8 @@ public:
 
        Tooltips & tooltips();
 
-       friend void gui_ShowDocument(LyXView &, Dialogs &);
+       /// Create the dialog if necessary, update it and display it.
+       virtual void show();
 
 protected: // methods
 
@@ -71,8 +72,6 @@ protected: // methods
         */
        virtual void redraw();
 
-       /// Create the dialog if necessary, update it and display it.
-       virtual void show();
        /// Hide the dialog.
        virtual void hide();
        /// Update the dialog.
index 874241260b93552d8246228eaf8d3ebb03776cc8..2e75829252f58373ba4e04d46b4bf38706e302de 100644 (file)
@@ -18,7 +18,6 @@
 #include "FormDocument.h"
 #include "forms/form_document.h"
 #include "Alert.h"
-#include "Dialogs.h"
 #include "lyxtextclasslist.h"
 #include "combox.h"
 #include "tex-strings.h"
@@ -301,6 +300,10 @@ void FormDocument::build()
        setPrehandler(bullets_->input_bullet_latex);
        fl_set_input_maxchars(bullets_->input_bullet_latex, 80);
 
+       string const bmtablefile = LibFileSearch("images", "standard", "xpm");
+       fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6,
+                                  bmtablefile.c_str());
+
        bc_.addReadOnly(bullets_->radio_bullet_depth_1);
        bc_.addReadOnly(bullets_->radio_bullet_depth_2);
        bc_.addReadOnly(bullets_->radio_bullet_depth_3);
index 81e562922d12adbc65330bb9836e94107741ae7e..94986dc7dc989bf214ab2f471103474e36a95fbb 100644 (file)
@@ -15,8 +15,6 @@
 #endif
 
 #include "FormMathsBitmap.h"
-#include "Dialogs.h"
-#include "frontends/LyXView.h"
 #include "bmtable.h"
 #include "debug.h"
 #include "forms_gettext.h"
index 5dc7b29ff1ab45be99599c0bd4307019069db10b..41ba656ae9e1dc1fb0528b014b050611764d3d93 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "FormMathsDeco.h"
 #include "forms/form_maths_deco.h"
-#include "Dialogs.h"
 #include "bmtable.h"
 #include FORMS_H_LOCATION
 
index 432d4775a8b6acb87222662d265fe72cf9adc89d..b921970c6f84e3778cb19074ea5cabd5e4af8cd9 100644 (file)
 
 #include "FormMathsDelim.h"
 #include "forms/form_maths_delim.h"
-#include "Dialogs.h"
-#include "frontends/LyXView.h"
+
 #include "bmtable.h"
+
 #include "debug.h"
 #include "funcrequest.h"
+#include "lyxfunc.h"
+
+#include "frontends/LyXView.h"
+
+#include "support/lstrings.h"
+
 #include "Lsstream.h"
+
 #include FORMS_H_LOCATION
 
 #include "delim.xbm"
index d15a8a9fc255a0a6f81fd3a46d5f67f81d18ca39..5682e967c84e95b235de91ae54e0839fdc19a125 100644 (file)
 #pragma implementation
 #endif
 
-#include <algorithm>
-
 #include "FormMathsMatrix.h"
 #include "forms/form_maths_matrix.h"
-#include "Dialogs.h"
-#include "frontends/LyXView.h"
-#include "Lsstream.h"
+
 #include "funcrequest.h"
+#include "lyxfunc.h"
+
+#include "frontends/LyXView.h"
+
 #include "support/LAssert.h"
 #include "support/lyxalgo.h" // lyx::count
+
+#include "Lsstream.h"
+
 #include FORMS_H_LOCATION
 
+#include <algorithm>
+
 #ifndef CXX_GLOBAL_CSTD
 using std::strlen;
 #endif
index dd607697318d0c0a9c3c66595f484d092c14ce67..ee9caa4d86087a1772bd3b4e1180cd0d6c4090b1 100644 (file)
@@ -15,7 +15,6 @@
 #pragma implementation
 #endif
 
-#include "Dialogs.h"
 #include "frontends/LyXView.h"
 #include "FormMathsPanel.h"
 #include "forms/form_maths_panel.h"
index db1af2827f432ff173582c40475b2df736a14298..c80a09a230b1d3bf81819780756a83827a4088fd 100644 (file)
@@ -37,7 +37,6 @@ struct FD_maths_panel;
  */
 class FormMathsPanel : public FormBaseBD {
 public:
-       friend void gui_ShowMathPanel(LyXView &, Dialogs &);
        ///
        FormMathsPanel(LyXView *, Dialogs *);
        ///
index f071e37d16a8b55da1f343834c257411251dec98..e433ca981fe3304f593a5c498a3ecf66a17f833a 100644 (file)
 
 #include "FormPreferences.h"
 #include "forms/form_preferences.h"
-#include "Dialogs.h"
+
+#include "combox.h"
+#include "Color.h"
+#include "input_validators.h"
+#include "forms_gettext.h"
+#include "xforms_helpers.h"
+#include "helper_funcs.h"
 
 #include "buffer.h"
 #include "converter.h"
 #include "debug.h"
-#include "frontends/LyXView.h"
 #include "language.h"
 #include "frnt_lang.h"
 #include "lyxlex.h"
 #include "Lsstream.h"
 #include "funcrequest.h"
 
-#include "combox.h"
-#include "Color.h"
-#include "input_validators.h"
-#include "forms_gettext.h"
-#include "xforms_helpers.h"
-#include "helper_funcs.h"
+#include "frontends/LyXView.h"
+#include "frontends/Dialogs.h"
 
 #include "support/lyxfunctional.h"
 #include "support/lyxmanip.h"
index 335220f121ad07829be2998b28a85ebe9ad53a37..8635d362f6ff756c523eab19d46f1265cf7ddeb9 100644 (file)
@@ -50,7 +50,6 @@ struct FD_preferences_spelloptions;
  */
 class FormPreferences : public FormBaseBI {
 public:
-       friend void gui_ShowPreferences(LyXView &, Dialogs &);
        ///
        FormPreferences(LyXView &, Dialogs &);
 
index ac2133b2e3b2763f9025a331383a1482e3cf81aa..3bd41556a64aa830db182461e11606c48557100c 100644 (file)
@@ -17,7 +17,6 @@
 #include "FormTabular.h"
 #include "forms/form_tabular.h"
 #include "frontends/LyXView.h"
-#include "Dialogs.h"
 #include "buffer.h"
 #include "xforms_helpers.h"
 #include "lyxrc.h" // to set the default length values
index c05e426bea191ce8704e417e20429e5fca4d6250..4c2ac7f6c7d6f38bc86a75d03234ae5e8979e170 100644 (file)
@@ -31,12 +31,14 @@ struct FD_tabular_longtable;
  */
 class FormTabular : public FormInset {
 public:
-       friend void gui_ShowTabular(InsetTabular *, LyXView &, Dialogs &);
-       friend void gui_UpdateTabular(InsetTabular *, LyXView &, Dialogs &);
-
        /// #FormTabular x(LyXFunc ..., Dialogs ...);#
        FormTabular(LyXView &, Dialogs &);
 
+       /// Slot launching dialog to an existing inset
+       void showInset(InsetTabular *);
+       /// Slot launching dialog to an existing inset
+       void updateInset(InsetTabular *);
+
 private:
        /// Pointer to the actual instantiation of the ButtonController.
        virtual xformsBC & bc();
@@ -46,10 +48,6 @@ private:
        /// Disconnect signals. Also perform any necessary housekeeping.
        virtual void disconnect();
 
-       /// Slot launching dialog to an existing inset
-       void showInset(InsetTabular *);
-       /// Slot launching dialog to an existing inset
-       void updateInset(InsetTabular *);
        /// Update dialog before showing it
        virtual void update();
        /// Build the dialog
index 170da9a79ca03c4e606885e8d94115fd182fb168..efbe136bceaf4b50acc71fcffbae87b85a73ae01 100644 (file)
@@ -347,13 +347,6 @@ extern "C" {
        }
 
 
-#if 0
-       void gui_ShowInfo(InsetInfo *, LyXView & lv, Dialogs & d)
-       {
-       }
-#endif
-
-
        void gui_ShowLogFile(LyXView & lv, Dialogs & d)
        {
                static GUI<ControlLog, FormLog,