diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-07 00:35:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-07 00:35:07 +0000 |
commit | c36c7f4b94e4cce75120ae322c0a697c9c494275 (patch) | |
tree | b019f0aa8eeb7ffb5545b17a54ad8e8f041074fc /libs/ardour/ardour/profile.h | |
parent | 2dd0b9321c87838e9f2276c02f5942daac2b836e (diff) |
add new profile object, use it to remove certain horizontal elements from GUI if screen is narrow; make verbose canvas cursor use primary clock mode if secondary clock is not visible
git-svn-id: svn://localhost/ardour2/trunk@1676 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/profile.h')
-rw-r--r-- | libs/ardour/ardour/profile.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libs/ardour/ardour/profile.h b/libs/ardour/ardour/profile.h new file mode 100644 index 0000000000..2ee47d39ea --- /dev/null +++ b/libs/ardour/ardour/profile.h @@ -0,0 +1,31 @@ +#ifndef __ardour_profile_h__ +#define __ardour_profile_h__ + +#include <boost/dynamic_bitset.hpp> +#include <stdint.h> + +namespace ARDOUR { + +class RuntimeProfile { + public: + enum Element { + SmallScreen, + LastElement + }; + + RuntimeProfile() { bits.resize (LastElement); } + ~RuntimeProfile() {} + + void set_small_screen() { bits[SmallScreen] = true; } + bool get_small_screen() const { return bits[SmallScreen]; } + + private: + boost::dynamic_bitset<uint64_t> bits; + +}; + +extern RuntimeProfile* Profile; + +}; // namespace ARDOUR + +#endif /* __ardour_profile_h__ */ |