2 Copyright (C) 2004 Parallel Realities
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the 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.
29 x = y = type = min = max = 0;
30 enabled = visible = true;
34 next = previous = NULL;
38 void Widget::setProperties(const char *name, const char *groupName, const char *label, const char *options, int x, int y, int min, int max)
40 if ((strlen(name) > 50) || (strlen(groupName) > 50) || (strlen(label) > 80) || (strlen(options) > 100))
42 debug(("WIDGET NAME OVERFLOW!\n"));
46 strlcpy(this->name, name, sizeof this->name);
47 strlcpy(this->groupName, groupName, sizeof this->groupName);
48 strlcpy(this->label, label, sizeof this->label);
49 strlcpy(this->options, options, sizeof this->options);
56 void Widget::setValue(int *value)
64 SDL_FreeSurface(image);