Permalink
Browse files

Update edittext.h

  • Loading branch information...
Sedictious committed Aug 10, 2018
1 parent 374ca69 commit 0f66678a4979cb5f5109b0586e25759271d45c3b
Showing with 10 additions and 1 deletion.
  1. +10 −1 gui/widgets/edittext.h
@@ -25,9 +25,14 @@

#include "gui/widgets/editable.h"
#include "common/str.h"
#include "gui/dialog.h"

namespace GUI {

enum {
_ExitTxtCmd = 'TXTE'
};

/* EditTextWidget */
class EditTextWidget : public EditableWidget {
protected:
@@ -43,13 +48,16 @@ class EditTextWidget : public EditableWidget {
EditTextWidget(GuiObject *boss, const String &name, const String &text, const char *tooltp = 0, uint32 cmd = 0, uint32 finishCmd = 0);

void setEditString(const String &str);

String getEditString();

virtual void handleMouseDown(int x, int y, int button, int clickCount);

virtual bool wantsFocus() { return true; }

virtual void reflowLayout();


protected:
void drawWidget();
void receivedFocusWidget();
@@ -58,6 +66,7 @@ class EditTextWidget : public EditableWidget {
void startEditMode();
void endEditMode();
void abortEditMode();


Common::Rect getEditRect() const;

0 comments on commit 0f66678

Please sign in to comment.