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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • findreplace
kfinddialog.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 KFINDDIALOG_H
22 #define KFINDDIALOG_H
23 
24 #include <kdialog.h>
25 
78 class KDEUI_EXPORT KFindDialog:
79  public KDialog
80 {
81  Q_OBJECT
82 
83 public:
84 
85 
94  explicit KFindDialog( QWidget *parent = 0, long options = 0,
95  const QStringList &findStrings = QStringList(), bool hasSelection = false, bool replaceDialog = false );
96 
100  virtual ~KFindDialog();
101 
110  void setFindHistory( const QStringList &history );
111 
117  QStringList findHistory() const;
118 
125  void setHasSelection( bool hasSelection );
126 
134  void setHasCursor( bool hasCursor );
135 
143  void setSupportsBackwardsFind( bool supports );
144 
152  void setSupportsCaseSensitiveFind( bool supports );
153 
161  void setSupportsWholeWordsFind( bool supports );
162 
170  void setSupportsRegularExpressionFind( bool supports );
171 
180  void setOptions( long options );
181 
189  long options() const;
190 
194  QString pattern() const;
195 
199  void setPattern ( const QString &pattern );
200 
207  QWidget *findExtension() const;
208 
209 Q_SIGNALS:
214  void optionsChanged();
215 
216 protected:
217  virtual void showEvent ( QShowEvent * );
218 
219 private:
220  friend class KReplaceDialog;
221  friend class KReplaceDialogPrivate;
222  class KFindDialogPrivate;
223  KFindDialogPrivate* const d;
224 
225  Q_PRIVATE_SLOT( d, void _k_slotPlaceholdersAboutToShow() )
226  Q_PRIVATE_SLOT( d, void _k_slotOk() )
227  Q_PRIVATE_SLOT( d, void _k_slotSelectedTextToggled(bool) )
228  Q_PRIVATE_SLOT( d, void _k_showPatterns() )
229  Q_PRIVATE_SLOT( d, void _k_showPlaceholders() )
230  Q_PRIVATE_SLOT( d, void _k_textSearchChanged(const QString&) )
231 };
232 
233 #endif // KFINDDIALOG_H
kdialog.h
KFindDialog
A generic "find" dialog.
Definition: kfinddialog.h:78
QWidget
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
KReplaceDialog
A generic "replace" dialog.
Definition: kreplacedialog.h:54
QShowEvent
QString
QStringList
QDialog::showEvent
virtual void showEvent(QShowEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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