- 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_regions();
- void clear_tracks ();
- void clear_time();
- void clear_lines ();
- void clear_playlists ();
- void clear_redirects ();
- void clear_points ();
+ 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);