]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/control.h
Force c'tors and d'tors of classes with external symbols into the library
[libs/gui.git] / source / input / control.h
index 1d8c50a06bd84040dc17f50c155b1997a733c0c2..e5679639cf49eabefc9429c1fc83ab32618c60d8 100644 (file)
@@ -1,12 +1,5 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#ifndef MSP_GBASE_CONTROL_H_
-#define MSP_GBASE_CONTROL_H_
+#ifndef MSP_INPUT_CONTROL_H_
+#define MSP_INPUT_CONTROL_H_
 
 #include <string>
 #include <sigc++/signal.h>
@@ -62,7 +55,7 @@ protected:
        Control(const ControlSource &);
        Control(Device &, ControlSrcType, unsigned);
 public:
-       virtual ~Control() { }
+       virtual ~Control();
 
        void capture(Device &);
        void cancel_capture();
@@ -70,9 +63,9 @@ public:
        void set_source(const ControlSource &);
        const ControlSource &get_source() const { return src; }
 protected:
-       virtual void on_press() =0;
-       virtual void on_release() =0;
-       virtual void on_motion(float, float) =0;
+       virtual void on_press() = 0;
+       virtual void on_release() = 0;
+       virtual void on_motion(float, float) = 0;
 
 private:
        void connect_signals();