4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "cplayback.inc"
28 #include "ctracking.inc"
29 #include "cwindowgui.inc"
30 #include "floatauto.inc"
31 #include "mwindow.inc"
32 #include "remotecontrol.h"
36 class CWindow : public Thread
39 CWindow(MWindow *mwindow);
42 void create_objects();
43 // Position is inclusive of the other 2
44 void update(int position,
50 Track* calculate_affected_track();
51 // Get keyframe for editing in the CWindow.
52 // create - if 0 forces automatic creation to be off
53 // if 1 uses automatic creation option to create
54 // created - set to 1 if an auto was created
55 // redraw - redraw MWindow overlays if 1
56 Auto* calculate_affected_auto(Autos *autos,
60 // Same as before. Provide 0 to Auto arguments to have them ignored.
61 void calculate_affected_autos(FloatAuto **x_auto,
71 int update_position(double position);
77 CTracking *playback_cursor;
78 CPlayback *playback_engine;
81 class CWindowRemoteHandler : public RemoteHandler
85 int remote_process_key(RemoteControl *remote_control, int key);
87 CWindowRemoteHandler(RemoteControl *remote_control);
88 ~CWindowRemoteHandler();