ctrl_toggle preference, dblclk select single group/edit, update shortcuts
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / renderprofiles.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2007 Andraz Tori
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 RENDERPROFILE_H
23 #define RENDERPROFILE_H
24
25 #include "guicast.h"
26 #include "render.inc"
27 #include "mwindow.inc"
28 #include "renderprofiles.inc"
29
30 class RenderProfileListBox;
31
32 class RenderProfileItem : public BC_ListBoxItem
33 {
34 public:
35         RenderProfileItem(const char *text, int value);
36         int value;
37 };
38
39 class SaveRenderProfileButton : public BC_GenericButton
40 {
41 public:
42         SaveRenderProfileButton(RenderProfile *profile, int x, int y);
43         int handle_event();
44         RenderProfile *profile;
45 };
46
47 class DeleteRenderProfileButton : public BC_GenericButton
48 {
49 public:
50         DeleteRenderProfileButton(RenderProfile *profile, int x, int y);
51         int handle_event();
52         RenderProfile *profile;
53 };
54
55
56
57 class RenderProfile
58 {
59 public:
60         RenderProfile(MWindow *mwindow,
61                 RenderWindow *rwindow,
62                 int x,
63                 int y,
64                 int use_nothing);
65         ~RenderProfile();
66
67         int create_objects();
68         int reposition_window(int x, int y);
69         static int calculate_h(BC_WindowBase *gui);
70         int get_h();
71         int get_x();
72         int get_y();
73
74         int get_profile_slot_by_name(const char *profile_name);
75         int get_new_profile_slot();
76         int save_to_slot(int profile_slot, const char *profile_name);
77
78         BC_Title *title;
79         BC_TextBox *textbox;
80         RenderProfileListBox *listbox;
81         SaveRenderProfileButton *saveprofile;
82         DeleteRenderProfileButton *deleteprofile;
83
84
85
86         MWindow *mwindow;
87
88         RenderWindow *rwindow;
89
90         int x;
91         int y;
92         int *output;
93         int use_nothing;
94         ArrayList<RenderProfileItem*> profiles;
95 };
96
97 class RenderProfileListBox : public BC_ListBox
98 {
99 public:
100         RenderProfileListBox(BC_WindowBase *window, RenderProfile *renderprofile, int x, int y);
101         ~RenderProfileListBox();
102
103         int handle_event();
104
105         BC_WindowBase *window;
106         RenderProfile *renderprofile;
107 };
108
109 #endif