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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • 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 
27 class KReplaceDialogPrivate;
28 
54 class KDEUI_EXPORT KReplaceDialog:
55  public KFindDialog
56 {
57  Q_OBJECT
58 
59 public:
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 
136 protected:
137  virtual void showEvent( QShowEvent * );
138 
139 private:
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:78
QWidget
QString
KFindDialog::options
long options() const
Returns the state of the options.
Definition: kfinddialog.cpp:281
KFindDialog::KReplaceDialog
friend class KReplaceDialog
Definition: kfinddialog.h:220
KReplaceDialog
A generic "replace" dialog.
Definition: kreplacedialog.h:54
QStringList
KFindDialog::showEvent
virtual void showEvent(QShowEvent *)
Definition: kfinddialog.cpp:254
KFindDialog::setOptions
void setOptions(long options)
Set the options which are checked.
Definition: kfinddialog.cpp:398
KReplaceDialog::Options
Options
Definition: kreplacedialog.h:63
kfinddialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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