From 5c6840c106fe9d787fa076c530ed5f5ad439c5b0 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Wed, 12 Jul 2006 19:10:17 +0000 Subject: [PATCH] remove redrawGUI() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14433 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/Dialogs.C | 8 -------- src/frontends/Dialogs.h | 8 -------- src/frontends/controllers/ControlPrefs.C | 13 ------------- src/frontends/controllers/ControlPrefs.h | 3 --- src/frontends/controllers/Kernel.C | 6 ------ src/frontends/controllers/Kernel.h | 5 ----- 6 files changed, 43 deletions(-) diff --git a/src/frontends/Dialogs.C b/src/frontends/Dialogs.C index 5ea2ef5ad3..2a532f70be 100644 --- a/src/frontends/Dialogs.C +++ b/src/frontends/Dialogs.C @@ -44,13 +44,6 @@ private: }; -boost::signal & Dialogs::redrawGUI() -{ - static BugfixSignal > thesignal; - return thesignal(); -} - - namespace { BugfixSignal > hideSignal; @@ -68,7 +61,6 @@ Dialogs::Dialogs(LyXView & lyxview) : lyxview_(lyxview), in_show_(false) { // Connect signals - redrawGUI().connect(boost::bind(&Dialogs::redraw, this)); hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2)); } diff --git a/src/frontends/Dialogs.h b/src/frontends/Dialogs.h index a75019eb7d..4a9c1451a9 100644 --- a/src/frontends/Dialogs.h +++ b/src/frontends/Dialogs.h @@ -34,14 +34,6 @@ public: /// Dialogs(LyXView &); - /** Redraw all visible dialogs because, for example, the GUI colours - * have been re-mapped. - * - * Note that static boost signals break some compilers, so we return a - * reference to some hidden magic ;-) - */ - static boost::signal & redrawGUI(); - /** Check the status of all visible dialogs and disable or reenable * them as appropriate. * diff --git a/src/frontends/controllers/ControlPrefs.C b/src/frontends/controllers/ControlPrefs.C index 30efddbe08..13f587935a 100644 --- a/src/frontends/controllers/ControlPrefs.C +++ b/src/frontends/controllers/ControlPrefs.C @@ -42,7 +42,6 @@ namespace frontend { ControlPrefs::ControlPrefs(Dialog & parent) : Dialog::Controller(parent), - redraw_gui_(false), update_screen_font_(false) {} @@ -55,7 +54,6 @@ bool ControlPrefs::initialiseParams(std::string const &) converters_.update(formats_); movers_ = ::movers; colors_.clear(); - redraw_gui_ = false; update_screen_font_ = false; return true; @@ -85,11 +83,6 @@ void ControlPrefs::dispatchParams() kernel().dispatch(FuncRequest(LFUN_SET_COLOR, *it)); colors_.clear(); - if (redraw_gui_) { - kernel().redrawGUI(); - redraw_gui_ = false; - } - if (update_screen_font_) { kernel().dispatch(FuncRequest(LFUN_SCREEN_FONT_UPDATE)); update_screen_font_ = false; @@ -102,12 +95,6 @@ void ControlPrefs::dispatchParams() } -void ControlPrefs::redrawGUI() -{ - redraw_gui_ = true; -} - - void ControlPrefs::setColor(LColor_color col, string const & hex) { colors_.push_back(lcolor.getLyXName(col) + ' ' + hex); diff --git a/src/frontends/controllers/ControlPrefs.h b/src/frontends/controllers/ControlPrefs.h index 0d5f158808..5c35075dd5 100644 --- a/src/frontends/controllers/ControlPrefs.h +++ b/src/frontends/controllers/ControlPrefs.h @@ -64,9 +64,6 @@ public: std::string const browsedir(std::string const & path, std::string const & title) const; - /// redraw widgets (for xforms color change) - void redrawGUI(); - /// set a color void setColor(LColor_color col, std::string const & hex); diff --git a/src/frontends/controllers/Kernel.C b/src/frontends/controllers/Kernel.C index e411c6c43d..6a103467cf 100644 --- a/src/frontends/controllers/Kernel.C +++ b/src/frontends/controllers/Kernel.C @@ -82,12 +82,6 @@ Kernel::DocType Kernel::docType() const } -void Kernel::redrawGUI() const -{ - lyxview_.getDialogs().redrawGUI(); -} - - BufferView * Kernel::bufferview() { return lyxview_.view(); diff --git a/src/frontends/controllers/Kernel.h b/src/frontends/controllers/Kernel.h index f046c7f150..5bca1151b0 100644 --- a/src/frontends/controllers/Kernel.h +++ b/src/frontends/controllers/Kernel.h @@ -77,11 +77,6 @@ public: /// The type of the current buffer. DocType docType() const; - /** A request that the GUI be redrawn, - * e.g. because the colors have been remapped. - */ - void redrawGUI() const; - /** \name Kernel Nasties * Unpleasantly public internals of the LyX kernel. * We should aim to reduce/remove these from the interface. -- 2.39.5