Central registry for all editor cards with session awareness and dependency injection. More...
#include <editor_card_registry.h>
Classes | |
struct | WorkspacePreset |
Public Member Functions | |
EditorCardRegistry ()=default | |
~EditorCardRegistry ()=default | |
EditorCardRegistry (const EditorCardRegistry &)=delete | |
EditorCardRegistry & | operator= (const EditorCardRegistry &)=delete |
EditorCardRegistry (EditorCardRegistry &&)=delete | |
EditorCardRegistry & | operator= (EditorCardRegistry &&)=delete |
void | RegisterSession (size_t session_id) |
Register a new session in the registry. | |
void | UnregisterSession (size_t session_id) |
Unregister a session and all its cards. | |
void | SetActiveSession (size_t session_id) |
Set the currently active session. | |
void | RegisterCard (size_t session_id, const CardInfo &base_info) |
Register a card for a specific session. | |
void | RegisterCard (size_t session_id, const std::string &card_id, const std::string &display_name, const std::string &icon, const std::string &category, const std::string &shortcut_hint="", int priority=50, std::function< void()> on_show=nullptr, std::function< void()> on_hide=nullptr, bool visible_by_default=false) |
Register a card with inline parameters (convenience method) | |
void | UnregisterCard (size_t session_id, const std::string &base_card_id) |
Unregister a specific card. | |
void | UnregisterCardsWithPrefix (const std::string &prefix) |
Unregister all cards with a given prefix. | |
void | ClearAllCards () |
Remove all registered cards (use with caution) | |
bool | ShowCard (size_t session_id, const std::string &base_card_id) |
Show a card programmatically. | |
bool | HideCard (size_t session_id, const std::string &base_card_id) |
Hide a card programmatically. | |
bool | ToggleCard (size_t session_id, const std::string &base_card_id) |
Toggle a card's visibility. | |
bool | IsCardVisible (size_t session_id, const std::string &base_card_id) const |
Check if a card is currently visible. | |
bool * | GetVisibilityFlag (size_t session_id, const std::string &base_card_id) |
Get visibility flag pointer for a card. | |
void | ShowAllCardsInSession (size_t session_id) |
Show all cards in a specific session. | |
void | HideAllCardsInSession (size_t session_id) |
Hide all cards in a specific session. | |
void | ShowAllCardsInCategory (size_t session_id, const std::string &category) |
Show all cards in a category for a session. | |
void | HideAllCardsInCategory (size_t session_id, const std::string &category) |
Hide all cards in a category for a session. | |
void | ShowOnlyCard (size_t session_id, const std::string &base_card_id) |
Show only one card, hiding all others in its category. | |
std::vector< std::string > | GetCardsInSession (size_t session_id) const |
Get all cards registered for a session. | |
std::vector< CardInfo > | GetCardsInCategory (size_t session_id, const std::string &category) const |
Get cards in a specific category for a session. | |
std::vector< std::string > | GetAllCategories (size_t session_id) const |
Get all categories for a session. | |
const CardInfo * | GetCardInfo (size_t session_id, const std::string &base_card_id) const |
Get card metadata. | |
std::vector< std::string > | GetAllCategories () const |
Get all registered categories across all sessions. | |
void | DrawViewMenuSection (size_t session_id, const std::string &category) |
Draw view menu section for a category. | |
void | DrawViewMenuAll (size_t session_id) |
Draw all categories as view menu submenus. | |
void | DrawSidebar (size_t session_id, const std::string &category, const std::vector< std::string > &active_categories={}, std::function< void(const std::string &)> on_category_switch=nullptr, std::function< void()> on_collapse=nullptr) |
Draw sidebar for a category with session filtering. | |
void | DrawCompactCardControl (size_t session_id, const std::string &category) |
Draw compact card control for active editor's cards. | |
void | DrawInlineCardToggles (size_t session_id, const std::string &category) |
Draw minimal inline card toggles. | |
void | DrawCardBrowser (size_t session_id, bool *p_open) |
Draw visual card browser/toggler. | |
void | SavePreset (const std::string &name, const std::string &description="") |
bool | LoadPreset (const std::string &name) |
void | DeletePreset (const std::string &name) |
std::vector< WorkspacePreset > | GetPresets () const |
void | ShowAll (size_t session_id) |
void | HideAll (size_t session_id) |
void | ResetToDefaults (size_t session_id) |
size_t | GetCardCount () const |
size_t | GetVisibleCardCount (size_t session_id) const |
size_t | GetSessionCount () const |
std::string | MakeCardId (size_t session_id, const std::string &base_id) const |
Generate session-aware card ID. | |
bool | ShouldPrefixCards () const |
Check if card IDs should be prefixed. | |
void | RegisterCard (const CardInfo &base_info) |
Register card for active session (convenience) | |
bool | ShowCard (const std::string &base_card_id) |
Show card in active session (convenience) | |
bool | HideCard (const std::string &base_card_id) |
Hide card in active session (convenience) | |
bool | IsCardVisible (const std::string &base_card_id) const |
Check if card is visible in active session (convenience) | |
void | HideAllCardsInCategory (const std::string &category) |
Hide all cards in category for active session (convenience) | |
void | DrawCardBrowser (bool *p_open) |
Draw card browser for active session (convenience) | |
std::string | GetActiveCategory () const |
Get active category (for sidebar) | |
void | SetActiveCategory (const std::string &category) |
Set active category (for sidebar) | |
void | ShowAllCardsInCategory (const std::string &category) |
Show all cards in category for active session (convenience) | |
bool * | GetVisibilityFlag (const std::string &base_card_id) |
Get visibility flag for active session (convenience) | |
void | ShowAll () |
Show all cards for active session (convenience) | |
void | HideAll () |
Hide all cards for active session (convenience) | |
void | DrawSidebar (const std::string &category, const std::vector< std::string > &active_categories={}, std::function< void(const std::string &)> on_category_switch=nullptr, std::function< void()> on_collapse=nullptr) |
Draw sidebar for active session (convenience) | |
Static Public Member Functions | |
static constexpr float | GetSidebarWidth () |
Private Member Functions | |
void | UpdateSessionCount () |
std::string | GetPrefixedCardId (size_t session_id, const std::string &base_id) const |
void | UnregisterSessionCards (size_t session_id) |
void | SavePresetsToFile () |
void | LoadPresetsFromFile () |
void | DrawCardMenuItem (const CardInfo &info) |
void | DrawCardInSidebar (const CardInfo &info, bool is_active) |
Private Attributes | |
std::unordered_map< std::string, CardInfo > | cards_ |
std::unordered_map< std::string, bool > | centralized_visibility_ |
size_t | session_count_ = 0 |
size_t | active_session_ = 0 |
std::unordered_map< size_t, std::vector< std::string > > | session_cards_ |
std::unordered_map< size_t, std::unordered_map< std::string, std::string > > | session_card_mapping_ |
std::unordered_map< std::string, WorkspacePreset > | presets_ |
std::string | active_category_ |
std::vector< std::string > | recent_categories_ |
Static Private Attributes | |
static constexpr size_t | kMaxRecentCategories = 5 |
Central registry for all editor cards with session awareness and dependency injection.
This class combines the functionality of EditorCardManager (global card management) and SessionCardRegistry (session-aware prefixing) into a single, dependency-injected component that can be passed to editors.
Design Philosophy:
Session-Aware Card IDs:
Usage:
Definition at line 78 of file editor_card_registry.h.
|
default |
|
default |
|
delete |
|
delete |
|
delete |
|
delete |
void yaze::editor::EditorCardRegistry::RegisterSession | ( | size_t | session_id | ) |
Register a new session in the registry.
session_id | Unique session identifier |
Creates internal tracking structures for the session. Must be called before registering cards for a session.
Definition at line 18 of file editor_card_registry.cc.
References LOG_INFO, session_card_mapping_, session_cards_, session_count_, and UpdateSessionCount().
Referenced by RegisterCard().
void yaze::editor::EditorCardRegistry::UnregisterSession | ( | size_t | session_id | ) |
Unregister a session and all its cards.
session_id | Session identifier to remove |
Automatically unregisters all cards associated with the session.
Definition at line 27 of file editor_card_registry.cc.
References active_session_, LOG_INFO, session_card_mapping_, session_cards_, session_count_, UnregisterSessionCards(), and UpdateSessionCount().
Referenced by yaze::editor::SessionCoordinator::ClearAllSessions(), and yaze::editor::SessionCoordinator::CloseSession().
void yaze::editor::EditorCardRegistry::SetActiveSession | ( | size_t | session_id | ) |
Set the currently active session.
session_id | Session to make active |
Used for determining whether to apply card ID prefixing.
Definition at line 47 of file editor_card_registry.cc.
References active_session_, and session_cards_.
Referenced by yaze::editor::SessionCoordinator::SwitchToSession().
void yaze::editor::EditorCardRegistry::RegisterCard | ( | size_t | session_id, |
const CardInfo & | base_info | ||
) |
Register a card for a specific session.
session_id | Session this card belongs to |
base_info | Card metadata (ID will be automatically prefixed if needed) |
The card_id in base_info should be the unprefixed ID. This method automatically applies session prefixing when multiple sessions exist.
Definition at line 57 of file editor_card_registry.cc.
References yaze::editor::CardInfo::card_id, cards_, centralized_visibility_, LOG_INFO, LOG_WARN, MakeCardId(), RegisterSession(), session_card_mapping_, session_cards_, and yaze::editor::CardInfo::visibility_flag.
Referenced by yaze::editor::AssemblyEditor::Initialize(), yaze::editor::GraphicsEditor::Initialize(), yaze::editor::ScreenEditor::Initialize(), yaze::editor::MessageEditor::Initialize(), yaze::editor::MusicEditor::Initialize(), yaze::editor::OverworldEditor::Initialize(), yaze::editor::PaletteEditor::Initialize(), yaze::editor::SpriteEditor::Initialize(), yaze::editor::SettingsEditor::Initialize(), yaze::editor::EditorManager::Initialize(), yaze::editor::DungeonEditorV2::Initialize(), RegisterCard(), and RegisterCard().
void yaze::editor::EditorCardRegistry::RegisterCard | ( | size_t | session_id, |
const std::string & | card_id, | ||
const std::string & | display_name, | ||
const std::string & | icon, | ||
const std::string & | category, | ||
const std::string & | shortcut_hint = "" , |
||
int | priority = 50 , |
||
std::function< void()> | on_show = nullptr , |
||
std::function< void()> | on_hide = nullptr , |
||
bool | visible_by_default = false |
||
) |
Register a card with inline parameters (convenience method)
Definition at line 88 of file editor_card_registry.cc.
References yaze::editor::CardInfo::card_id, yaze::editor::CardInfo::category, yaze::editor::CardInfo::display_name, yaze::editor::CardInfo::icon, yaze::editor::CardInfo::on_hide, yaze::editor::CardInfo::on_show, yaze::editor::CardInfo::priority, RegisterCard(), yaze::editor::CardInfo::shortcut_hint, ShowCard(), and yaze::editor::CardInfo::visibility_flag.
void yaze::editor::EditorCardRegistry::UnregisterCard | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Unregister a specific card.
session_id | Session the card belongs to |
base_card_id | Unprefixed card ID |
Definition at line 117 of file editor_card_registry.cc.
References cards_, centralized_visibility_, GetPrefixedCardId(), LOG_INFO, session_card_mapping_, and session_cards_.
void yaze::editor::EditorCardRegistry::UnregisterCardsWithPrefix | ( | const std::string & | prefix | ) |
Unregister all cards with a given prefix.
prefix | Prefix to match (e.g., "s0" or "s1.dungeon") |
Useful for cleaning up session cards or category cards.
Definition at line 139 of file editor_card_registry.cc.
References cards_, centralized_visibility_, LOG_INFO, and session_cards_.
void yaze::editor::EditorCardRegistry::ClearAllCards | ( | ) |
Remove all registered cards (use with caution)
Definition at line 167 of file editor_card_registry.cc.
References cards_, centralized_visibility_, LOG_INFO, session_card_mapping_, session_cards_, and session_count_.
bool yaze::editor::EditorCardRegistry::ShowCard | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Show a card programmatically.
session_id | Session the card belongs to |
base_card_id | Unprefixed card ID |
Definition at line 180 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
Referenced by yaze::editor::UICoordinator::DrawContextSensitiveCardControl(), yaze::editor::EditorManager::Initialize(), RegisterCard(), ShowCard(), yaze::editor::EditorManager::ShowHexEditor(), and ShowOnlyCard().
bool yaze::editor::EditorCardRegistry::HideCard | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Hide a card programmatically.
Definition at line 199 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
Referenced by yaze::editor::UICoordinator::DrawContextSensitiveCardControl(), and HideCard().
bool yaze::editor::EditorCardRegistry::ToggleCard | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Toggle a card's visibility.
Definition at line 218 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
Referenced by DrawCompactCardControl(), and DrawSidebar().
bool yaze::editor::EditorCardRegistry::IsCardVisible | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) | const |
Check if a card is currently visible.
Definition at line 239 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
Referenced by IsCardVisible().
bool * yaze::editor::EditorCardRegistry::GetVisibilityFlag | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Get visibility flag pointer for a card.
Definition at line 252 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
Referenced by yaze::editor::EditorManager::DrawMenuBar(), GetVisibilityFlag(), yaze::emu::Emulator::RenderEmulatorInterface(), yaze::editor::MessageEditor::Update(), and yaze::editor::SettingsEditor::Update().
void yaze::editor::EditorCardRegistry::ShowAllCardsInSession | ( | size_t | session_id | ) |
Show all cards in a specific session.
Definition at line 269 of file editor_card_registry.cc.
References cards_, and session_cards_.
Referenced by ShowAll(), and yaze::editor::SessionCoordinator::ShowAllCardsInActiveSession().
void yaze::editor::EditorCardRegistry::HideAllCardsInSession | ( | size_t | session_id | ) |
Hide all cards in a specific session.
Definition at line 284 of file editor_card_registry.cc.
References cards_, and session_cards_.
Referenced by HideAll(), yaze::editor::SessionCoordinator::HideAllCardsInActiveSession(), and ResetToDefaults().
void yaze::editor::EditorCardRegistry::ShowAllCardsInCategory | ( | size_t | session_id, |
const std::string & | category | ||
) |
Show all cards in a category for a session.
Definition at line 299 of file editor_card_registry.cc.
References cards_, and session_cards_.
Referenced by DrawSidebar(), ShowAllCardsInCategory(), and yaze::editor::SessionCoordinator::ShowCardsInCategory().
void yaze::editor::EditorCardRegistry::HideAllCardsInCategory | ( | size_t | session_id, |
const std::string & | category | ||
) |
Hide all cards in a category for a session.
Definition at line 316 of file editor_card_registry.cc.
References cards_, and session_cards_.
Referenced by DrawSidebar(), HideAllCardsInCategory(), yaze::editor::SessionCoordinator::HideCardsInCategory(), yaze::editor::EditorManager::HideCurrentEditorCards(), yaze::editor::UICoordinator::HideCurrentEditorCards(), and ShowOnlyCard().
void yaze::editor::EditorCardRegistry::ShowOnlyCard | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) |
Show only one card, hiding all others in its category.
Definition at line 333 of file editor_card_registry.cc.
References cards_, GetPrefixedCardId(), HideAllCardsInCategory(), and ShowCard().
std::vector< std::string > yaze::editor::EditorCardRegistry::GetCardsInSession | ( | size_t | session_id | ) | const |
Get all cards registered for a session.
Definition at line 358 of file editor_card_registry.cc.
References session_cards_.
Referenced by DrawCardBrowser().
std::vector< CardInfo > yaze::editor::EditorCardRegistry::GetCardsInCategory | ( | size_t | session_id, |
const std::string & | category | ||
) | const |
Get cards in a specific category for a session.
Definition at line 366 of file editor_card_registry.cc.
References cards_, and session_cards_.
Referenced by DrawCardBrowser(), DrawCompactCardControl(), yaze::editor::UICoordinator::DrawContextSensitiveCardControl(), DrawInlineCardToggles(), DrawSidebar(), and DrawViewMenuSection().
std::vector< std::string > yaze::editor::EditorCardRegistry::GetAllCategories | ( | size_t | session_id | ) | const |
Get all categories for a session.
Definition at line 389 of file editor_card_registry.cc.
References cards_, and session_cards_.
const CardInfo * yaze::editor::EditorCardRegistry::GetCardInfo | ( | size_t | session_id, |
const std::string & | base_card_id | ||
) | const |
Get card metadata.
session_id | Session the card belongs to |
base_card_id | Unprefixed card ID |
Definition at line 407 of file editor_card_registry.cc.
References cards_, and GetPrefixedCardId().
std::vector< std::string > yaze::editor::EditorCardRegistry::GetAllCategories | ( | ) | const |
Get all registered categories across all sessions.
Definition at line 421 of file editor_card_registry.cc.
References cards_.
Referenced by DrawCardBrowser(), and DrawViewMenuAll().
void yaze::editor::EditorCardRegistry::DrawViewMenuSection | ( | size_t | session_id, |
const std::string & | category | ||
) |
Draw view menu section for a category.
Definition at line 436 of file editor_card_registry.cc.
References DrawCardMenuItem(), and GetCardsInCategory().
Referenced by DrawViewMenuAll().
void yaze::editor::EditorCardRegistry::DrawViewMenuAll | ( | size_t | session_id | ) |
Draw all categories as view menu submenus.
Definition at line 451 of file editor_card_registry.cc.
References DrawViewMenuSection(), and GetAllCategories().
void yaze::editor::EditorCardRegistry::DrawSidebar | ( | size_t | session_id, |
const std::string & | category, | ||
const std::vector< std::string > & | active_categories = {} , |
||
std::function< void(const std::string &)> | on_category_switch = nullptr , |
||
std::function< void()> | on_collapse = nullptr |
||
) |
Draw sidebar for a category with session filtering.
Definition at line 463 of file editor_card_registry.cc.
References yaze::gui::ConvertColorToImVec4(), yaze::gui::ThemeManager::Get(), GetCardsInCategory(), yaze::gui::ThemeManager::GetCurrentTheme(), GetSidebarWidth(), HideAllCardsInCategory(), ICON_MD_CLOSE, ICON_MD_DONE_ALL, ICON_MD_KEYBOARD_ARROW_LEFT, SetActiveCategory(), ShowAllCardsInCategory(), and ToggleCard().
Referenced by yaze::editor::EditorManager::Update().
|
inlinestaticconstexpr |
Definition at line 287 of file editor_card_registry.h.
Referenced by DrawSidebar().
void yaze::editor::EditorCardRegistry::DrawCompactCardControl | ( | size_t | session_id, |
const std::string & | category | ||
) |
Draw compact card control for active editor's cards.
Definition at line 660 of file editor_card_registry.cc.
References GetCardsInCategory(), ICON_MD_DASHBOARD, and ToggleCard().
void yaze::editor::EditorCardRegistry::DrawInlineCardToggles | ( | size_t | session_id, |
const std::string & | category | ||
) |
Draw minimal inline card toggles.
Definition at line 681 of file editor_card_registry.cc.
References GetCardsInCategory().
void yaze::editor::EditorCardRegistry::DrawCardBrowser | ( | size_t | session_id, |
bool * | p_open | ||
) |
Draw visual card browser/toggler.
Definition at line 698 of file editor_card_registry.cc.
References cards_, GetAllCategories(), GetCardsInCategory(), GetCardsInSession(), ICON_MD_DASHBOARD, and ICON_MD_SEARCH.
Referenced by DrawCardBrowser(), and yaze::editor::EditorManager::Update().
void yaze::editor::EditorCardRegistry::SavePreset | ( | const std::string & | name, |
const std::string & | description = "" |
||
) |
Definition at line 811 of file editor_card_registry.cc.
References cards_, yaze::editor::EditorCardRegistry::WorkspacePreset::description, LOG_INFO, yaze::editor::EditorCardRegistry::WorkspacePreset::name, presets_, SavePresetsToFile(), and yaze::editor::EditorCardRegistry::WorkspacePreset::visible_cards.
bool yaze::editor::EditorCardRegistry::LoadPreset | ( | const std::string & | name | ) |
Definition at line 828 of file editor_card_registry.cc.
void yaze::editor::EditorCardRegistry::DeletePreset | ( | const std::string & | name | ) |
Definition at line 856 of file editor_card_registry.cc.
References presets_, and SavePresetsToFile().
std::vector< EditorCardRegistry::WorkspacePreset > yaze::editor::EditorCardRegistry::GetPresets | ( | ) | const |
Definition at line 861 of file editor_card_registry.cc.
References presets_.
void yaze::editor::EditorCardRegistry::ShowAll | ( | size_t | session_id | ) |
Definition at line 873 of file editor_card_registry.cc.
References ShowAllCardsInSession().
Referenced by yaze::editor::WorkspaceManager::ShowAllWindows().
void yaze::editor::EditorCardRegistry::HideAll | ( | size_t | session_id | ) |
Definition at line 877 of file editor_card_registry.cc.
References HideAllCardsInSession().
Referenced by yaze::editor::WorkspaceManager::HideAllWindows().
void yaze::editor::EditorCardRegistry::ResetToDefaults | ( | size_t | session_id | ) |
Definition at line 881 of file editor_card_registry.cc.
References HideAllCardsInSession(), and LOG_INFO.
|
inline |
Definition at line 339 of file editor_card_registry.h.
References cards_.
size_t yaze::editor::EditorCardRegistry::GetVisibleCardCount | ( | size_t | session_id | ) | const |
Definition at line 893 of file editor_card_registry.cc.
References cards_, and session_cards_.
|
inline |
Definition at line 341 of file editor_card_registry.h.
References session_count_.
std::string yaze::editor::EditorCardRegistry::MakeCardId | ( | size_t | session_id, |
const std::string & | base_id | ||
) | const |
Generate session-aware card ID.
session_id | Session identifier |
base_id | Unprefixed card ID |
Examples:
Definition at line 913 of file editor_card_registry.cc.
References ShouldPrefixCards().
Referenced by RegisterCard().
|
inline |
Check if card IDs should be prefixed.
Definition at line 363 of file editor_card_registry.h.
References session_count_.
Referenced by MakeCardId().
|
inline |
Register card for active session (convenience)
Definition at line 372 of file editor_card_registry.h.
References active_session_, and RegisterCard().
|
inline |
Show card in active session (convenience)
Definition at line 379 of file editor_card_registry.h.
References active_session_, and ShowCard().
|
inline |
Hide card in active session (convenience)
Definition at line 386 of file editor_card_registry.h.
References active_session_, and HideCard().
|
inline |
Check if card is visible in active session (convenience)
Definition at line 393 of file editor_card_registry.h.
References active_session_, and IsCardVisible().
|
inline |
Hide all cards in category for active session (convenience)
Definition at line 400 of file editor_card_registry.h.
References active_session_, and HideAllCardsInCategory().
|
inline |
Draw card browser for active session (convenience)
Definition at line 407 of file editor_card_registry.h.
References active_session_, and DrawCardBrowser().
|
inline |
Get active category (for sidebar)
Definition at line 414 of file editor_card_registry.h.
References active_category_.
Referenced by yaze::editor::EditorManager::Update().
|
inline |
Set active category (for sidebar)
Definition at line 419 of file editor_card_registry.h.
References active_category_.
Referenced by DrawSidebar(), yaze::editor::EditorManager::SwitchToEditor(), and yaze::editor::EditorManager::Update().
|
inline |
Show all cards in category for active session (convenience)
Definition at line 424 of file editor_card_registry.h.
References active_session_, and ShowAllCardsInCategory().
|
inline |
Get visibility flag for active session (convenience)
Definition at line 431 of file editor_card_registry.h.
References active_session_, and GetVisibilityFlag().
|
inline |
Show all cards for active session (convenience)
Definition at line 438 of file editor_card_registry.h.
References active_session_, and ShowAll().
Referenced by ShowAll().
|
inline |
Hide all cards for active session (convenience)
Definition at line 445 of file editor_card_registry.h.
References active_session_, and HideAll().
Referenced by HideAll().
|
inline |
Draw sidebar for active session (convenience)
Definition at line 452 of file editor_card_registry.h.
|
private |
Definition at line 924 of file editor_card_registry.cc.
References session_cards_, and session_count_.
Referenced by RegisterSession(), and UnregisterSession().
|
private |
Definition at line 928 of file editor_card_registry.cc.
References cards_, and session_card_mapping_.
Referenced by GetCardInfo(), GetVisibilityFlag(), HideCard(), IsCardVisible(), ShowCard(), ShowOnlyCard(), ToggleCard(), and UnregisterCard().
|
private |
Definition at line 946 of file editor_card_registry.cc.
References cards_, centralized_visibility_, and session_cards_.
Referenced by UnregisterSession().
|
private |
Definition at line 956 of file editor_card_registry.cc.
References LOG_INFO.
Referenced by DeletePreset(), and SavePreset().
|
private |
Definition at line 961 of file editor_card_registry.cc.
References LOG_INFO.
|
private |
Definition at line 966 of file editor_card_registry.cc.
References yaze::editor::CardInfo::display_name, yaze::editor::CardInfo::icon, yaze::editor::CardInfo::on_hide, yaze::editor::CardInfo::on_show, yaze::editor::CardInfo::shortcut_hint, and yaze::editor::CardInfo::visibility_flag.
Referenced by DrawViewMenuSection().
|
private |
Definition at line 986 of file editor_card_registry.cc.
References yaze::editor::CardInfo::display_name, yaze::gui::GetPrimaryVec4(), yaze::editor::CardInfo::icon, yaze::editor::CardInfo::on_hide, yaze::editor::CardInfo::on_show, and yaze::editor::CardInfo::visibility_flag.
|
private |
Definition at line 461 of file editor_card_registry.h.
Referenced by ClearAllCards(), DrawCardBrowser(), GetAllCategories(), GetAllCategories(), GetCardCount(), GetCardInfo(), GetCardsInCategory(), GetPrefixedCardId(), GetVisibilityFlag(), GetVisibleCardCount(), HideAllCardsInCategory(), HideAllCardsInSession(), HideCard(), IsCardVisible(), LoadPreset(), RegisterCard(), SavePreset(), ShowAllCardsInCategory(), ShowAllCardsInSession(), ShowCard(), ShowOnlyCard(), ToggleCard(), UnregisterCard(), UnregisterCardsWithPrefix(), and UnregisterSessionCards().
|
private |
Definition at line 464 of file editor_card_registry.h.
Referenced by ClearAllCards(), RegisterCard(), UnregisterCard(), UnregisterCardsWithPrefix(), and UnregisterSessionCards().
|
private |
Definition at line 467 of file editor_card_registry.h.
Referenced by ClearAllCards(), GetSessionCount(), RegisterSession(), ShouldPrefixCards(), UnregisterSession(), and UpdateSessionCount().
|
private |
Definition at line 468 of file editor_card_registry.h.
Referenced by DrawCardBrowser(), GetVisibilityFlag(), HideAll(), HideAllCardsInCategory(), HideCard(), IsCardVisible(), RegisterCard(), SetActiveSession(), ShowAll(), ShowAllCardsInCategory(), ShowCard(), and UnregisterSession().
|
private |
Definition at line 471 of file editor_card_registry.h.
Referenced by ClearAllCards(), GetAllCategories(), GetCardsInCategory(), GetCardsInSession(), GetVisibleCardCount(), HideAllCardsInCategory(), HideAllCardsInSession(), RegisterCard(), RegisterSession(), SetActiveSession(), ShowAllCardsInCategory(), ShowAllCardsInSession(), UnregisterCard(), UnregisterCardsWithPrefix(), UnregisterSession(), UnregisterSessionCards(), and UpdateSessionCount().
|
private |
Definition at line 474 of file editor_card_registry.h.
Referenced by ClearAllCards(), GetPrefixedCardId(), RegisterCard(), RegisterSession(), UnregisterCard(), and UnregisterSession().
|
private |
Definition at line 477 of file editor_card_registry.h.
Referenced by DeletePreset(), GetPresets(), LoadPreset(), and SavePreset().
|
private |
Definition at line 480 of file editor_card_registry.h.
Referenced by GetActiveCategory(), and SetActiveCategory().
|
private |
Definition at line 481 of file editor_card_registry.h.
|
staticconstexprprivate |
Definition at line 482 of file editor_card_registry.h.