85bed3fbc46ab3f6bf5f4e2f8c813d7458fd3c7a
[ardour.git] / gtk2_ardour / luasignal_syms.h
1 /*
2  * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18
19 // editor
20 #if 0
21 STATIC(SessionLoad, &, 0)
22 STATIC(SessionClose, &, 0)
23 #endif
24 //STATIC(EverySecond, get_timers().second, 0) // XXX
25 STATIC(ConfigChanged, &ARDOUR::Config->ParameterChanged, 1)
26
27 // engine instance
28 ENGINE(EngineRunning, Running, 0)
29 ENGINE(EngineStopped, Stopped, 0)
30 ENGINE(EngineHalted, Halted, 1)
31 ENGINE(EngineDeviceListChanged, DeviceListChanged, 0)
32 ENGINE(BufferSizeChanged, BufferSizeChanged, 1)
33 ENGINE(SampleRateChanged, SampleRateChanged, 1)
34
35 // session static
36 STATIC(FeedbackDetected, &ARDOUR::Session::FeedbackDetected, 0)
37 STATIC(SuccessfulGraphSort, &ARDOUR::Session::SuccessfulGraphSort, 0)
38 STATIC(StartTimeChanged, &ARDOUR::Session::StartTimeChanged, 1)
39 STATIC(EndTimeChanged, &ARDOUR::Session::EndTimeChanged, 1)
40 STATIC(Exported, &ARDOUR::Session::Exported, 2)
41
42 // session specific (re-subscribe when session changes)
43 SESSION(SessionConfigChanged, config.ParameterChanged, 1)
44 SESSION(TransportStateChange, TransportStateChange, 0)
45 SESSION(DirtyChanged, DirtyChanged, 0)
46 SESSION(StateSaved, StateSaved, 1)
47 SESSION(Xrun, Xrun, 1)
48 SESSION(TransportLooped, TransportLooped, 0)
49 SESSION(SoloActive, SoloActive, 1)
50 SESSION(SoloChanged, SoloChanged, 0)
51 SESSION(IsolatedChanged, IsolatedChanged, 0)
52 SESSION(MonitorChanged, MonitorChanged, 0)
53 SESSION(RecordStateChanged, RecordStateChanged, 0)
54 SESSION(RecordArmStateChanged, RecordArmStateChanged, 0)
55 SESSION(AudioLoopLocationChanged, auto_loop_location_changed, 1)
56 SESSION(AudioPunchLocationChanged, auto_punch_location_changed, 1)
57 SESSION(LocationsModified, locations_modified, 0)
58 SESSION(AuditionActive, AuditionActive, 1)
59 SESSION(BundleAddedOrRemoved, BundleAddedOrRemoved, 0)
60 SESSION(PositionChanged, PositionChanged, 1)
61 SESSION(Located, Located, 0)
62 SESSION(RoutesReconnected, session_routes_reconnected, 0)
63 SESSION(RouteAdded, RouteAdded, 1)
64 SESSION(RouteAddedOrRemoved, RouteAddedOrRemoved, 1)
65 SESSION(RouteGroupPropertyChanged, RouteGroupPropertyChanged, 1)
66 SESSION(RouteAddedToRouteGroup, RouteAddedToRouteGroup, 2)
67 SESSION(RouteRemovedFromRouteGroup, RouteRemovedFromRouteGroup, 2)
68 SESSION(StepEditStatusChange, StepEditStatusChange, 1)
69 SESSION(RouteGroupAdded, route_group_added, 1)
70 SESSION(RouteGroupRemoved, route_group_removed, 0)
71 SESSION(RouteGroupsReordered, route_groups_reordered, 0)
72
73 // route static globals
74 STATIC(SyncOrderKeys, &Route::SyncOrderKeys, 0)
75
76 // plugin manager instance
77 STATIC(PluginListChanged, &(PluginManager::instance().PluginListChanged), 0)
78 STATIC(PluginStatusesChanged, &(PluginManager::instance().PluginStatusesChanged), 0)
79
80 // Diskstream static global
81 STATIC(DiskOverrun, &ARDOUR::Diskstream::DiskOverrun, 0)
82 STATIC(DiskUnderrun, &ARDOUR::Diskstream::DiskUnderrun, 0)
83
84 // Region static
85 STATIC(RegionPropertyChanged, &ARDOUR::Region::RegionPropertyChanged, 2)
86
87 // TODO per track/route signals,
88 // TODO per plugin actions / controllables
89 // TODO per region actions
90 //SESSIONOBJECT(PropertyChanged, &ARDOUR::Stateful::PropertyChanged, 1)
91
92 // TODO any location action