Add a PianoKeyboard to GenericUI (on a MIDI track)
[ardour.git] / gtk2_ardour / midi_tracer.h
index 14234d6528a9a2b055ba5bad240283198dc15334..657f410c5d39a96ca1afa626faac50f564175cb6 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,13 +39,17 @@ namespace MIDI {
        class Parser;
 }
 
+namespace ARDOUR {
+       class MidiPort;
+}
+
 class MidiTracer : public ArdourWindow
 {
-  public:
+public:
        MidiTracer ();
        ~MidiTracer();
 
-  private:
+private:
        Gtk::TextView text;
        Gtk::ScrolledWindow scroller;
        Gtk::Adjustment line_count_adjustment;
@@ -53,7 +57,7 @@ class MidiTracer : public ArdourWindow
        Gtk::Label line_count_label;
        Gtk::HBox line_count_box;
        struct timeval _last_receipt;
-       
+
        bool autoscroll;
        bool show_hex;
        bool show_delta_time;
@@ -87,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__ */