GLWDropDownText Class Reference

#include <GLWDropDownText.h>

Inheritance diagram for GLWDropDownText:

GLWDropDown GLWidget GLWSelectorI GLWPushButtonI MetaClass GLWButtonI

List of all members.

Public Member Functions

 GLWDropDownText (float x=0.0f, float y=0.0f, float w=0.0f)
virtual ~GLWDropDownText ()
void addText (const LangString &text, const std::string &datatext)
void setCurrentText (const LangString &text)
LangStringgetCurrentText ()
const char * getCurrentDataText ()
bool isSelected (const LangString &text)
virtual void draw ()
 REGISTER_CLASS_HEADER (GLWDropDownText)


Detailed Description

Definition at line 27 of file GLWDropDownText.h.


Constructor & Destructor Documentation

GLWDropDownText::GLWDropDownText ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f 
)

Definition at line 27 of file GLWDropDownText.cpp.

GLWDropDownText::~GLWDropDownText (  )  [virtual]

Definition at line 32 of file GLWDropDownText.cpp.


Member Function Documentation

void GLWDropDownText::addText ( const LangString text,
const std::string datatext 
)

Definition at line 36 of file GLWDropDownText.cpp.

References GLWDropDown::addEntry().

Referenced by BuyAccessoryDialog::BuyAccessoryDialog(), PlayerDialog::display(), GLWTankViewer::GLWTankViewer(), InventoryDialog::InventoryDialog(), and NetworkSelectDialog::NetworkSelectDialog().

void GLWDropDownText::setCurrentText ( const LangString text  ) 

Definition at line 61 of file GLWDropDownText.cpp.

References GLWDropDown::current_, GLWSelectorEntry::getText(), GLWDropDown::handler_, GLWidget::id_, GLWDropDownI::select(), and GLWDropDown::texts_.

Referenced by NetworkSelectDialog::display(), InventoryDialog::display(), BuyAccessoryDialog::display(), AutoDefenseDialog::displayCurrent(), NetworkSelectDialog::NetworkSelectDialog(), and GLWOptionEntry::updateControls().

LangString & GLWDropDownText::getCurrentText (  ) 

Definition at line 42 of file GLWDropDownText.cpp.

References GLWDropDown::getCurrentEntry(), and GLWSelectorEntry::getText().

Referenced by isSelected(), and GLWTankViewer::setTeam().

const char * GLWDropDownText::getCurrentDataText (  ) 

Definition at line 49 of file GLWDropDownText.cpp.

References GLWDropDown::getCurrentEntry(), and GLWSelectorEntry::getDataText().

Referenced by PlayerDialog::buttonDown(), and GLWOptionEntry::updateEntries().

bool GLWDropDownText::isSelected ( const LangString text  ) 

Definition at line 55 of file GLWDropDownText.cpp.

References getCurrentText().

Referenced by NetworkSelectDialog::buttonDown(), NetworkSelectDialog::select(), and NetworkSelectDialog::startRefresh().

void GLWDropDownText::draw (  )  [virtual]

Reimplemented from GLWDropDown.

Definition at line 85 of file GLWDropDownText.cpp.

References GLWDropDown::draw(), GLFont2d::drawWidth(), GLWDropDown::getCurrentEntry(), GLWFont::getGameFont(), GLWFont::instance(), GLWidget::w_, GLWFont::widgetFontColor, GLWidget::x_, and GLWidget::y_.

Referenced by GLWTankViewer::draw().

GLWDropDownText::REGISTER_CLASS_HEADER ( GLWDropDownText   ) 


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3