1 #ifndef RENDERPROFILE_H
2 #define RENDERPROFILE_H
7 #include "renderprofiles.inc"
9 class RenderProfileListBox
;
11 class RenderProfileItem
: public BC_ListBoxItem
14 RenderProfileItem(char *text
, int value
);
18 class SaveRenderProfileButton
: public BC_GenericButton
21 SaveRenderProfileButton(RenderProfile
*profile
, int x
, int y
);
23 RenderProfile
*profile
;
26 class DeleteRenderProfileButton
: public BC_GenericButton
29 DeleteRenderProfileButton(RenderProfile
*profile
, int x
, int y
);
31 RenderProfile
*profile
;
39 RenderProfile(MWindow
*mwindow
,
40 RenderWindow
*rwindow
,
47 int reposition_window(int x
, int y
);
48 static int calculate_h(BC_WindowBase
*gui
);
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
);
59 RenderProfileListBox
*listbox
;
60 SaveRenderProfileButton
*saveprofile
;
61 DeleteRenderProfileButton
*deleteprofile
;
67 RenderWindow
*rwindow
;
73 ArrayList
<RenderProfileItem
*> profiles
;
76 class RenderProfileListBox
: public BC_ListBox
79 RenderProfileListBox(BC_WindowBase
*window
, RenderProfile
*renderprofile
, int x
, int y
);
80 ~RenderProfileListBox();
84 BC_WindowBase
*window
;
85 RenderProfile
*renderprofile
;
92 // c-file-style: "linux"