KDEUI
kreplacedialog.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 KREPLACEDIALOG_H
00022 #define KREPLACEDIALOG_H
00023
00024 #include "kfinddialog.h"
00025
00026
00027 class KReplaceDialogPrivate;
00028
00052 class KDEUI_EXPORT KReplaceDialog:
00053 public KFindDialog
00054 {
00055 Q_OBJECT
00056
00057 public:
00058
00059
00060
00061 enum Options
00062 {
00063
00064 PromptOnReplace = 256,
00065 BackReference = 512
00066 };
00067
00079 explicit KReplaceDialog( QWidget *parent = 0, long options = 0,
00080 const QStringList &findStrings = QStringList(),
00081 const QStringList &replaceStrings = QStringList(),
00082 bool hasSelection = true );
00083
00087 virtual ~KReplaceDialog();
00088
00097 void setReplacementHistory( const QStringList &history );
00098
00104 QStringList replacementHistory() const;
00105
00111 void setOptions( long options );
00112
00119 long options() const;
00120
00124 QString replacement() const;
00125
00132 QWidget *replaceExtension() const;
00133
00134 protected:
00135 virtual void showEvent( QShowEvent * );
00136
00137 private:
00138
00139 KReplaceDialogPrivate* const d;
00140
00141 Q_PRIVATE_SLOT( d, void _k_slotOk() )
00142 };
00143
00144 #endif // KREPLACEDIALOG_H