From c834e88e9e394f24c1cd6bfe0e26d1e0ec2a17fc Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sun, 20 Aug 2017 00:29:46 +0200 Subject: Ask user whether to save or discard unsaved template descriptions --- gtk2_ardour/template_dialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk2_ardour/template_dialog.h') diff --git a/gtk2_ardour/template_dialog.h b/gtk2_ardour/template_dialog.h index d80ff366d9..2d219dc252 100644 --- a/gtk2_ardour/template_dialog.h +++ b/gtk2_ardour/template_dialog.h @@ -49,6 +49,7 @@ public: class TemplateManager : public Gtk::HBox, public ProgressReporter { + friend class TemplateDialog; public: virtual ~TemplateManager () {} virtual void init () = 0; @@ -72,6 +73,7 @@ protected: virtual void rename_template (Gtk::TreeModel::iterator& item, const Glib::ustring& new_name) = 0; virtual void delete_selected_template () = 0; + void handle_dirty_description (); virtual void save_template_desc (); void export_all_templates (); @@ -99,6 +101,8 @@ protected: SessionTemplateColumns _template_columns; Glib::RefPtr _template_model; + Gtk::TreeModel::const_iterator _current_selection; + Gtk::TreeView _template_treeview; Gtk::CellRendererText _validating_cellrenderer; Gtk::TreeView::Column _validated_column; -- cgit v1.2.3