diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-08-20 00:29:46 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-20 21:09:30 +0200 |
commit | c834e88e9e394f24c1cd6bfe0e26d1e0ec2a17fc (patch) | |
tree | 33b77e5cd2ad9b41ef921053fc0c2b37b59c6e83 /gtk2_ardour/template_dialog.h | |
parent | bd4db1e15139df141144310199b73c77d701c4b2 (diff) |
Ask user whether to save or discard unsaved template descriptions
Diffstat (limited to 'gtk2_ardour/template_dialog.h')
-rw-r--r-- | gtk2_ardour/template_dialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<Gtk::ListStore> _template_model; + Gtk::TreeModel::const_iterator _current_selection; + Gtk::TreeView _template_treeview; Gtk::CellRendererText _validating_cellrenderer; Gtk::TreeView::Column _validated_column; |