appoutputwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 1999-2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _APPOUTPUTWIDGET_H_ 00013 #define _APPOUTPUTWIDGET_H_ 00014 00015 #include <qstringlist.h> 00016 #include <kregexp.h> 00017 00018 #include "processwidget.h" 00019 00020 class AppOutputViewPart; 00021 00022 enum FilterType { 00023 eNoFilter=0, 00024 eFilterStr=1, 00025 eFilterRegExp=2 00026 }; 00027 00028 class AppOutputWidget : public ProcessWidget 00029 { 00030 Q_OBJECT 00031 friend class AppOutputViewPart; 00032 public: 00033 AppOutputWidget(AppOutputViewPart* part); 00034 ~AppOutputWidget(); 00035 00036 public slots: 00037 void slotRowSelected(QListBoxItem* row); 00038 void insertStdoutLine(const QString &line); 00039 void insertStderrLine(const QString &line); 00040 void slotContextMenu(QListBoxItem *, const QPoint &); 00041 00042 private: 00043 virtual void childFinished(bool normal, int status); 00044 00045 QStringList strList; 00046 FilterType iFilterType; 00047 QString strFilterStr; 00048 bool bCS; 00049 00050 AppOutputViewPart* m_part; 00051 }; 00052 00053 #endif