1
/***************************************************************************
2
* Copyright (C) 2003 by Jens Dagerbo *
3
* jens.dagerbo@swipnet.se *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef __REPLACE_WIDGET_H__
13
#define __REPLACE_WIDGET_H__
15
#include <ktexteditor/editinterface.h>
29
class ReplaceWidget : public QWidget
34
ReplaceWidget(ReplacePart *part);
38
void stopButtonClicked( KDevPlugin * );
41
virtual void focusInEvent(QFocusEvent *e);
47
void editDocument( const QString & ,int );
48
void setCursorPos( KParts::Part *part, uint line, uint col );
49
void cursorPos( KParts::Part *part, uint * line, uint * col );
52
bool showReplacements();
53
bool makeReplacements();
54
bool shouldTerminate();
56
QString relativeProjectPath( QString );
57
QString fullProjectPath( QString );
59
QStringList workFiles();
60
QStringList allProjectFiles();
61
QStringList subProjectFiles( QString const & );
62
QStringList openProjectFiles();
64
KTextEditor::EditInterface * getEditInterfaceForFile( QString const & file );
67
ReplaceDlgImpl * m_dialog;
69
ReplaceView * _listview;
70
QPushButton * _cancel;
71
QPushButton * _replace;
77
bool _terminateOperation;