Debian Codegraph @

Source/Core/DolphinQt/Debugger/EditSymbolDialog.h

raw symbols SCIP
1 // Copyright 2025 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5 #include <string>
6
7 #include <QDialog>
8 #include <QString>
9 #include "Common/CommonTypes.h"
10
11 class QLineEdit;
12 class QDialogButtonBox;
13 class QSpinBox;
14
15 class EditSymbolDialog : public QDialog
16 {
17 Q_OBJECT
18
19 public:
20 enum class Type
21 {
22 Symbol,
23 Note,
24 };
25
26 explicit EditSymbolDialog(QWidget* parent, const u32 symbol_address, u32* symbol_size,
27 std::string* symbol_name, Type type = Type::Symbol);
28
29 bool DeleteRequested() const { return m_delete_chosen; }
30
31 private:
32 void CreateWidgets();
33 void ConnectWidgets();
34 void FillFunctionData();
35 void UpdateAddressData(u32 size);
36 void Accepted();
37
38 QLineEdit* m_name_edit;
39 QSpinBox* m_size_lines_spin;
40 QLineEdit* m_size_hex_edit;
41 QLineEdit* m_address_end_edit;
42
43 QDialogButtonBox* m_buttons;
44
45 Type m_type;
46 std::string* m_symbol_name;
47 u32* m_symbol_size;
48 const u32 m_symbol_address;
49
50 bool m_delete_chosen = false;
51 };