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 &);
254 void slotRegexCheckBoxToggled(
bool checked);
255 void slotPlaceholdersCheckBoxToggled(
bool checked);
258 virtual void showEvent ( TQShowEvent * );
265 void slotPlaceholdersAboutToShow();
269 TQGroupBox *m_findGrp;
270 TQLabel *m_findLabel;
272 TQCheckBox *m_regExp;
273 TQPushButton *m_regExpItem;
274 TQGridLayout *m_findLayout;
275 TQWidget *m_findExtension;
277 TQGroupBox *m_optionGrp;
278 TQCheckBox *m_wholeWordsOnly;
279 TQCheckBox *m_fromCursor;
280 TQCheckBox *m_selectedText;
281 TQCheckBox *m_caseSensitive;
282 TQCheckBox *m_findBackwards;
284 TQPopupMenu *m_patterns;
297 KFindDialog( TQWidget *parent,
const char *name,
bool forReplace );
298 void init(
bool forReplace,
const TQStringList &findStrings,
bool hasSelection );
300 TQGroupBox *m_replaceGrp;
301 TQLabel *m_replaceLabel;
303 TQCheckBox* m_backRef;
304 TQPushButton* m_backRefItem;
305 TQGridLayout *m_replaceLayout;
306 TQWidget *m_replaceExtension;
308 TQCheckBox* m_promptOnReplace;
310 TQPopupMenu *m_placeholders;
313 class KFindDialogPrivate;
314 KFindDialogPrivate *d;
KFindDialog(TQWidget *parent=0, const char *name=0, long options=0, const TQStringList &findStrings=TQStringList(), bool hasSelection=false)
Construct a modal find dialog.
Options
Options for the search.
A generic "replace" dialog.