- void remove (jack_nframes_t, jack_nframes_t);
- void remove (ARDOUR::AutomationList*);
- void remove (ARDOUR::Playlist*);
- void remove (const list<ARDOUR::Playlist*>&);
- void remove (ARDOUR::Redirect*);
-
- void replace (uint32_t time_index, jack_nframes_t start, jack_nframes_t end);
-
- void clear_audio_regions();
- void clear_tracks ();
- void clear_time();
- void clear_lines ();
- void clear_playlists ();
- void clear_redirects ();
- void clear_points ();
-
- void foreach_audio_region (void (ARDOUR::AudioRegion::*method)(void));
- void foreach_audio_region (void (ARDOUR::Region::*method)(void));
- template<class A> void foreach_audio_region (void (ARDOUR::AudioRegion::*method)(A), A arg);
- template<class A> void foreach_audio_region (void (ARDOUR::Region::*method)(A), A arg);
-
- private:
+ void remove (framepos_t, framepos_t);
+ void remove (boost::shared_ptr<ARDOUR::AutomationList>);
+ void remove (boost::shared_ptr<ARDOUR::Playlist>);
+ void remove (const std::list<boost::shared_ptr<ARDOUR::Playlist> >&);
+ void remove (const std::list<Selectable*>&);
+ void remove (ArdourMarker*);
+ void remove (ControlPoint *);
+
+ void remove_regions (TimeAxisView *);
+
+ void move_time (framecnt_t);
+
+ void replace (uint32_t time_index, framepos_t start, framepos_t end);
+
+ /*
+ * A note about items in an editing Selection:
+ * At a high level, selections can include Tracks, Objects, or Time Ranges
+ * Range and Object selections are mutually exclusive.
+ * Selecting a Range will deselect all Objects, and vice versa.
+ * This is done to avoid confusion over what will happen in an operation such as Delete
+ * Tracks are somewhat orthogonal b/c editing operations don't apply to tracks.
+ * The Track selection isn't affected when ranges or objects are added.
+ */
+
+ void clear_all() { clear_time(); clear_tracks(); clear_objects(); }
+
+ void clear_time(bool with_signal = true); //clears any time selection ( i.e. Range )
+ void clear_tracks (bool with_signal = true); //clears the track header selections
+ void clear_objects(bool with_signal = true); //clears the items listed below
+
+ // these items get cleared wholesale in clear_objects
+ void clear_regions(bool with_signal = true);
+ void clear_lines (bool with_signal = true);
+ void clear_playlists (bool with_signal = true);
+ void clear_points (bool with_signal = true);
+ void clear_markers (bool with_signal = true);
+ void clear_midi_notes (bool with_signal = true);
+ void clear_midi_regions (bool with_signal = true);
+
+ void foreach_region (void (ARDOUR::Region::*method)(void));
+ void foreach_regionview (void (RegionView::*method)(void));
+ void foreach_midi_regionview (void (MidiRegionView::*method)(void));
+ template<class A> void foreach_region (void (ARDOUR::Region::*method)(A), A arg);
+
+ XMLNode& get_state () const;
+ int set_state (XMLNode const &, int);
+
+ 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;