the useless commit: add copyright messages to all(?) files that need it
[ardour.git] / libs / ardour / enums.cc
index 32f195e2acff288ff2cdb9e648eebdbc35e65c44..345fbe771dbe8b4daaae55003d4da98243bd7ddf 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2000-2007 Paul Davis 
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
 #include <pbd/enumwriter.h>
 
 #include <ardour/types.h>
@@ -8,6 +27,7 @@
 #include <ardour/audioregion.h>
 #include <ardour/route_group.h>
 #include <ardour/panner.h>
+#include <ardour/track.h>
 
 using namespace std;
 using namespace PBD;
@@ -20,7 +40,6 @@ setup_enum_writer ()
        vector<int> i;
        vector<string> s;
 
-
        OverlapType _OverlapType;
        AlignStyle _AlignStyle;
        MeterPoint _MeterPoint;
@@ -31,6 +50,7 @@ setup_enum_writer ()
        RegionPoint _RegionPoint;
        Placement _Placement;
        MonitorModel _MonitorModel;
+       RemoteModel _RemoteModel;
        CrossfadeModel _CrossfadeModel;
        LayerModel _LayerModel;
        SoloModel _SoloModel;
@@ -59,6 +79,7 @@ setup_enum_writer ()
        Location::Flags _Location_Flags;
        RouteGroup::Flag _RouteGroup_Flag;
        Region::Flag _Region_Flag;
+       Track::FreezeState _Track_FreezeState;
 
 #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()
@@ -141,6 +162,11 @@ setup_enum_writer ()
        REGISTER_ENUM (ExternalMonitoring);
        REGISTER (_MonitorModel);
 
+       REGISTER_ENUM (UserOrdered);
+       REGISTER_ENUM (MixerOrdered);
+       REGISTER_ENUM (EditorOrdered);
+       REGISTER (_RemoteModel);
+
        REGISTER_ENUM (FullCrossfade);
        REGISTER_ENUM (ShortCrossfade);
        REGISTER (_CrossfadeModel);
@@ -317,5 +343,10 @@ setup_enum_writer ()
        REGISTER_CLASS_ENUM (Region, Hidden);
        REGISTER_CLASS_ENUM (Region, DoNotSaveState);
        REGISTER_BITS (_Region_Flag);
+
+       REGISTER_CLASS_ENUM (Track, NoFreeze);
+       REGISTER_CLASS_ENUM (Track, Frozen);
+       REGISTER_CLASS_ENUM (Track, UnFrozen);
+       REGISTER (_Track_FreezeState);
        
 }