]> git.lyx.org Git - features.git/commitdiff
make controllers subdir before xforms
authorAngus Leeming <leeming@lyx.org>
Thu, 26 Apr 2001 18:58:49 +0000 (18:58 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 26 Apr 2001 18:58:49 +0000 (18:58 +0000)
move Dialogs::add, Dialogs::destroySplash out-of-line

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

src/frontends/ChangeLog
src/frontends/Dialogs.C [new file with mode: 0644]
src/frontends/Dialogs.h

index f7889c3ed7d59cd782f18032d2ef7da34d7f23ec..671e722a2d95390d0e49ed63c2d171039936897c 100644 (file)
@@ -1,3 +1,11 @@
+2001-04-26  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * Makefile.am: make controllers subdir before xforms.
+
+       * Dialogs.h: (add, destroySplash): moved out of line and into Dialogs.C.
+
+       * Dialogs.C: new file, instantiating the add, destroySplash methods.
+
 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * Liason.[Ch] (setMinibuffer): change second arg to string
diff --git a/src/frontends/Dialogs.C b/src/frontends/Dialogs.C
new file mode 100644 (file)
index 0000000..e3c1687
--- /dev/null
@@ -0,0 +1,35 @@
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *        
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2001 The LyX Team.
+ *
+ * ======================================================
+ *
+ * \file Dialogs.C
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
+ *
+ * Methods common to all frontends' Dialogs that should not be inline
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "Dialogs.h"
+#include "support/LAssert.h"
+
+void Dialogs::add(DialogBase * ptr)
+{
+       lyx::Assert(ptr);
+       dialogs_.push_back(db_ptr(ptr));
+}
+
+void Dialogs::destroySplash()
+{
+       splash_.reset();
+}
index 294306860aece5c9a292cac607cc89060eff7e52..12de971bf440124a2e1b5334778ca50f8e8c8e93 100644 (file)
@@ -30,7 +30,6 @@
 #endif
 
 #include "DialogBase.h"
-#include "support/LAssert.h"
 
 // Maybe this should be a UIFunc modelled on LyXFunc
 class LyXView;
@@ -173,15 +172,4 @@ private:
        boost::scoped_ptr<DialogBase> splash_;
 };
 
-inline void Dialogs::add(DialogBase * ptr)
-{
-       lyx::Assert(ptr);
-       dialogs_.push_back(db_ptr(ptr));
-}
-
-inline void Dialogs::destroySplash()
-{
-       splash_.reset();
-}
-
 #endif