shuttle and transportque reworks, new shdmp, titler font textbox tweak
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / formatwindow.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 FORMATWINDOW_H
23 #define FORMATWINDOW_H
24
25
26 class FormatHILO;
27 class FormatLOHI;
28
29
30
31 // Gets the parameters for all the built-in compression formats.
32 #include "assets.inc"
33 #include "guicast.h"
34 #include "bitspopup.h"
35 #include "compresspopup.h"
36
37 class FormatAWindow : public BC_Window
38 {
39 public:
40         FormatAWindow(Asset *asset, int *dither);
41         ~FormatAWindow();
42         void create_objects();
43         int close_event();
44
45         Asset *asset;
46         int *dither;
47         FormatHILO *hilo_button;
48         FormatLOHI *lohi_button;
49 };
50
51 class FormatVWindow : public BC_Window
52 {
53 public:
54         FormatVWindow(Asset *asset, int recording);
55         ~FormatVWindow();
56         void create_objects();
57         int close_event();
58
59         Asset *asset;
60         int recording;
61 };
62
63
64 class FormatQuality : public BC_ISlider
65 {
66 public:
67         FormatQuality(int x, int y, Asset *asset, int default_);
68         ~FormatQuality();
69         int handle_event();
70         Asset *asset;
71 };
72
73 class FormatBits : public BitsPopup
74 {
75 public:
76         FormatBits(int x, int y, Asset *asset);
77         ~FormatBits();
78
79         int handle_event();
80         Asset *asset;
81 };
82
83 class FormatDither : public BC_CheckBox
84 {
85 public:
86         FormatDither(int x, int y, int *dither);
87         ~FormatDither();
88
89         int handle_event();
90         int *dither;
91 };
92
93 class FormatSigned : public BC_CheckBox
94 {
95 public:
96         FormatSigned(int x, int y, Asset *asset);
97         ~FormatSigned();
98
99         int handle_event();
100         Asset *asset;
101 };
102
103 class FormatHILO : public BC_Radial
104 {
105 public:
106         FormatHILO(int x, int y, Asset *asset);
107         ~FormatHILO();
108
109         int handle_event();
110         FormatLOHI *lohi;
111         Asset *asset;
112 };
113
114 class FormatLOHI : public BC_Radial
115 {
116 public:
117         FormatLOHI(int x, int y, FormatHILO *hilo, Asset *asset);
118         ~FormatLOHI();
119
120         int handle_event();
121         FormatHILO *hilo;
122         Asset *asset;
123 };
124
125
126
127 #endif