00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef __ERROR_TEXT_WINDOW_DOT_H
00023 #define __ERROR_TEXT_WINDOW_DOT_H
00024 
00025 #include <qmainwindow.h>
00026 #include <qmultilineedit.h>
00027 
00028 
00029 class ErrTxtWin : public QMainWindow {
00030    Q_OBJECT
00031 public:
00032    ErrTxtWin(const char *txt, QWidget *parent, const char *name=0, WFlags wf=0);
00033    virtual ~ErrTxtWin();
00034 
00035 public slots:
00036    void changeText(const char *txt);
00037    void changeText(const QString &s);
00038    void launchError(const QString &s);
00039    void maybeError(const QString &s);
00040    void setSelection(int start, int length);
00041    void markSelection(int pos);
00042 
00043 signals:
00044    void textChanged(const QString &s);
00045 
00046 protected:
00047    virtual void keyPressEvent(QKeyEvent *key);
00048    
00049    QMultiLineEdit *_mle;   
00050 };
00051 
00052 
00053 #endif
00054 
00055