tdeutils
kreplacedialog.h
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 class KHistoryCombo;
00027 class TQCheckBox;
00028 class TQGroupBox;
00029 class TQLabel;
00030 class TQPopupMenu;
00031 class TQPushButton;
00032 class TQRect;
00033
00059 class TDEUTILS_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( TQWidget *parent = 0, const char *name = 0, long options = 0,
00088 const TQStringList &findStrings = TQStringList(),
00089 const TQStringList &replaceStrings = TQStringList(),
00090 bool hasSelection = true );
00091
00095 virtual ~KReplaceDialog();
00096
00105 void setReplacementHistory( const TQStringList &history );
00106
00113 TQStringList replacementHistory() const;
00114
00121 void setOptions( long options );
00122
00130 long options() const;
00131
00136 TQString replacement() const;
00137
00145 TQWidget *replaceExtension();
00146
00147 protected slots:
00148
00149 void slotOk();
00150 virtual void showEvent ( TQShowEvent * );
00151
00152 private:
00153
00154
00155 class KReplaceDialogPrivate;
00156 KReplaceDialogPrivate *d;
00157 };
00158
00159
00160 #endif // KREPLACEDIALOG_H