GLWTab Class Reference

#include <GLWTab.h>

Inheritance diagram for GLWTab:

GLWScrollPanel GLWPanel GLWScrollWI GLWidget MetaClass

List of all members.

Public Member Functions

 GLWTab (const std::string &tabName="", const LangString &tabLabel=LangString(), float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWTab ()
virtual void setParent (GLWPanel *parent)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void mouseWheel (float x, float y, float z, bool &skipRest)
virtual void draw ()
virtual void setH (float h)
float getTw ()
const char * getName ()
void setDepressed ()
bool getDepressed ()
void setHandler (GLWTabI *handler)
 REGISTER_CLASS_HEADER (GLWTab)

Protected Member Functions

void drawSurround ()
void drawNonSurround ()

Protected Attributes

std::string name_
bool depressed_
GLWLabel label_
GLWTabIhandler_
float index_


Detailed Description

Definition at line 36 of file GLWTab.h.


Constructor & Destructor Documentation

GLWTab::GLWTab ( const std::string tabName = "",
const LangString tabLabel = LangString(),
float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 35 of file GLWTab.cpp.

References label_, and GLWLabel::setSize().

GLWTab::~GLWTab (  )  [virtual]

Definition at line 46 of file GLWTab.cpp.


Member Function Documentation

void GLWTab::setParent ( GLWPanel parent  )  [virtual]

Reimplemented from GLWidget.

Definition at line 106 of file GLWTab.cpp.

References setDepressed(), and GLWidget::setParent().

void GLWTab::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWScrollPanel.

Definition at line 61 of file GLWTab.cpp.

References depressed_, getTw(), GLWidget::h_, index_, GLWScrollPanel::mouseDown(), setDepressed(), tabHeight, GLWidget::x_, and GLWidget::y_.

void GLWTab::mouseWheel ( float  x,
float  y,
float  z,
bool &  skipRest 
) [virtual]

Reimplemented from GLWScrollPanel.

Definition at line 79 of file GLWTab.cpp.

References depressed_, and GLWScrollPanel::mouseWheel().

void GLWTab::draw (  )  [virtual]

Reimplemented from GLWScrollPanel.

Definition at line 113 of file GLWTab.cpp.

References depressed_, GLState::DEPTH_OFF, drawNonSurround(), drawSurround(), MetaClass::getMetaClassId(), getTw(), GLWPanel::getWidgets(), index_, label_, GLWidget::parent_, GLWidget::setX(), GLState::TEXTURE_OFF, GLWPanel::GLWPanelEntry::widget, and GLWidget::x_.

void GLWTab::setH ( float  h  )  [virtual]

Reimplemented from GLWScrollPanel.

Definition at line 50 of file GLWTab.cpp.

References GLWidget::h_, label_, GLWScrollPanel::setH(), GLWidget::setY(), and GLWidget::y_.

Referenced by BuyAccessoryDialog::draw(), and InventoryDialog::setupWindow().

float GLWTab::getTw (  ) 

Definition at line 56 of file GLWTab.cpp.

References GLWLabel::getW(), label_, and tabSpacing.

Referenced by draw(), drawNonSurround(), drawSurround(), and mouseDown().

const char* GLWTab::getName (  )  [inline, virtual]

Reimplemented from GLWidget.

Definition at line 52 of file GLWTab.h.

References name_.

Referenced by BuyAccessoryDialog::display(), BuyAccessoryDialog::playerRefreshKeepPos(), BuyAccessoryDialog::stateChange(), and BuyAccessoryDialog::tabDown().

void GLWTab::setDepressed (  ) 

Definition at line 87 of file GLWTab.cpp.

References depressed_, GLWidget::getId(), MetaClass::getMetaClassId(), GLWPanel::getWidgets(), handler_, GLWidget::parent_, GLWTabI::tabDown(), and GLWPanel::GLWPanelEntry::widget.

Referenced by RulesDialog::addMOTD(), AdminDialog::AdminDialog(), SettingsSubSelectDialog::display(), BuyAccessoryDialog::display(), mouseDown(), and setParent().

bool GLWTab::getDepressed (  )  [inline]

Definition at line 55 of file GLWTab.h.

References depressed_.

Referenced by RulesDialog::draw(), BuyAccessoryDialog::stateChange(), and BuyAccessoryDialog::tabDown().

void GLWTab::setHandler ( GLWTabI handler  )  [inline]

Definition at line 56 of file GLWTab.h.

References handler_.

Referenced by BuyAccessoryDialog::addTabs().

GLWTab::REGISTER_CLASS_HEADER ( GLWTab   ) 

void GLWTab::drawSurround (  )  [protected]

Definition at line 160 of file GLWTab.cpp.

References GLWLabel::draw(), GLWScrollPanel::draw(), GLWidget::drawCircle(), getTw(), GL_LINE_STRIP, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, index_, label_, tabHeight, tabRoundSize, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

Referenced by draw().

void GLWTab::drawNonSurround (  )  [protected]

Definition at line 140 of file GLWTab.cpp.

References GLWLabel::draw(), GLWidget::drawCircle(), getTw(), GL_LINE_STRIP, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, index_, label_, tabHeight, tabRoundSize, GLWidget::x_, and GLWidget::y_.

Referenced by draw().


Member Data Documentation

std::string GLWTab::name_ [protected]

Reimplemented from GLWidget.

Definition at line 61 of file GLWTab.h.

Referenced by getName().

bool GLWTab::depressed_ [protected]

Reimplemented from GLWPanel.

Definition at line 62 of file GLWTab.h.

Referenced by draw(), getDepressed(), mouseDown(), mouseWheel(), and setDepressed().

GLWLabel GLWTab::label_ [protected]

Definition at line 63 of file GLWTab.h.

Referenced by draw(), drawNonSurround(), drawSurround(), getTw(), GLWTab(), and setH().

GLWTabI* GLWTab::handler_ [protected]

Definition at line 64 of file GLWTab.h.

Referenced by setDepressed(), and setHandler().

float GLWTab::index_ [protected]

Definition at line 65 of file GLWTab.h.

Referenced by draw(), drawNonSurround(), drawSurround(), and mouseDown().


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