24 #include <kdialogbase.h>
94 RegularExpression = 32,
98 MinimumUserOption = 65536
110 KFindDialog( TQWidget *parent = 0,
const char *name = 0,
long options = 0,
111 const TQStringList &findStrings = TQStringList(),
bool hasSelection =
false );
125 KFindDialog(
bool modal, TQWidget *parent = 0,
const char *name = 0,
long options = 0,
126 const TQStringList &findStrings = TQStringList(),
bool hasSelection =
false );
142 void setFindHistory(
const TQStringList &history );
150 TQStringList findHistory()
const;
158 void setHasSelection(
bool hasSelection );
167 void setHasCursor(
bool hasCursor );
177 void setSupportsBackwardsFind(
bool supports );
187 void setSupportsCaseSensitiveFind(
bool supports );
197 void setSupportsWholeWordsFind(
bool supports );
207 void setSupportsRegularExpressionFind(
bool supports );
215 void setOptions(
long options );
224 long options()
const;
230 TQString pattern()
const;
236 void setPattern (
const TQString &pattern );
245 TQWidget *findExtension();
250 void slotSelectedTextToggled(
bool);
252 void showPlaceholders();
253 void textSearchChanged(
const TQString &);
256 virtual void showEvent ( TQShowEvent * );
263 void slotPlaceholdersAboutToShow();
267 TQGroupBox *m_findGrp;
268 TQLabel *m_findLabel;
270 TQCheckBox *m_regExp;
271 TQPushButton *m_regExpItem;
272 TQGridLayout *m_findLayout;
273 TQWidget *m_findExtension;
275 TQGroupBox *m_optionGrp;
276 TQCheckBox *m_wholeWordsOnly;
277 TQCheckBox *m_fromCursor;
278 TQCheckBox *m_selectedText;
279 TQCheckBox *m_caseSensitive;
280 TQCheckBox *m_findBackwards;
282 TQPopupMenu *m_patterns;
295 KFindDialog( TQWidget *parent,
const char *name,
bool forReplace );
296 void init(
bool forReplace,
const TQStringList &findStrings,
bool hasSelection );
298 TQGroupBox *m_replaceGrp;
299 TQLabel *m_replaceLabel;
301 TQCheckBox* m_backRef;
302 TQPushButton* m_backRefItem;
303 TQGridLayout *m_replaceLayout;
304 TQWidget *m_replaceExtension;
306 TQCheckBox* m_promptOnReplace;
308 TQPopupMenu *m_placeholders;
311 class KFindDialogPrivate;
312 KFindDialogPrivate *d;
315 #endif // KFINDDIALOG_H