inter-view map only if armed track, copy/paste behavior rework
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / fileformat.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 FILEFORMAT_H
23 #define FILEFORMAT_H
24
25 #include "guicast.h"
26
27 class FileFormatByteOrderLOHI;
28 class FileFormatByteOrderHILO;
29 class FileFormatSigned;
30 class FileFormatHeader;
31 class FileFormatRate;
32 class FileFormatChannels;
33 class FileFormatBits;
34
35 #include "asset.inc"
36 #include "assets.inc"
37 #include "bitspopup.inc"
38 #include "file.inc"
39 #include "mwindow.inc"
40 #include "mwindowgui.inc"
41
42 class FileFormat : public BC_Window
43 {
44 public:
45         FileFormat(MWindow *mwindow);
46         ~FileFormat();
47
48         void create_objects(Asset *asset, char *string2);
49
50         void create_objects_(char *string2);
51
52         Asset *asset;
53
54         BitsPopup *bitspopup;
55         FileFormatByteOrderLOHI *lohi;
56         FileFormatByteOrderHILO *hilo;
57         FileFormatSigned *signed_button;
58         FileFormatHeader *header_button;
59         FileFormatRate *rate_button;
60         FileFormatChannels *channels_button;
61         MWindow *mwindow;
62 };
63
64 class FileFormatChannels : public BC_TumbleTextBox
65 {
66 public:
67         FileFormatChannels(int x, int y, FileFormat *fwindow, char *text);
68
69         int handle_event();
70
71         FileFormat *fwindow;
72 };
73
74 class FileFormatRate : public BC_TextBox
75 {
76 public:
77         FileFormatRate(int x, int y, FileFormat *fwindow, char *text);
78
79         int handle_event();
80
81         FileFormat *fwindow;
82 };
83
84 class FileFormatHeader : public BC_TextBox
85 {
86 public:
87         FileFormatHeader(int x, int y, FileFormat *fwindow, char *text);
88
89         int handle_event();
90
91         FileFormat *fwindow;
92 };
93
94 class FileFormatByteOrderLOHI : public BC_Radial
95 {
96 public:
97         FileFormatByteOrderLOHI(int x, int y, FileFormat *fwindow, int value);
98
99         int handle_event();
100
101         FileFormat *fwindow;
102 };
103
104 class FileFormatByteOrderHILO : public BC_Radial
105 {
106 public:
107         FileFormatByteOrderHILO(int x, int y, FileFormat *fwindow, int value);
108
109         int handle_event();
110
111         FileFormat *fwindow;
112 };
113
114 class FileFormatSigned : public BC_CheckBox
115 {
116 public:
117         FileFormatSigned(int x, int y, FileFormat *fwindow, int value);
118
119         int handle_event();
120
121         FileFormat *fwindow;
122 };
123
124 #endif
125