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 00066 class KDEUI_EXPORT KFindDialog: 00067 public KDialog 00068 { 00069 Q_OBJECT 00070 00071 public: 00072 00073 00082 explicit KFindDialog( QWidget *parent = 0, long options = 0, 00083 const QStringList &findStrings = QStringList(), bool hasSelection = false, bool replaceDialog = false ); 00084 00088 virtual ~KFindDialog(); 00089 00098 void setFindHistory( const QStringList &history ); 00099 00105 QStringList findHistory() const; 00106 00113 void setHasSelection( bool hasSelection ); 00114 00122 void setHasCursor( bool hasCursor ); 00123 00131 void setSupportsBackwardsFind( bool supports ); 00132 00140 void setSupportsCaseSensitiveFind( bool supports ); 00141 00149 void setSupportsWholeWordsFind( bool supports ); 00150 00158 void setSupportsRegularExpressionFind( bool supports ); 00159 00168 void setOptions( long options ); 00169 00177 long options() const; 00178 00182 QString pattern() const; 00183 00187 void setPattern ( const QString &pattern ); 00188 00195 QWidget *findExtension() const; 00196 00197 Q_SIGNALS: 00202 void optionsChanged(); 00203 00204 protected: 00205 virtual void showEvent ( QShowEvent * ); 00206 00207 private: 00208 friend class KReplaceDialog; 00209 friend class KReplaceDialogPrivate; 00210 class KFindDialogPrivate; 00211 KFindDialogPrivate* const d; 00212 00213 Q_PRIVATE_SLOT( d, void _k_slotPlaceholdersAboutToShow() ) 00214 Q_PRIVATE_SLOT( d, void _k_slotOk() ) 00215 Q_PRIVATE_SLOT( d, void _k_slotSelectedTextToggled(bool) ) 00216 Q_PRIVATE_SLOT( d, void _k_showPatterns() ) 00217 Q_PRIVATE_SLOT( d, void _k_showPlaceholders() ) 00218 Q_PRIVATE_SLOT( d, void _k_textSearchChanged(const QString&) ) 00219 }; 00220 00221 #endif // KFINDDIALOG_H
KDE 4.6 API Reference