kate Library API Documentation

kategrepdialog.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00003 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org> 00004 Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License version 2 as published by the Free Software Foundation. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef _GREPDIALOG_H_ 00022 #define _GREPDIALOG_H_ 00023 00024 #include <kdialog.h> 00025 #include <qstringlist.h> 00026 00027 class QLineEdit; 00028 class QComboBox; 00029 class QCheckBox; 00030 class QListBox; 00031 class QPushButton; 00032 class QLabel; 00033 class KProcess; 00034 class KConfig; 00035 class KURLRequester; 00036 class QEvent; 00037 00038 class GrepTool : public QWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 GrepTool(class KateMainWindow *parent=0, const char *name=0); 00044 ~GrepTool(); 00045 00046 // only updates if the dir you give to it differs from the last one given to it ! 00047 void updateDirName(const QString &); 00048 00049 void setDirName(const QString &); 00050 00051 00052 signals: 00053 void itemSelected(const QString &abs_filename, int line); 00054 00055 public slots: 00056 void slotSearchFor(const QString &pattern); 00057 00058 protected: 00059 bool eventFilter( QObject *, QEvent * ); 00060 00061 private slots: 00062 void templateActivated(int index); 00063 void childExited(); 00064 void receivedOutput(KProcess *proc, char *buffer, int buflen); 00065 void receivedErrOutput(KProcess *proc, char *buffer, int buflen); 00066 void itemSelected(const QString&); 00067 void slotSearch(); 00068 void slotCancel(); 00069 void slotClear(); 00070 void patternTextChanged( const QString &); 00071 private: 00072 void processOutput(); 00073 void finish(); 00074 00075 QLineEdit *template_edit; 00076 QComboBox *files_combo, *pattern_combo; 00077 KURLRequester *dir_combo; 00078 QCheckBox *recursive_box; 00079 QListBox *resultbox; 00080 QPushButton *search_button, *clear_button; 00081 KProcess *childproc; 00082 QString buf; 00083 QString errbuf; 00084 KConfig* config; 00085 QStringList lastSearchItems; 00086 QStringList lastSearchPaths; 00087 QString m_lastUpdatedDir; 00088 }; 00089 00090 00091 #endif
KDE Logo
This file is part of the documentation for kate Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 16 15:59:27 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003