mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-05 22:34:56 +01:00
Use double-click to show region properties
This commit is contained in:
parent
791e839639
commit
5d1b53a9e3
3 changed files with 15 additions and 1 deletions
|
|
@ -5806,6 +5806,10 @@ SelectionDrag::finished (GdkEvent* event, bool movement_occurred)
|
|||
/* just a click, no pointer movement.
|
||||
*/
|
||||
|
||||
if (was_double_click ()) {
|
||||
// TODO - show editor property pane (time selection) ?
|
||||
}
|
||||
|
||||
if (_operation == SelectionExtend) {
|
||||
if (_time_selection_at_start) {
|
||||
timepos_t pos = adjusted_current_time (event, false);
|
||||
|
|
|
|||
|
|
@ -1909,7 +1909,12 @@ Editor::edit_control_point (ArdourCanvas::Item* item)
|
|||
void
|
||||
Editor::edit_region (RegionView* rv)
|
||||
{
|
||||
rv->show_region_editor ();
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-props"));
|
||||
if (tact->get_active ()) {
|
||||
rv->show_region_editor ();
|
||||
}
|
||||
tact->set_active (true);
|
||||
// TODO _properties_box->lock/show_region (rv->region ())
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -451,6 +451,11 @@ TimeAxisView::controls_ebox_button_press (GdkEventButton* event)
|
|||
}
|
||||
}
|
||||
|
||||
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) {
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-props"));
|
||||
tact->set_active (true);
|
||||
}
|
||||
|
||||
_ebox_release_can_act = true;
|
||||
|
||||
if (maybe_set_cursor (event->y) > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue