mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
remove redrawGUI()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14433 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
94d5cd6c67
commit
5c6840c106
@ -44,13 +44,6 @@ private:
|
||||
};
|
||||
|
||||
|
||||
boost::signal<void()> & Dialogs::redrawGUI()
|
||||
{
|
||||
static BugfixSignal<boost::signal<void()> > thesignal;
|
||||
return thesignal();
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
BugfixSignal<boost::signal<void(string const &, InsetBase*)> > 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));
|
||||
}
|
||||
|
||||
|
@ -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<void()> & redrawGUI();
|
||||
|
||||
/** Check the status of all visible dialogs and disable or reenable
|
||||
* them as appropriate.
|
||||
*
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -82,12 +82,6 @@ Kernel::DocType Kernel::docType() const
|
||||
}
|
||||
|
||||
|
||||
void Kernel::redrawGUI() const
|
||||
{
|
||||
lyxview_.getDialogs().redrawGUI();
|
||||
}
|
||||
|
||||
|
||||
BufferView * Kernel::bufferview()
|
||||
{
|
||||
return lyxview_.view();
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user