mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
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:
parent
f5d1792510
commit
768a6da017
3 changed files with 6 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue