automation line: add dump() method to inspect GUI control points
This commit is contained in:
parent
8c6fa19bcf
commit
3d96a318ac
@ -1398,6 +1398,18 @@ AutomationLine::add_visible_control_point (uint32_t view_index, uint32_t pi, dou
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AutomationLine::dump (std::ostream& ostr) const
|
||||
{
|
||||
for (auto const & cp : control_points) {
|
||||
if (cp->model() != alist->end()) {
|
||||
ostr << '#' << cp->view_index() << " @ " << cp->get_x() << ", " << cp->get_y() << " for " << (*cp->model())->value << " @ " << (*(cp->model()))->when << std::endl;
|
||||
} else {
|
||||
ostr << "dead point\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AutomationLine::connect_to_list ()
|
||||
{
|
||||
|
@ -165,6 +165,7 @@ public:
|
||||
void set_width (Temporal::timecnt_t const &);
|
||||
|
||||
Temporal::timepos_t session_position (Temporal::timepos_t const &) const;
|
||||
void dump (std::ostream&) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user