summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_locations.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-14 17:15:16 +0100
committerRobin Gareus <robin@gareus.org>2017-02-14 17:15:16 +0100
commit8eff36913c91bfd5731b6d1cdaa7f0250de7b6e6 (patch)
tree29beb51d602646ae9bed19563174aa2570d3292a /gtk2_ardour/editor_locations.h
parentcf66f894bb5f776b78d1a8b2301d72598f37999f (diff)
Save/restore location clock mode
- save mode separately for Editor-sidebar and Location Window - cache mode (multiple calls to set_session()) - fix restore: after creating the editor, instant_save() is called, potentially overwriting the previous value.
Diffstat (limited to 'gtk2_ardour/editor_locations.h')
-rw-r--r--gtk2_ardour/editor_locations.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_locations.h b/gtk2_ardour/editor_locations.h
index 36926bbec8..6ed6f8db50 100644
--- a/gtk2_ardour/editor_locations.h
+++ b/gtk2_ardour/editor_locations.h
@@ -20,6 +20,8 @@
#ifndef __gtk_ardour_editor_locations_h__
#define __gtk_ardour_editor_locations_h__
+#include "pbd/xml++.h"
+
#include <gtkmm/scrolledwindow.h>
#include "ardour/session_handle.h"
#include "editor_component.h"
@@ -38,6 +40,8 @@ class EditorLocations : public EditorComponent, public ARDOUR::SessionHandlePtr
void set_session (ARDOUR::Session *);
Gtk::Widget& widget ();
+ XMLNode & get_state () const;
+ int set_state (const XMLNode&);
private:
Gtk::ScrolledWindow _scroller;