KDEUI
kfinddialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KFINDDIALOG_H
00022 #define KFINDDIALOG_H
00023
00024 #include <kdialog.h>
00025
00065 class KDEUI_EXPORT KFindDialog:
00066 public KDialog
00067 {
00068 Q_OBJECT
00069
00070 public:
00071
00072
00081 explicit KFindDialog( QWidget *parent = 0, long options = 0,
00082 const QStringList &findStrings = QStringList(), bool hasSelection = false, bool replaceDialog = false );
00083
00087 virtual ~KFindDialog();
00088
00097 void setFindHistory( const QStringList &history );
00098
00104 QStringList findHistory() const;
00105
00112 void setHasSelection( bool hasSelection );
00113
00121 void setHasCursor( bool hasCursor );
00122
00130 void setSupportsBackwardsFind( bool supports );
00131
00139 void setSupportsCaseSensitiveFind( bool supports );
00140
00148 void setSupportsWholeWordsFind( bool supports );
00149
00157 void setSupportsRegularExpressionFind( bool supports );
00158
00167 void setOptions( long options );
00168
00176 long options() const;
00177
00181 QString pattern() const;
00182
00186 void setPattern ( const QString &pattern );
00187
00194 QWidget *findExtension() const;
00195
00196 Q_SIGNALS:
00201 void optionsChanged();
00202
00203 protected:
00204 virtual void showEvent ( QShowEvent * );
00205
00206 private:
00207 friend class KReplaceDialog;
00208 friend class KReplaceDialogPrivate;
00209 class KFindDialogPrivate;
00210 KFindDialogPrivate* const d;
00211
00212 Q_PRIVATE_SLOT( d, void _k_slotPlaceholdersAboutToShow() )
00213 Q_PRIVATE_SLOT( d, void _k_slotOk() )
00214 Q_PRIVATE_SLOT( d, void _k_slotSelectedTextToggled(bool) )
00215 Q_PRIVATE_SLOT( d, void _k_showPatterns() )
00216 Q_PRIVATE_SLOT( d, void _k_showPlaceholders() )
00217 Q_PRIVATE_SLOT( d, void _k_textSearchChanged(const QString&) )
00218 };
00219
00220 #endif // KFINDDIALOG_H