KDevelop API Documentation

parts/replace/replaceview.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Jens Dagerbo * 00003 * jens.dagerbo@swipnet.se * 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 __REPLACEVIEW_H__ 00013 #define __REPLACEVIEW_H__ 00014 00015 #include <klistview.h> 00016 00017 #include <qstring.h> 00018 #include <qregexp.h> 00019 00020 class QTextStream; 00021 class QWidget; 00022 class ReplaceItem; 00023 00024 class ReplaceView : public KListView 00025 { 00026 Q_OBJECT 00027 00028 signals: 00029 void editDocument( const QString &, int ); 00030 00031 public: 00032 ReplaceView( QWidget *); 00033 ReplaceItem * firstChild() const; 00034 void setReplacementData( QRegExp const &, QString const & ); 00035 void showReplacementsForFile( QTextStream &, QString const & ); 00036 void makeReplacementsForFile( QTextStream & istream, QTextStream & ostream, ReplaceItem const * fileitem ); 00037 00038 private slots: 00039 void slotMousePressed(int, QListViewItem *, const QPoint &, int); 00040 void slotClicked( QListViewItem * ); 00041 00042 private: 00043 QRegExp _regexp; 00044 QString _replacement; 00045 ReplaceItem * _latestfile; 00046 00047 friend class ReplaceItem; 00048 00049 }; 00050 00051 00052 00053 00054 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:52 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003