kreplacedialog.h Source File (kutils Library)

| # kutils Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# 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
    00082     KReplaceDialog( QWidget *parent = 0, const char *name = 0, long options = 0,
    00083                      const QStringList &findStrings = QStringList(), const QStringList &replaceStrings = QStringList(),
    00084                      bool hasSelection = true );
    00085
    00089     virtual ~KReplaceDialog();
    00090
    00099     void setReplacementHistory( const QStringList &strings );
    00100
    00106     QStringList replacementHistory() const;
    00107
    00113     void setOptions( long options );
    00114
    00121     long options() const;
    00122
    00126     QString replacement() const;
    00127
    00134     QWidget *replaceExtension();
    00135
    00136 protected slots:
    00137
    00138     void slotOk();
    00139     virtual void showEvent ( QShowEvent * );
    00140
    00141 private:
    00142
    00143     // Binary compatible extensibility.
    00144     class KReplaceDialogPrivate;
    00145     KReplaceDialogPrivate *d;
    00146 };
    00147
    00148
    00149 #endif // KREPLACEDIALOG_H

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:28:04 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001