13
0

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:
John Emmas 2021-02-26 13:02:51 +00:00
parent 739ee688bf
commit 74670d2789
2 changed files with 22 additions and 0 deletions

View File

@ -168,6 +168,12 @@ DurationInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangl
_layout_value->show_in_cairo_context (cr);
}
void
DurationInfoBox::update ()
{
RecInfoBox::update ();
}
/* ****************************************************************************/
void
@ -246,6 +252,12 @@ XrunInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangle_t*
_layout_value->show_in_cairo_context (cr);
}
void
XrunInfoBox::update ()
{
RecInfoBox::update ();
}
/* ****************************************************************************/
void
@ -363,3 +375,9 @@ RemainInfoBox::render (Cairo::RefPtr<Cairo::Context> const& cr, cairo_rectangle_
cr->move_to (.5 * (ww - w), hh - 4 - h);
_layout_value->show_in_cairo_context (cr);
}
void
RemainInfoBox::update ()
{
RecInfoBox::update ();
}

View File

@ -57,6 +57,7 @@ public:
protected:
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
void dpi_reset ();
virtual void update ();
private:
void rec_state_changed ();
@ -67,6 +68,7 @@ class XrunInfoBox : public RecInfoBox
{
public:
virtual void set_session (ARDOUR::Session*);
virtual void update ();
protected:
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
@ -81,6 +83,8 @@ public:
protected:
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
void dpi_reset ();
virtual void update ();
private:
void count_recenabled_streams (ARDOUR::Route&);
uint32_t _rec_enabled_streams;