summaryrefslogtreecommitdiff
path: root/dw/ui.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/ui.hh')
-rw-r--r--dw/ui.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/ui.hh b/dw/ui.hh
index 0873217f..e6d98670 100644
--- a/dw/ui.hh
+++ b/dw/ui.hh
@@ -421,6 +421,7 @@ class SelectionResource: public Resource
{
public:
virtual void addItem (const char *str, bool enabled, bool selected) = 0;
+ virtual void setItem (int index, bool selected) = 0;
virtual void pushGroup (const char *name, bool enabled) = 0;
virtual void popGroup () = 0;
@@ -480,7 +481,8 @@ public:
class EntryResource: public TextResource
{
public:
- enum { UNLIMITED_MAX_LENGTH = -1 };
+ enum { UNLIMITED_SIZE = -1 };
+ virtual void setMaxLength (int maxlen) = 0;
};
class MultiLineTextResource: public TextResource
@@ -540,7 +542,7 @@ public:
virtual ListResource *createListResource (ListResource::SelectionMode
selectionMode, int rows) = 0;
virtual OptionMenuResource *createOptionMenuResource () = 0;
- virtual EntryResource *createEntryResource (int maxLength, bool password,
+ virtual EntryResource *createEntryResource (int size, bool password,
const char *label) = 0;
virtual MultiLineTextResource *createMultiLineTextResource (int cols,
int rows) = 0;