QuitGump Class Reference

#include <QuitGump.h>

Inheritance diagram for QuitGump:

ModalGump Gump Object List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 QuitGump ()
virtual ~QuitGump (void)
virtual void InitGump (Gump *newparent, bool take_focus=true)
virtual void PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled)
virtual bool OnKeyDown (int key, int mod)
virtual bool OnTextInput (int unicode)
virtual void ChildNotify (Gump *child, uint32 message)
bool loadData (IDataSource *ids)

Static Public Member Functions

static void verifyQuit ()
static void ConCmd_verifyQuit (const Console::ArgvType &argv)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Protected Attributes

ObjId yesWidget
ObjId noWidget

Detailed Description

Definition at line 24 of file QuitGump.h.


Constructor & Destructor Documentation

QuitGump::QuitGump (  ) 

Definition at line 36 of file QuitGump.cpp.

References GUIApp::get_instance(), GUIApp::MOUSE_HAND, GUIApp::pushMouseCursor(), and GUIApp::setMouseCursor().

Referenced by verifyQuit().

QuitGump::~QuitGump ( void   )  [virtual]

Definition at line 43 of file QuitGump.cpp.

References GUIApp::get_instance(), and GUIApp::popMouseCursor().


Member Function Documentation

void QuitGump::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 119 of file QuitGump.cpp.

References ButtonWidget::BUTTON_CLICK, ModalGump::Close(), CoreApp::ForceQuit(), GUIApp::get_instance(), Object::getObjId(), noWidget, and yesWidget.

void QuitGump::ConCmd_verifyQuit ( const Console::ArgvType argv  )  [static]

"QuitGump::verifyQuit" console command

Definition at line 156 of file QuitGump.cpp.

References verifyQuit().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

QuitGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from ModalGump.

void QuitGump::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 ModalGump.

Definition at line 53 of file QuitGump.cpp.

References askShapeId, Gump::dims, FrameID::framenum, GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), Object::getObjId(), GameData::getShape(), ShapeArchive::getShape(), Gump::Gump(), GameData::GUMPS, gumpShape, Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), ModalGump::InitGump(), noShapeId, noWidget, Gump::setRelativePosition(), Gump::SetShape(), Gump::shape, Gump::TOP_CENTER, Gump::TOP_LEFT, Gump::TOP_RIGHT, Pentagram::Rect::w, ShapeFrame::width, yesShapeId, and yesWidget.

bool QuitGump::loadData ( IDataSource ids  ) 

Definition at line 161 of file QuitGump.cpp.

bool QuitGump::OnKeyDown ( int  key,
int  mod 
) [virtual]

Reimplemented from Gump.

Definition at line 104 of file QuitGump.cpp.

References ModalGump::Close().

bool QuitGump::OnTextInput ( int  unicode  )  [virtual]

Reimplemented from Gump.

Definition at line 135 of file QuitGump.cpp.

References ModalGump::Close(), CoreApp::ForceQuit(), and GUIApp::get_instance().

void QuitGump::PaintThis ( RenderSurface ,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 99 of file QuitGump.cpp.

References Gump::PaintThis().

void QuitGump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from ModalGump.

Definition at line 167 of file QuitGump.cpp.

void QuitGump::verifyQuit (  )  [static]

Definition at line 149 of file QuitGump.cpp.

References Gump::CENTER, ModalGump::InitGump(), QuitGump(), and Gump::setRelativePosition().

Referenced by ConCmd_verifyQuit(), and MenuGump::selectEntry().


Member Data Documentation

ObjId QuitGump::noWidget [protected]

Definition at line 47 of file QuitGump.h.

Referenced by ChildNotify(), and InitGump().

ObjId QuitGump::yesWidget [protected]

Definition at line 47 of file QuitGump.h.

Referenced by ChildNotify(), and InitGump().


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