kreplacedialog.h00001
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 class KHistoryCombo;
00027 class QCheckBox;
00028 class QGroupBox;
00029 class QLabel;
00030 class QPopupMenu;
00031 class QPushButton;
00032 class QRect;
00033
00059 class KUTILS_EXPORT KReplaceDialog:
00060 public KFindDialog
00061 {
00062 Q_OBJECT
00063
00064 public:
00065
00069 enum Options
00070 {
00071 PromptOnReplace = 256,
00072 BackReference = 512
00073 };
00074
00087 KReplaceDialog( QWidget *parent = 0, const char *name = 0, long options = 0,
00088 const QStringList &findStrings = QStringList(),
00089 const QStringList &replaceStrings = QStringList(),
00090 bool hasSelection = true );
00091
00095 virtual ~KReplaceDialog();
00096
00105 void setReplacementHistory( const QStringList &history );
00106
00113 QStringList replacementHistory() const;
00114
00121 void setOptions( long options );
00122
00130 long options() const;
00131
00136 QString replacement() const;
00137
00145 QWidget *replaceExtension();
00146
00147 protected slots:
00148
00149 void slotOk();
00150 virtual void showEvent ( QShowEvent * );
00151
00152 private:
00153
00154
00155 class KReplaceDialogPrivate;
00156 KReplaceDialogPrivate *d;
00157 };
00158
00159
00160 #endif // KREPLACEDIALOG_H
|