KDEUI
kfinddialog.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 KFINDDIALOG_H 00022 #define KFINDDIALOG_H 00023 00024 #include <kdialog.h> 00025 00078 class KDEUI_EXPORT KFindDialog: 00079 public KDialog 00080 { 00081 Q_OBJECT 00082 00083 public: 00084 00085 00094 explicit KFindDialog( QWidget *parent = 0, long options = 0, 00095 const QStringList &findStrings = QStringList(), bool hasSelection = false, bool replaceDialog = false ); 00096 00100 virtual ~KFindDialog(); 00101 00110 void setFindHistory( const QStringList &history ); 00111 00117 QStringList findHistory() const; 00118 00125 void setHasSelection( bool hasSelection ); 00126 00134 void setHasCursor( bool hasCursor ); 00135 00143 void setSupportsBackwardsFind( bool supports ); 00144 00152 void setSupportsCaseSensitiveFind( bool supports ); 00153 00161 void setSupportsWholeWordsFind( bool supports ); 00162 00170 void setSupportsRegularExpressionFind( bool supports ); 00171 00180 void setOptions( long options ); 00181 00189 long options() const; 00190 00194 QString pattern() const; 00195 00199 void setPattern ( const QString &pattern ); 00200 00207 QWidget *findExtension() const; 00208 00209 Q_SIGNALS: 00214 void optionsChanged(); 00215 00216 protected: 00217 virtual void showEvent ( QShowEvent * ); 00218 00219 private: 00220 friend class KReplaceDialog; 00221 friend class KReplaceDialogPrivate; 00222 class KFindDialogPrivate; 00223 KFindDialogPrivate* const d; 00224 00225 Q_PRIVATE_SLOT( d, void _k_slotPlaceholdersAboutToShow() ) 00226 Q_PRIVATE_SLOT( d, void _k_slotOk() ) 00227 Q_PRIVATE_SLOT( d, void _k_slotSelectedTextToggled(bool) ) 00228 Q_PRIVATE_SLOT( d, void _k_showPatterns() ) 00229 Q_PRIVATE_SLOT( d, void _k_showPlaceholders() ) 00230 Q_PRIVATE_SLOT( d, void _k_textSearchChanged(const QString&) ) 00231 }; 00232 00233 #endif // KFINDDIALOG_H
KDE 4.7 API Reference