13
0
livetrax/gtk2_ardour/enums.cc
Paul Davis caa89c121d missing file for : fix startup order (ARDOUR::init() vs. AudioEngine creation); start work on clock state saving
git-svn-id: svn://localhost/ardour2/trunk@1282 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-01-07 22:11:02 +00:00

30 lines
832 B
C++

#include <pbd/enumwriter.h>
#include "audio_clock.h"
using namespace std;
using namespace PBD;
using namespace ARDOUR;
void
setup_gtk_ardour_enums ()
{
EnumWriter& enum_writer (EnumWriter::instance());
vector<int> i;
vector<string> s;
AudioClock::Mode clock_mode;
#define REGISTER(e) enum_writer.register_distinct (typeid(e).name(), i, s); i.clear(); s.clear()
#define REGISTER_BITS(e) enum_writer.register_bits (typeid(e).name(), i, s); i.clear(); s.clear()
#define REGISTER_ENUM(e) i.push_back (e); s.push_back (#e)
#define REGISTER_CLASS_ENUM(t,e) i.push_back (t::e); s.push_back (#e)
REGISTER_CLASS_ENUM (AudioClock, SMPTE);
REGISTER_CLASS_ENUM (AudioClock, BBT);
REGISTER_CLASS_ENUM (AudioClock, MinSec);
REGISTER_CLASS_ENUM (AudioClock, Frames);
REGISTER_CLASS_ENUM (AudioClock, Off);
REGISTER (clock_mode);
}