MCP: zoom button toggles led
[ardour.git] / libs / surfaces / mackie / pot.h
1 #ifndef __ardour_mackie_control_protocol_pot_h__
2 #define __ardour_mackie_control_protocol_pot_h__
3
4 #include "controls.h"
5 #include "ledring.h"
6
7 namespace Mackie {
8
9 class Pot : public Control
10 {
11 public:
12         Pot (int id, int ordinal, std::string name, Group & group)
13                 : Control (id, ordinal, name, group)
14                 , _led_ring (id, ordinal, name + "_ring", group) {}
15
16         virtual type_t type() const { return type_pot; }
17
18         virtual const LedRing & led_ring() const {return _led_ring; }
19
20         static Control* factory (Surface&, int id, int ordinal, const char*, Group&);
21
22 private:
23         LedRing _led_ring;
24 };
25
26 }
27
28 #endif /* __ardour_mackie_control_protocol_pot_h__ */