GUITabbedPanel Class Reference

#include <glwx.h>

Inheritance diagram for GUITabbedPanel:

Inheritance graph
[legend]
Collaboration diagram for GUITabbedPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GUITabbedPanel (const std::string &callback="")
 ~GUITabbedPanel ()
virtual
GUIEventListener
getEventsListener ()
virtual const void computeWindowBounds ()
virtual bool loadXMLSettings (const TiXmlElement *node)
virtual void render (float clockTick)
virtual void checkMouseEvents (MouseEvent &evt, int extraInfo, bool reservedBits=false)
virtual void checkKeyboardEvents (KeyEvent &evt, int extraInfo)
virtual void actionPerformed (GUIEvent &evt)
void setTabButtonsColor (float r, float g, float b)
void setTabButtonsColor (const Tuple3f &color)
const Tuple3f & getTabButtonsColor () const
void setTabButtonsBordersColor (float r, float g, float b)
void setTabButtonsBordersColor (const Tuple3f &color)
const Tuple3f & getTabButtonsBordersColor () const
void setFontScales (float w, float h)
void setFontScales (const Tuple2f &scales)
const Tuple2f & getFontScales ()
bool addPanel (GUIPanel *panel)
const GUIPanelgetCurrentPanel () const
const int getCurrentPanelIndex () const
GUIButtongetTabButton (int index)
GUIPanelgetLowerPanel ()

Private Attributes

GUIPanelupperPanel
GUIPanellowerPanel
GUIPanelmainPanel
Tuple3f tabButtonsBordersColor
Tuple3f tabButtonsColor
Tuple2f fontScales
bool lockItems
int fontIndex


Detailed Description

Definition at line 997 of file glwx.h.


Constructor & Destructor Documentation

GUITabbedPanel::GUITabbedPanel ( const std::string &  callback = ""  ) 

Definition at line 3 of file GUITabbedPanel.cpp.

References GUIPanel::addWidget(), GUIClippedRectangle::enableBGColor(), fontIndex, lockItems, lowerPanel, mainPanel, PL_XAXIS_LAYOUT, PL_YAXIS_LAYOUT, GUIClippedRectangle::setClipSize(), setFontScales(), GUIPanel::setInterval(), GUIPanel::setLayout(), GUIRectangle::setPosition(), setTabButtonsBordersColor(), setTabButtonsColor(), GUIClippedRectangle::setVisibleBounds(), upperPanel, GUIRectangle::widgetType, and WT_TABBED_PANEL.

GUITabbedPanel::~GUITabbedPanel (  ) 

Definition at line 35 of file GUITabbedPanel.cpp.

References deleteObject, and mainPanel.


Member Function Documentation

GUIEventListener * GUITabbedPanel::getEventsListener (  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 40 of file GUITabbedPanel.cpp.

const void GUITabbedPanel::computeWindowBounds (  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 216 of file GUITabbedPanel.cpp.

References GUIPanel::forceUpdate(), GUIRectangle::getAnchorPoint(), GUIRectangle::getHeight(), GUIRectangle::getPosition(), GUIPanel::getWidgets(), GUIRectangle::getWindowBounds(), lowerPanel, mainPanel, GUIRectangle::parent, GUIRectangle::setAnchorPoint(), GUIRectangle::setDimensions(), GUIRectangle::setParent(), GUIRectangle::setPosition(), GUIRectangle::update, upperPanel, and GUIRectangle::windowBounds.

bool GUITabbedPanel::loadXMLSettings ( const TiXmlElement *  node  )  [virtual]

Reimplemented from GUIRectangle.

Definition at line 61 of file GUITabbedPanel.cpp.

References addPanel(), deleteObject, fontIndex, fontScales, GUIClippedRectangle::getBGColor(), GUIClippedRectangle::getBordersColor(), GUIPanel::getWidgets(), GUIRectangle::loadXMLSettings(), GUIPanel::loadXMLSettings(), lowerPanel, GUIClippedRectangle::setBGColor(), GUIClippedRectangle::setBordersColor(), setFontScales(), tabButtonsBordersColor, tabButtonsColor, upperPanel, and Logger::writeErrorLog().

Referenced by GUIPanel::loadXMLSettings().

void GUITabbedPanel::render ( float  clockTick  )  [virtual]

Implements GUIRectangle.

Definition at line 208 of file GUITabbedPanel.cpp.

References lockItems, mainPanel, GUIRectangle::parent, GUIPanel::render(), and GUIRectangle::visible.

void GUITabbedPanel::checkMouseEvents ( MouseEvent evt,
int  extraInfo,
bool  reservedBits = false 
) [virtual]

Reimplemented from GUIRectangle.

Definition at line 169 of file GUITabbedPanel.cpp.

References GUIPanel::checkMouseEvents(), lowerPanel, and upperPanel.

void GUITabbedPanel::checkKeyboardEvents ( KeyEvent evt,
int  extraInfo 
) [virtual]

Reimplemented from GUIRectangle.

Definition at line 163 of file GUITabbedPanel.cpp.

References GUIPanel::checkKeyboardEvents(), lowerPanel, and upperPanel.

void GUITabbedPanel::actionPerformed ( GUIEvent evt  )  [virtual]

Implements GUIEventListener.

Definition at line 175 of file GUITabbedPanel.cpp.

References GUIRectangle::getCallbackString(), GUIEvent::getCallbackString(), GUIEvent::getEventSource(), GUIPanel::getWidgets(), GUIRectangle::getWidgetType(), GUIRectangle::isClicked(), lowerPanel, upperPanel, GUIRectangle::widgetType, and WT_BUTTON.

void GUITabbedPanel::setTabButtonsColor ( float  r,
float  g,
float  b 
)

Definition at line 245 of file GUITabbedPanel.cpp.

References tabButtonsColor.

Referenced by GUITabbedPanel(), and setTabButtonsColor().

void GUITabbedPanel::setTabButtonsColor ( const Tuple3f &  color  ) 

Definition at line 240 of file GUITabbedPanel.cpp.

References setTabButtonsColor().

const Tuple3f & GUITabbedPanel::getTabButtonsColor (  )  const

Definition at line 256 of file GUITabbedPanel.cpp.

References tabButtonsColor.

void GUITabbedPanel::setTabButtonsBordersColor ( float  r,
float  g,
float  b 
)

Definition at line 266 of file GUITabbedPanel.cpp.

References tabButtonsBordersColor.

Referenced by GUITabbedPanel(), and setTabButtonsBordersColor().

void GUITabbedPanel::setTabButtonsBordersColor ( const Tuple3f &  color  ) 

Definition at line 261 of file GUITabbedPanel.cpp.

References setTabButtonsBordersColor().

const Tuple3f & GUITabbedPanel::getTabButtonsBordersColor (  )  const

Definition at line 281 of file GUITabbedPanel.cpp.

References tabButtonsBordersColor.

void GUITabbedPanel::setFontScales ( float  w,
float  h 
)

Definition at line 50 of file GUITabbedPanel.cpp.

References fontScales.

Referenced by GUITabbedPanel(), loadXMLSettings(), and setFontScales().

void GUITabbedPanel::setFontScales ( const Tuple2f &  scales  ) 

Definition at line 45 of file GUITabbedPanel.cpp.

References setFontScales().

const Tuple2f & GUITabbedPanel::getFontScales (  ) 

Definition at line 56 of file GUITabbedPanel.cpp.

References fontScales.

bool GUITabbedPanel::addPanel ( GUIPanel panel  ) 

Definition at line 114 of file GUITabbedPanel.cpp.

References GUIPanel::addWidget(), fontIndex, fontScales, GUIRectangle::getCallbackString(), GUIAlphaElement::getLabel(), GUIPanel::getWidgets(), lockItems, lowerPanel, GUIClippedRectangle::setBordersColor(), GUIAlphaElement::setColor(), GUIText::setFontIndex(), GUIAlphaElement::setLabelString(), GUIAlphaElement::setMinAlpha(), GUIText::setScales(), GUIRectangle::setVisible(), tabButtonsBordersColor, tabButtonsColor, and upperPanel.

Referenced by loadXMLSettings().

const GUIPanel * GUITabbedPanel::getCurrentPanel (  )  const

Definition at line 139 of file GUITabbedPanel.cpp.

References GUIPanel::getWidgets(), GUIRectangle::isVisible(), and lowerPanel.

const int GUITabbedPanel::getCurrentPanelIndex (  )  const

Definition at line 151 of file GUITabbedPanel.cpp.

References GUIPanel::getWidgets(), GUIRectangle::isVisible(), and lowerPanel.

GUIButton * GUITabbedPanel::getTabButton ( int  index  ) 

Definition at line 196 of file GUITabbedPanel.cpp.

References GUIPanel::getWidgets(), and upperPanel.

GUIPanel * GUITabbedPanel::getLowerPanel (  ) 

Definition at line 276 of file GUITabbedPanel.cpp.

References lowerPanel.


Member Data Documentation

GUIPanel* GUITabbedPanel::upperPanel [private]

Definition at line 1030 of file glwx.h.

Referenced by actionPerformed(), addPanel(), checkKeyboardEvents(), checkMouseEvents(), computeWindowBounds(), getTabButton(), GUITabbedPanel(), and loadXMLSettings().

GUIPanel * GUITabbedPanel::lowerPanel [private]

Definition at line 1030 of file glwx.h.

Referenced by actionPerformed(), addPanel(), checkKeyboardEvents(), checkMouseEvents(), computeWindowBounds(), getCurrentPanel(), getCurrentPanelIndex(), getLowerPanel(), GUITabbedPanel(), and loadXMLSettings().

GUIPanel * GUITabbedPanel::mainPanel [private]

Definition at line 1030 of file glwx.h.

Referenced by computeWindowBounds(), GUITabbedPanel(), render(), and ~GUITabbedPanel().

Tuple3f GUITabbedPanel::tabButtonsBordersColor [private]

Definition at line 1034 of file glwx.h.

Referenced by addPanel(), getTabButtonsBordersColor(), loadXMLSettings(), and setTabButtonsBordersColor().

Tuple3f GUITabbedPanel::tabButtonsColor [private]

Definition at line 1034 of file glwx.h.

Referenced by addPanel(), getTabButtonsColor(), loadXMLSettings(), and setTabButtonsColor().

Tuple2f GUITabbedPanel::fontScales [private]

Definition at line 1036 of file glwx.h.

Referenced by addPanel(), getFontScales(), loadXMLSettings(), and setFontScales().

bool GUITabbedPanel::lockItems [private]

Definition at line 1037 of file glwx.h.

Referenced by addPanel(), GUITabbedPanel(), and render().

int GUITabbedPanel::fontIndex [private]

Definition at line 1038 of file glwx.h.

Referenced by addPanel(), GUITabbedPanel(), and loadXMLSettings().


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3