summaryrefslogtreecommitdiff
path: root/gtk2_ardour/template_dialog.h
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-07-12 17:34:22 +0200
committerRobin Gareus <robin@gareus.org>2017-07-15 11:37:15 +0200
commit0da2d7bf8af5e7cd0d15f4c1f8cbbd99a23cd186 (patch)
tree112b20b497fc7a650be1233f5fb80eb225135588 /gtk2_ardour/template_dialog.h
parent46501da2201e1d7284e8196fbc55fc36b07b37e0 (diff)
Inflate template archives rather in `.config/ardour5/` than in ...
`.config/ardour5/(templates|route_templates)`. We put as toplevel directory of the archive `templates` or `route_templates`. Then no matter if the user imports a session template or a route template archives, we always put them into the correct folder. As now the user can also import route templates while the SessionTemplateManager is visible and vice versa, we need to signal the successful import to the corresponding template manager. Therfor we introduce the signal TemplatesImported.
Diffstat (limited to 'gtk2_ardour/template_dialog.h')
-rw-r--r--gtk2_ardour/template_dialog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/template_dialog.h b/gtk2_ardour/template_dialog.h
index 470d5b92a5..0d1ba29e8c 100644
--- a/gtk2_ardour/template_dialog.h
+++ b/gtk2_ardour/template_dialog.h
@@ -37,7 +37,8 @@ namespace ARDOUR {
class XMLTree;
class XMLNode;
-class TemplateDialog : public ArdourDialog
+class TemplateDialog : public ArdourDialog,
+ public PBD::ScopedConnectionList
{
public:
TemplateDialog ();
@@ -51,6 +52,8 @@ public:
virtual ~TemplateManager () {}
virtual void init () = 0;
+ PBD::Signal0<void> TemplatesImported;
+
protected:
TemplateManager ();