find and replace dialog

This commit is contained in:
2026-02-02 00:02:43 +08:00
parent 5f8aa70827
commit e1c55eae84
6 changed files with 1058 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ class QLabel;
class SciEdit;
class TabWidget;
class DocumentManager;
class FindReplaceDialog;
class MainWindow : public KXmlGuiWindow
{
@@ -36,6 +37,10 @@ private:
void updateWindowTitle();
void updateStatusBar();
void updateActions();
void showFindReplaceDialog(bool showReplace);
bool findNextInCurrentEditor(bool forward, bool showNotFoundMessage);
bool replaceOneInCurrentEditor(bool showNotFoundMessage);
int replaceAllInCurrentEditor(bool showNotFoundMessage);
DocumentManager *m_documentManager;
TabWidget *m_tabWidget;
@@ -43,6 +48,10 @@ private:
QLabel *m_encodingStatusLabel;
QLabel *m_languageStatusLabel;
bool m_indentGuidesEnabled = false;
FindReplaceDialog *m_findReplaceDialog = nullptr;
bool m_findInSelectionEnabled = false;
int m_findSelectionStart = 0;
int m_findSelectionEnd = 0;
};
// plainly for KConfigDialog