#include <AskGump.h>
Inheritance diagram for AskGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
AskGump () | |
AskGump (uint16 owner, UCList *answers) | |
virtual | ~AskGump () |
virtual void | InitGump (Gump *newparent, bool take_focus=true) |
virtual void | ChildNotify (Gump *child, uint32 message) |
bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Private Attributes | |
UCList * | answers |
Definition at line 26 of file AskGump.h.
AskGump::AskGump | ( | ) |
Definition at line 32 of file AskGump.cpp.
AskGump::~AskGump | ( | ) | [virtual] |
This function is used by our children to notifty us of 'something' Think of it as a generic call back function
Reimplemented from Gump.
Definition at line 108 of file AskGump.cpp.
References answers, ButtonWidget::BUTTON_CLICK, Gump::Close(), Gump::GetIndex(), UCList::getStringIndex(), Gump::process_result, and UCList::removeString().
AskGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ItemRelativeGump.
void AskGump::InitGump | ( | Gump * | newparent, | |
bool | take_focus = true | |||
) | [virtual] |
Init the gump and add it to parent; call after construction When newparent is 0, this will call GUIApp::addGump().
newparent | The Gump's new parent or 0. | |
takefocus | If true, set parent's focus_child to this |
Reimplemented from ItemRelativeGump.
Definition at line 52 of file AskGump.cpp.
References answers, Gump::dims, UCMachine::get_instance(), Gump::GetDims(), UCList::getSize(), UCMachine::getString(), UCList::getStringIndex(), ButtonWidget::getVlead(), Pentagram::Rect::h, ButtonWidget::InitGump(), ItemRelativeGump::InitGump(), Gump::Move(), Gump::owner, Gump::SetIndex(), and Pentagram::Rect::w.
bool AskGump::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
Reimplemented from ItemRelativeGump.
Definition at line 130 of file AskGump.cpp.
References answers, Gump::children, Gump::dims, UCList::getSize(), Pentagram::Rect::h, PentZip::int(), UCList::load(), ItemRelativeGump::loadData(), and Pentagram::Rect::w.
void AskGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ItemRelativeGump.
Definition at line 123 of file AskGump.cpp.
References answers, UCList::save(), and ItemRelativeGump::saveData().
UCList* AskGump::answers [private] |
Definition at line 28 of file AskGump.h.
Referenced by AskGump(), ChildNotify(), InitGump(), loadData(), saveData(), and ~AskGump().