Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CList.h
Show All 34 Lines | |||||
public: | public: | ||||
CList(CGUI* pGUI); | CList(CGUI* pGUI); | ||||
virtual ~CList(); | virtual ~CList(); | ||||
/** | /** | ||||
* @see IGUIObject#ResetStates() | * @see IGUIObject#ResetStates() | ||||
*/ | */ | ||||
virtual void ResetStates() { IGUIScrollBarOwner::ResetStates(); } | virtual void ResetStates() override { IGUIScrollBarOwner::ResetStates(); } | ||||
/** | /** | ||||
* Adds an item last to the list. | * Adds an item last to the list. | ||||
*/ | */ | ||||
virtual void AddItem(const CStrW& str, const CStrW& data); | virtual void AddItem(const CStrW& str, const CStrW& data); | ||||
virtual void AddSettings() override; | |||||
protected: | protected: | ||||
/** | /** | ||||
* Sets up text, should be called every time changes has been | * Sets up text, should be called every time changes has been | ||||
* made that can change the visual. | * made that can change the visual. | ||||
*/ | */ | ||||
virtual void SetupText(); | virtual void SetupText() override; | ||||
/** | /** | ||||
* @see IGUIObject#HandleMessage() | * @see IGUIObject#HandleMessage() | ||||
*/ | */ | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message) override; | ||||
/** | /** | ||||
* Handle events manually to catch keyboard inputting. | * Handle events manually to catch keyboard inputting. | ||||
*/ | */ | ||||
virtual InReaction ManuallyHandleEvent(const SDL_Event_* ev); | virtual InReaction ManuallyHandleEvent(const SDL_Event_* ev) override; | ||||
/** | /** | ||||
* Draws the List box | * Draws the List box | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw() override; | ||||
/** | /** | ||||
* Easy select elements functions | * Easy select elements functions | ||||
*/ | */ | ||||
virtual void SelectNextElement(); | virtual void SelectNextElement(); | ||||
virtual void SelectPrevElement(); | virtual void SelectPrevElement(); | ||||
virtual void SelectFirstElement(); | virtual void SelectFirstElement(); | ||||
virtual void SelectLastElement(); | virtual void SelectLastElement(); | ||||
/** | /** | ||||
* Handle the \<item\> tag. | * Handle the \<item\> tag. | ||||
*/ | */ | ||||
virtual bool HandleAdditionalChildren(const XMBElement& child, CXeromyces* pFile); | virtual bool HandleAdditionalChildren(const XMBElement& child, CXeromyces* pFile) override; | ||||
// Called every time the auto-scrolling should be checked. | // Called every time the auto-scrolling should be checked. | ||||
void UpdateAutoScroll(); | void UpdateAutoScroll(); | ||||
// Extended drawing interface, this is so that classes built on the this one | // Extended drawing interface, this is so that classes built on the this one | ||||
// can use other sprite names. | // can use other sprite names. | ||||
virtual void DrawList(const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor); | virtual void DrawList(const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor); | ||||
Show All 30 Lines |
Wildfire Games · Phabricator