parts/grepview/grepviewwidget.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 _GREPVIEWWIDGET_H_ 00013 #define _GREPVIEWWIDGET_H_ 00014 00015 #include "processwidget.h" 00016 00017 class GrepDialog; 00018 class GrepViewPart; 00019 class KDevProject; 00020 00021 00022 class GrepViewWidget : public ProcessWidget 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 GrepViewWidget(GrepViewPart *part); 00028 ~GrepViewWidget(); 00029 00030 void projectChanged(KDevProject *project); 00031 00032 public slots: 00033 void showDialog(); 00034 void showDialogWithPattern(QString pattern); 00035 00036 private slots: 00037 void searchActivated(); 00038 void slotExecuted(QListBoxItem *item); 00039 00040 private: 00041 virtual void childFinished(bool normal, int status); 00042 virtual void insertStdoutLine(const QString &line); 00043 00044 GrepDialog *grepdlg; 00045 GrepViewPart *m_part; 00046 int m_matchCount; 00047 QString _lastfilename; 00048 }; 00049 00050 #endif