mixer
[goodguy/history.git] / cinelerra-5.1 / cinelerra / zwindowgui.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef __ZWINDOWGUI_H__
23 #define __ZWINDOWGUI_H__
24
25 #include "bcwindow.h"
26 #include "canvas.h"
27 #include "mwindow.h"
28 #include "renderengine.inc"
29
30 class ZWindowGUI;
31 class ZWindowCanvas;
32
33 class ZWindowGUI : public BC_Window
34 {
35 public:
36         ZWindowGUI(MWindow *mwindow, ZWindow *vwindow, Mixer *mixer);
37         ~ZWindowGUI();
38
39         void create_objects();
40         int resize_event(int w, int h);
41         int translation_event();
42         int close_event();
43         int keypress_event();
44         int button_press_event();
45         int cursor_leave_event();
46         int cursor_enter_event();
47         int button_release_event();
48         int cursor_motion_event();
49         int select_window(int n);
50         int draw_overlays();
51
52         MWindow *mwindow;
53         ZWindow *zwindow;
54         ZWindowCanvas *canvas;
55
56         TransportCommand *command;
57         PlaybackEngine *playback_engine;
58         RenderEngine *render_engine;
59         int highlighted;
60 };
61
62 class ZWindowCanvas : public Canvas
63 {
64 public:
65         ZWindowCanvas(MWindow *mwindow, ZWindowGUI *gui,
66                 int x, int y, int w, int h);
67
68         void draw_refresh(int flush = 1);
69         void close_source();
70         int get_fullscreen();
71         void set_fullscreen(int value);
72
73         MWindow *mwindow;
74         ZWindowGUI *gui;
75 };
76
77 #endif