BookGump Class Reference

#include <BookGump.h>

Inheritance diagram for BookGump:

ModalGump Gump Object List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 BookGump ()
 BookGump (ObjId owner, std::string msg)
virtual ~BookGump ()
virtual bool Run (const uint32 framenum)
virtual void OnMouseClick (int button, int mx, int my)
virtual void OnMouseDouble (int button, int mx, int my)
virtual void InitGump (Gump *newparent, bool take_focus=true)
 INTRINSIC (I_readBook)
bool loadData (IDataSource *ids, uint32 version)

Protected Member Functions

void NextText ()
virtual void saveData (ODataSource *ods)

Private Attributes

std::string text
ObjId textwidgetL
ObjId textwidgetR

Detailed Description

Definition at line 25 of file BookGump.h.


Constructor & Destructor Documentation

BookGump::BookGump (  ) 

Definition at line 39 of file BookGump.cpp.

BookGump::BookGump ( ObjId  owner,
std::string  msg 
)

Definition at line 45 of file BookGump.cpp.

BookGump::~BookGump (  )  [virtual]

Definition at line 50 of file BookGump.cpp.


Member Function Documentation

BookGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from ModalGump.

void BookGump::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 54 of file BookGump.cpp.

References Gump::dims, GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), Object::getObjId(), ShapeArchive::getShape(), Pentagram::Rect::h, ShapeFrame::height, TextWidget::InitGump(), ModalGump::InitGump(), Gump::SetShape(), TextWidget::setupNextText(), Gump::shape, text, textwidgetL, textwidgetR, Pentagram::Rect::w, and ShapeFrame::width.

BookGump::INTRINSIC ( I_readBook   ) 

bool BookGump::loadData ( IDataSource ids,
uint32  version 
)

Reimplemented from ModalGump.

Definition at line 132 of file BookGump.cpp.

void BookGump::NextText (  )  [protected]

Definition at line 82 of file BookGump.cpp.

References ModalGump::Close(), getGump(), TextWidget::setupNextText(), textwidgetL, and textwidgetR.

Referenced by OnMouseClick().

void BookGump::OnMouseClick ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 103 of file BookGump.cpp.

References NextText().

void BookGump::OnMouseDouble ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 109 of file BookGump.cpp.

References ModalGump::Close().

bool BookGump::Run ( const uint32  framenum  )  [virtual]

Run the gump

Returns:
true if repaint required

Reimplemented from Gump.

Definition at line 96 of file BookGump.cpp.

References Gump::Run().

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

save the actual Object data

Reimplemented from ModalGump.

Definition at line 127 of file BookGump.cpp.


Member Data Documentation

std::string BookGump::text [private]

Definition at line 27 of file BookGump.h.

Referenced by InitGump().

ObjId BookGump::textwidgetL [private]

Definition at line 28 of file BookGump.h.

Referenced by InitGump(), and NextText().

ObjId BookGump::textwidgetR [private]

Definition at line 29 of file BookGump.h.

Referenced by InitGump(), and NextText().


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