change const some functions to const. (prepare lua bindings)

This commit is contained in:
Robin Gareus 2016-04-09 00:33:03 +02:00
parent 024cf58c05
commit ec0ec95262
4 changed files with 5 additions and 4 deletions

View File

@ -4898,7 +4898,7 @@ Editor::get_regions_from_selection_and_mouse (framepos_t pos)
*/
RegionSelection
Editor::get_regions_from_selection_and_entered ()
Editor::get_regions_from_selection_and_entered () const
{
RegionSelection regions = selection->regions;

View File

@ -246,7 +246,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
/* selection */
Selection& get_selection() const { return *selection; }
bool get_selection_extents ( framepos_t &start, framepos_t &end ); // the time extents of the current selection, whether Range, Region(s), Control Points, or Notes
bool get_selection_extents (framepos_t &start, framepos_t &end) const; // the time extents of the current selection, whether Range, Region(s), Control Points, or Notes
Selection& get_cut_buffer() const { return *cut_buffer; }
void track_mixer_selection ();
@ -2117,7 +2117,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void get_regions_after (RegionSelection&, framepos_t where, const TrackViewList& ts) const;
RegionSelection get_regions_from_selection_and_edit_point ();
RegionSelection get_regions_from_selection_and_entered ();
RegionSelection get_regions_from_selection_and_entered () const;
void start_updating_meters ();
void stop_updating_meters ();

View File

@ -1921,7 +1921,7 @@ Editor::temporal_zoom_region (bool both_axes)
bool
Editor::get_selection_extents ( framepos_t &start, framepos_t &end )
Editor::get_selection_extents (framepos_t &start, framepos_t &end) const
{
start = max_framepos;
end = 0;

View File

@ -198,6 +198,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
virtual double sample_to_pixel (framepos_t frame) const = 0;
virtual double sample_to_pixel_unrounded (framepos_t frame) const = 0;
virtual Selection& get_selection () const = 0;
virtual bool get_selection_extents (framepos_t &start, framepos_t &end) const = 0;
virtual Selection& get_cut_buffer () const = 0;
virtual void track_mixer_selection () = 0;
virtual bool extend_selection_to_track (TimeAxisView&) = 0;