#include <GLWIconTable.h>
Public Member Functions | |
| GLWIconTable (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f, std::list< Column > *columns=0, float rowHeight=20.0f) | |
| virtual | ~GLWIconTable () |
| void | setItemCount (int items) |
| int | getItemCount () |
| void | setHandler (GLWIconTableI *handler) |
| int | getSelected () |
| virtual void | draw () |
| virtual void | simulate (float frameTime) |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | mouseUp (int button, float x, float y, bool &skipRest) |
| virtual void | mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest) |
| virtual void | mouseWheel (float x, float y, float z, bool &skipRest) |
| virtual void | buttonDown (unsigned int id) |
| REGISTER_CLASS_HEADER (GLWIconTable) | |
Protected Attributes | |
| std::vector < GLWTextButton * > | columns_ |
| GLWScrollWBackwards | scrollBar_ |
| GLWIconTableI * | handler_ |
| float | rowHeight_ |
| int | selected_ |
| int | itemCount_ |
Private Member Functions | |
| GLWIconTable (const GLWIconTable &) | |
| const GLWIconTable & | operator= (const GLWIconTable &) |
Classes | |
| struct | Column |
Definition at line 39 of file GLWIconTable.h.
| GLWIconTable::GLWIconTable | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | h = 0.0f, |
|||
| std::list< Column > * | columns = 0, |
|||
| float | rowHeight = 20.0f | |||
| ) |
Definition at line 25 of file GLWIconTable.cpp.
References GLWButton::ButtonFlagCenterX, columns_, GLWidget::h_, GLWIconTable::Column::name, GLWIconTable::Column::width, and GLWidget::y_.
| GLWIconTable::~GLWIconTable | ( | ) | [virtual] |
Definition at line 56 of file GLWIconTable.cpp.
| GLWIconTable::GLWIconTable | ( | const GLWIconTable & | ) | [private] |
| void GLWIconTable::setItemCount | ( | int | items | ) |
Definition at line 60 of file GLWIconTable.cpp.
References itemCount_, scrollBar_, selected_, GLWScrollWBackwards::setCurrent(), and GLWScrollW::setMax().
Referenced by AdminDialog::AdminDialog(), AdminDialog::buttonDown(), AdminDialog::drawColumn(), NetworkSelectDialog::rowSelectedGames(), NetworkSelectDialog::startRefresh(), and NetworkSelectDialog::updateTable().
| int GLWIconTable::getItemCount | ( | ) | [inline] |
| void GLWIconTable::setHandler | ( | GLWIconTableI * | handler | ) | [inline] |
Definition at line 64 of file GLWIconTable.h.
References handler_.
Referenced by AdminDialog::AdminDialog(), and NetworkSelectDialog::NetworkSelectDialog().
| int GLWIconTable::getSelected | ( | ) | [inline] |
Definition at line 65 of file GLWIconTable.h.
References selected_.
Referenced by AdminDialog::buttonDown(), and NetworkSelectDialog::drawColumnPlayers().
| void GLWIconTable::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 74 of file GLWIconTable.cpp.
References columns_, GLWTextButton::draw(), GLWScrollW::draw(), GLWidget::draw(), GLWIconTableI::drawColumn(), GLWidget::drawShadedRoundBox(), GLWScrollWBackwards::getCurrent(), GLWTextButton::getEmpty(), GLWScrollW::getSee(), GLWidget::getW(), GLWidget::getX(), GL_LINE_LOOP, GL_LINE_STIPPLE, GL_LINES, glBegin(), glColor3f(), glDisable(), glEnable(), glEnd(), glLineStipple(), glLineWidth(), glVertex2f(), GLWidget::h_, handler_, GLWidget::id_, int(), itemCount_, MIN, rowHeight_, scrollBar_, selected_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWIconTable::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 69 of file GLWIconTable.cpp.
References scrollBar_, and GLWScrollW::simulate().
| void GLWIconTable::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 157 of file GLWIconTable.cpp.
References columns_, GLWScrollWBackwards::getCurrent(), GLWidget::getId(), GLWidget::h_, handler_, GLWidget::inBox(), int(), itemCount_, GameState::MouseButtonLeftDoubleClick, GLWButton::mouseDown(), GLWScrollW::mouseDown(), GLWIconTableI::rowChosen(), rowHeight_, GLWIconTableI::rowSelected(), scrollBar_, selected_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWIconTable::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 211 of file GLWIconTable.cpp.
References columns_, GLWButton::mouseUp(), GLWScrollW::mouseUp(), and scrollBar_.
| void GLWIconTable::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 194 of file GLWIconTable.cpp.
References columns_, GLWButton::mouseDrag(), GLWScrollW::mouseDrag(), and scrollBar_.
| void GLWIconTable::mouseWheel | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 228 of file GLWIconTable.cpp.
References GLWidget::getX(), GLWidget::getY(), GLWidget::h_, GLWidget::inBox(), GLWScrollWBackwards::mouseWheel(), scrollBar_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWIconTable::buttonDown | ( | unsigned int | id | ) | [virtual] |
Implements GLWButtonI.
Definition at line 145 of file GLWIconTable.cpp.
References columns_, GLWIconTableI::columnSelected(), GLWidget::getId(), handler_, GLWidget::id_, and int().
| GLWIconTable::REGISTER_CLASS_HEADER | ( | GLWIconTable | ) |
| const GLWIconTable& GLWIconTable::operator= | ( | const GLWIconTable & | ) | [private] |
std::vector<GLWTextButton *> GLWIconTable::columns_ [protected] |
Definition at line 81 of file GLWIconTable.h.
Referenced by buttonDown(), draw(), GLWIconTable(), mouseDown(), mouseDrag(), and mouseUp().
GLWScrollWBackwards GLWIconTable::scrollBar_ [protected] |
Definition at line 82 of file GLWIconTable.h.
Referenced by draw(), mouseDown(), mouseDrag(), mouseUp(), mouseWheel(), setItemCount(), and simulate().
GLWIconTableI* GLWIconTable::handler_ [protected] |
Definition at line 83 of file GLWIconTable.h.
Referenced by buttonDown(), draw(), mouseDown(), and setHandler().
float GLWIconTable::rowHeight_ [protected] |
int GLWIconTable::selected_ [protected] |
Definition at line 85 of file GLWIconTable.h.
Referenced by draw(), getSelected(), mouseDown(), and setItemCount().
int GLWIconTable::itemCount_ [protected] |
Definition at line 86 of file GLWIconTable.h.
Referenced by draw(), getItemCount(), mouseDown(), and setItemCount().
1.5.3