15#ifndef LUA_DEBUGGER_FIND_FRAME_H
16#define LUA_DEBUGGER_FIND_FRAME_H
68 bool eventFilter(QObject *watched, QEvent *event)
override;
78 Ui::LuaDebuggerFindFrame *ui_;
81 QPointer<QPlainTextEdit> editor_;
86 void focusFindField();
92 void findNext(
bool backward);
98 bool selectionMatchesFind()
const;
109 void on_findNextButton_clicked();
114 void on_findPreviousButton_clicked();
119 void on_replaceButton_clicked();
124 void on_replaceAllButton_clicked();
129 void on_closeButton_clicked();
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
Inline find/replace bar for the Lua debugger code editor (AccordionFrame).
Definition lua_debugger_find_frame.h:35
void keyPressEvent(QKeyEvent *event) override
Handles key presses within the bar (e.g. Enter to find next, Escape to close).
Definition lua_debugger_find_frame.cpp:102
void setTargetEditor(QPlainTextEdit *editor)
Sets the code editor that find/replace operations act upon.
Definition lua_debugger_find_frame.cpp:69
void scheduleFindFieldFocus()
After animatedShow(), move focus to the find field (call from dialog).
Definition lua_debugger_find_frame.cpp:89
bool eventFilter(QObject *watched, QEvent *event) override
Intercepts events on watched objects to handle editor-side keyboard shortcuts.
Definition lua_debugger_find_frame.cpp:53
~LuaDebuggerFindFrame() override
Destroys the find/replace bar.
Definition lua_debugger_find_frame.cpp:67