r1037: Check for OpenGL 2.0 libraries in /usr/X11R6/lib64/libGL.so.1,
[cinelerra_cv.git] / cinelerra / formatpresets.h
blob9912d3cbabbba0b59853d7b94ba229a20e8709f5
1 #ifndef FORMATPRESETS_H
2 #define FORMATPRESETS_H
5 #include "edl.inc"
6 #include "formatpresets.inc"
7 #include "guicast.h"
8 #include "mwindow.inc"
9 #include "new.inc"
10 #include "setformat.inc"
13 class FormatPresets
15 public:
16 FormatPresets(MWindow *mwindow,
17 NewWindow *new_gui,
18 SetFormatWindow *format_gui,
19 int x,
20 int y);
21 virtual ~FormatPresets();
23 void create_objects();
24 FormatPresetItem* find_preset(EDL *edl);
25 char* get_preset_text(EDL *edl);
27 // New preset selected
28 virtual int handle_event();
29 virtual EDL* get_edl();
31 MWindow *mwindow;
32 BC_WindowBase *gui_base;
33 NewWindow *new_gui;
34 SetFormatWindow *format_gui;
35 FormatPresetsText *text;
36 FormatPresetsPulldown *pulldown;
37 int x, y;
38 ArrayList<FormatPresetItem*> preset_items;
43 class FormatPresetsText : public BC_TextBox
45 public:
46 FormatPresetsText(MWindow *mwindow,
47 FormatPresets *gui,
48 int x,
49 int y);
50 int handle_event();
51 // Find the listbox item which corresponds to the values in the edl.
52 FormatPresets *gui;
53 MWindow *mwindow;
56 class FormatPresetsPulldown : public BC_ListBox
58 public:
59 FormatPresetsPulldown(MWindow *mwindow,
60 FormatPresets *gui,
61 int x,
62 int y);
63 int handle_event();
64 MWindow *mwindow;
65 FormatPresets *gui;
68 class FormatPresetItem : public BC_ListBoxItem
70 public:
71 FormatPresetItem(MWindow *mwindow, FormatPresets *gui, char *text);
72 ~FormatPresetItem();
74 MWindow *mwindow;
75 FormatPresets *gui;
76 // Storage of the values for the preset
77 EDL *edl;
84 #endif