• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • 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 
00052 class KDEUI_EXPORT KReplaceDialog:
00053     public KFindDialog
00054 {
00055     Q_OBJECT
00056 
00057 public:
00058 
00059     // Options.
00060 
00061     enum Options
00062     {
00063         // Should the user be prompted before the replace operation?
00064         PromptOnReplace = 256,
00065         BackReference = 512
00066     };
00067 
00079     explicit KReplaceDialog( QWidget *parent = 0, long options = 0,
00080                              const QStringList &findStrings = QStringList(),
00081                              const QStringList &replaceStrings = QStringList(),
00082                              bool hasSelection = true );
00083 
00087     virtual ~KReplaceDialog();
00088 
00097     void setReplacementHistory( const QStringList &history );
00098 
00104     QStringList replacementHistory() const;
00105 
00111     void setOptions( long options );
00112 
00119     long options() const;
00120 
00124     QString replacement() const;
00125 
00132     QWidget *replaceExtension() const;
00133 
00134 protected:
00135     virtual void showEvent( QShowEvent * );
00136 
00137 private:
00138 
00139     KReplaceDialogPrivate* const d;
00140 
00141     Q_PRIVATE_SLOT( d, void _k_slotOk() )
00142 };
00143 
00144 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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