Use double-click to show region properties

This commit is contained in:
Robin Gareus 2024-12-17 17:31:21 +01:00
parent 791e839639
commit 5d1b53a9e3
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 15 additions and 1 deletions

View file

@ -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);

View file

@ -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

View file

@ -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) {