LMMS
Loading...
Searching...
No Matches
Control.h
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Control.h - Defines a variable that can be controled from a frontend
5
6 Copyright (C) 2009 Harald Hvaal
7 Author: Harald Hvaal
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of version 2 of the GNU General Public License
11 as published by the Free Software Foundation.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License (version 2 or later) for more details.
17
18 You should have received a copy of the GNU General Public License (version 2)
19 along with this program; if not, write to the Free Software Foundation,
20 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23#ifndef _CONTROL_H_
24#define _CONTROL_H_
25
26#include <string>
27
29{
30 public:
41 Control(Control *parent, string id);
42
48
53 void restoreFromXML(string xml);
54
60
65 virtual string getStringRepresentation() = 0;
66};
67
69{
70 public:
79 void setValue(float value, ControlUser *user = NULL);
80
84 virtual string getStringRepresentation();
85
86 float value();
87};
88
90{
91 public:
96 virtual void controlUpdated(Control *control) = 0;
97};
98
99#endif /* _CONTROL_H_ */
#define NULL
Definition CarlaBridgeFormat.cpp:30
Definition Control.h:29
string getXMLRepresentation()
void restoreFromXML(string xml)
virtual string getStringRepresentation()=0
void registerControlUser(ControlUser *user)
Control(Control *parent, string id)
Definition Control.h:90
virtual void controlUpdated(Control *control)=0
Definition Control.h:69
void setValue(float value, ControlUser *user=NULL)
virtual string getStringRepresentation()
float value()
static uintptr_t parent
Definition pugl.h:1644
float control
Definition lilv_test.c:1462