From 1b5859154efb69e212f4d627e761fbed76c50aa3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 3 Sep 2015 15:54:10 +0200 Subject: Introduce new Notifier and use it in the Knob class. --- plugingui/widget.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugingui/widget.h') 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 @@ -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:: -- cgit v1.2.3