fixes for full timeline updates, replace nums with syms for update interface
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / zwindow.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 1997-2012 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 __ZWINDOW_H__
23 #define __ZWINDOW_H__
24
25 #include "arraylist.h"
26 #include "bcdialog.h"
27 #include "bcwindow.h"
28 #include "edl.inc"
29 #include "filexml.inc"
30 #include "mwindow.inc"
31 #include "playbackengine.inc"
32 #include "renderengine.inc"
33 #include "zwindowgui.inc"
34
35 class Mixer {
36 public:
37         int idx;
38         int x, y, w, h;
39         ArrayList<int> mixer_ids;
40         char title[BCSTRLEN];
41
42         Mixer(int idx);
43         void save(FileXML *file);
44         int load(FileXML *file);
45         void copy_from(Mixer &that);
46         void set_title(const char *tp);
47         void reposition(int x, int y, int w, int h);
48 };
49
50 class Mixers : public ArrayList<Mixer *>
51 {
52 public:
53         Mixers();
54         ~Mixers();
55         Mixer *new_mixer();
56         Mixer *get_mixer(int idx);
57         void del_mixer(int idx);
58         void save(FileXML *file);
59         int load(FileXML *file);
60         void copy_from(Mixers &that);
61 };
62
63
64 class ZWindow : public BC_DialogThread
65 {
66 public:
67         ZWindow(MWindow *mwindow);
68         ~ZWindow();
69
70         void handle_done_event(int result);
71         void handle_close_event(int result);
72         void change_source(EDL *edl);
73         void stop_playback(int wait);
74         void issue_command(int command, int wait_tracking, int use_inout,
75                         int update_refresh, int toggle_audio, int loop_play);
76         void update_mixer_ids();
77         void set_title(const char *tp);
78         void reposition(int x, int y, int w, int h);
79
80         BC_Window *new_gui();
81         MWindow *mwindow;
82         ZWindowGUI *zgui;
83         EDL* edl;
84
85         int idx, destroy;
86         int highlighted;
87         char title[BCTEXTLEN];
88 };
89
90 #endif