#include <activity_bar.h>

Public Member Functions | |
| ActivityBar (PanelManager &panel_manager) | |
| void | Render (size_t session_id, const std::string &active_category, const std::vector< std::string > &all_categories, const std::unordered_set< std::string > &active_editor_categories, std::function< bool()> has_rom) |
| void | DrawPanelBrowser (size_t session_id, bool *p_open) |
Private Member Functions | |
| void | DrawUtilityButtons (std::function< bool()> has_rom) |
| void | DrawActivityBarStrip (size_t session_id, const std::string &active_category, const std::vector< std::string > &all_categories, const std::unordered_set< std::string > &active_editor_categories, std::function< bool()> has_rom) |
| void | DrawSidePanel (size_t session_id, const std::string &category, std::function< bool()> has_rom) |
Private Attributes | |
| PanelManager & | panel_manager_ |
Definition at line 14 of file activity_bar.h.
|
explicit |
Definition at line 22 of file activity_bar.cc.
| void yaze::editor::ActivityBar::Render | ( | size_t | session_id, |
| const std::string & | active_category, | ||
| const std::vector< std::string > & | all_categories, | ||
| const std::unordered_set< std::string > & | active_editor_categories, | ||
| std::function< bool()> | has_rom ) |
Definition at line 25 of file activity_bar.cc.
References DrawActivityBarStrip(), DrawSidePanel(), yaze::editor::PanelManager::IsPanelExpanded(), yaze::editor::PanelManager::IsSidebarVisible(), and panel_manager_.

| void yaze::editor::ActivityBar::DrawPanelBrowser | ( | size_t | session_id, |
| bool * | p_open ) |
Definition at line 552 of file activity_bar.cc.
References yaze::editor::PanelDescriptor::display_name, yaze::editor::PanelManager::GetAllCategories(), yaze::editor::PanelManager::GetPanelDescriptor(), yaze::editor::PanelManager::GetPanelsInCategory(), yaze::editor::PanelManager::GetPanelsInSession(), ICON_MD_DASHBOARD, ICON_MD_SEARCH, panel_manager_, and yaze::editor::PanelManager::TogglePanel().
|
private |
|
private |
Definition at line 41 of file activity_bar.cc.
References yaze::gui::ConvertColorToImVec4(), yaze::gui::ThemeManager::Get(), yaze::editor::PanelManager::GetCategoryIcon(), yaze::editor::PanelManager::GetCategoryTheme(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::gui::GetTextSecondaryVec4(), ICON_MD_FOLDER_OPEN, ICON_MD_KEYBOARD, ICON_MD_MORE_HORIZ, ICON_MD_SEARCH, ICON_MD_SETTINGS, ICON_MD_TERMINAL, yaze::editor::PanelManager::IsPanelExpanded(), panel_manager_, yaze::editor::PanelManager::SetActiveCategory(), yaze::editor::PanelManager::SetPanelExpanded(), yaze::editor::PanelManager::TogglePanelExpanded(), yaze::gui::TransparentIconButton(), yaze::editor::PanelManager::TriggerCategorySelected(), yaze::editor::PanelManager::TriggerOpenRom(), yaze::editor::PanelManager::TriggerShowCommandPalette(), yaze::editor::PanelManager::TriggerShowSearch(), yaze::editor::PanelManager::TriggerShowSettings(), and yaze::editor::PanelManager::TriggerShowShortcuts().
Referenced by Render().
|
private |
Definition at line 207 of file activity_bar.cc.
References yaze::editor::PanelManager::AddToRecent(), yaze::gui::ConvertColorToImVec4(), yaze::editor::FileBrowser::DrawCompact(), yaze::gui::ThemeManager::Get(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::editor::PanelManager::GetFileBrowser(), yaze::editor::PanelManager::GetPanelDescriptor(), yaze::editor::PanelManager::GetPanelsInCategory(), yaze::editor::PanelManager::GetPinnedPanels(), yaze::editor::PanelManager::GetRecentPanels(), yaze::editor::PanelManager::GetSidebarWidth(), yaze::editor::PanelManager::GetSidePanelWidth(), yaze::gui::GetSurfaceContainerHighestVec4(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::editor::PanelManager::HasFileBrowser(), yaze::editor::PanelManager::HideAllPanelsInCategory(), ICON_MD_CLOSE_FULLSCREEN, ICON_MD_FOLDER, ICON_MD_FOLDER_OPEN, ICON_MD_HISTORY, ICON_MD_KEYBOARD_DOUBLE_ARROW_LEFT, ICON_MD_OPEN_IN_FULL, ICON_MD_PUSH_PIN, ICON_MD_SEARCH, yaze::editor::PanelManager::IsPanelPinned(), panel_manager_, yaze::editor::PanelManager::SetPanelExpanded(), yaze::editor::PanelManager::SetPanelPinned(), yaze::editor::PanelManager::ShowAllPanelsInCategory(), yaze::editor::PanelManager::TogglePanel(), yaze::editor::PanelManager::TriggerPanelClicked(), and yaze::editor::PanelDescriptor::visibility_flag.
Referenced by Render().
|
private |
Definition at line 35 of file activity_bar.h.
Referenced by DrawActivityBarStrip(), DrawPanelBrowser(), DrawSidePanel(), and Render().