summaryrefslogtreecommitdiff
path: root/plugingui/widget.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-09-03 15:54:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-09-03 15:54:10 +0200
commit1b5859154efb69e212f4d627e761fbed76c50aa3 (patch)
tree17cbb3bd1bf01711845b67d7ed8d9c81a60f825c /plugingui/widget.h
parent36faa43c90023297377d56662d310743d93b938f (diff)
Introduce new Notifier and use it in the Knob class.
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r--plugingui/widget.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugingui/widget.h b/plugingui/widget.h
index 47c374e..13725f0 100644
--- a/plugingui/widget.h
+++ b/plugingui/widget.h
@@ -24,11 +24,11 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_WIDGET_H__
-#define __DRUMGIZMO_WIDGET_H__
+#pragma once
#include "guievent.h"
#include "pixelbuffer.h"
+#include "notifier.h"
#include <vector>
@@ -36,7 +36,7 @@ namespace GUI {
class Window;
-class Widget {
+class Widget : public Listener {
public:
Widget(Widget *parent);
virtual ~Widget();
@@ -94,6 +94,4 @@ private:
bool _visible;
};
-};
-
-#endif/*__DRUMGIZMO_WIDGET_H__*/
+} // GUI::