From af9c9091ed69394171485aa4c4814504f86f2004 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Jan 2012 20:08:12 +0100 Subject: Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending... --- plugingui/lineedit.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'plugingui/lineedit.h') diff --git a/plugingui/lineedit.h b/plugingui/lineedit.h index 9e3e209..f85b7ae 100644 --- a/plugingui/lineedit.h +++ b/plugingui/lineedit.h @@ -32,20 +32,29 @@ #include "widget.h" +namespace GUI { + class LineEdit : public Widget { public: - LineEdit(GlobalContext *gctx, Widget *parent); + LineEdit(Widget *parent); + + bool isFocusable() { return true; } std::string text(); void setText(std::string text); + //protected: + void keyEvent(KeyEvent *e); + void repaintEvent(RepaintEvent *e); + protected: - void key(KeyEvent *e); - void repaint(RepaintEvent *e); + virtual void textChanged() {} private: std::string _text; size_t pos; }; +}; + #endif/*__DRUMGIZMO_LINEEDIT_H__*/ -- cgit v1.2.3