You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
#ifndef AHISTLINEEDIT_H
|
|
#define AHISTLINEEDIT_H
|
|
|
|
#include <tqtextedit.h>
|
|
#include <tqstringlist.h>
|
|
#include <tqsize.h>
|
|
|
|
class aHistLineEdit : public TQTextEdit
|
|
{
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
public:
|
|
aHistLineEdit(TQWidget *parent = 0, const char *name = 0);
|
|
|
|
int cursorPosition () const;
|
|
void setCursorPosition(int);
|
|
|
|
TQString text() const;
|
|
|
|
signals:
|
|
// Don't use returnPressed from the textEdit
|
|
void gotReturnPressed();
|
|
void gotFocus();
|
|
void lostFocus();
|
|
void pasteText(const TQString&);
|
|
void notTab();
|
|
void resized();
|
|
|
|
public slots:
|
|
virtual void paste();
|
|
virtual void slotMaybeResize();
|
|
|
|
protected:
|
|
bool processKeyEvent( TQKeyEvent * );
|
|
virtual void keyPressEvent ( TQKeyEvent * );
|
|
virtual void focusInEvent ( TQFocusEvent * );
|
|
virtual void focusOutEvent ( TQFocusEvent * );
|
|
// virtual void mousePressEvent ( TQMouseEvent * );
|
|
|
|
virtual bool eventFilter( TQObject *o, TQEvent *e );
|
|
|
|
virtual void paintEvent ( TQPaintEvent * );
|
|
|
|
private:
|
|
|
|
void doEnterKey();
|
|
|
|
TQStringList hist;
|
|
TQStringList::Iterator current;
|
|
void ColourPickerPopUp();
|
|
int m_height;
|
|
|
|
bool m_drawrect;
|
|
|
|
};
|
|
|
|
#endif
|