remember meter type with session
[ardour.git] / libs / ardour / ardour / session_event.h
index 27f778b8acef0c8dd855f7295fb0840e9b8f5efa..ccec43d909fc9790ca6895d43c3c194a95686b33 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2012 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.
+
+*/
+
 #ifndef __ardour_session_event_h__
 #define __ardour_session_event_h__
 
@@ -16,7 +35,8 @@ namespace ARDOUR {
 class Slave;
 class Region;
 
-struct SessionEvent {
+class SessionEvent {
+public:
        enum Type {
                SetTransportSpeed,
                SetTrackSpeed,
@@ -41,7 +61,8 @@ struct SessionEvent {
                /* only one of each of these events can be queued at any one time */
 
                StopOnce,
-               AutoLoop
+               AutoLoop,
+               AutoLoopDeclick,
        };
 
        enum Action {
@@ -69,6 +90,10 @@ struct SessionEvent {
                bool second_yes_or_no;
        };
 
+       union {
+               bool third_yes_or_no;
+       };
+
        /* 4 members to handle a multi-group event handled in RT context */
 
        typedef boost::function<void (SessionEvent*)> RTeventCallback;
@@ -83,7 +108,7 @@ struct SessionEvent {
 
        boost::shared_ptr<Region> region;
 
-       SessionEvent (Type t, Action a, framepos_t when, framepos_t where, double spd, bool yn = false, bool yn2 = false)
+    SessionEvent (Type t, Action a, framepos_t when, framepos_t where, double spd, bool yn = false, bool yn2 = false, bool yn3 = false)
                : type (t)
                , action (a)
                , action_frame (when)
@@ -91,6 +116,7 @@ struct SessionEvent {
                , speed (spd)
                , yes_or_no (yn)
                , second_yes_or_no (yn2)
+               , third_yes_or_no (yn3)
                , event_loop (0) {}
 
        void set_ptr (void* p) {