Add EditingContext transient-parent

This is in preparation to allow EditNoteDialog, QuantizeDialog
etc to be on top of the Pianroll or Editor in question.
This commit is contained in:
Robin Gareus 2025-11-20 16:51:23 +01:00
parent f5d1792510
commit 768a6da017
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 6 additions and 0 deletions

View file

@ -158,6 +158,8 @@ class CueEditor : public EditingContext, public PBD::HistoryOwner
void load_bindings ();
void register_actions ();
Gtk::Window* transient_parent () { return dynamic_cast<Gtk::Window*> (contents().get_toplevel ()); }
/* The group containing all other groups that are scrolled vertically
and horizontally.
*/

View file

@ -529,6 +529,8 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider,
virtual void load_shared_bindings ();
virtual Gtk::Window* transient_parent () = 0;
Editing::GridType pre_internal_grid_type;
Editing::SnapMode pre_internal_snap_mode;
Editing::GridType internal_grid_type;

View file

@ -455,6 +455,8 @@ protected:
virtual void _commit_tempo_map_edit (Temporal::TempoMap::WritableSharedPtr&, bool with_update) = 0;
std::atomic<int> _suspend_route_redisplay_counter;
Gtk::Window* transient_parent () { return current_toplevel (); }
};
class DisplaySuspender {