From 6224b74f34f0c055b6d9e2511bf9688d02c946c3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 16 Apr 2011 16:18:59 +0300 Subject: GUI: Let EditTextWidget notify when the editing is finished --- gui/widgets/edittext.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/widgets/edittext.h') diff --git a/gui/widgets/edittext.h b/gui/widgets/edittext.h index a2549882ca..b94e58780c 100644 --- a/gui/widgets/edittext.h +++ b/gui/widgets/edittext.h @@ -41,8 +41,8 @@ protected: int _rightPadding; public: - EditTextWidget(GuiObject *boss, int x, int y, int w, int h, const String &text, const char *tooltip = 0, uint32 cmd = 0); - EditTextWidget(GuiObject *boss, const String &name, const String &text, const char *tooltp = 0, uint32 cmd = 0); + EditTextWidget(GuiObject *boss, int x, int y, int w, int h, const String &text, const char *tooltip = 0, uint32 cmd = 0, uint32 finishCmd = 0); + EditTextWidget(GuiObject *boss, const String &name, const String &text, const char *tooltp = 0, uint32 cmd = 0, uint32 finishCmd = 0); void setEditString(const String &str); @@ -62,6 +62,8 @@ protected: void abortEditMode(); Common::Rect getEditRect() const; + + uint32 _finishCmd; }; } // End of namespace GUI -- cgit v1.2.3