move automation show/hide methods into public access

Note that they are still intended to be called via a specific mechanism from Editor, not
directly.

Also remove unnecessary duplicate virtual decls
This commit is contained in:
Paul Davis 2020-04-03 13:22:43 -06:00
parent 71ab4614f8
commit e954303fec
4 changed files with 16 additions and 15 deletions

View File

@ -83,6 +83,10 @@ public:
void first_idle ();
void show_all_automation (bool apply_to_selection = false);
void show_existing_automation (bool apply_to_selection = false);
void hide_all_automation (bool apply_to_selection = false);
private:
friend class AudioStreamView;
friend class AudioRegionView;
@ -93,9 +97,6 @@ private:
Gtk::Menu* build_mode_menu();
void build_automation_action_menu (bool);
void show_all_automation (bool apply_to_selection = false);
void show_existing_automation (bool apply_to_selection = false);
void hide_all_automation (bool apply_to_selection = false);
void hide ();

View File

@ -149,6 +149,10 @@ public:
std::string state_id() const;
void show_all_automation (bool apply_to_selection = false);
void show_existing_automation (bool apply_to_selection = false);
void hide_all_automation (bool apply_to_selection = false);
protected:
friend class StreamView;
@ -230,10 +234,6 @@ protected:
bool automation_click (GdkEventButton *);
virtual void show_all_automation (bool apply_to_selection = false);
virtual void show_existing_automation (bool apply_to_selection = false);
virtual void hide_all_automation (bool apply_to_selection = false);
void timestretch (samplepos_t start, samplepos_t end);
void speed_changed ();
void map_frozen ();

View File

@ -40,6 +40,10 @@ public:
void request_redraw ();
virtual void show_all_automation (bool apply_to_selection = false);
virtual void show_existing_automation (bool apply_to_selection = false);
virtual void hide_all_automation (bool apply_to_selection = false);
protected:
void reset_samples_per_pixel ();
virtual void set_samples_per_pixel (double);
@ -55,10 +59,6 @@ protected:
void update_trim_track_visibility ();
void update_mute_track_visibility ();
virtual void show_all_automation (bool apply_to_selection = false);
virtual void show_existing_automation (bool apply_to_selection = false);
virtual void hide_all_automation (bool apply_to_selection = false);
boost::shared_ptr<ARDOUR::Stripable> _stripable;
boost::shared_ptr<AutomationTimeAxisView> gain_track;

View File

@ -56,6 +56,10 @@ public:
bool marked_for_display () const;
bool set_marked_for_display (bool);
void show_all_automation (bool apply_to_selection = false);
void show_existing_automation (bool apply_to_selection = false);
void hide_all_automation (bool apply_to_selection = false);
protected:
boost::shared_ptr<ARDOUR::VCA> _vca;
ArdourWidgets::ArdourButton solo_button;
@ -70,10 +74,6 @@ protected:
void create_trim_automation_child (const Evoral::Parameter &, bool) {}
void create_mute_automation_child (const Evoral::Parameter &, bool);
virtual void show_all_automation (bool apply_to_selection = false);
virtual void show_existing_automation (bool apply_to_selection = false);
virtual void hide_all_automation (bool apply_to_selection = false);
void create_automation_child (const Evoral::Parameter& param, bool show);
virtual void build_automation_action_menu (bool);
void build_display_menu ();