yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::MemoryEditor Struct Reference

#include <memory_editor.h>

Collaboration diagram for yaze::editor::MemoryEditor:

Classes

struct  Bookmark
 

Public Member Functions

 MemoryEditor (Rom *rom=nullptr)
 
void Update (bool &show_memory_editor)
 
void SetRom (Rom *rom)
 
Romrom () const
 

Private Member Functions

void DrawToolbar ()
 
void DrawJumpToAddressPopup ()
 
void DrawSearchPopup ()
 
void DrawBookmarksPopup ()
 

Private Attributes

Romrom_
 
gui::MemoryEditorWidget memory_widget_
 
gui::MemoryEditorWidget comparison_widget_
 
bool show_compare_rom_ = false
 
Rom comparison_rom_
 
char jump_address_ [16] = "0x000000"
 
char search_pattern_ [256] = ""
 
uint32_t current_address_ = 0
 
std::vector< Bookmarkbookmarks_
 

Detailed Description

Definition at line 20 of file memory_editor.h.

Constructor & Destructor Documentation

◆ MemoryEditor()

yaze::editor::MemoryEditor::MemoryEditor ( Rom * rom = nullptr)
inlineexplicit

Definition at line 21 of file memory_editor.h.

Member Function Documentation

◆ Update()

◆ SetRom()

void yaze::editor::MemoryEditor::SetRom ( Rom * rom)
inline

Definition at line 26 of file memory_editor.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ rom()

Rom * yaze::editor::MemoryEditor::rom ( ) const
inline

Definition at line 29 of file memory_editor.h.

References rom_.

Referenced by SetRom(), and Update().

◆ DrawToolbar()

void yaze::editor::MemoryEditor::DrawToolbar ( )
private

◆ DrawJumpToAddressPopup()

void yaze::editor::MemoryEditor::DrawJumpToAddressPopup ( )
private

◆ DrawSearchPopup()

void yaze::editor::MemoryEditor::DrawSearchPopup ( )
private
Todo
Implement search
Todo
Implement search using hex-search handler

Definition at line 139 of file memory_editor.cc.

References ICON_MD_CANCEL, ICON_MD_LIST, ICON_MD_SEARCH, and search_pattern_.

Referenced by DrawToolbar().

◆ DrawBookmarksPopup()

Member Data Documentation

◆ rom_

Rom* yaze::editor::MemoryEditor::rom_
private

Definition at line 37 of file memory_editor.h.

Referenced by rom(), and SetRom().

◆ memory_widget_

gui::MemoryEditorWidget yaze::editor::MemoryEditor::memory_widget_
private

Definition at line 38 of file memory_editor.h.

Referenced by DrawBookmarksPopup(), DrawJumpToAddressPopup(), and Update().

◆ comparison_widget_

gui::MemoryEditorWidget yaze::editor::MemoryEditor::comparison_widget_
private

Definition at line 39 of file memory_editor.h.

Referenced by Update().

◆ show_compare_rom_

bool yaze::editor::MemoryEditor::show_compare_rom_ = false
private

Definition at line 40 of file memory_editor.h.

Referenced by Update().

◆ comparison_rom_

Rom yaze::editor::MemoryEditor::comparison_rom_
private

Definition at line 41 of file memory_editor.h.

Referenced by Update().

◆ jump_address_

char yaze::editor::MemoryEditor::jump_address_[16] = "0x000000"
private

Definition at line 44 of file memory_editor.h.

Referenced by DrawJumpToAddressPopup().

◆ search_pattern_

char yaze::editor::MemoryEditor::search_pattern_[256] = ""
private

Definition at line 45 of file memory_editor.h.

Referenced by DrawSearchPopup().

◆ current_address_

uint32_t yaze::editor::MemoryEditor::current_address_ = 0
private

Definition at line 46 of file memory_editor.h.

Referenced by DrawBookmarksPopup(), DrawJumpToAddressPopup(), and DrawToolbar().

◆ bookmarks_

std::vector<Bookmark> yaze::editor::MemoryEditor::bookmarks_
private

Definition at line 53 of file memory_editor.h.

Referenced by DrawBookmarksPopup().


The documentation for this struct was generated from the following files: