KUtils
kreplacedialog.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2001, S.R.Haque <srhaque@iee.org>. 00003 Copyright (C) 2002, David Faure <david@mandrakesoft.com> 00004 This file is part of the KDE project 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., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KREPLACEDIALOG_H 00022 #define KREPLACEDIALOG_H 00023 00024 #include "kfinddialog.h" 00025 00026 class KHistoryCombo; 00027 class QCheckBox; 00028 class QGroupBox; 00029 class QLabel; 00030 class QPopupMenu; 00031 class QPushButton; 00032 class QRect; 00033 00059 class KUTILS_EXPORT KReplaceDialog: 00060 public KFindDialog 00061 { 00062 Q_OBJECT 00063 00064 public: 00065 00069 enum Options 00070 { 00071 PromptOnReplace = 256, 00072 BackReference = 512 00073 }; 00074 00087 KReplaceDialog( QWidget *parent = 0, const char *name = 0, long options = 0, 00088 const QStringList &findStrings = QStringList(), 00089 const QStringList &replaceStrings = QStringList(), 00090 bool hasSelection = true ); 00091 00095 virtual ~KReplaceDialog(); 00096 00105 void setReplacementHistory( const QStringList &history ); 00106 00113 QStringList replacementHistory() const; 00114 00121 void setOptions( long options ); 00122 00130 long options() const; 00131 00136 QString replacement() const; 00137 00145 QWidget *replaceExtension(); 00146 00147 protected slots: 00148 00149 void slotOk(); 00150 virtual void showEvent ( QShowEvent * ); 00151 00152 private: 00153 00154 // Binary compatible extensibility. 00155 class KReplaceDialogPrivate; 00156 KReplaceDialogPrivate *d; 00157 }; 00158 00159 00160 #endif // KREPLACEDIALOG_H