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

Manages workspace layouts, sessions, and presets. More...

#include <workspace_manager.h>

Collaboration diagram for yaze::editor::WorkspaceManager:

Classes

struct  SessionInfo
 

Public Member Functions

 WorkspaceManager (ToastManager *toast_manager)
 
absl::Status SaveWorkspaceLayout (const std::string &name="")
 
absl::Status LoadWorkspaceLayout (const std::string &name="")
 
absl::Status ResetWorkspaceLayout ()
 
void SaveWorkspacePreset (const std::string &name)
 
void LoadWorkspacePreset (const std::string &name)
 
void RefreshPresets ()
 
void LoadDeveloperLayout ()
 
void LoadDesignerLayout ()
 
void LoadModderLayout ()
 
void ShowAllWindows ()
 
void HideAllWindows ()
 
void MaximizeCurrentWindow ()
 
void RestoreAllWindows ()
 
void CloseAllFloatingWindows ()
 
size_t GetActiveSessionCount () const
 
bool HasDuplicateSession (const std::string &filepath) const
 
void set_sessions (std::deque< SessionInfo > *sessions)
 
const std::vector< std::string > & workspace_presets () const
 
bool workspace_presets_loaded () const
 

Private Attributes

ToastManagertoast_manager_
 
std::deque< SessionInfo > * sessions_ = nullptr
 
std::string last_workspace_preset_
 
std::vector< std::string > workspace_presets_
 
bool workspace_presets_loaded_ = false
 

Detailed Description

Manages workspace layouts, sessions, and presets.

Definition at line 19 of file workspace_manager.h.

Constructor & Destructor Documentation

◆ WorkspaceManager()

yaze::editor::WorkspaceManager::WorkspaceManager ( ToastManager toast_manager)
inlineexplicit

Definition at line 28 of file workspace_manager.h.

Member Function Documentation

◆ SaveWorkspaceLayout()

absl::Status yaze::editor::WorkspaceManager::SaveWorkspaceLayout ( const std::string &  name = "")
Todo:
Serialize ImGui docking layout

Definition at line 11 of file workspace_manager.cc.

References yaze::editor::kSuccess, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ LoadWorkspaceLayout()

absl::Status yaze::editor::WorkspaceManager::LoadWorkspaceLayout ( const std::string &  name = "")
Todo:
Deserialize ImGui docking layout

Definition at line 19 of file workspace_manager.cc.

References yaze::editor::kSuccess, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ ResetWorkspaceLayout()

absl::Status yaze::editor::WorkspaceManager::ResetWorkspaceLayout ( )
Todo:
Reset to default layout

Definition at line 27 of file workspace_manager.cc.

References yaze::editor::kInfo, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ SaveWorkspacePreset()

void yaze::editor::WorkspaceManager::SaveWorkspacePreset ( const std::string &  name)

◆ LoadWorkspacePreset()

void yaze::editor::WorkspaceManager::LoadWorkspacePreset ( const std::string &  name)

Definition at line 64 of file workspace_manager.cc.

References yaze::editor::kSuccess, last_workspace_preset_, yaze::editor::ToastManager::Show(), and toast_manager_.

Referenced by yaze::editor::EditorManager::LoadWorkspacePreset().

Here is the call graph for this function:

◆ RefreshPresets()

void yaze::editor::WorkspaceManager::RefreshPresets ( )

◆ LoadDeveloperLayout()

void yaze::editor::WorkspaceManager::LoadDeveloperLayout ( )
Todo:
Load preset with all debug tools

Definition at line 103 of file workspace_manager.cc.

References yaze::editor::kInfo, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ LoadDesignerLayout()

void yaze::editor::WorkspaceManager::LoadDesignerLayout ( )
Todo:
Load preset focused on graphics

Definition at line 110 of file workspace_manager.cc.

References yaze::editor::kInfo, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ LoadModderLayout()

void yaze::editor::WorkspaceManager::LoadModderLayout ( )
Todo:
Load preset for ROM hacking

Definition at line 117 of file workspace_manager.cc.

References yaze::editor::kInfo, yaze::editor::ToastManager::Show(), and toast_manager_.

Here is the call graph for this function:

◆ ShowAllWindows()

void yaze::editor::WorkspaceManager::ShowAllWindows ( )
Todo:
Set all editor windows to visible

Definition at line 124 of file workspace_manager.cc.

◆ HideAllWindows()

void yaze::editor::WorkspaceManager::HideAllWindows ( )
Todo:
Hide all editor windows

Definition at line 128 of file workspace_manager.cc.

◆ MaximizeCurrentWindow()

void yaze::editor::WorkspaceManager::MaximizeCurrentWindow ( )
Todo:
Maximize focused window

Definition at line 132 of file workspace_manager.cc.

◆ RestoreAllWindows()

void yaze::editor::WorkspaceManager::RestoreAllWindows ( )
Todo:
Restore all windows to default size

Definition at line 136 of file workspace_manager.cc.

◆ CloseAllFloatingWindows()

void yaze::editor::WorkspaceManager::CloseAllFloatingWindows ( )
Todo:
Close undocked windows

Definition at line 140 of file workspace_manager.cc.

◆ GetActiveSessionCount()

size_t yaze::editor::WorkspaceManager::GetActiveSessionCount ( ) const

Definition at line 144 of file workspace_manager.cc.

References sessions_.

◆ HasDuplicateSession()

bool yaze::editor::WorkspaceManager::HasDuplicateSession ( const std::string &  filepath) const

Definition at line 156 of file workspace_manager.cc.

References sessions_.

◆ set_sessions()

void yaze::editor::WorkspaceManager::set_sessions ( std::deque< SessionInfo > *  sessions)
inline

Definition at line 55 of file workspace_manager.h.

References sessions_.

◆ workspace_presets()

const std::vector< std::string > & yaze::editor::WorkspaceManager::workspace_presets ( ) const
inline

◆ workspace_presets_loaded()

bool yaze::editor::WorkspaceManager::workspace_presets_loaded ( ) const
inline

Member Data Documentation

◆ toast_manager_

◆ sessions_

std::deque<SessionInfo>* yaze::editor::WorkspaceManager::sessions_ = nullptr
private

Definition at line 62 of file workspace_manager.h.

Referenced by GetActiveSessionCount(), HasDuplicateSession(), and set_sessions().

◆ last_workspace_preset_

std::string yaze::editor::WorkspaceManager::last_workspace_preset_
private

Definition at line 63 of file workspace_manager.h.

Referenced by LoadWorkspacePreset(), and SaveWorkspacePreset().

◆ workspace_presets_

std::vector<std::string> yaze::editor::WorkspaceManager::workspace_presets_
private

Definition at line 64 of file workspace_manager.h.

Referenced by RefreshPresets(), SaveWorkspacePreset(), and workspace_presets().

◆ workspace_presets_loaded_

bool yaze::editor::WorkspaceManager::workspace_presets_loaded_ = false
private

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