kutils Library API Documentation

kreplacedialog.h

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., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, 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 00057 class KReplaceDialog: 00058 public KFindDialog 00059 { 00060 Q_OBJECT 00061 00062 public: 00063 00064 // Options. 00065 00066 enum Options 00067 { 00068 // Should the user be prompted before the replace operation? 00069 PromptOnReplace = 256, 00070 BackReference = 512 00071 }; 00072 00085 KReplaceDialog( QWidget *parent = 0, const char *name = 0, long options = 0, 00086 const QStringList &findStrings = QStringList(), 00087 const QStringList &replaceStrings = QStringList(), 00088 bool hasSelection = true ); 00089 00093 virtual ~KReplaceDialog(); 00094 00103 void setReplacementHistory( const QStringList &history ); 00104 00110 QStringList replacementHistory() const; 00111 00117 void setOptions( long options ); 00118 00125 long options() const; 00126 00130 QString replacement() const; 00131 00138 QWidget *replaceExtension(); 00139 00140 protected slots: 00141 00142 void slotOk(); 00143 virtual void showEvent ( QShowEvent * ); 00144 00145 private: 00146 00147 // Binary compatible extensibility. 00148 class KReplaceDialogPrivate; 00149 KReplaceDialogPrivate *d; 00150 }; 00151 00152 00153 #endif // KREPLACEDIALOG_H
KDE Logo
This file is part of the documentation for kutils Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 17 11:31:55 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003