add RouteTimeAxis::toggle_layer_display()
This commit is contained in:
parent
1c53e73599
commit
d1e55ff5b7
@ -2324,6 +2324,28 @@ RouteTimeAxisView::blink_rec_display (bool onoff)
|
||||
RouteUI::blink_rec_display (onoff);
|
||||
}
|
||||
|
||||
void
|
||||
RouteTimeAxisView::toggle_layer_display ()
|
||||
{
|
||||
/* this is a bit of a hack, but we implement toggle via the menu items,
|
||||
in order to keep them in sync with the visual state.
|
||||
*/
|
||||
|
||||
if (!is_track()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!display_menu) {
|
||||
build_display_menu ();
|
||||
}
|
||||
|
||||
if (dynamic_cast<RadioMenuItem*>(overlaid_menu_item)->get_active()) {
|
||||
dynamic_cast<RadioMenuItem*>(stacked_menu_item)->set_active (true);
|
||||
} else {
|
||||
dynamic_cast<RadioMenuItem*>(overlaid_menu_item)->set_active (true);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RouteTimeAxisView::set_layer_display (LayerDisplay d, bool apply_to_selection)
|
||||
{
|
||||
|
@ -103,6 +103,7 @@ public:
|
||||
void get_selectables (ARDOUR::samplepos_t start, ARDOUR::samplepos_t end, double top, double bot, std::list<Selectable *>&, bool within = false);
|
||||
void get_inverted_selectables (Selection&, std::list<Selectable*>&);
|
||||
void set_layer_display (LayerDisplay d, bool apply_to_selection = false);
|
||||
void toggle_layer_display ();
|
||||
LayerDisplay layer_display () const;
|
||||
|
||||
boost::shared_ptr<ARDOUR::Region> find_next_region (samplepos_t pos, ARDOUR::RegionPoint, int32_t dir);
|
||||
|
Loading…
Reference in New Issue
Block a user