diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-08 14:50:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-08 14:50:41 +0000 |
commit | b5e414415685acfbbbd0edf1933a2dc851fdcabd (patch) | |
tree | e11b49c7b92169b6c07abe9b4b32d4096cedb5a8 /libs/ardour/ardour/state_manager.h | |
parent | a6ab33815a7adee67b5222c05481be151c572793 (diff) |
fix control layout size allocation (nearly done) and make duplicate region even more useful for multiple selected regions
git-svn-id: svn://localhost/trunk/ardour2@250 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/state_manager.h')
-rw-r--r-- | libs/ardour/ardour/state_manager.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libs/ardour/ardour/state_manager.h b/libs/ardour/ardour/state_manager.h index 105ca38dcc..b64a47008c 100644 --- a/libs/ardour/ardour/state_manager.h +++ b/libs/ardour/ardour/state_manager.h @@ -3,7 +3,7 @@ #include <list> #include <string> -#include <vector> +#include <set> #include <sigc++/signal.h> @@ -13,7 +13,6 @@ namespace ARDOUR { typedef uint32_t state_id_t; - class StateManager : public sigc::trackable { public: @@ -36,13 +35,12 @@ class StateManager : public sigc::trackable state_id_t _current_state_id; - static void set_allow_save (bool); - static bool allow_save (); + static void prohibit_save (); + static void allow_save (const char* why, bool dosave); protected: static bool _allow_save; - typedef std::pair<StateManager*,std::string> DeferredSave; - static std::vector<DeferredSave> deferred; + static std::set<StateManager*> deferred; StateMap states; |