#include <message_editor.h>

Classes | |
| struct | DirtyState |
| struct | PlannedWrite |
| struct | SavePlan |
Public Member Functions | |
| MessageEditor (Rom *rom=nullptr) | |
| MessageEditor (Rom *rom, const EditorDependencies &deps) | |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Update () override |
| void | SetGameData (zelda3::GameData *game_data) override |
| void | DrawMessageList () |
| void | DrawCurrentMessage () |
| void | DrawFontAtlas () |
| void | DrawTextCommands () |
| void | DrawSpecialCharacters () |
| void | DrawExpandedMessageSettings () |
| void | DrawDictionary () |
| void | DrawMessagePreview () |
| void | UpdateCurrentMessageFromText (const std::string &text) |
| bool | OpenMessageById (int display_id) |
| absl::Status | Save () override |
| absl::Status | BeginSaveTransaction () override |
| void | RollbackSaveTransaction () override |
| void | CommitSaveTransaction () override |
| absl::Status | SaveExpandedMessages () |
| absl::Status | LoadExpandedMessagesFromRom () |
| int | CalculateExpandedBankUsage () const |
| absl::Status | Cut () override |
| absl::Status | Copy () override |
| absl::Status | Paste () override |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| absl::Status | Find () override |
| void | Delete () |
| void | SelectAll () |
| void | set_rom (Rom *rom) |
| Rom * | rom () const |
Public Member Functions inherited from yaze::editor::Editor | |
| Editor ()=default | |
| virtual | ~Editor ()=default |
| virtual void | SetDependencies (const EditorDependencies &deps) |
| virtual std::string | GetUndoDescription () const |
| virtual std::string | GetRedoDescription () const |
| const UndoManager & | undo_manager () const |
| virtual absl::Status | Clear () |
| virtual void | ContributeStatus (StatusBar *) |
| 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 |
| project::YazeProject * | project () const |
| core::VersionManager * | version_manager () const |
| EditorContext | context () const |
| bool | HasContext () const |
Private Types | |
| enum class | SaveDomain { kFontWidths , kVanillaMessages , kExpandedMessages } |
Private Member Functions | |
| absl::StatusOr< SavePlan > | BuildSavePlan (bool include_font_widths, bool include_vanilla_messages, bool include_expanded_messages) const |
| absl::Status | ValidateSavePlan (const SavePlan &plan) const |
| absl::Status | ApplySavePlan (const SavePlan &plan) |
| absl::Status | SaveDirtyDomains (bool include_font_widths, bool include_vanilla_messages, bool include_expanded_messages) |
| void | MarkDomainDirty (SaveDomain domain) |
| void | RecordSavedDomains (const SavePlan &plan) |
| void | ClearSavedDomains (const DirtyState &saved) |
| void | SyncCurrentExpandedMessageAddress () |
| int | ReplaceCurrentMatch () |
| int | ReplaceAllMatches () |
| void | PushUndoSnapshot () |
| void | FinalizePendingUndo () |
| void | ApplySnapshot (const MessageSnapshot &snapshot) |
| void | ResolveFontPalette () |
| gfx::SnesPalette | BuildFallbackFontPalette () const |
| void | LoadFontGraphics () |
| void | RefreshFontAtlasBitmap (const std::vector< uint8_t > &font_data) |
| void | ApplyFontPalette () |
| void | EnsureFontTexturesReady () |
| void | ImportMessageBundleFromFile (const std::string &path) |
| int | ResolveExpandedMessageBaseId () const |
Friends | |
| class | MessageEditorTestPeer |
| class | MessageEditorSaveTestPeer |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::editor::Editor | |
| std::string | MakePanelTitle (const std::string &base_title) const |
| std::string | MakeWindowId (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 40 of file message_editor.h.
|
strongprivate |
| Enumerator | |
|---|---|
| kFontWidths | |
| kVanillaMessages | |
| kExpandedMessages | |
Definition at line 94 of file message_editor.h.
|
inlineexplicit |
Definition at line 42 of file message_editor.h.
References yaze::editor::kMessage, and yaze::editor::Editor::type_.
|
inlineexplicit |
Definition at line 46 of file message_editor.h.
References yaze::editor::Editor::dependencies_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 74 of file message_editor.cc.
References yaze::editor::MessagePreview::all_dictionaries_, yaze::editor::BuildDictionaryEntries(), current_font_gfx16_bitmap_, current_message_, current_message_index_, current_message_is_expanded_, current_parse_errors_, current_parse_warnings_, yaze::Rom::data(), yaze::editor::Editor::dependencies_, dirty_state_, DrawCurrentMessage(), DrawDictionary(), DrawExpandedMessageSettings(), DrawFontAtlas(), DrawMessageList(), DrawMessagePreview(), DrawSpecialCharacters(), DrawTextCommands(), yaze::gfx::SnesPalette::empty(), expanded_message_base_id_, font_graphics_loaded_, font_preview_colors_, yaze::editor::MessageData::ID, yaze::editor::kCharactersWidth, yaze::editor::kWidthArraySize, list_of_texts_, LoadFontGraphics(), LOG_ERROR, LOG_INFO, message_preview_, message_text_box_, yaze::gfx::Bitmap::mutable_palette(), parsed_messages_, yaze::editor::ParseMessageData(), yaze::editor::ReadAllTextData(), ResolveExpandedMessageBaseId(), ResolveFontPalette(), rom(), save_transaction_active_, yaze::editor::EditorDependencies::session_id, yaze::gui::TextBox::text, transaction_dirty_snapshot_, transaction_expanded_address_snapshot_, transaction_saved_domains_, yaze::editor::MessagePreview::width_array, and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 356 of file message_editor.cc.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 361 of file message_editor.cc.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 368 of file message_editor.cc.
References ApplyFontPalette(), yaze::editor::Editor::game_data(), and yaze::editor::Editor::SetGameData().

| void yaze::editor::MessageEditor::DrawMessageList | ( | ) |
Definition at line 418 of file message_editor.cc.
References yaze::gui::BeginNoPadding(), current_parse_errors_, yaze::gui::EndNoPadding(), expanded_message_base_id_, expanded_messages_, yaze::editor::ExportMessageBundleToJson(), FinalizePendingUndo(), yaze::gui::GetErrorColor(), yaze::gui::GetInfoColor(), yaze::gui::GetSuccessColor(), yaze::gui::GetWarningColor(), yaze::util::HexLong(), yaze::util::HexWord(), ImportMessageBundleFromFile(), yaze::editor::kMessageTableFlags, list_of_texts_, message_bundle_status_, message_bundle_status_error_, OpenMessageById(), parsed_messages_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), and yaze::util::FileDialogWrapper::ShowSaveFileDialog().
Referenced by Initialize().
| void yaze::editor::MessageEditor::DrawCurrentMessage | ( | ) |
Definition at line 530 of file message_editor.cc.
References yaze::gui::BeginPadding(), yaze::gui::Canvas::canvas_size(), current_font_gfx16_bitmap_, current_font_gfx16_canvas_, current_message_, current_parse_errors_, current_parse_warnings_, yaze::editor::MessageData::Data, yaze::gui::DisplayPalette(), yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::EndPadding(), EnsureFontTexturesReady(), FinalizePendingUndo(), font_preview_colors_, yaze::gui::Canvas::GetConfig(), yaze::gui::GetErrorColor(), yaze::gui::GetInfoColor(), yaze::gui::GetSuccessColor(), yaze::gui::GetWarningColor(), yaze::editor::MessageData::ID, yaze::editor::kCurrentMessageHeight, yaze::editor::kCurrentMessageWidth, yaze::editor::kLine1, yaze::editor::kLine2, yaze::editor::kLine3, yaze::editor::kScrollVertical, yaze::gui::kSelectionSource, yaze::gui::MemoryEditorPopup(), message_preview_, message_text_box_, yaze::gui::CanvasConfig::role, yaze::editor::MessagePreview::scroll_marker_lines, yaze::editor::MessagePreview::shown_lines, yaze::gui::TextBox::text, yaze::editor::MessagePreview::text_line, UpdateCurrentMessageFromText(), yaze::editor::ValidateMessageLineWidths(), and yaze::gui::Canvas::zero_point().
Referenced by Initialize().
| void yaze::editor::MessageEditor::DrawFontAtlas | ( | ) |
Definition at line 697 of file message_editor.cc.
References yaze::gui::BeginCanvas(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::EndCanvas(), EnsureFontTexturesReady(), font_gfx_bitmap_, font_gfx_canvas_, yaze::gui::Canvas::GetConfig(), yaze::gui::kSelectionSource, and yaze::gui::CanvasConfig::role.
Referenced by Initialize().
| void yaze::editor::MessageEditor::DrawTextCommands | ( | ) |
Definition at line 789 of file message_editor.cc.
References yaze::gui::InputHexByte(), message_text_box_, yaze::gui::TextBox::text, and UpdateCurrentMessageFromText().
Referenced by Initialize().

| void yaze::editor::MessageEditor::DrawSpecialCharacters | ( | ) |
Definition at line 808 of file message_editor.cc.
References message_text_box_, yaze::gui::TextBox::text, and UpdateCurrentMessageFromText().
Referenced by Initialize().

| void yaze::editor::MessageEditor::DrawExpandedMessageSettings | ( | ) |
Definition at line 706 of file message_editor.cc.
References yaze::editor::MessageData::Address, yaze::editor::MessagePreview::all_dictionaries_, CalculateExpandedBankUsage(), yaze::editor::Editor::dependencies_, expanded_message_base_id_, expanded_message_path_, expanded_messages_, yaze::editor::ExportMessagesToJson(), yaze::gui::GetErrorColor(), yaze::editor::GetExpandedTextDataEnd(), yaze::editor::GetExpandedTextDataStart(), yaze::gui::GetSuccessColor(), yaze::gui::GetWarningColor(), yaze::editor::MessageData::ID, kExpandedMessages, yaze::editor::LoadExpandedMessages(), LoadExpandedMessagesFromRom(), LOG_WARN, MarkDomainDirty(), message_preview_, parsed_messages_, yaze::editor::EditorDependencies::popup_manager, PRINT_IF_ERROR, ResolveExpandedMessageBaseId(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), and yaze::util::FileDialogWrapper::ShowSaveFileDialog().
Referenced by Initialize().
| void yaze::editor::MessageEditor::DrawDictionary | ( | ) |
Definition at line 824 of file message_editor.cc.
References yaze::editor::MessagePreview::all_dictionaries_, yaze::util::HexWord(), yaze::editor::kMessageTableFlags, and message_preview_.
Referenced by Initialize().

| void yaze::editor::MessageEditor::DrawMessagePreview | ( | ) |
Definition at line 1070 of file message_editor.cc.
References yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_font_gfx16_bitmap_, current_message_, yaze::editor::MessagePreview::current_preview_data_, yaze::editor::MessagePreview::DrawMessagePreview(), yaze::gfx::SnesPalette::empty(), font_preview_colors_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), yaze::editor::kCurrentMessageHeight, yaze::editor::kCurrentMessageWidth, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARN, message_preview_, yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Bitmap::set_data(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::surface(), yaze::gfx::Bitmap::texture(), and yaze::gfx::Arena::UPDATE.
Referenced by ApplySnapshot(), EnsureFontTexturesReady(), Initialize(), OpenMessageById(), and UpdateCurrentMessageFromText().
| void yaze::editor::MessageEditor::UpdateCurrentMessageFromText | ( | const std::string & | text | ) |
Definition at line 855 of file message_editor.cc.
References yaze::editor::MessageData::ContentsParsed, current_message_, current_message_index_, current_message_is_expanded_, current_parse_errors_, current_parse_warnings_, yaze::editor::MessageData::Data, DrawMessagePreview(), expanded_message_base_id_, expanded_messages_, kExpandedMessages, kVanillaMessages, list_of_texts_, MarkDomainDirty(), parsed_messages_, yaze::editor::ParseMessageToDataWithDiagnostics(), PushUndoSnapshot(), yaze::editor::MessageData::RawString, rom_, and yaze::Rom::set_dirty().
Referenced by DrawCurrentMessage(), DrawSpecialCharacters(), DrawTextCommands(), ReplaceAllMatches(), and ReplaceCurrentMatch().
| bool yaze::editor::MessageEditor::OpenMessageById | ( | int | display_id | ) |
Definition at line 142 of file message_editor.cc.
References current_message_, current_message_index_, current_message_is_expanded_, current_parse_errors_, current_parse_warnings_, yaze::editor::Editor::dependencies_, DrawMessagePreview(), expanded_message_base_id_, expanded_messages_, yaze::editor::GetExpandedTextDataEnd(), yaze::editor::GetExpandedTextDataStart(), yaze::editor::MessageData::ID, yaze::Rom::is_loaded(), list_of_texts_, LoadExpandedMessagesFromRom(), LOG_DEBUG, message_text_box_, yaze::editor::WorkspaceWindowManager::OpenWindow(), parsed_messages_, yaze::editor::ResolveMessageDisplayId(), rom_, yaze::editor::EditorDependencies::session_id, yaze::Rom::size(), yaze::gui::TextBox::text, and yaze::editor::EditorDependencies::window_manager.
Referenced by DrawMessageList(), and ImportMessageBundleFromFile().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1122 of file message_editor.cc.
References current_parse_errors_, yaze::Rom::is_loaded(), rom_, and SaveDirtyDomains().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1367 of file message_editor.cc.
References dirty_state_, expanded_messages_, save_transaction_active_, transaction_dirty_snapshot_, transaction_expanded_address_snapshot_, and transaction_saved_domains_.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1383 of file message_editor.cc.
References dirty_state_, expanded_messages_, save_transaction_active_, SyncCurrentExpandedMessageAddress(), transaction_dirty_snapshot_, transaction_expanded_address_snapshot_, and transaction_saved_domains_.

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1401 of file message_editor.cc.
References ClearSavedDomains(), save_transaction_active_, transaction_dirty_snapshot_, transaction_expanded_address_snapshot_, and transaction_saved_domains_.

| absl::Status yaze::editor::MessageEditor::SaveExpandedMessages | ( | ) |
Definition at line 1361 of file message_editor.cc.
References SaveDirtyDomains().

| absl::Status yaze::editor::MessageEditor::LoadExpandedMessagesFromRom | ( | ) |
Definition at line 1470 of file message_editor.cc.
References yaze::editor::MessagePreview::all_dictionaries_, dirty_state_, expanded_message_base_id_, expanded_message_path_, yaze::editor::MessageEditor::DirtyState::expanded_messages, expanded_messages_, yaze::editor::GetExpandedTextDataEnd(), yaze::editor::GetExpandedTextDataStart(), yaze::Rom::is_loaded(), message_preview_, yaze::Rom::mutable_data(), parsed_messages_, yaze::editor::ParseMessageData(), yaze::editor::ReadExpandedTextData(), ResolveExpandedMessageBaseId(), rom_, and yaze::Rom::size().
Referenced by DrawExpandedMessageSettings(), and OpenMessageById().
| int yaze::editor::MessageEditor::CalculateExpandedBankUsage | ( | ) | const |
Definition at line 1502 of file message_editor.cc.
References expanded_messages_.
Referenced by DrawExpandedMessageSettings().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1513 of file message_editor.cc.
References yaze::gui::TextBox::Cut(), message_text_box_, and yaze::gui::TextBox::text.

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1531 of file message_editor.cc.
References yaze::gui::TextBox::Copy(), message_text_box_, and yaze::gui::TextBox::selection_length.

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1522 of file message_editor.cc.
References message_text_box_, and yaze::gui::TextBox::Paste().

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1649 of file message_editor.cc.
References FinalizePendingUndo(), yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1654 of file message_editor.cc.
References yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1677 of file message_editor.cc.
References case_sensitive_, yaze::gui::GetErrorColor(), yaze::gui::GetSuccessColor(), match_whole_word_, replace_status_, replace_status_error_, replace_text_, ReplaceAllMatches(), ReplaceCurrentMatch(), and search_text_.

| void yaze::editor::MessageEditor::Delete | ( | ) |
Definition at line 1658 of file message_editor.cc.
References yaze::gui::TextBox::clear(), message_text_box_, and yaze::gui::TextBox::selection_length.

| void yaze::editor::MessageEditor::SelectAll | ( | ) |
Definition at line 1666 of file message_editor.cc.
References yaze::gui::TextBox::Focus(), message_text_box_, yaze::gui::TextBox::SelectAll(), and yaze::gui::TextBox::selection_length.

|
inline |
|
inline |
Definition at line 88 of file message_editor.h.
References rom_.
Referenced by Initialize(), LoadFontGraphics(), and set_rom().
|
private |
Definition at line 1136 of file message_editor.cc.
References dirty_state_, yaze::editor::MessageEditor::SavePlan::expanded_message_addresses, yaze::editor::MessageEditor::DirtyState::expanded_messages, expanded_messages_, yaze::editor::FindMatchingCommand(), yaze::editor::MessageEditor::DirtyState::font_widths, yaze::editor::GetExpandedTextDataEnd(), yaze::editor::GetExpandedTextDataStart(), yaze::Rom::is_loaded(), yaze::editor::kBankSwitchCommand, yaze::editor::kCharactersWidth, kExpandedMessages, kFontWidths, yaze::editor::kMessageTerminator, yaze::editor::kTextData, yaze::editor::kTextData2, yaze::editor::kTextData2End, yaze::editor::kTextDataEnd, kVanillaMessages, list_of_texts_, message_preview_, yaze::editor::ParseMessageToDataWithDiagnostics(), RETURN_IF_ERROR, rom_, yaze::editor::MessageEditor::SavePlan::saves_expanded_messages, yaze::editor::MessageEditor::SavePlan::saves_font_widths, yaze::editor::MessageEditor::SavePlan::saves_vanilla_messages, yaze::Rom::size(), yaze::editor::MessageEditor::DirtyState::vanilla_messages, yaze::editor::MessagePreview::width_array, and yaze::editor::MessageEditor::SavePlan::writes.
Referenced by SaveDirtyDomains().
|
private |
Definition at line 1275 of file message_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::project::YazeProject::hack_manifest, yaze::project::kBlock, yaze::core::HackManifest::loaded(), yaze::editor::EditorDependencies::project, yaze::editor::MessageEditor::SavePlan::saves_expanded_messages, yaze::editor::EditorDependencies::toast_manager, yaze::editor::ValidateHackManifestSaveConflicts(), and yaze::editor::MessageEditor::SavePlan::writes.
Referenced by SaveDirtyDomains().

|
private |
Definition at line 1306 of file message_editor.cc.
References yaze::rom::WriteFence::Allow(), yaze::ScopedRomTransaction::Commit(), yaze::editor::MessageEditor::SavePlan::expanded_message_addresses, expanded_messages_, kExpandedMessages, kFontWidths, kVanillaMessages, RETURN_IF_ERROR, rom_, yaze::editor::MessageEditor::SavePlan::saves_expanded_messages, SyncCurrentExpandedMessageAddress(), yaze::editor::MessageEditor::SavePlan::writes, and yaze::Rom::WriteVector().
Referenced by SaveDirtyDomains().

|
private |
Definition at line 1349 of file message_editor.cc.
References ApplySavePlan(), ASSIGN_OR_RETURN, BuildSavePlan(), RecordSavedDomains(), RETURN_IF_ERROR, and ValidateSavePlan().
Referenced by Save(), and SaveExpandedMessages().

|
private |
Definition at line 1412 of file message_editor.cc.
References dirty_state_, yaze::editor::MessageEditor::DirtyState::expanded_messages, yaze::editor::MessageEditor::DirtyState::font_widths, kExpandedMessages, kFontWidths, kVanillaMessages, rom_, save_transaction_active_, yaze::Rom::set_dirty(), transaction_saved_domains_, and yaze::editor::MessageEditor::DirtyState::vanilla_messages.
Referenced by ApplySnapshot(), DrawExpandedMessageSettings(), ImportMessageBundleFromFile(), and UpdateCurrentMessageFromText().

|
private |
Definition at line 1438 of file message_editor.cc.
References ClearSavedDomains(), yaze::editor::MessageEditor::DirtyState::expanded_messages, yaze::editor::MessageEditor::DirtyState::font_widths, save_transaction_active_, yaze::editor::MessageEditor::SavePlan::saves_expanded_messages, yaze::editor::MessageEditor::SavePlan::saves_font_widths, yaze::editor::MessageEditor::SavePlan::saves_vanilla_messages, transaction_saved_domains_, and yaze::editor::MessageEditor::DirtyState::vanilla_messages.
Referenced by SaveDirtyDomains().

|
private |
Definition at line 1450 of file message_editor.cc.
References dirty_state_, yaze::editor::MessageEditor::DirtyState::expanded_messages, yaze::editor::MessageEditor::DirtyState::font_widths, and yaze::editor::MessageEditor::DirtyState::vanilla_messages.
Referenced by CommitSaveTransaction(), and RecordSavedDomains().
|
private |
Definition at line 1462 of file message_editor.cc.
References yaze::editor::MessageData::Address, current_message_, current_message_index_, current_message_is_expanded_, and expanded_messages_.
Referenced by ApplySavePlan(), and RollbackSaveTransaction().
|
private |
Definition at line 1738 of file message_editor.cc.
References case_sensitive_, FinalizePendingUndo(), match_whole_word_, message_text_box_, replace_text_, search_text_, yaze::gui::TextBox::text, and UpdateCurrentMessageFromText().
Referenced by Find().

|
private |
Definition at line 1782 of file message_editor.cc.
References case_sensitive_, current_message_, current_message_index_, current_message_is_expanded_, current_parse_errors_, current_parse_warnings_, expanded_message_base_id_, expanded_messages_, FinalizePendingUndo(), list_of_texts_, match_whole_word_, message_text_box_, parsed_messages_, yaze::editor::ParseMessageToDataWithDiagnostics(), replace_status_, replace_status_error_, replace_text_, search_text_, yaze::gui::TextBox::text, and UpdateCurrentMessageFromText().
Referenced by Find().

|
private |
Definition at line 1540 of file message_editor.cc.
References current_message_, current_message_index_, current_message_is_expanded_, expanded_message_base_id_, FinalizePendingUndo(), parsed_messages_, and pending_undo_before_.
Referenced by UpdateCurrentMessageFromText().

|
private |
Definition at line 1566 of file message_editor.cc.
References ApplySnapshot(), expanded_message_base_id_, expanded_messages_, list_of_texts_, parsed_messages_, pending_undo_before_, yaze::editor::UndoManager::Push(), and yaze::editor::Editor::undo_manager_.
Referenced by DrawCurrentMessage(), DrawMessageList(), PushUndoSnapshot(), ReplaceAllMatches(), ReplaceCurrentMatch(), and Undo().

|
private |
Definition at line 1610 of file message_editor.cc.
References current_message_, current_message_index_, current_message_is_expanded_, current_parse_errors_, current_parse_warnings_, DrawMessagePreview(), expanded_message_base_id_, expanded_messages_, yaze::editor::MessageSnapshot::is_expanded, kExpandedMessages, kVanillaMessages, list_of_texts_, MarkDomainDirty(), yaze::editor::MessageSnapshot::message, yaze::editor::MessageSnapshot::message_index, message_text_box_, parsed_messages_, yaze::editor::MessageSnapshot::parsed_text, yaze::editor::ParseMessageToDataWithDiagnostics(), yaze::editor::MessageData::RawString, rom_, yaze::Rom::set_dirty(), and yaze::gui::TextBox::text.
Referenced by FinalizePendingUndo().

|
private |
Definition at line 258 of file message_editor.cc.
References BuildFallbackFontPalette(), yaze::gfx::SnesPalette::empty(), font_preview_colors_, yaze::editor::Editor::game_data(), yaze::gfx::PaletteGroupMap::hud, yaze::gfx::PaletteGroup::palette(), and yaze::zelda3::GameData::palette_groups.
Referenced by ApplyFontPalette(), Initialize(), and LoadFontGraphics().

|
private |
Definition at line 268 of file message_editor.cc.
Referenced by ResolveFontPalette().
|
private |
Definition at line 283 of file message_editor.cc.
References yaze::Rom::begin(), yaze::editor::MessagePreview::font_gfx16_data_, yaze::editor::MessagePreview::font_gfx16_data_2_, font_graphics_loaded_, yaze::editor::kGfxFont, yaze::zelda3::LoadFontGraphics(), LOG_WARN, message_preview_, raw_font_gfx_data_, RefreshFontAtlasBitmap(), ResolveFontPalette(), rom(), yaze::Rom::size(), and yaze::gfx::SnesTo8bppSheet().
Referenced by EnsureFontTexturesReady(), and Initialize().
|
private |
Definition at line 328 of file message_editor.cc.
References yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::gfx::SnesPalette::empty(), font_gfx_bitmap_, font_preview_colors_, yaze::gfx::Arena::Get(), yaze::editor::kFontGfxMessageDepth, yaze::editor::kFontGfxMessageSize, LOG_WARN, yaze::gfx::Arena::QueueTextureCommand(), and yaze::gfx::Bitmap::SetPalette().
Referenced by LoadFontGraphics().
|
private |
Definition at line 373 of file message_editor.cc.
References yaze::gfx::Arena::CREATE, current_font_gfx16_bitmap_, yaze::gfx::SnesPalette::empty(), font_gfx_bitmap_, font_preview_colors_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Arena::QueueTextureCommand(), ResolveFontPalette(), yaze::gfx::Bitmap::SetPalette(), and yaze::gfx::Arena::UPDATE.
Referenced by SetGameData().
|
private |
Definition at line 399 of file message_editor.cc.
References yaze::gfx::Arena::CREATE, current_font_gfx16_bitmap_, current_message_, yaze::editor::MessageData::Data, DrawMessagePreview(), font_gfx_bitmap_, font_graphics_loaded_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), LoadFontGraphics(), yaze::gfx::Arena::QueueTextureCommand(), and yaze::gfx::Bitmap::texture().
Referenced by DrawCurrentMessage(), and DrawFontAtlas().
|
private |
Definition at line 909 of file message_editor.cc.
References current_message_index_, current_message_is_expanded_, expanded_message_base_id_, expanded_messages_, yaze::editor::GetExpandedTextDataStart(), kExpandedMessages, yaze::editor::kVanilla, kVanillaMessages, list_of_texts_, yaze::editor::LoadMessageBundleFromJson(), MarkDomainDirty(), message_bundle_status_, message_bundle_status_error_, yaze::editor::MessageBankToString(), OpenMessageById(), parsed_messages_, yaze::editor::ParseMessageToDataWithDiagnostics(), rom_, yaze::Rom::set_dirty(), and yaze::editor::ValidateMessageLineWidths().
Referenced by DrawMessageList().
|
private |
Definition at line 243 of file message_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::project::YazeProject::hack_manifest, list_of_texts_, yaze::core::HackManifest::loaded(), yaze::core::HackManifest::message_layout(), and yaze::editor::EditorDependencies::project.
Referenced by DrawExpandedMessageSettings(), Initialize(), and LoadExpandedMessagesFromRom().

|
friend |
Definition at line 91 of file message_editor.h.
|
friend |
Definition at line 92 of file message_editor.h.
|
private |
Definition at line 135 of file message_editor.h.
Referenced by Find(), ReplaceAllMatches(), and ReplaceCurrentMatch().
|
private |
Definition at line 136 of file message_editor.h.
Referenced by Find(), ReplaceAllMatches(), and ReplaceCurrentMatch().
|
private |
Definition at line 137 of file message_editor.h.
Referenced by Find(), ReplaceAllMatches(), and ReplaceCurrentMatch().
|
private |
Definition at line 138 of file message_editor.h.
Referenced by Find(), ReplaceAllMatches(), and ReplaceCurrentMatch().
|
private |
Definition at line 139 of file message_editor.h.
Referenced by Find(), and ReplaceAllMatches().
|
private |
Definition at line 140 of file message_editor.h.
Referenced by Find(), and ReplaceAllMatches().
|
private |
Definition at line 146 of file message_editor.h.
Referenced by LoadFontGraphics().
|
private |
Definition at line 147 of file message_editor.h.
Referenced by ApplySnapshot(), DrawExpandedMessageSettings(), DrawMessageList(), FinalizePendingUndo(), ImportMessageBundleFromFile(), Initialize(), LoadExpandedMessagesFromRom(), OpenMessageById(), PushUndoSnapshot(), ReplaceAllMatches(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 148 of file message_editor.h.
Referenced by ApplySnapshot(), BuildSavePlan(), DrawMessageList(), FinalizePendingUndo(), ImportMessageBundleFromFile(), Initialize(), OpenMessageById(), ReplaceAllMatches(), ResolveExpandedMessageBaseId(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 149 of file message_editor.h.
Referenced by ApplySavePlan(), ApplySnapshot(), BeginSaveTransaction(), BuildSavePlan(), CalculateExpandedBankUsage(), DrawExpandedMessageSettings(), DrawMessageList(), FinalizePendingUndo(), ImportMessageBundleFromFile(), LoadExpandedMessagesFromRom(), OpenMessageById(), ReplaceAllMatches(), RollbackSaveTransaction(), SyncCurrentExpandedMessageAddress(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 151 of file message_editor.h.
Referenced by ApplySnapshot(), DrawCurrentMessage(), DrawMessagePreview(), EnsureFontTexturesReady(), Initialize(), OpenMessageById(), PushUndoSnapshot(), ReplaceAllMatches(), SyncCurrentExpandedMessageAddress(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 152 of file message_editor.h.
Referenced by BuildSavePlan(), DrawCurrentMessage(), DrawDictionary(), DrawExpandedMessageSettings(), DrawMessagePreview(), Initialize(), LoadExpandedMessagesFromRom(), and LoadFontGraphics().
|
private |
Definition at line 154 of file message_editor.h.
Referenced by ApplyFontPalette(), DrawFontAtlas(), EnsureFontTexturesReady(), and RefreshFontAtlasBitmap().
|
private |
Definition at line 155 of file message_editor.h.
Referenced by ApplyFontPalette(), DrawCurrentMessage(), DrawMessagePreview(), EnsureFontTexturesReady(), and Initialize().
|
private |
Definition at line 156 of file message_editor.h.
Referenced by ApplyFontPalette(), DrawCurrentMessage(), DrawMessagePreview(), Initialize(), RefreshFontAtlasBitmap(), and ResolveFontPalette().
|
private |
Definition at line 158 of file message_editor.h.
Referenced by DrawFontAtlas().
|
private |
Definition at line 159 of file message_editor.h.
Referenced by DrawCurrentMessage().
|
private |
Definition at line 161 of file message_editor.h.
Referenced by ApplySnapshot(), Copy(), Cut(), Delete(), DrawCurrentMessage(), DrawSpecialCharacters(), DrawTextCommands(), Initialize(), OpenMessageById(), Paste(), ReplaceAllMatches(), ReplaceCurrentMatch(), and SelectAll().
|
private |
Definition at line 162 of file message_editor.h.
Referenced by ApplySavePlan(), ApplySnapshot(), BuildSavePlan(), ImportMessageBundleFromFile(), LoadExpandedMessagesFromRom(), MarkDomainDirty(), OpenMessageById(), rom(), Save(), set_rom(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 163 of file message_editor.h.
|
private |
Definition at line 164 of file message_editor.h.
Referenced by DrawExpandedMessageSettings(), and LoadExpandedMessagesFromRom().
|
private |
Definition at line 165 of file message_editor.h.
Referenced by ApplySnapshot(), DrawExpandedMessageSettings(), DrawMessageList(), FinalizePendingUndo(), ImportMessageBundleFromFile(), Initialize(), LoadExpandedMessagesFromRom(), OpenMessageById(), PushUndoSnapshot(), ReplaceAllMatches(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 166 of file message_editor.h.
Referenced by ApplySnapshot(), ImportMessageBundleFromFile(), Initialize(), OpenMessageById(), PushUndoSnapshot(), ReplaceAllMatches(), SyncCurrentExpandedMessageAddress(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 167 of file message_editor.h.
Referenced by ApplySnapshot(), ImportMessageBundleFromFile(), Initialize(), OpenMessageById(), PushUndoSnapshot(), ReplaceAllMatches(), SyncCurrentExpandedMessageAddress(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 168 of file message_editor.h.
Referenced by BeginSaveTransaction(), BuildSavePlan(), ClearSavedDomains(), Initialize(), LoadExpandedMessagesFromRom(), MarkDomainDirty(), and RollbackSaveTransaction().
|
private |
Definition at line 169 of file message_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), Initialize(), and RollbackSaveTransaction().
|
private |
Definition at line 170 of file message_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), Initialize(), MarkDomainDirty(), RecordSavedDomains(), and RollbackSaveTransaction().
|
private |
Definition at line 171 of file message_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), Initialize(), and RollbackSaveTransaction().
|
private |
Definition at line 172 of file message_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), Initialize(), MarkDomainDirty(), RecordSavedDomains(), and RollbackSaveTransaction().
|
private |
Definition at line 175 of file message_editor.h.
Referenced by FinalizePendingUndo(), and PushUndoSnapshot().
|
private |
Definition at line 181 of file message_editor.h.
|
private |
Definition at line 182 of file message_editor.h.
|
private |
Definition at line 183 of file message_editor.h.
|
private |
Definition at line 184 of file message_editor.h.
|
private |
Definition at line 195 of file message_editor.h.
Referenced by EnsureFontTexturesReady(), Initialize(), and LoadFontGraphics().
|
private |
Definition at line 196 of file message_editor.h.
Referenced by DrawMessageList(), and ImportMessageBundleFromFile().
|
private |
Definition at line 197 of file message_editor.h.
Referenced by DrawMessageList(), and ImportMessageBundleFromFile().
|
private |
Definition at line 198 of file message_editor.h.
Referenced by ApplySnapshot(), DrawCurrentMessage(), DrawMessageList(), Initialize(), OpenMessageById(), ReplaceAllMatches(), Save(), and UpdateCurrentMessageFromText().
|
private |
Definition at line 199 of file message_editor.h.
Referenced by ApplySnapshot(), DrawCurrentMessage(), Initialize(), OpenMessageById(), ReplaceAllMatches(), and UpdateCurrentMessageFromText().