change const some functions to const. (prepare lua bindings)
authorRobin Gareus <robin@gareus.org>
Fri, 8 Apr 2016 22:33:03 +0000 (00:33 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 8 Apr 2016 22:33:03 +0000 (00:33 +0200)
gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_ops.cc
gtk2_ardour/public_editor.h

index 1df263496becea7f0e765a57108c77e2dd4a2a28..9bf8af6aaaa7bc88d7bb036190c1d25fdda58538 100644 (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;
 
index 5778a3cbbbb40d64e9b9ab51727a1d008418de03..c8a2f817775bbd0d613ca13e691dfbbbeec247a5 100644 (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 ();
index 12a7f2ac91f4a58910b6bd32fb22d00cc6ef27a3..d5386523352fdb3f1da87a22f4f8324d8d95ae44 100644 (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;
index 519a714c79ce71969fe44b37d5dc7a7f3f34c282..1c997b53fad4e5bdd29e71c83a7597c5a94503e8 100644 (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;