KDevelop API Documentation

replace_widget.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 __REPLACE_WIDGET_H__
00013 #define __REPLACE_WIDGET_H__
00014 
00015 #include <ktexteditor/editinterface.h>
00016 
00017 #include <qwidget.h>
00018 #include <qstring.h>
00019 
00020 class QPushButton;
00021 class QListViewItem;
00022 class QDialog;
00023 
00024 class ReplacePart;
00025 class ReplaceDlgImpl;
00026 class ReplaceItem;
00027 class ReplaceView;
00028 
00029 class ReplaceWidget : public QWidget
00030 {
00031     Q_OBJECT
00032 
00033 public:
00034     ReplaceWidget(ReplacePart *part);
00035 
00036 public slots:
00037     void showDialog();
00038     void stopButtonClicked( KDevPlugin * );
00039     
00040 protected:
00041     virtual void focusInEvent(QFocusEvent *e);
00042 
00043 private slots:
00044     void find();
00045     void replace();
00046     void clear();
00047     void editDocument( const QString & ,int );
00048 
00049 private:
00050     bool showReplacements();
00051     bool makeReplacements();
00052     bool shouldTerminate();
00053 
00054     QString relativeProjectPath( QString );
00055     QString fullProjectPath( QString );
00056 
00057     QStringList workFiles();
00058     QStringList allProjectFiles();
00059     QStringList subProjectFiles( QString const & );
00060     QStringList openProjectFiles();
00061 
00062     KTextEditor::EditInterface * getEditInterfaceForFile( QString const & file );
00063 
00064     ReplacePart * m_part;
00065     ReplaceDlgImpl * m_dialog;
00066 
00067     ReplaceView * _listview;
00068     QPushButton * _cancel;
00069     QPushButton * _replace;
00070 
00071     bool _terminateOperation;
00072 };
00073 
00074 
00075 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003