[Scummvm-cvs-logs] SF.net SVN: scummvm:[43556] scummvm/trunk/gui/ListWidget.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Aug 20 12:05:00 CEST 2009
Revision: 43556
http://scummvm.svn.sourceforge.net/scummvm/?rev=43556&view=rev
Author: lordhoto
Date: 2009-08-20 10:05:00 +0000 (Thu, 20 Aug 2009)
Log Message:
-----------
Cleanup.
Modified Paths:
--------------
scummvm/trunk/gui/ListWidget.h
Modified: scummvm/trunk/gui/ListWidget.h
===================================================================
--- scummvm/trunk/gui/ListWidget.h 2009-08-20 10:04:21 UTC (rev 43555)
+++ scummvm/trunk/gui/ListWidget.h 2009-08-20 10:05:00 UTC (rev 43556)
@@ -94,22 +94,32 @@
virtual Widget *findWidget(int x, int y);
void setList(const StringList &list, const ColorList *colors = 0);
+ const StringList &getList() const { return _dataList; }
+
void append(const String &s, ThemeEngine::FontColor color = ThemeEngine::kFontColorNormal);
- const StringList &getList() const { return _dataList; }
+
+ void setSelected(int item);
int getSelected() const { return (_filter.empty() || _selectedItem == -1) ? _selectedItem : _listIndex[_selectedItem]; }
- void setSelected(int item);
+
const String &getSelectedString() const { return _list[_selectedItem]; }
ThemeEngine::FontColor getSelectionColor() const;
+
void setNumberingMode(NumberingMode numberingMode) { _numberingMode = numberingMode; }
- bool isEditable() const { return _editable; }
- void setEditable(bool editable) { _editable = editable; }
+
void scrollTo(int item);
void scrollToEnd();
+
void enableQuickSelect(bool enable) { _quickSelect = enable; }
String getQuickSelectString() const { return _quickSelectStr; }
+ bool isEditable() const { return _editable; }
+ void setEditable(bool editable) { _editable = editable; }
void setEditColor(ThemeEngine::FontColor color) { _editColor = color; }
+ // Made startEditMode/endEditMode for SaveLoadChooser
+ void startEditMode();
+ void endEditMode();
+
void setFilter(const String &filter, bool redraw = true);
virtual void handleTickle();
@@ -124,10 +134,6 @@
virtual bool wantsFocus() { return true; }
- // Made startEditMode for SaveLoadChooser
- void startEditMode();
- void endEditMode();
-
protected:
void drawWidget();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list