Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / cinelerra / cwindow.h
blob054f78ee90c6b22574e532ecc437602a8a66b621
1 #ifndef CWINDOW_H
2 #define CWINDOW_H
4 #include "auto.inc"
5 #include "autos.inc"
6 #include "cplayback.inc"
7 #include "ctracking.inc"
8 #include "cwindowgui.inc"
9 #include "floatauto.inc"
10 #include "mwindow.inc"
11 #include "thread.h"
12 #include "track.inc"
14 class CWindow : public Thread
16 public:
17 CWindow(MWindow *mwindow);
18 ~CWindow();
20 int create_objects();
21 // Position is inclusive of the other 2
22 void update(int position,
23 int overlays,
24 int tool_window,
25 int operation = 0,
26 int timebar = 0);
27 void run();
28 Track* calculate_affected_track();
29 // Get keyframe for editing in the CWindow.
30 // create - if 0 forces automatic creation to be off
31 // if 1 uses automatic creation option to create
32 Auto* calculate_affected_auto(Autos *autos,
33 int create = 1,
34 int *created = 0,
35 int redraw = 1);
36 // Same as before. Provide 0 to Auto arguments to have them ignored.
37 void calculate_affected_autos(FloatAuto **x_auto,
38 FloatAuto **y_auto,
39 FloatAuto **z_auto,
40 Track *track,
41 int use_camera,
42 int create_x,
43 int create_y,
44 int create_z);
45 void show_window();
46 void hide_window();
48 int destination;
49 MWindow *mwindow;
50 CWindowGUI *gui;
52 CTracking *playback_cursor;
53 CPlayback *playback_engine;
56 #endif