connect_signals();
}
+void Control::set_source(Device &d, ControlSrcType t, unsigned i)
+{
+ set_source(ControlSource(d, t, i));
+}
+
+void Control::set_source(const ControlSource &s)
+{
+ notify_callbacks();
+ src=s;
+ connect_signals();
+}
+
void Control::connect_signals()
{
switch(src.type)
void capture(Device &);
void cancel_capture();
+ void set_source(Device &, ControlSrcType, unsigned);
+ void set_source(const ControlSource &);
const ControlSource &get_source() const { return src; }
protected:
virtual void on_press() =0;