Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
lua_debugger_goto_line_frame.h
Go to the documentation of this file.
1/* lua_debugger_goto_line_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_GOTO_LINE_FRAME_H
16#define LUA_DEBUGGER_GOTO_LINE_FRAME_H
17
18#include <QPointer>
19
20#include "accordion_frame.h"
21
22class QKeyEvent;
23class QPlainTextEdit;
24
25namespace Ui
26{
28}
29
34{
35 Q_OBJECT
36
37 public:
38 explicit LuaDebuggerGoToLineFrame(QWidget *parent = nullptr);
40
41 void setTargetEditor(QPlainTextEdit *editor);
42
47
48 protected:
49 void keyPressEvent(QKeyEvent *event) override;
50
51 private:
52 Ui::LuaDebuggerGoToLineFrame *ui_;
53 QPointer<QPlainTextEdit> editor_;
54
55 void focusLineField();
56
57 private slots:
58 void on_goButton_clicked();
59 void on_cancelButton_clicked();
60};
61
62#endif // LUA_DEBUGGER_GOTO_LINE_FRAME_H
Definition accordion_frame.h:18
Inline "go to line" bar for the Lua debugger code editor (AccordionFrame).
Definition lua_debugger_goto_line_frame.h:34
void scheduleLineFieldFocus()
After animatedShow(), move focus to the line field (call from dialog).
Definition lua_debugger_goto_line_frame.cpp:85
void syncLineFieldFromEditor()
Set the line field from the current editor cursor (before animatedShow).
Definition lua_debugger_goto_line_frame.cpp:72