PluginInfo::type added to copy constructor. But why is the copy constructor defined...
[ardour.git] / libs / ardour / enums.cc
index 32f195e2acff288ff2cdb9e648eebdbc35e65c44..78583c8ddfc51ff5a19dd3f6213c85a9e875bf08 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,8 @@ setup_enum_writer ()
        RegionPoint _RegionPoint;
        Placement _Placement;
        MonitorModel _MonitorModel;
+       RemoteModel _RemoteModel;
+       DenormalModel _DenormalModel;
        CrossfadeModel _CrossfadeModel;
        LayerModel _LayerModel;
        SoloModel _SoloModel;
@@ -59,6 +80,8 @@ setup_enum_writer ()
        Location::Flags _Location_Flags;
        RouteGroup::Flag _RouteGroup_Flag;
        Region::Flag _Region_Flag;
+       Region::PositionLockStyle _Region_PositionLockStyle;
+       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()
@@ -131,7 +154,6 @@ setup_enum_writer ()
        REGISTER_ENUM (SyncPoint);      
        REGISTER (_RegionPoint);
 
-
        REGISTER_ENUM (PreFader);
        REGISTER_ENUM (PostFader);
        REGISTER (_Placement);
@@ -141,6 +163,17 @@ setup_enum_writer ()
        REGISTER_ENUM (ExternalMonitoring);
        REGISTER (_MonitorModel);
 
+       REGISTER_ENUM (DenormalNone);
+       REGISTER_ENUM (DenormalFTZ);
+       REGISTER_ENUM (DenormalDAZ);
+       REGISTER_ENUM (DenormalFTZDAZ);
+       REGISTER (_DenormalModel);
+
+       REGISTER_ENUM (UserOrdered);
+       REGISTER_ENUM (MixerOrdered);
+       REGISTER_ENUM (EditorOrdered);
+       REGISTER (_RemoteModel);
+
        REGISTER_ENUM (FullCrossfade);
        REGISTER_ENUM (ShortCrossfade);
        REGISTER (_CrossfadeModel);
@@ -160,6 +193,7 @@ setup_enum_writer ()
 
        REGISTER_ENUM (FormatFloat);
        REGISTER_ENUM (FormatInt24);
+       REGISTER_ENUM (FormatInt16);
        REGISTER (_SampleFormat);
 
        REGISTER_ENUM (BWF);
@@ -198,6 +232,7 @@ setup_enum_writer ()
        REGISTER_CLASS_ENUM (Session::Event, SetDiskstreamSpeed);
        REGISTER_CLASS_ENUM (Session::Event, Locate);
        REGISTER_CLASS_ENUM (Session::Event, LocateRoll);
+       REGISTER_CLASS_ENUM (Session::Event, LocateRollLocate);
        REGISTER_CLASS_ENUM (Session::Event, SetLoop);
        REGISTER_CLASS_ENUM (Session::Event, PunchIn);
        REGISTER_CLASS_ENUM (Session::Event, PunchOut);
@@ -317,5 +352,14 @@ setup_enum_writer ()
        REGISTER_CLASS_ENUM (Region, Hidden);
        REGISTER_CLASS_ENUM (Region, DoNotSaveState);
        REGISTER_BITS (_Region_Flag);
+
+       REGISTER_CLASS_ENUM (Region, AudioTime);
+       REGISTER_CLASS_ENUM (Region, MusicTime);
+       REGISTER_BITS (_Region_PositionLockStyle);
+
+       REGISTER_CLASS_ENUM (Track, NoFreeze);
+       REGISTER_CLASS_ENUM (Track, Frozen);
+       REGISTER_CLASS_ENUM (Track, UnFrozen);
+       REGISTER (_Track_FreezeState);
        
 }