15#ifndef LUA_DEBUGGER_FIND_FRAME_H
16#define LUA_DEBUGGER_FIND_FRAME_H
28class LuaDebuggerFindFrame;
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();
AccordionFrame(QWidget *parent=0)
Create an AccordionFrame with the given parent.
Definition accordion_frame.cpp:22
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
LuaDebuggerFindFrame(QWidget *parent=nullptr)
Constructs the find/replace bar.
Definition lua_debugger_find_frame.cpp:28
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