SetupTab Class Reference

#include <setuptab.h>

Inheritance diagram for SetupTab:

Container Setup_Audio Setup_Colors Setup_Joystick Setup_Keyboard Setup_Players Setup_Video

List of all members.


Detailed Description

A container for the contents of a tab in the setup window.

Definition at line 32 of file setuptab.h.


Public Member Functions

 SetupTab ()
const std::string & getName () const
virtual void apply ()=0
 Called when the Apply button is pressed in the setup window.
virtual void cancel ()=0
 Called when the Cancel button is pressed in the setup window.

Protected Member Functions

void setName (const std::string &name)
 Sets the name displayed on the tab.

Private Attributes

std::string mName

Constructor & Destructor Documentation

SetupTab::SetupTab (  ) 

Definition at line 24 of file setuptab.cpp.


Member Function Documentation

const std::string& SetupTab::getName (  )  const [inline]

Definition at line 37 of file setuptab.h.

virtual void SetupTab::apply (  )  [pure virtual]

Called when the Apply button is pressed in the setup window.

Implemented in Setup_Audio, Setup_Colors, Setup_Joystick, Setup_Keyboard, Setup_Players, and Setup_Video.

virtual void SetupTab::cancel (  )  [pure virtual]

Called when the Cancel button is pressed in the setup window.

Implemented in Setup_Audio, Setup_Colors, Setup_Joystick, Setup_Keyboard, Setup_Players, and Setup_Video.

void SetupTab::setName ( const std::string &  name  )  [inline, protected]

Sets the name displayed on the tab.

Should be set in the constructor of a subclass.

Definition at line 55 of file setuptab.h.


Member Data Documentation

std::string SetupTab::mName [private]

Definition at line 59 of file setuptab.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5