18 new shapewipe transitions from rafa, rework savefile/confirm for nested edl edits
[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 "renderengine.inc"
32 #include "zwindowgui.inc"
33
34 class Mixer {
35 public:
36         int idx;
37         int x, y, w, h;
38         ArrayList<int> mixer_ids;
39         char title[BCSTRLEN];
40
41         Mixer(int idx);
42         void save(FileXML *file);
43         int load(FileXML *file);
44         void copy_from(Mixer &that);
45         void set_title(const char *tp);
46         void reposition(int x, int y, int w, int h);
47 };
48
49 class Mixers : public ArrayList<Mixer *>
50 {
51 public:
52         Mixers();
53         ~Mixers();
54         Mixer *new_mixer();
55         Mixer *get_mixer(int idx);
56         void del_mixer(int idx);
57         void save(FileXML *file);
58         int load(FileXML *file);
59         void copy_from(Mixers &that);
60 };
61
62
63 class ZWindow : public BC_DialogThread
64 {
65 public:
66         ZWindow(MWindow *mwindow);
67         ~ZWindow();
68
69         void handle_done_event(int result);
70         void handle_close_event(int result);
71         void change_source(EDL *edl);
72         void stop_playback(int wait);
73         void handle_mixer(int command, int wait_tracking,
74                 int use_inout, int toggle_audio, int loop_play, float speed);
75         void update_mixer_ids();
76         void set_title(const char *tp);
77         void reposition(int x, int y, int w, int h);
78
79         BC_Window *new_gui();
80         MWindow *mwindow;
81         ZWindowGUI *zgui;
82         EDL* edl;
83
84         int idx;
85         int highlighted;
86         char title[BCTEXTLEN];
87         float zoom;
88 };
89
90 #endif