update igors icons, x/y contraint for xlate
[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  *
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 BLONDTHEME_H
23 #define BLONDTHEME_H
24
25 #include "new.inc"
26 #include "plugintclient.h"
27 #include "preferencesthread.inc"
28 #include "statusbar.inc"
29 #include "theme.h"
30 #include "timebar.inc"
31
32 class BlondCVTheme : public Theme
33 {
34 public:
35         BlondCVTheme();
36         ~BlondCVTheme();
37
38         void initialize();
39         void draw_mwindow_bg(MWindowGUI *gui);
40
41         void draw_rwindow_bg(RecordGUI *gui);
42         void draw_rmonitor_bg(RecordMonitorGUI *gui);
43         void draw_cwindow_bg(CWindowGUI *gui);
44         void draw_vwindow_bg(VWindowGUI *gui);
45         void draw_preferences_bg(PreferencesWindow *gui);
46
47         void get_mwindow_sizes(MWindowGUI *gui, int w, int h);
48         void get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls);
49         void get_vwindow_sizes(VWindowGUI *gui);
50         void get_preferences_sizes();
51         void get_recordgui_sizes(RecordGUI *gui, int w, int h);
52 //      void get_rmonitor_sizes(int do_audio,
53 //              int do_video,
54 //              int do_channel,
55 //              int do_interlace,
56 //              int do_avc,
57 //              int audio_channels);
58
59         void get_new_sizes(NewWindow *gui);
60         void draw_new_bg(NewWindow *gui);
61         void draw_setformat_bg(SetFormatWindow *gui);
62         void get_plugindialog_sizes();
63
64 private:
65         void build_icons();
66         void build_bg_data();
67         void build_patches();
68         void build_overlays();
69
70
71 // MWindow
72         VFrame *mbutton_left;
73         VFrame *mbutton_right;
74         VFrame *tracks_bg;
75         VFrame *zoombar_left;
76         VFrame *zoombar_right;
77         VFrame *statusbar_left;
78         VFrame *statusbar_right;
79
80 // CWindow
81         VFrame *cpanel_bg;
82         VFrame *cbuttons_left;
83         VFrame *cbuttons_right;
84         VFrame *cmeter_bg;
85
86 // VWindow
87         VFrame *vbuttons_left;
88         VFrame *vbuttons_right;
89         VFrame *vmeter_bg;
90
91         VFrame *preferences_bg;
92         VFrame *new_bg;
93         VFrame *setformat_bg;
94
95 // Record windows
96         VFrame *rgui_batch;
97         VFrame *rgui_controls;
98         VFrame *rgui_list;
99         VFrame *rmonitor_panel;
100         VFrame *rmonitor_meters;
101 };
102
103
104
105 class BlondCVThemeMain : public PluginTClient
106 {
107 public:
108         BlondCVThemeMain(PluginServer *server);
109         ~BlondCVThemeMain();
110
111         const char* plugin_title();
112         Theme* new_theme();
113
114         BlondCVTheme *theme;
115 };
116
117
118 #endif