]> git.lyx.org Git - lyx.git/commitdiff
One more second..
authorAndré Pönitz <poenitz@gmx.net>
Wed, 19 Sep 2007 21:28:11 +0000 (21:28 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 19 Sep 2007 21:28:11 +0000 (21:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20362 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Dialogs.h
src/frontends/LyXView.cpp
src/frontends/LyXView.h
src/frontends/pch.h
src/frontends/qt4/pch.h

index 335bd3f31d978781955cf912ac2c23b18d0606cb..ae08680401778d013e42a51432465ef40d66b919 100644 (file)
@@ -114,7 +114,8 @@ private:
        ///
        std::map<std::string, DialogPtr> dialogs_;
 
-       /// flag against a race condition due to multiclicks in Qt frontend, see bug #1119
+       /// flag against a race condition due to multiclicks in Qt frontend,
+       /// see bug #1119
        bool in_show_;
 
        ///
index f621e3291a4a52bd807ad87be214d40d88f01631..5a41bce238f7ad4039db04855e575dbf9bec3ae1 100644 (file)
@@ -85,6 +85,9 @@ LyXView::~LyXView()
 {
        disconnectBuffer();
        disconnectBufferView();
+       delete dialogs_;
+       delete toolbars_;
+       delete autosave_timeout_;
 }
 
 
@@ -228,7 +231,7 @@ void LyXView::connectBufferView(BufferView & bv)
        update_dialog_connection_ = bv.updateDialog.connect(
                        boost::bind(&LyXView::updateDialog, this, _1, _2));
        layout_changed_connection_ = bv.layoutChanged.connect(
-                       boost::bind(&Toolbars::setLayout, toolbars_.get(), _1));
+                       boost::bind(&Toolbars::setLayout, toolbars_, _1));
 }
 
 
index bf9aa5778db67781f6e41c33cbfeee0f4db233ff..0ad2fbfb0605635587be48f828da0fa7d671b4ab 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "LyXFunc.h"
 
-#include <boost/scoped_ptr.hpp>
 #include <boost/signal.hpp>
 #include <boost/signals/trackable.hpp>
 #include <boost/utility.hpp>
@@ -57,15 +56,15 @@ class WorkArea;
  */
 class LyXView : public boost::signals::trackable, boost::noncopyable {
 public:
-
+       ///
        LyXView(int id);
-
+       ///
        virtual ~LyXView();
-
+       ///
        int id() const { return id_; }
-
+       ///
        virtual void close() = 0;
-
+       ///
        virtual void setFocus() = 0;
 
        ///
@@ -131,9 +130,9 @@ public:
        virtual void openMenu(docstring const & name) = 0;
 
        /// get access to the dialogs
-       Dialogs & getDialogs() { return *dialogs_.get(); }
+       Dialogs & getDialogs() { return *dialogs_; }
        ///
-       Dialogs const & getDialogs() const { return *dialogs_.get(); }
+       Dialogs const & getDialogs() const { return *dialogs_; }
 
        //@}
 
@@ -193,7 +192,7 @@ protected:
        void disconnectBuffer();
 
        /// view's toolbar
-       boost::scoped_ptr<Toolbars> toolbars_;
+       Toolbars * toolbars_;
 
 private:
        /**
@@ -207,11 +206,9 @@ private:
        void autoSave();
 
        /// auto-saving of buffers
-       boost::scoped_ptr<Timeout> const autosave_timeout_;
-       /// our function handler
-       boost::scoped_ptr<LyXFunc> lyxfunc_;
+       Timeout * const autosave_timeout_;
        /// dialogs for this view
-       boost::scoped_ptr<Dialogs> dialogs_;
+       Dialogs * dialogs_;
 
        /// buffer structure changed signal connection
        boost::signals::connection bufferStructureChangedConnection_;
index 9864bc017614d865c94b1951ba626312385805a6..65ab4bc6593fdec55768cdf3c0c3a79e1442eed1 100644 (file)
@@ -1,20 +1,5 @@
 #include <config.h>
 
-#include <boost/function.hpp>
-#include <boost/scoped_ptr.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/signal.hpp>
-#include <boost/signals/trackable.hpp>
-#include <boost/utility.hpp>
-
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#include <limits>
 #include <map>
 #include <string>
 #include <utility>
index dfa99ac414d6ec7c4b810c074478345233d07dd5..f509dc9fe5434e74d7f218a22b5cb89d8846af15 100644 (file)
@@ -21,3 +21,6 @@
 #include <string>
 #include <utility>
 #include <vector>
+
+#include <QtCore>
+#include <QtGui>