Added new file gui/object.cpp (collecting GuiObject methods in there), and renamed Dialog::deleteWidget to Dialog::removeWidget (name was misleading, the removed object does *not* get deleted)

svn-id: r26147
This commit is contained in:
Max Horn 2007-03-16 20:47:41 +00:00
parent 5c91a361c7
commit a73c6c3670
7 changed files with 51 additions and 13 deletions

View file

@ -54,11 +54,6 @@ enum {
kKeyRepeatSustainDelay = 100
};
// HACK. FIXME. This doesn't belong here. But otherwise it creates compilation problems
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
_name = name;
}
void GuiObject::reflowLayout() {
if (!_name.empty()) {
if ((_x = g_gui.evaluator()->getVar(_name + ".x")) == EVAL_UNDEF_VAR)