Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / theme_blond_cv / blondcvtheme.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  * Copyright (C) 2003-2016 Cinelerra CV contributors
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22
23 #ifndef BLONDTHEME_H
24 #define BLONDTHEME_H
25
26 #include "new.inc"
27 #include "plugintclient.h"
28 #include "preferencesthread.inc"
29 #include "statusbar.inc"
30 #include "theme.h"
31 #include "timebar.inc"
32
33 class BlondCVTheme : public Theme
34 {
35 public:
36         BlondCVTheme();
37         ~BlondCVTheme();
38
39         void initialize();
40         void draw_mwindow_bg(MWindowGUI *gui);
41
42         void draw_rwindow_bg(RecordGUI *gui);
43         void draw_rmonitor_bg(RecordMonitorGUI *gui);
44         void draw_cwindow_bg(CWindowGUI *gui);
45         void draw_vwindow_bg(VWindowGUI *gui);
46         void draw_preferences_bg(PreferencesWindow *gui);
47
48         void get_mwindow_sizes(MWindowGUI *gui, int w, int h);
49         void get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls);
50         void get_vwindow_sizes(VWindowGUI *gui);
51         void get_preferences_sizes();
52         void get_recordgui_sizes(RecordGUI *gui, int w, int h);
53 //      void get_rmonitor_sizes(int do_audio,
54 //              int do_video,
55 //              int do_channel,
56 //              int do_interlace,
57 //              int do_avc,
58 //              int audio_channels);
59
60         void get_new_sizes(NewWindow *gui);
61         void draw_new_bg(NewWindow *gui);
62         void draw_setformat_bg(SetFormatWindow *gui);
63         void get_plugindialog_sizes();
64
65 private:
66         void build_icons();
67         void build_bg_data();
68         void build_patches();
69         void build_overlays();
70
71
72 // MWindow
73         VFrame *mbutton_left;
74         VFrame *mbutton_right;
75         VFrame *tracks_bg;
76         VFrame *zoombar_left;
77         VFrame *zoombar_right;
78         VFrame *statusbar_left;
79         VFrame *statusbar_right;
80
81 // CWindow
82         VFrame *cpanel_bg;
83         VFrame *cbuttons_left;
84         VFrame *cbuttons_right;
85         VFrame *cmeter_bg;
86
87 // VWindow
88         VFrame *vbuttons_left;
89         VFrame *vbuttons_right;
90         VFrame *vmeter_bg;
91
92         VFrame *preferences_bg;
93         VFrame *new_bg;
94         VFrame *setformat_bg;
95
96 // Record windows
97         VFrame *rgui_batch;
98         VFrame *rgui_controls;
99         VFrame *rgui_list;
100         VFrame *rmonitor_panel;
101         VFrame *rmonitor_meters;
102 };
103
104
105
106 class BlondCVThemeMain : public PluginTClient
107 {
108 public:
109         BlondCVThemeMain(PluginServer *server);
110         ~BlondCVThemeMain();
111
112         const char* plugin_title();
113         Theme* new_theme();
114
115         BlondCVTheme *theme;
116 };
117
118
119 #endif