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