Fix thinko in dd3f922788
[ardour.git] / gtk2_ardour / selection.h
index daa81ab1d694d56c6fc822f1cf41c29d7435d14a..307a148c85be528871e29c1560aa8a98b2ba440c 100644 (file)
@@ -90,7 +90,7 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        /** only used when this class is used as a cut buffer */
        MidiNoteSelection    midi_notes;
 
-       Selection (PublicEditor const * e);
+       Selection (PublicEditor const * e, bool manage_libardour_selection);
 
        // Selection& operator= (const Selection& other);
 
@@ -113,10 +113,10 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
 
        void dump_region_layers();
 
-       bool selected (TimeAxisView*);
-       bool selected (RegionView*);
-       bool selected (ArdourMarker*);
-       bool selected (ControlPoint*);
+       bool selected (TimeAxisView*) const;
+       bool selected (RegionView*) const;
+       bool selected (ArdourMarker*) const;
+       bool selected (ControlPoint*) const;
 
        void set (std::list<Selectable*> const &);
        void add (std::list<Selectable*> const &);
@@ -225,9 +225,14 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
 
        std::list<std::pair<PBD::ID const, std::list<Evoral::event_id_t> > > pending_midi_note_selection;
 
+       void core_selection_changed (PBD::PropertyChange const & pc);
+
   private:
        PublicEditor const * editor;
        uint32_t next_time_id;
+       bool     manage_libardour_selection;
+
+       TrackViewList add_grouped_tracks (TrackViewList const & t);
 };
 
 bool operator==(const Selection& a, const Selection& b);