add window layout feature, resource wdw select used, blue_dot/blond_cv theme fix...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / theme_blue_dot / bluedottheme.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 // Blue Dot theme by Koen Muylkens <koen.muylkens@esat.kuleuven.ac.be>
23
24 #ifndef BLUEDOTTHEME_H
25 #define BLUEDOTTHEME_H
26
27 #include "new.inc"
28 #include "plugintclient.h"
29 #include "preferencesthread.inc"
30 #include "statusbar.inc"
31 #include "theme.h"
32 #include "timebar.inc"
33
34 class BlueDotTheme : public Theme
35 {
36 public:
37         BlueDotTheme();
38         ~BlueDotTheme();
39
40         void initialize();
41         void draw_mwindow_bg(MWindowGUI *gui);
42
43         void draw_rwindow_bg(RecordGUI *gui);
44         void draw_rmonitor_bg(RecordMonitorGUI *gui);
45         void draw_cwindow_bg(CWindowGUI *gui);
46         void draw_vwindow_bg(VWindowGUI *gui);
47         void draw_preferences_bg(PreferencesWindow *gui);
48
49         void get_mwindow_sizes(MWindowGUI *gui, int w, int h);
50         void get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls);
51         void get_vwindow_sizes(VWindowGUI *gui);
52         void get_preferences_sizes();
53         void get_recordgui_sizes(RecordGUI *gui, int w, int h);
54         void get_rmonitor_sizes(int do_audio,
55                 int do_video,
56                 int do_channel,
57                 int do_interlace,
58                 int do_avc,
59                 int audio_channels);
60
61         void get_new_sizes(NewWindow *gui);
62         void draw_new_bg(NewWindow *gui);
63         void draw_setformat_bg(SetFormatWindow *gui);
64 // MIHA: COPIED FROM DEFAULT THEME M1>>
65 //      void get_plugindialog_sizes();
66 // MIHA: COPIED FROM DEFAULT THEME M1<<
67
68 private:
69         void build_icons();
70         void build_bg_data();
71         void build_patches();
72         void build_overlays();
73
74
75
76
77
78 // Record windows
79         VFrame *rgui_batch;
80         VFrame *rgui_controls;
81         VFrame *rgui_list;
82         VFrame *rmonitor_panel;
83         VFrame *rmonitor_meters;
84 };
85
86
87
88 class BlueDotThemeMain : public PluginTClient
89 {
90 public:
91         BlueDotThemeMain(PluginServer *server);
92         ~BlueDotThemeMain();
93
94         const char* plugin_title();
95         Theme* new_theme();
96
97         BlueDotTheme *theme;
98 };
99
100
101 #endif