summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
commitaf9c9091ed69394171485aa4c4814504f86f2004 (patch)
tree070b911dc8faed486c8e8829f0f41aec7d5b4350 /plugingui/lineedit.h
parent5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 (diff)
Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending...
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__*/