4 * Copyright (C) 2007 Andraz Tori
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.
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.
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
22 #ifndef RENDERPROFILE_H
23 #define RENDERPROFILE_H
27 #include "mwindow.inc"
28 #include "renderprofiles.inc"
30 class RenderProfileListBox;
32 class RenderProfileItem : public BC_ListBoxItem
35 RenderProfileItem(const char *text, int value);
39 class SaveRenderProfileButton : public BC_GenericButton
42 SaveRenderProfileButton(RenderProfile *profile, int x, int y);
44 RenderProfile *profile;
47 class DeleteRenderProfileButton : public BC_GenericButton
50 DeleteRenderProfileButton(RenderProfile *profile, int x, int y);
52 RenderProfile *profile;
60 RenderProfile(MWindow *mwindow,
61 RenderWindow *rwindow,
68 int reposition_window(int x, int y);
69 static int calculate_h(BC_WindowBase *gui);
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);
80 RenderProfileListBox *listbox;
81 SaveRenderProfileButton *saveprofile;
82 DeleteRenderProfileButton *deleteprofile;
88 RenderWindow *rwindow;
94 ArrayList<RenderProfileItem*> profiles;
97 class RenderProfileListBox : public BC_ListBox
100 RenderProfileListBox(BC_WindowBase *window, RenderProfile *renderprofile, int x, int y);
101 ~RenderProfileListBox();
105 BC_WindowBase *window;
106 RenderProfile *renderprofile;