3 * Copyright (C) 2008-2014 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef STYLIZEOBJWINDOW_H
22 #define STYLIZEOBJWINDOW_H
28 class StylizeObjWindow;
29 class StylizeObjModeItem;
31 class StylizeObjFSlider;
33 class StylizeObjModeItem : public BC_MenuItem
36 StylizeObjModeItem(StylizeObjMode *popup, int type, const char *text);
37 ~StylizeObjModeItem();
40 StylizeObjMode *popup;
44 class StylizeObjMode : public BC_PopupMenu
47 StylizeObjMode(StylizeObjWindow *win, int x, int y, int *value);
49 void create_objects();
52 void set_value(int v);
54 StylizeObjWindow *win;
58 class StylizeObjFSlider : public BC_FSlider
61 StylizeObjFSlider(StylizeObjWindow *win,
62 int x, int y, int w, float min, float max, float *output);
66 StylizeObjWindow *win;
70 class StylizeObjWindow : public PluginClientWindow
73 StylizeObjWindow(StylizeObj *plugin);
76 void create_objects();
82 BC_Title *smooth_title;
84 BC_Title *shade_title;
85 StylizeObjFSlider *smoothing;
86 StylizeObjFSlider *edge_strength;
87 StylizeObjFSlider *shade_factor;