summaryrefslogtreecommitdiff
path: root/gtk2_ardour/location_ui.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/location_ui.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/location_ui.h')
-rw-r--r--gtk2_ardour/location_ui.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/location_ui.h b/gtk2_ardour/location_ui.h
index 76542804c2..3be45dc329 100644
--- a/gtk2_ardour/location_ui.h
+++ b/gtk2_ardour/location_ui.h
@@ -153,7 +153,7 @@ protected:
class LocationUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
{
public:
- LocationUI ();
+ LocationUI (std::string state_node_name = "LocationUI");
~LocationUI ();
void set_session (ARDOUR::Session *);
@@ -165,6 +165,7 @@ public:
void refresh_location_list ();
XMLNode & get_state () const;
+ int set_state (const XMLNode&);
private:
/** set to the location that has just been created with the LocationUI `add' button
@@ -209,7 +210,12 @@ private:
void map_locations (const ARDOUR::Locations::LocationList&);
ClockGroup* _clock_group;
- AudioClock::Mode clock_mode_from_session_instant_xml () const;
+ AudioClock::Mode clock_mode_from_session_instant_xml ();
+
+ AudioClock::Mode _mode;
+ bool _mode_set;
+
+ std::string _state_node_name;
};
class LocationUIWindow : public ArdourWindow