+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
- * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#ifndef CWINDOW_H
-#define CWINDOW_H
-
-#include "auto.inc"
-#include "autos.inc"
-#include "cplayback.inc"
-#include "ctracking.inc"
-#include "cwindowgui.inc"
-#include "floatauto.inc"
-#include "mwindow.inc"
-#include "remotecontrol.h"
-#include "thread.h"
-#include "track.inc"
-
-class CWindow : public Thread
-{
-public:
- CWindow(MWindow *mwindow);
- ~CWindow();
-
- void create_objects();
-// Position is inclusive of the other 2
- void update(int position,
- int overlays,
- int tool_window,
- int operation = 0,
- int timebar = 0);
- void run();
- Track* calculate_affected_track();
-// Get keyframe for editing in the CWindow.
-// create - if 0 forces automatic creation to be off
-// if 1 uses automatic creation option to create
-// created - set to 1 if an auto was created
-// redraw - redraw MWindow overlays if 1
- Auto* calculate_affected_auto(Autos *autos,
- int create = 1,
- int *created = 0,
- int redraw = 1);
-// Same as before. Provide 0 to Auto arguments to have them ignored.
- void calculate_affected_autos(FloatAuto **x_auto,
- FloatAuto **y_auto,
- FloatAuto **z_auto,
- Track *track,
- int use_camera,
- int create_x,
- int create_y,
- int create_z);
- void show_window();
- void hide_window();
- int update_position(double position);
-
- int destination;
- MWindow *mwindow;
- CWindowGUI *gui;
-
- CTracking *playback_cursor;
- CPlayback *playback_engine;
-};
-
-class CWindowRemoteHandler : public RemoteHandler
-{
- int last_key;
-public:
- int remote_process_key(RemoteControl *remote_control, int key);
-
- CWindowRemoteHandler(RemoteControl *remote_control);
- ~CWindowRemoteHandler();
-};
-
-#endif