#include <memory_editor.h>


Classes | |
| struct | Bookmark |
Public Member Functions | |
| MemoryEditor (Rom *rom=nullptr) | |
| void | SetDependencies (const EditorDependencies &deps) override |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Save () override |
| absl::Status | Update () override |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| absl::Status | Cut () override |
| absl::Status | Copy () override |
| absl::Status | Paste () override |
| absl::Status | Find () override |
| void | SetRom (Rom *rom) |
| Rom * | rom () const |
Public Member Functions inherited from yaze::editor::Editor | |
| Editor ()=default | |
| virtual | ~Editor ()=default |
| virtual void | SetGameData (zelda3::GameData *game_data) |
| virtual std::string | GetUndoDescription () const |
| virtual std::string | GetRedoDescription () const |
| const UndoManager & | undo_manager () const |
| virtual absl::Status | Clear () |
| EditorType | type () const |
| bool * | active () |
| void | set_active (bool active) |
| void | toggle_active () |
| virtual bool | IsRomLoaded () const |
| virtual std::string | GetRomStatus () const |
| Rom * | rom () const |
| zelda3::GameData * | game_data () const |
| EditorContext | context () const |
| bool | HasContext () const |
Private Member Functions | |
| void | DrawToolbar () |
| void | DrawJumpToAddressPopup () |
| void | DrawSearchPopup () |
| void | DrawBookmarksPopup () |
Private Attributes | |
| Rom * | rom_ |
| 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< Bookmark > | bookmarks_ |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::editor::Editor | |
| std::string | MakePanelTitle (const std::string &base_title) const |
| std::string | MakePanelId (const std::string &base_id) const |
| template<typename T > | |
| absl::StatusOr< T > | SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const |
Protected Attributes inherited from yaze::editor::Editor | |
| bool | active_ = false |
| EditorType | type_ |
| EditorDependencies | dependencies_ |
| UndoManager | undo_manager_ |
Definition at line 20 of file memory_editor.h.
|
inlineexplicit |
Definition at line 22 of file memory_editor.h.
References yaze::editor::kHex, and yaze::editor::Editor::type_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 26 of file memory_editor.h.
References yaze::editor::EditorDependencies::rom, rom_, and yaze::editor::Editor::SetDependencies().

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 31 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 32 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 33 of file memory_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 14 of file memory_editor.cc.
References yaze::editor::Editor::active_, BEGIN_TABLE, comparison_rom_, comparison_widget_, yaze::gui::MemoryEditorWidget::DrawContents(), DrawToolbar(), END_TABLE, yaze::Rom::filename(), yaze::gui::InputHex(), yaze::Rom::LoadFromFile(), memory_widget_, yaze::Rom::mutable_data(), NEXT_COLUMN, PRINT_IF_ERROR, rom(), yaze::gui::MemoryEditorWidget::SetComparisonData(), SETUP_COLUMN, show_compare_rom_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::Rom::size(), and yaze::SnesToPc().
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 36 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 37 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 38 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 39 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 40 of file memory_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 41 of file memory_editor.h.
|
inline |
|
inline |
Definition at line 47 of file memory_editor.h.
References rom_.
|
private |
Definition at line 60 of file memory_editor.cc.
References current_address_, DrawBookmarksPopup(), DrawJumpToAddressPopup(), DrawSearchPopup(), yaze::gui::LayoutHelpers::GetButtonPadding(), yaze::gui::GetInfoColor(), ICON_MD_BOOKMARK, ICON_MD_LOCATION_ON, ICON_MD_LOCATION_SEARCHING, ICON_MD_MORE_VERT, and ICON_MD_SEARCH.
Referenced by Update().
|
private |
Definition at line 109 of file memory_editor.cc.
References current_address_, yaze::gui::GetInfoColor(), yaze::gui::MemoryEditorWidget::GotoAddrAndHighlight(), ICON_MD_CANCEL, ICON_MD_CHECK, ICON_MD_LOCATION_SEARCHING, jump_address_, and memory_widget_.
Referenced by DrawToolbar().

|
private |
Definition at line 152 of file memory_editor.cc.
References yaze::gui::GetSuccessColor(), ICON_MD_CANCEL, ICON_MD_LIST, ICON_MD_SEARCH, and search_pattern_.
Referenced by DrawToolbar().

|
private |
Definition at line 200 of file memory_editor.cc.
References yaze::editor::MemoryEditor::Bookmark::address, bookmarks_, current_address_, yaze::editor::MemoryEditor::Bookmark::description, yaze::gui::GetInfoColor(), yaze::gui::GetWarningColor(), yaze::gui::MemoryEditorWidget::GotoAddrAndHighlight(), ICON_MD_ADD, ICON_MD_BOOKMARK, ICON_MD_CLEAR_ALL, ICON_MD_CLOSE, ICON_MD_INFO, memory_widget_, and yaze::editor::MemoryEditor::Bookmark::name.
Referenced by DrawToolbar().

|
private |
Definition at line 55 of file memory_editor.h.
Referenced by rom(), SetDependencies(), and SetRom().
|
private |
Definition at line 56 of file memory_editor.h.
Referenced by DrawBookmarksPopup(), DrawJumpToAddressPopup(), and Update().
|
private |
Definition at line 57 of file memory_editor.h.
Referenced by Update().
|
private |
Definition at line 58 of file memory_editor.h.
Referenced by Update().
|
private |
Definition at line 59 of file memory_editor.h.
Referenced by Update().
|
private |
Definition at line 62 of file memory_editor.h.
Referenced by DrawJumpToAddressPopup().
|
private |
Definition at line 63 of file memory_editor.h.
Referenced by DrawSearchPopup().
|
private |
Definition at line 64 of file memory_editor.h.
Referenced by DrawBookmarksPopup(), DrawJumpToAddressPopup(), and DrawToolbar().
|
private |
Definition at line 71 of file memory_editor.h.
Referenced by DrawBookmarksPopup().