Derive some functions from RecInfoBox::update() (in the derived classes)
For whatever reason, MSVC doesn't like us connecting so many signals to 'RecInfoBox::update()' (crashes the Debug build)
This commit is contained in:
parent
739ee688bf
commit
74670d2789
|
@ -168,6 +168,12 @@ DurationInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangl
|
||||||
_layout_value->show_in_cairo_context (cr);
|
_layout_value->show_in_cairo_context (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
DurationInfoBox::update ()
|
||||||
|
{
|
||||||
|
RecInfoBox::update ();
|
||||||
|
}
|
||||||
|
|
||||||
/* ****************************************************************************/
|
/* ****************************************************************************/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -246,6 +252,12 @@ XrunInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangle_t*
|
||||||
_layout_value->show_in_cairo_context (cr);
|
_layout_value->show_in_cairo_context (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
XrunInfoBox::update ()
|
||||||
|
{
|
||||||
|
RecInfoBox::update ();
|
||||||
|
}
|
||||||
|
|
||||||
/* ****************************************************************************/
|
/* ****************************************************************************/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -363,3 +375,9 @@ RemainInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangle_
|
||||||
cr->move_to (.5 * (ww - w), hh - 4 - h);
|
cr->move_to (.5 * (ww - w), hh - 4 - h);
|
||||||
_layout_value->show_in_cairo_context (cr);
|
_layout_value->show_in_cairo_context (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
RemainInfoBox::update ()
|
||||||
|
{
|
||||||
|
RecInfoBox::update ();
|
||||||
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
void dpi_reset ();
|
void dpi_reset ();
|
||||||
|
virtual void update ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void rec_state_changed ();
|
void rec_state_changed ();
|
||||||
|
@ -67,6 +68,7 @@ class XrunInfoBox : public RecInfoBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void set_session (ARDOUR::Session*);
|
virtual void set_session (ARDOUR::Session*);
|
||||||
|
virtual void update ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
|
@ -81,6 +83,8 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
void dpi_reset ();
|
void dpi_reset ();
|
||||||
|
virtual void update ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void count_recenabled_streams (ARDOUR::Route&);
|
void count_recenabled_streams (ARDOUR::Route&);
|
||||||
uint32_t _rec_enabled_streams;
|
uint32_t _rec_enabled_streams;
|
||||||
|
|
Loading…
Reference in New Issue