Add to launcher not yet functional search widget.
Make EditableWidget CommandSender svn-id: r41267
This commit is contained in:
parent
b0db1b5ed0
commit
dcc90445f6
12 changed files with 59 additions and 22 deletions
|
@ -30,16 +30,16 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
EditTextWidget::EditTextWidget(GuiObject *boss, int x, int y, int w, int h, const String &text)
|
||||
: EditableWidget(boss, x, y - 1, w, h + 2) {
|
||||
EditTextWidget::EditTextWidget(GuiObject *boss, int x, int y, int w, int h, const String &text, uint32 cmd)
|
||||
: EditableWidget(boss, x, y - 1, w, h + 2, cmd) {
|
||||
setFlags(WIDGET_ENABLED | WIDGET_CLEARBG | WIDGET_RETAIN_FOCUS | WIDGET_WANT_TICKLE);
|
||||
_type = kEditTextWidget;
|
||||
|
||||
setEditString(text);
|
||||
}
|
||||
|
||||
EditTextWidget::EditTextWidget(GuiObject *boss, const String &name, const String &text)
|
||||
: EditableWidget(boss, name) {
|
||||
EditTextWidget::EditTextWidget(GuiObject *boss, const String &name, const String &text, uint32 cmd)
|
||||
: EditableWidget(boss, name, cmd) {
|
||||
setFlags(WIDGET_ENABLED | WIDGET_CLEARBG | WIDGET_RETAIN_FOCUS | WIDGET_WANT_TICKLE);
|
||||
_type = kEditTextWidget;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue