aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-20 10:05:00 +0000
committerJohannes Schickel2009-08-20 10:05:00 +0000
commitb22ec9b4b60e1bd21df5a0283a15a5ae7f322244 (patch)
tree3e04ac0edcce27deea8e26199a3ee90717573d53
parentf898cd12e664af159e2d337fb8c8a0f9f976e1d9 (diff)
downloadscummvm-rg350-b22ec9b4b60e1bd21df5a0283a15a5ae7f322244.tar.gz
scummvm-rg350-b22ec9b4b60e1bd21df5a0283a15a5ae7f322244.tar.bz2
scummvm-rg350-b22ec9b4b60e1bd21df5a0283a15a5ae7f322244.zip
Cleanup.
svn-id: r43556
-rw-r--r--gui/ListWidget.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/gui/ListWidget.h b/gui/ListWidget.h
index c4fab9bd17..23c12a38fc 100644
--- a/gui/ListWidget.h
+++ b/gui/ListWidget.h
@@ -94,22 +94,32 @@ public:
virtual Widget *findWidget(int x, int y);
void setList(const StringList &list, const ColorList *colors = 0);
- void append(const String &s, ThemeEngine::FontColor color = ThemeEngine::kFontColorNormal);
const StringList &getList() const { return _dataList; }
- int getSelected() const { return (_filter.empty() || _selectedItem == -1) ? _selectedItem : _listIndex[_selectedItem]; }
+
+ void append(const String &s, ThemeEngine::FontColor color = ThemeEngine::kFontColorNormal);
+
void setSelected(int item);
+ int getSelected() const { return (_filter.empty() || _selectedItem == -1) ? _selectedItem : _listIndex[_selectedItem]; }
+
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 @@ public:
virtual bool wantsFocus() { return true; }
- // Made startEditMode for SaveLoadChooser
- void startEditMode();
- void endEditMode();
-
protected:
void drawWidget();