aboutsummaryrefslogtreecommitdiff
path: root/gui/ListWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ListWidget.h')
-rw-r--r--gui/ListWidget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/ListWidget.h b/gui/ListWidget.h
index 680a931025..aac853111f 100644
--- a/gui/ListWidget.h
+++ b/gui/ListWidget.h
@@ -75,10 +75,13 @@ protected:
int _scrollBarWidth;
String _filter;
+ bool _quickSelect;
+
+ uint32 _cmd;
public:
- ListWidget(GuiObject *boss, const String &name);
- ListWidget(GuiObject *boss, int x, int y, int w, int h);
+ ListWidget(GuiObject *boss, const String &name, uint32 cmd = 0);
+ ListWidget(GuiObject *boss, int x, int y, int w, int h, uint32 cmd = 0);
virtual ~ListWidget();
virtual Widget *findWidget(int x, int y);
@@ -94,6 +97,8 @@ public:
void setEditable(bool editable) { _editable = editable; }
void scrollTo(int item);
void scrollToEnd();
+ void enableQuickSelect(bool enable) { _quickSelect = enable; }
+ String getQuickSelectString() const { return _quickSelectStr; }
void setFilter(const String &filter);