#include <glwx.h>
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 GUIPanel * | getCurrentPanel () const |
const int | getCurrentPanelIndex () const |
GUIButton * | getTabButton (int index) |
GUIPanel * | getLowerPanel () |
Private Attributes | |
GUIPanel * | upperPanel |
GUIPanel * | lowerPanel |
GUIPanel * | mainPanel |
Tuple3f | tabButtonsBordersColor |
Tuple3f | tabButtonsColor |
Tuple2f | fontScales |
bool | lockItems |
int | fontIndex |
Definition at line 997 of file glwx.h.
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 | ( | ) |
GUIEventListener * GUITabbedPanel::getEventsListener | ( | ) | [virtual] |
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 | ) |
const Tuple3f & GUITabbedPanel::getTabButtonsColor | ( | ) | const |
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 | ) |
const Tuple3f & GUITabbedPanel::getTabButtonsBordersColor | ( | ) | const |
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 | ) |
const Tuple2f & GUITabbedPanel::getFontScales | ( | ) |
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 | ( | ) |
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] |
int GUITabbedPanel::fontIndex [private] |
Definition at line 1038 of file glwx.h.
Referenced by addPanel(), GUITabbedPanel(), and loadXMLSettings().