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

KDEUI

  • kdeui
  • findreplace
kreplacedialog.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2001, S.R.Haque <srhaque@iee.org>.
3 Copyright (C) 2002, David Faure <david@mandrakesoft.com>
4 This file is part of the KDE project
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2, as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KREPLACEDIALOG_H
22#define KREPLACEDIALOG_H
23
24#include "kfinddialog.h"
25
26
27class KReplaceDialogPrivate;
28
54class KDEUI_EXPORT KReplaceDialog:
55 public KFindDialog
56{
57 Q_OBJECT
58
59public:
60
61 // Options.
62
63 enum Options
64 {
65 // Should the user be prompted before the replace operation?
66 PromptOnReplace = 256,
67 BackReference = 512
68 };
69
81 explicit KReplaceDialog( QWidget *parent = 0, long options = 0,
82 const QStringList &findStrings = QStringList(),
83 const QStringList &replaceStrings = QStringList(),
84 bool hasSelection = true );
85
89 virtual ~KReplaceDialog();
90
99 void setReplacementHistory( const QStringList &history );
100
106 QStringList replacementHistory() const;
107
113 void setOptions( long options );
114
121 long options() const;
122
126 QString replacement() const;
127
134 QWidget *replaceExtension() const;
135
136protected:
137 virtual void showEvent( QShowEvent * );
138
139private:
140
141 KReplaceDialogPrivate* const d;
142
143 Q_PRIVATE_SLOT( d, void _k_slotOk() )
144};
145
146#endif // KREPLACEDIALOG_H
KFindDialog
A generic "find" dialog.
Definition: kfinddialog.h:80
KReplaceDialog
A generic "replace" dialog.
Definition: kreplacedialog.h:56
KReplaceDialog::Options
Options
Definition: kreplacedialog.h:64
QWidget
kfinddialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal