#include <GLWImageList.h>

Public Member Functions | |
| GLWImageList (float x=0.0f, float y=0.0f) | |
| virtual | ~GLWImageList () |
| void | addDirectory (const std::string &directory) |
| const char * | getCurrentShortPath () |
| const char * | getCurrentLongPath () |
| bool | setCurrentShortPath (const char *current) |
| 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 | itemSelected (GLWSelectorEntry *entry, int position) |
| void | setEnabled (bool enabled) |
| REGISTER_CLASS_HEADER (GLWImageList) | |
Protected Attributes | |
| std::list < GLWImageListEntry * > | entries_ |
| GLWImageListEntry * | current_ |
| bool | enabled_ |
Classes | |
| class | GLWImageListEntry |
Definition at line 29 of file GLWImageList.h.
| GLWImageList::GLWImageList | ( | float | x = 0.0f, |
|
| float | y = 0.0f | |||
| ) |
Definition at line 30 of file GLWImageList.cpp.
| GLWImageList::~GLWImageList | ( | ) | [virtual] |
| void GLWImageList::addDirectory | ( | const std::string & | directory | ) |
Definition at line 45 of file GLWImageList.cpp.
References GLTexture::create(), entries_, ImageHandle::getBits(), FileList::getFiles(), ImageHandle::getHeight(), ImageHandle::getWidth(), ImageFactory::loadImageHandle(), GLWImageList::GLWImageListEntry::longFileName, setCurrentShortPath(), GLWImageList::GLWImageListEntry::shortFileName, and GLWImageList::GLWImageListEntry::texture.
Referenced by PlayerDialog::PlayerDialog().
| const char * GLWImageList::getCurrentShortPath | ( | ) |
Definition at line 141 of file GLWImageList.cpp.
References current_, and GLWImageList::GLWImageListEntry::shortFileName.
Referenced by PlayerDialog::buttonDown().
| const char * GLWImageList::getCurrentLongPath | ( | ) |
Definition at line 135 of file GLWImageList.cpp.
References current_, and GLWImageList::GLWImageListEntry::longFileName.
Referenced by PlayerDialog::buttonDown().
| bool GLWImageList::setCurrentShortPath | ( | const char * | current | ) |
Definition at line 113 of file GLWImageList.cpp.
References current_, entries_, GLWImageList::GLWImageListEntry::shortFileName, and LangStringUtil::strcmp().
Referenced by addDirectory(), itemSelected(), PlayerDialog::nextPlayer(), PlayerDialog::PlayerDialog(), and PlayerDialog::select().
| void GLWImageList::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 78 of file GLWImageList.cpp.
References current_, GLTexture::draw(), GLWidget::draw(), GL_CLAMP, GL_LINE_LOOP, GL_QUADS, GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glTexParameteri(), glVertex2f(), GLWidget::h_, GLWImageList::GLWImageListEntry::texture, GLState::TEXTURE_OFF, GLState::TEXTURE_ON, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWImageList::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 147 of file GLWImageList.cpp.
References GLWidget::simulate().
| void GLWImageList::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 152 of file GLWImageList.cpp.
References enabled_, entries_, GLWTranslate::getPosX(), GLWTranslate::getPosY(), GLWidget::h_, GLWidget::inBox(), GLWSelector::instance(), LANG_STRING, GLWidget::mouseDown(), GLWImageList::GLWImageListEntry::shortFileName, GLWSelector::showSelector(), GLWImageList::GLWImageListEntry::texture, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWImageList::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 184 of file GLWImageList.cpp.
References GLWidget::mouseUp().
| void GLWImageList::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 190 of file GLWImageList.cpp.
References GLWidget::mouseDrag().
| void GLWImageList::itemSelected | ( | GLWSelectorEntry * | entry, | |
| int | position | |||
| ) | [virtual] |
Implements GLWSelectorI.
Definition at line 196 of file GLWImageList.cpp.
References GLWSelectorEntry::getDataText(), and setCurrentShortPath().
| void GLWImageList::setEnabled | ( | bool | enabled | ) | [inline] |
Definition at line 53 of file GLWImageList.h.
References enabled_.
Referenced by PlayerDialog::nextPlayer().
| GLWImageList::REGISTER_CLASS_HEADER | ( | GLWImageList | ) |
std::list<GLWImageListEntry*> GLWImageList::entries_ [protected] |
Definition at line 65 of file GLWImageList.h.
Referenced by addDirectory(), mouseDown(), setCurrentShortPath(), and ~GLWImageList().
GLWImageListEntry* GLWImageList::current_ [protected] |
Definition at line 66 of file GLWImageList.h.
Referenced by draw(), getCurrentLongPath(), getCurrentShortPath(), and setCurrentShortPath().
bool GLWImageList::enabled_ [protected] |
1.5.3