mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
ControlProtocol doesn't actually need any record of an event loop and doesn't need to connect to any signals itself
git-svn-id: svn://localhost/ardour2/branches/3.0@12063 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
19a197ecbc
commit
4bfdcc18bd
8 changed files with 24 additions and 55 deletions
|
|
@ -39,9 +39,9 @@ class Route;
|
|||
class Session;
|
||||
class Bundle;
|
||||
|
||||
class ControlProtocol : virtual public sigc::trackable, public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI {
|
||||
class ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI {
|
||||
public:
|
||||
ControlProtocol (Session&, std::string name, PBD::EventLoop* event_loop);
|
||||
ControlProtocol (Session&, std::string name);
|
||||
virtual ~ControlProtocol();
|
||||
|
||||
std::string name() const { return _name; }
|
||||
|
|
@ -52,8 +52,6 @@ class ControlProtocol : virtual public sigc::trackable, public PBD::Stateful, pu
|
|||
virtual int set_feedback (bool /*yn*/) { return 0; }
|
||||
virtual bool get_feedback () const { return false; }
|
||||
|
||||
virtual void route_list_changed () {}
|
||||
|
||||
virtual void midi_connectivity_established () {}
|
||||
|
||||
PBD::Signal0<void> ActiveChanged;
|
||||
|
|
@ -132,14 +130,10 @@ class ControlProtocol : virtual public sigc::trackable, public PBD::Stateful, pu
|
|||
virtual void tear_down_gui() { }
|
||||
|
||||
protected:
|
||||
PBD::EventLoop* _event_loop;
|
||||
bool _own_event_loop;
|
||||
std::vector<boost::shared_ptr<ARDOUR::Route> > route_table;
|
||||
std::string _name;
|
||||
bool _active;
|
||||
|
||||
void add_strip (std::list<boost::shared_ptr<ARDOUR::Route> >&);
|
||||
|
||||
void next_track (uint32_t initial_id);
|
||||
void prev_track (uint32_t initial_id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue