diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-07-06 07:31:12 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-12 16:15:03 +0200 |
commit | b3407f16656f2367f5972b6b31170b297bbd689b (patch) | |
tree | a823f573735f76c8f33442db0e6ed63422c75929 /gtk2_ardour/template_dialog.h | |
parent | a5ba520f758b5be2a71f8a8a375ccc99ebe4b2f2 (diff) |
Adjust template names inside template files
This concernes:
* LV2 states:
LV2 states are stored in the template directories and their paths are stored
int the template files using absolute paths. Therefore we have to adjust the
template-dir property of every lv2 node referring to a state dir.
* Names of route templates.
The name of the route template is stored in the first child of the xml root
node in the property `name`. This needs to be adjusted when renaming the
template.
By now we rely on that only lv2 states and the route template name need to be
adjusted on renaming a template.
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 2e7f2e454a..da673826da 100644 --- a/gtk2_ardour/template_dialog.h +++ b/gtk2_ardour/template_dialog.h @@ -32,6 +32,8 @@ namespace ARDOUR { struct TemplateInfo; } +class XMLNode; + class TemplateDialog : public ArdourDialog { public: @@ -60,6 +62,8 @@ protected: virtual void rename_template (Gtk::TreeModel::iterator& item, const Glib::ustring& new_name) = 0; virtual void delete_selected_template () = 0; + bool adjust_plugin_paths (XMLNode* node, const std::string& name, const std::string& new_name) const; + struct SessionTemplateColumns : public Gtk::TreeModel::ColumnRecord { SessionTemplateColumns () { add (name); |