arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

ErrTxtWin.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     7-15-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 
00019 // ErrTxtWin.h
00020 ///  a window for showing text errors
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 

Send questions, comments, and bug reports to:
jmk