Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
lua_debugger_find_frame.h
Go to the documentation of this file.
1/* lua_debugger_find_frame.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
15#ifndef LUA_DEBUGGER_FIND_FRAME_H
16#define LUA_DEBUGGER_FIND_FRAME_H
17
18#include <QPointer>
19
20#include "accordion_frame.h"
21
22class QEvent;
23class QKeyEvent;
24class QPlainTextEdit;
25
26namespace Ui
27{
29}
30
35{
36 Q_OBJECT
37
38 public:
39 explicit LuaDebuggerFindFrame(QWidget *parent = nullptr);
40 ~LuaDebuggerFindFrame() override;
41
42 void setTargetEditor(QPlainTextEdit *editor);
43
46
47 protected:
48 bool eventFilter(QObject *watched, QEvent *event) override;
49 void keyPressEvent(QKeyEvent *event) override;
50
51 private:
52 Ui::LuaDebuggerFindFrame *ui_;
53 QPointer<QPlainTextEdit> editor_;
54
55 void focusFindField();
56
57 void findNext(bool backward);
58 bool selectionMatchesFind() const;
59 void replaceAll();
60
61 private slots:
62 void on_findNextButton_clicked();
63 void on_findPreviousButton_clicked();
64 void on_replaceButton_clicked();
65 void on_replaceAllButton_clicked();
66 void on_closeButton_clicked();
67};
68
69#endif // LUA_DEBUGGER_FIND_FRAME_H
Definition accordion_frame.h:18
Inline find/replace bar for the Lua debugger code editor (AccordionFrame).
Definition lua_debugger_find_frame.h:35
void scheduleFindFieldFocus()
After animatedShow(), move focus to the find field (call from dialog).
Definition lua_debugger_find_frame.cpp:89