remove redrawGUI()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14433 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-07-12 19:10:17 +00:00
parent 94d5cd6c67
commit 5c6840c106
6 changed files with 0 additions and 43 deletions

View File

@ -44,13 +44,6 @@ private:
}; };
boost::signal<void()> & Dialogs::redrawGUI()
{
static BugfixSignal<boost::signal<void()> > thesignal;
return thesignal();
}
namespace { namespace {
BugfixSignal<boost::signal<void(string const &, InsetBase*)> > hideSignal; BugfixSignal<boost::signal<void(string const &, InsetBase*)> > hideSignal;
@ -68,7 +61,6 @@ Dialogs::Dialogs(LyXView & lyxview)
: lyxview_(lyxview), in_show_(false) : lyxview_(lyxview), in_show_(false)
{ {
// Connect signals // Connect signals
redrawGUI().connect(boost::bind(&Dialogs::redraw, this));
hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2)); hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2));
} }

View File

@ -34,14 +34,6 @@ public:
/// ///
Dialogs(LyXView &); 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<void()> & redrawGUI();
/** Check the status of all visible dialogs and disable or reenable /** Check the status of all visible dialogs and disable or reenable
* them as appropriate. * them as appropriate.
* *

View File

@ -42,7 +42,6 @@ namespace frontend {
ControlPrefs::ControlPrefs(Dialog & parent) ControlPrefs::ControlPrefs(Dialog & parent)
: Dialog::Controller(parent), : Dialog::Controller(parent),
redraw_gui_(false),
update_screen_font_(false) update_screen_font_(false)
{} {}
@ -55,7 +54,6 @@ bool ControlPrefs::initialiseParams(std::string const &)
converters_.update(formats_); converters_.update(formats_);
movers_ = ::movers; movers_ = ::movers;
colors_.clear(); colors_.clear();
redraw_gui_ = false;
update_screen_font_ = false; update_screen_font_ = false;
return true; return true;
@ -85,11 +83,6 @@ void ControlPrefs::dispatchParams()
kernel().dispatch(FuncRequest(LFUN_SET_COLOR, *it)); kernel().dispatch(FuncRequest(LFUN_SET_COLOR, *it));
colors_.clear(); colors_.clear();
if (redraw_gui_) {
kernel().redrawGUI();
redraw_gui_ = false;
}
if (update_screen_font_) { if (update_screen_font_) {
kernel().dispatch(FuncRequest(LFUN_SCREEN_FONT_UPDATE)); kernel().dispatch(FuncRequest(LFUN_SCREEN_FONT_UPDATE));
update_screen_font_ = false; 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) void ControlPrefs::setColor(LColor_color col, string const & hex)
{ {
colors_.push_back(lcolor.getLyXName(col) + ' ' + hex); colors_.push_back(lcolor.getLyXName(col) + ' ' + hex);

View File

@ -64,9 +64,6 @@ public:
std::string const browsedir(std::string const & path, std::string const browsedir(std::string const & path,
std::string const & title) const; std::string const & title) const;
/// redraw widgets (for xforms color change)
void redrawGUI();
/// set a color /// set a color
void setColor(LColor_color col, std::string const & hex); void setColor(LColor_color col, std::string const & hex);

View File

@ -82,12 +82,6 @@ Kernel::DocType Kernel::docType() const
} }
void Kernel::redrawGUI() const
{
lyxview_.getDialogs().redrawGUI();
}
BufferView * Kernel::bufferview() BufferView * Kernel::bufferview()
{ {
return lyxview_.view(); return lyxview_.view();

View File

@ -77,11 +77,6 @@ public:
/// The type of the current buffer. /// The type of the current buffer.
DocType docType() const; DocType docType() const;
/** A request that the GUI be redrawn,
* e.g. because the colors have been remapped.
*/
void redrawGUI() const;
/** \name Kernel Nasties /** \name Kernel Nasties
* Unpleasantly public internals of the LyX kernel. * Unpleasantly public internals of the LyX kernel.
* We should aim to reduce/remove these from the interface. * We should aim to reduce/remove these from the interface.