From f8836d8b1214104e5d3fe21d92de195c2aeacb8b Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sun, 21 Oct 2007 19:08:53 +0000 Subject: [PATCH] Embedding: remove the embeddingChanged signal git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21105 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 7 ------- src/Buffer.h | 2 -- src/buffer_funcs.cpp | 5 ----- src/frontends/Delegates.h | 2 -- src/frontends/LyXView.h | 2 -- 5 files changed, 18 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index c7ed0a0c4b..b94a7278be 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1900,13 +1900,6 @@ void Buffer::structureChanged() const } -void Buffer::embeddingChanged() const -{ - if (gui_) - gui_->embeddingChanged(); -} - - void Buffer::errors(std::string const & err) const { if (gui_) diff --git a/src/Buffer.h b/src/Buffer.h index 8644f0e08b..29fb187667 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -394,8 +394,6 @@ public: void changed() const; /// This function is called when the buffer structure is changed. void structureChanged() const; - /// This function is called when an embedded file is changed - void embeddingChanged() const; /// This function is called when some parsing error shows up. void errors(std::string const & err) const; /// This function is called when the buffer busy status change. diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index d66040c563..04bbb1b1b5 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -473,11 +473,6 @@ void updateLabels(Buffer const & buf, bool childonly) cbuf.tocBackend().update(); if (!childonly) cbuf.structureChanged(); - // FIXME - // the embedding signal is emitted with structureChanged signal - // this is inaccurate so these two will be separated later. - //cbuf.embeddedFiles().update(); - //cbuf.embeddingChanged(); } diff --git a/src/frontends/Delegates.h b/src/frontends/Delegates.h index c063c0d37f..02661c6b00 100644 --- a/src/frontends/Delegates.h +++ b/src/frontends/Delegates.h @@ -53,8 +53,6 @@ public: virtual ~GuiBufferDelegate() {} /// This function is called when the buffer structure is changed. virtual void structureChanged() = 0; - /// This function is called when an embedded file is changed - virtual void embeddingChanged() = 0; /// This function is called when some parsing error shows up. virtual void errors(std::string const &) = 0; /// This function is called when some message shows up. diff --git a/src/frontends/LyXView.h b/src/frontends/LyXView.h index 30443e15f1..eb386304b0 100644 --- a/src/frontends/LyXView.h +++ b/src/frontends/LyXView.h @@ -184,8 +184,6 @@ public: // /// This function is called when the buffer structure is changed. void structureChanged() { updateToc(); } - /// This function is called when an embedded file is changed - void embeddingChanged() { updateEmbeddedFiles(); } /// This function is called when some parsing error shows up. void errors(std::string const & err) { showErrorList(err); } /// This function is called when the buffer busy status change. -- 2.39.2