KTextAddons
9#include "textcustomeditor_private_export.h"
10#include "texteditfindbarbase.h"
16namespace TextCustomEditor
18class TEXTCUSTOMEDITOR_TESTS_EXPORT TextFindWidget :
public QWidget
22 explicit TextFindWidget(QWidget *parent =
nullptr);
23 ~TextFindWidget()
override;
25 [[nodiscard]] TextEditFindBarBase::FindFlags searchOptions()
const;
27 QLineEdit *searchLineEdit()
const;
29 void setFoundMatch(
bool match);
31 [[nodiscard]]
bool isRegularExpression()
const;
32 [[nodiscard]] QRegularExpression searchRegularExpression()
const;
34 [[nodiscard]] QString searchText()
const;
40 void autoSearch(
const QString &);
41 void updateSearchOptions();
42 void searchStringEmpty(
bool);
45 void slotAutoSearch(
const QString &str);
46 void slotRegularExpressionChanged(
bool b);
47 QLineEdit *
const mSearch;
48 QAction *mCaseSensitiveAct =
nullptr;
49 QAction *mWholeWordAct =
nullptr;
50 QAction *mRegularExpressionAct =
nullptr;
51 QAction *mRespectDiacriticAct =
nullptr;
53 QPushButton *
const mFindPrevBtn;
54 QPushButton *
const mFindNextBtn;
57class TEXTCUSTOMEDITOR_TESTS_EXPORT TextReplaceWidget :
public QWidget
61 explicit TextReplaceWidget(QWidget *parent =
nullptr);
62 ~TextReplaceWidget()
override;
64 QLineEdit *replaceLineEdit()
const;
67 void slotSearchStringEmpty(
bool);
71 void replaceAllText();
74 QLineEdit *
const mReplace;
75 QPushButton *
const mReplaceBtn;
76 QPushButton *
const mReplaceAllBtn;
QAction * findPrev(const QObject *recvr, const char *slot, QObject *parent)
QAction * findNext(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.