One fix.
[ardour.git] / gtk2_ardour / midi_tracer.h
index f71deab8a02a99a758e3ce17191384eccf353646..e0e3f01dc904afb3bf88d2674f97d2d2c8e16dea 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Paul Davis 
+    Copyright (C) 2012 Paul Davis
 
     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
@@ -39,6 +39,10 @@ namespace MIDI {
        class Parser;
 }
 
+namespace ARDOUR {
+       class MidiPort;
+}
+
 class MidiTracer : public ArdourWindow
 {
   public:
@@ -46,7 +50,6 @@ class MidiTracer : public ArdourWindow
        ~MidiTracer();
 
   private:
-       MIDI::Parser* parser;
        Gtk::TextView text;
        Gtk::ScrolledWindow scroller;
        Gtk::Adjustment line_count_adjustment;
@@ -54,10 +57,9 @@ class MidiTracer : public ArdourWindow
        Gtk::Label line_count_label;
        Gtk::HBox line_count_box;
        struct timeval _last_receipt;
-       
+
        bool autoscroll;
        bool show_hex;
-       bool collect;
        bool show_delta_time;
 
        /** Incremented when an update is requested, decremented when one is handled; hence
@@ -89,6 +91,8 @@ class MidiTracer : public ArdourWindow
        void disconnect ();
        PBD::ScopedConnection _parser_connection;
        PBD::ScopedConnection _manager_connection;
+
+       boost::shared_ptr<ARDOUR::MidiPort> traced_port;
 };
 
 #endif /* __ardour_gtk_midi_tracer_h__ */