summaryrefslogtreecommitdiffstats
path: root/ksirc/ahistlineedit.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/ahistlineedit.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/ahistlineedit.h')
-rw-r--r--ksirc/ahistlineedit.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/ksirc/ahistlineedit.h b/ksirc/ahistlineedit.h
new file mode 100644
index 00000000..a273791f
--- /dev/null
+++ b/ksirc/ahistlineedit.h
@@ -0,0 +1,56 @@
+#ifndef AHISTLINEEDIT_H
+#define AHISTLINEEDIT_H
+
+#include <qtextedit.h>
+#include <qstringlist.h>
+#include <qsize.h>
+
+class aHistLineEdit : public QTextEdit
+{
+Q_OBJECT
+public:
+ aHistLineEdit(QWidget *parent = 0, const char *name = 0);
+
+ int cursorPosition () const;
+ void setCursorPosition(int);
+
+ QString text() const;
+
+signals:
+ // Don't use returnPressed from the textEdit
+ void gotReturnPressed();
+ void gotFocus();
+ void lostFocus();
+ void pasteText(const QString&);
+ void notTab();
+ void resized();
+
+public slots:
+ virtual void paste();
+ virtual void slotMaybeResize();
+
+protected:
+ bool processKeyEvent( QKeyEvent * );
+ virtual void keyPressEvent ( QKeyEvent * );
+ virtual void focusInEvent ( QFocusEvent * );
+ virtual void focusOutEvent ( QFocusEvent * );
+// virtual void mousePressEvent ( QMouseEvent * );
+
+ virtual bool eventFilter( QObject *o, QEvent *e );
+
+ virtual void paintEvent ( QPaintEvent * );
+
+private:
+
+ void doEnterKey();
+
+ QStringList hist;
+ QStringList::Iterator current;
+ void ColourPickerPopUp();
+ int m_height;
+
+ bool m_drawrect;
+
+};
+
+#endif