move assignments out of assert() in editor_drag (thanks lincoln); change mouse mode...
[ardour.git] / gtk2_ardour / canvas-sysex.cc
index f054379743136df1d05a4ad80bff44422ce639b5..db93b61050957c1e9d8f2c98a0ec4bdd7f9de7e2 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2009 Paul Davis
+    Author: Hans Baier
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
 #include <iostream>
 
 #include "ardour_ui.h"
 using namespace Gnome::Canvas;
 using namespace std;
 
-template<typename Time>
-CanvasSysEx<Time>::CanvasSysEx(
-               MidiRegionView&                       region,
-               Group&                                parent,
-               string&                               text,
-               double                                height,
-               double                                x,
-               double                                y,
-               boost::shared_ptr<Evoral::MIDIEvent<Time> > event
-               )
+CanvasSysEx::CanvasSysEx(
+               MidiRegionView& region,
+               Group&          parent,
+               string&         text,
+               double          height,
+               double          x,
+               double          y)
        : CanvasFlag(
                        region, 
                        parent, 
@@ -24,20 +40,17 @@ CanvasSysEx<Time>::CanvasSysEx(
                        ARDOUR_UI::config()->canvasvar_MidiSysExOutline.get(), 
                        ARDOUR_UI::config()->canvasvar_MidiSysExFill.get(),
                        x,
-                       y
-               )
+                       y)
 {
        set_text(text);
 }
 
-template<typename Time>
-CanvasSysEx<Time>::~CanvasSysEx()
+CanvasSysEx::~CanvasSysEx()
 {
 }
 
-template<typename Time>
 bool
-CanvasSysEx<Time>::on_event(GdkEvent* ev)
+CanvasSysEx::on_event(GdkEvent* ev)
 {
        switch (ev->type) {
        case GDK_BUTTON_PRESS:
@@ -61,4 +74,3 @@ CanvasSysEx<Time>::on_event(GdkEvent* ev)
        return false;
 }
 
-template class CanvasSysEx<nframes_t>;