• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

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 
00027 class KReplaceDialogPrivate;
00028 
00054 class KDEUI_EXPORT KReplaceDialog:
00055     public KFindDialog
00056 {
00057     Q_OBJECT
00058 
00059 public:
00060 
00061     // Options.
00062 
00063     enum Options
00064     {
00065         // Should the user be prompted before the replace operation?
00066         PromptOnReplace = 256,
00067         BackReference = 512
00068     };
00069 
00081     explicit KReplaceDialog( QWidget *parent = 0, long options = 0,
00082                              const QStringList &findStrings = QStringList(),
00083                              const QStringList &replaceStrings = QStringList(),
00084                              bool hasSelection = true );
00085 
00089     virtual ~KReplaceDialog();
00090 
00099     void setReplacementHistory( const QStringList &history );
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() const;
00135 
00136 protected:
00137     virtual void showEvent( QShowEvent * );
00138 
00139 private:
00140 
00141     KReplaceDialogPrivate* const d;
00142 
00143     Q_PRIVATE_SLOT( d, void _k_slotOk() )
00144 };
00145 
00146 #endif // KREPLACEDIALOG_H

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal