summaryrefslogtreecommitdiff
path: root/client/widgets/textedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/textedit.h')
-rw-r--r--client/widgets/textedit.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/client/widgets/textedit.h b/client/widgets/textedit.h
index c734f38..722abcd 100644
--- a/client/widgets/textedit.h
+++ b/client/widgets/textedit.h
@@ -31,6 +31,7 @@
#include <QTextEdit>
#include <QWidget>
#include <QDomNode>
+#include <QKeyEvent>
class TextEdit : public QTextEdit, public Widget
{
@@ -39,10 +40,27 @@ public:
TextEdit(QDomNode &node, MacroWindow *macrowindow);
QString getValue();
- void setValue(QString value);
+ void setValue(QString value, QString source = "");
+
+ void connectFrom(const char *signal,
+ const QObject *receiver, const char *method);
+
+ void connectTo(const QObject *sender, const char *signal,
+ const char *method);
+
+ bool setKeyboardFocus();
+
+ void setVisibility(bool visible);
+
+signals:
+ void wasChanged();
public slots:
void changed();
+ // void user_changed();
+
+protected:
+ bool eventFilter(QObject *obj, QEvent *event);
};
#endif/*__PRACRO_TEXTEDIT_H__*/