ManaPlus
|
#include <modelistmodel.h>
Public Member Functions | |
ModeListModel () | |
int | getNumberOfElements () |
std::string | getElementAt (int i) |
int | getIndexOf (const std::string &widthXHeightMode) |
Public Member Functions inherited from ListModel | |
ListModel () | |
virtual | ~ListModel () |
Private Member Functions | |
void | addCustomMode (const std::string &mode) |
Private Attributes | |
StringVect | mVideoModes |
Definition at line 34 of file modelistmodel.h.
ModeListModel::ModeListModel | ( | ) |
Definition at line 57 of file modelistmodel.cpp.
References addCustomMode(), SDL::getAllVideoModes(), Graphics::mActualHeight, Graphics::mActualWidth, mainGraphics, modeSorter(), mVideoModes, and Catch::toString().
|
private |
Definition at line 78 of file modelistmodel.cpp.
References mVideoModes.
Referenced by ModeListModel().
|
inlinevirtual |
Returns element from container.
Implements ListModel.
Definition at line 50 of file modelistmodel.h.
References CAST_SIZE, and mVideoModes.
Referenced by Setup_Video::action(), and getIndexOf().
int ModeListModel::getIndexOf | ( | const std::string & | widthXHeightMode | ) |
Returns the index corresponding to the given video mode. E.g.: "800x600". or -1 if not found.
Definition at line 92 of file modelistmodel.cpp.
References getElementAt(), and getNumberOfElements().
Referenced by Setup_Video::cancel(), and Setup_Video::Setup_Video().
|
inlinevirtual |
Returns the number of elements in container.
Implements ListModel.
Definition at line 44 of file modelistmodel.h.
References CAST_S32, and mVideoModes.
Referenced by getIndexOf().
|
private |
Definition at line 65 of file modelistmodel.h.
Referenced by addCustomMode(), getElementAt(), getNumberOfElements(), and ModeListModel().