summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/AssembleInstructionDialog.h
blob: de2191e2c79d1341f6212c89e733322829b3e776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <QDialog>

#include "Common/CommonTypes.h"

class QDialogButtonBox;
class QLabel;
class QLineEdit;

class AssembleInstructionDialog : public QDialog
{
  Q_OBJECT
public:
  explicit AssembleInstructionDialog(QWidget* parent, u32 address, u32 value);

  u32 GetCode() const;

private:
  void CreateWidgets();
  void ConnectWidgets();

  void OnEditChanged();

  u32 m_code;
  u32 m_address;

  QLineEdit* m_input_edit;
  QLabel* m_error_loc_label;
  QLabel* m_error_line_label;
  QLabel* m_msg_label;
  QDialogButtonBox* m_button_box;
};