12#include "ktextwidgets_export.h"
17class KFindDialogPrivate;
80 const QStringList &findStrings = QStringList(),
81 bool hasSelection =
false,
82 bool replaceDialog =
false);
214 void showEvent(QShowEvent *)
override;
217 KTEXTWIDGETS_NO_EXPORT
explicit KFindDialog(KFindDialogPrivate &dd,
218 QWidget *parent =
nullptr,
220 const QStringList &findStrings = QStringList(),
221 bool hasSelection =
false,
222 bool replaceDialog =
false);
227 std::unique_ptr<class KFindDialogPrivate>
const d;
A generic "find" dialog.
Definition kfinddialog.h:66
void optionsChanged()
This signal is sent whenever one of the option checkboxes is toggled.
void setSupportsBackwardsFind(bool supports)
Enable/disable the 'Find backwards' option, depending on whether the application supports it.
KFindDialog(QWidget *parent=nullptr, long options=0, const QStringList &findStrings=QStringList(), bool hasSelection=false, bool replaceDialog=false)
Construct a modal find dialog.
void setHasCursor(bool hasCursor)
Hide/show the 'from cursor' option, depending on whether the application implements a cursor.
void setSupportsWholeWordsFind(bool supports)
Enable/disable the 'Whole words only' option, depending on whether the application supports it.
void setSupportsCaseSensitiveFind(bool supports)
Enable/disable the 'Case sensitive' option, depending on whether the application supports it.
void setFindHistory(const QStringList &history)
Provide the list of strings to be displayed as the history of find strings.
QStringList findHistory() const
Returns the list of history items.
QString pattern() const
Returns the pattern to find.
void cancelClicked()
This signal is sent when the user clicks on Cancel button.
void setSupportsRegularExpressionFind(bool supports)
Enable/disable the 'Regular expression' option, depending on whether the application supports it.
long options() const
Returns the state of the options.
void setHasSelection(bool hasSelection)
Enable/disable the 'search in selection' option, depending on whether there actually is a selection.
~KFindDialog() override
Destructor.
void okClicked()
This signal is sent when the user clicks on Ok button.
void setOptions(long options)
Set the options which are checked.
void setPattern(const QString &pattern)
Sets the pattern to find.
QWidget * findExtension() const
Returns an empty widget which the user may fill with additional UI elements as required.
A generic "replace" dialog.
Definition kreplacedialog.h:46