Text editor for modifying assembly code. More...
#include <assembly_editor.h>
Public Member Functions | |
AssemblyEditor () | |
void | ChangeActiveFile (const std::string_view &filename) |
void | Update (bool &is_loaded) |
void | InlineUpdate () |
void | UpdateCodeView () |
absl::Status | Cut () override |
absl::Status | Copy () override |
absl::Status | Paste () override |
absl::Status | Undo () override |
absl::Status | Redo () override |
absl::Status | Find () override |
absl::Status | Update () override |
void | OpenFolder (const std::string &folder_path) |
Public Member Functions inherited from yaze::app::editor::Editor | |
Editor ()=default | |
virtual | ~Editor ()=default |
EditorType | type () const |
Private Member Functions | |
void | DrawFileMenu () |
void | DrawEditMenu () |
void | SetEditorText () |
void | DrawCurrentFolder () |
void | DrawFileTabView () |
Private Attributes | |
bool | file_is_loaded_ = false |
std::vector< std::string > | files_ |
std::vector< TextEditor > | open_files_ |
ImVector< int > | active_files_ |
int | current_file_id_ = 0 |
std::string | current_file_ |
core::FolderItem | current_folder_ |
TextEditor | text_editor_ |
Additional Inherited Members | |
Protected Attributes inherited from yaze::app::editor::Editor | |
EditorType | type_ |
EditorContext | context_ |
Text editor for modifying assembly code.
Definition at line 19 of file assembly_editor.h.
|
inline |
Definition at line 21 of file assembly_editor.h.
References yaze::app::gui::GetAssemblyLanguageDef(), yaze::app::editor::kAssembly, text_editor_, and yaze::app::editor::Editor::type_.
|
inline |
Definition at line 27 of file assembly_editor.h.
References current_file_, and file_is_loaded_.
Referenced by DrawCurrentFolder(), DrawFileMenu(), and InlineUpdate().
void yaze::app::editor::AssemblyEditor::Update | ( | bool & | is_loaded | ) |
Definition at line 102 of file assembly_editor.cc.
References current_file_, DrawEditMenu(), DrawFileMenu(), SetEditorText(), and text_editor_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar().
void yaze::app::editor::AssemblyEditor::InlineUpdate | ( | ) |
Definition at line 123 of file assembly_editor.cc.
References ChangeActiveFile(), current_file_, SetEditorText(), and text_editor_.
Referenced by yaze::app::editor::MusicEditor::Update().
void yaze::app::editor::AssemblyEditor::UpdateCodeView | ( | ) |
Definition at line 137 of file assembly_editor.cc.
References current_file_, current_folder_, DrawCurrentFolder(), yaze::app::core::FolderItem::name, SetEditorText(), yaze::app::core::FileDialogWrapper::ShowOpenFolderDialog(), and text_editor_.
Referenced by yaze::app::editor::EditorManager::ManageActiveEditors().
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 339 of file assembly_editor.cc.
References text_editor_.
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 344 of file assembly_editor.cc.
References text_editor_.
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 349 of file assembly_editor.cc.
References text_editor_.
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 354 of file assembly_editor.cc.
References text_editor_.
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 359 of file assembly_editor.cc.
References text_editor_.
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 43 of file assembly_editor.h.
|
overridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 364 of file assembly_editor.cc.
void yaze::app::editor::AssemblyEditor::OpenFolder | ( | const std::string & | folder_path | ) |
Definition at line 98 of file assembly_editor.cc.
References current_folder_.
Referenced by yaze::app::editor::EditorManager::OpenProject().
|
private |
Definition at line 278 of file assembly_editor.cc.
References ChangeActiveFile().
Referenced by Update().
|
private |
Definition at line 298 of file assembly_editor.cc.
References text_editor_.
Referenced by Update().
|
private |
Definition at line 324 of file assembly_editor.cc.
References current_file_, file_is_loaded_, and text_editor_.
Referenced by InlineUpdate(), Update(), and UpdateCodeView().
|
private |
Definition at line 175 of file assembly_editor.cc.
References ChangeActiveFile(), current_folder_, yaze::app::core::FolderItem::files, yaze::app::core::FolderItem::name, and yaze::app::core::FolderItem::subfolders.
Referenced by UpdateCodeView().
|
private |
Definition at line 225 of file assembly_editor.cc.
References active_files_, current_file_, current_file_id_, files_, ICON_MD_ADD, open_files_, and text_editor_.
|
private |
Definition at line 59 of file assembly_editor.h.
Referenced by ChangeActiveFile(), and SetEditorText().
|
private |
Definition at line 61 of file assembly_editor.h.
Referenced by DrawFileTabView().
|
private |
Definition at line 62 of file assembly_editor.h.
Referenced by DrawFileTabView().
|
private |
Definition at line 63 of file assembly_editor.h.
Referenced by DrawFileTabView().
|
private |
Definition at line 64 of file assembly_editor.h.
Referenced by DrawFileTabView().
|
private |
Definition at line 66 of file assembly_editor.h.
Referenced by ChangeActiveFile(), DrawFileTabView(), InlineUpdate(), SetEditorText(), Update(), and UpdateCodeView().
|
private |
Definition at line 67 of file assembly_editor.h.
Referenced by DrawCurrentFolder(), OpenFolder(), and UpdateCodeView().
|
private |
Definition at line 68 of file assembly_editor.h.
Referenced by AssemblyEditor(), Copy(), Cut(), DrawEditMenu(), DrawFileTabView(), InlineUpdate(), Paste(), Redo(), SetEditorText(), Undo(), Update(), and UpdateCodeView().