skip LV2 ports on GUI according to port-properties: notOnGUI and reportsLatency
[ardour.git] / gtk2_ardour / canvas-note-event.h
index 526739848822ae300fc7035e19ef026d5d74b291..bf98e2b7cb9e408da2aec284f61aaa74f3219caa 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 2007 Paul Davis
-    Author: Dave Robillard
+    Author: David Robillard
 
     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
@@ -89,16 +89,16 @@ class CanvasNoteEvent : virtual public sigc::trackable
        /** Channel selection changed */
        void on_channel_selection_change(uint16_t selection);
 
-       void show_channel_selector();
-       void hide_channel_selector();
-
        virtual void set_outline_color(uint32_t c) = 0;
        virtual void set_fill_color(uint32_t c) = 0;
 
-       virtual double x1() = 0;
-       virtual double y1() = 0;
-       virtual double x2() = 0;
-       virtual double y2() = 0;
+       virtual double x1() const = 0;
+       virtual double y1() const = 0;
+       virtual double x2() const = 0;
+       virtual double y2() const = 0;
+
+        float mouse_x_fraction() const { return _mouse_x_fraction; }
+        float mouse_y_fraction() const { return _mouse_y_fraction; }
 
        const boost::shared_ptr<NoteType> note() const { return _note; }
        MidiRegionView& region_view() const { return _region; }
@@ -140,22 +140,22 @@ class CanvasNoteEvent : virtual public sigc::trackable
        static const uint32_t midi_channel_colors[16];
 
         bool mouse_near_ends () const;
-  
+        bool big_enough_to_trim () const;
+
   protected:
        enum State { None, Pressed, Dragging };
 
        MidiRegionView&                   _region;
        Item* const                       _item;
        NoEventText*                      _text;
-       Widget*                           _channel_selector_widget;
        State                             _state;
        const boost::shared_ptr<NoteType> _note;
-       bool                              _own_note;
        bool                              _selected;
        bool                              _valid;
         float                             _mouse_x_fraction;
         float                             _mouse_y_fraction;
-        
+       uint16_t                          _channel_selection;
+
         void set_mouse_fractions (GdkEvent*);
 };