-class Fader : public Control
-{
-public:
- Fader (int id, int ordinal, std::string name, Group & group)
- : Control (id, ordinal, name, group)
- {
- }
-
- virtual type_t type() const { return type_fader; }
-
- static Control* factory (Surface&, int id, int ordinal, const char*, Group&);
-};
-
-class Led : public Control
-{
-public:
- Led (int id, int ordinal, std::string name, Group & group)
- : Control (id, ordinal, name, group)
- {
- }
-
- virtual const Led & led() const { return *this; }
-
- virtual type_t type() const { return type_led; }
-
- static Control* factory (Surface&, int id, int ordinal, const char*, Group&);
-};
-
-class Button : public Control
-{
-public:
- Button (int id, int ordinal, std::string name, Group & group)
- : Control (id, ordinal, name, group)
- , _led (id, ordinal, name + "_led", group) {}
-
- virtual const Led & led() const { return _led; }
-
- virtual type_t type() const { return type_button; };
-
- static Control* factory (Surface&, int id, int ordinal, const char*, Group&);
-
-private:
- Led _led;
-};
-
-class LedRing : public Led
-{
-public:
- LedRing (int id, int ordinal, std::string name, Group & group)
- : Led (id, ordinal, name, group)
- {
- }
-
- virtual type_t type() const { return type_led_ring; }
-};
-
-class Pot : public Control
-{
-public:
- Pot (int id, int ordinal, std::string name, Group & group)
- : Control (id, ordinal, name, group)
- , _led_ring (id, ordinal, name + "_ring", group) {}
-
- virtual type_t type() const { return type_pot; }