1 // File : QAD_PyEditor.h
2 // Created : Thu Jun 14 16:05:46 2001
3 // Author : Nicolas REJNERI
6 // Copyright : Open CASCADE
10 #define QAD_PyEditor_H
12 #include <qmultilineedit.h>
16 class QAD_PyEditor : public QMultiLineEdit
21 QAD_PyEditor(QAD_PyInterp* interp, QWidget *parent=0, const char *name=0);
24 void setText(QString s);
25 bool isCommand(const QString& str) const;
28 void keyPressEvent (QKeyEvent * e);
29 void mousePressEvent (QMouseEvent * e);
30 void mouseReleaseEvent (QMouseEvent * e);
31 void dropEvent (QDropEvent *e);
37 QAD_PyInterp * _interp;
39 QString _currentCommand;
40 QString _currentPrompt;