bsd lang segv fix, enable bsd lv2, lv2 gui enable fix, proxy/ffmpeg toggle resize...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / loadmode.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 LOADMODE_H
23 #define LOADMODE_H
24
25 #include "guicast.h"
26 #include "loadmode.inc"
27 #include "mwindow.inc"
28 #include "theme.inc"
29
30 class LoadModeListBox;
31
32 class LoadModeItem : public BC_ListBoxItem
33 {
34 public:
35         LoadModeItem(const char *text, int value);
36         int value;
37 };
38
39 class LoadMode
40 {
41 public:
42         LoadMode(MWindow *mwindow,
43                 BC_WindowBase *window,
44                 int x,
45                 int y,
46                 int *output,
47                 int use_nothing);
48         ~LoadMode();
49
50         int create_objects();
51         int reposition_window(int x, int y);
52         static int calculate_w(BC_WindowBase *gui, Theme *theme);
53         static int calculate_h(BC_WindowBase *gui, Theme *theme);
54         int get_h();
55         int get_x();
56         int get_y();
57
58         char* mode_to_text();
59
60         BC_Title *title;
61         BC_TextBox *textbox;
62         LoadModeListBox *listbox;
63         MWindow *mwindow;
64         BC_WindowBase *window;
65         int x;
66         int y;
67         int *output;
68         int use_nothing;
69         ArrayList<LoadModeItem*> load_modes;
70 };
71
72 class LoadModeListBox : public BC_ListBox
73 {
74 public:
75         LoadModeListBox(BC_WindowBase *window, LoadMode *loadmode, int x, int y);
76         ~LoadModeListBox();
77
78         int handle_event();
79
80         BC_WindowBase *window;
81         LoadMode *loadmode;
82 };
83
84 #endif