summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/lineedit.h')
-rw-r--r--plugingui/lineedit.h15
1 files changed, 12 insertions, 3 deletions
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__*/