AskGump Class Reference

#include <AskGump.h>

Inheritance diagram for AskGump:

ItemRelativeGump Gump Object List of all members.

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

UCListanswers

Detailed Description

Definition at line 26 of file AskGump.h.


Constructor & Destructor Documentation

AskGump::AskGump (  ) 

Definition at line 32 of file AskGump.cpp.

AskGump::AskGump ( uint16  owner,
UCList answers 
)

Definition at line 38 of file AskGump.cpp.

References answers, and UCList::copyStringList().

AskGump::~AskGump (  )  [virtual]

Definition at line 45 of file AskGump.cpp.

References answers, and UCList::freeStrings().


Member Function Documentation

void AskGump::ChildNotify ( Gump child,
uint32  message 
) [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().

Parameters:
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().


Member Data Documentation

UCList* AskGump::answers [private]

Definition at line 28 of file AskGump.h.

Referenced by AskGump(), ChildNotify(), InitGump(), loadData(), saveData(), and ~AskGump().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:28:40 2007 for pentagram by  doxygen 1.4.7