mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
One more second..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20362 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b6a33822e5
commit
72fe3d9fc1
@ -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_;
|
||||
|
||||
///
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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_;
|
||||
|
@ -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>
|
||||
|
@ -21,3 +21,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
Loading…
Reference in New Issue
Block a user