license header for review
[cinelerra_cv/ct.git] / cinelerra / renderprofiles.h
blobe80bd0626f3e8143857854c92b38cde918e78461
1 #ifndef RENDERPROFILE_H
2 #define RENDERPROFILE_H
4 #include "guicast.h"
5 #include "render.inc"
6 #include "mwindow.inc"
7 #include "renderprofiles.inc"
9 class RenderProfileListBox;
11 class RenderProfileItem : public BC_ListBoxItem
13 public:
14 RenderProfileItem(char *text, int value);
15 int value;
18 class SaveRenderProfileButton : public BC_GenericButton
20 public:
21 SaveRenderProfileButton(RenderProfile *profile, int x, int y);
22 int handle_event();
23 RenderProfile *profile;
26 class DeleteRenderProfileButton : public BC_GenericButton
28 public:
29 DeleteRenderProfileButton(RenderProfile *profile, int x, int y);
30 int handle_event();
31 RenderProfile *profile;
36 class RenderProfile
38 public:
39 RenderProfile(MWindow *mwindow,
40 RenderWindow *rwindow,
41 int x,
42 int y,
43 int use_nothing);
44 ~RenderProfile();
46 int create_objects();
47 int reposition_window(int x, int y);
48 static int calculate_h(BC_WindowBase *gui);
49 int get_h();
50 int get_x();
51 int get_y();
53 int get_profile_slot_by_name(char *profile_name);
54 int get_new_profile_slot();
55 int save_to_slot(int profile_slot, char *profile_name);
57 BC_Title *title;
58 BC_TextBox *textbox;
59 RenderProfileListBox *listbox;
60 SaveRenderProfileButton *saveprofile;
61 DeleteRenderProfileButton *deleteprofile;
65 MWindow *mwindow;
67 RenderWindow *rwindow;
69 int x;
70 int y;
71 int *output;
72 int use_nothing;
73 ArrayList<RenderProfileItem*> profiles;
76 class RenderProfileListBox : public BC_ListBox
78 public:
79 RenderProfileListBox(BC_WindowBase *window, RenderProfile *renderprofile, int x, int y);
80 ~RenderProfileListBox();
82 int handle_event();
84 BC_WindowBase *window;
85 RenderProfile *renderprofile;
88 #endif
90 // Local Variables:
91 // mode: C++
92 // c-file-style: "linux"
93 // End: