#include <activity_bar.h>

Public Member Functions | |
| ActivityBar (WorkspaceWindowManager &window_manager, std::function< bool()> is_dungeon_workbench_mode={}, std::function< void(bool)> set_dungeon_workflow_mode={}) | |
| ~ActivityBar () | |
| void | SetUserSettings (UserSettings *settings) |
| MoreActionsRegistry & | actions_registry () |
| 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, std::function< bool()> is_rom_dirty={}, std::function< int()> pending_dungeon_rooms={}) |
| void | DrawWindowBrowser (size_t session_id, bool *p_open) |
Static Public Member Functions | |
| static std::vector< std::string > | SortCategories (const std::vector< std::string > &input, const std::vector< std::string > &order, const std::unordered_set< std::string > &pinned, const std::unordered_set< std::string > &hidden) |
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, std::function< bool()> is_rom_dirty, std::function< int()> pending_dungeon_rooms) |
| void | DrawSidePanel (size_t session_id, const std::string &category, std::function< bool()> has_rom) |
| float | GetBottomReservedHeight () const |
| void | DrawCategoryContextMenu (const std::string &category) |
| void | HandleReorderDragAndDrop (const std::string &category) |
Private Attributes | |
| WorkspaceWindowManager & | window_manager_ |
| WindowBrowser | window_browser_ |
| WindowSidebar | window_sidebar_ |
| UserSettings * | user_settings_ = nullptr |
| std::unique_ptr< MoreActionsRegistry > | actions_registry_ |
Definition at line 20 of file activity_bar.h.
|
explicit |
Definition at line 42 of file activity_bar.cc.
References GetBottomReservedHeight().

|
default |
|
inline |
Definition at line 31 of file activity_bar.h.
References user_settings_.
|
inline |
Definition at line 36 of file activity_bar.h.
References actions_registry_.
| 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, | ||
| std::function< bool()> | is_rom_dirty = {}, | ||
| std::function< int()> | pending_dungeon_rooms = {} ) |
Definition at line 129 of file activity_bar.cc.
References DrawActivityBarStrip(), DrawSidePanel(), yaze::editor::WorkspaceWindowManager::IsSidebarExpanded(), yaze::editor::WorkspaceWindowManager::IsSidebarVisible(), yaze::editor::WorkspaceWindowManager::kDashboardCategory, yaze::editor::WorkspaceWindowManager::SetSidebarExpanded(), and window_manager_.
| void yaze::editor::ActivityBar::DrawWindowBrowser | ( | size_t | session_id, |
| bool * | p_open ) |
Definition at line 536 of file activity_bar.cc.
References yaze::editor::WindowBrowser::Draw(), and window_browser_.

|
static |
Definition at line 61 of file activity_bar.cc.
Referenced by DrawActivityBarStrip().
|
private |
|
private |
Definition at line 246 of file activity_bar.cc.
References actions_registry_, yaze::gui::IconSize::ActivityBar(), yaze::gui::ColoredText(), yaze::gui::ColoredTextF(), yaze::gui::ConvertColorToImVec4(), DrawCategoryContextMenu(), yaze::editor::MoreAction::enabled_fn, yaze::gui::ThemeManager::Get(), GetBottomReservedHeight(), yaze::editor::WorkspaceWindowManager::GetCategoryIcon(), yaze::editor::WorkspaceWindowManager::GetCategoryTheme(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::gui::LayoutHelpers::GetSafeAreaInsets(), yaze::gui::GetTextSecondaryVec4(), yaze::gui::LayoutHelpers::GetTopInset(), HandleReorderDragAndDrop(), yaze::editor::MoreAction::icon, ICON_MD_MORE_HORIZ, ICON_MD_SEARCH, yaze::editor::WorkspaceWindowManager::IsSidebarExpanded(), yaze::gui::UIConfig::kActivityBarWidth, yaze::editor::WorkspaceWindowManager::kDashboardCategory, yaze::gui::IconSize::Large(), yaze::editor::MoreAction::on_invoke, yaze::editor::UserSettings::prefs(), yaze::editor::WorkspaceWindowManager::SetActiveCategory(), yaze::editor::WorkspaceWindowManager::SetSidebarExpanded(), yaze::editor::UserSettings::Preferences::sidebar_hidden, yaze::editor::UserSettings::Preferences::sidebar_pinned, SortCategories(), yaze::editor::WorkspaceWindowManager::ToggleSidebarExpanded(), yaze::gui::TransparentIconButton(), yaze::editor::WorkspaceWindowManager::TriggerCategorySelected(), yaze::editor::WorkspaceWindowManager::TriggerShowSearch(), user_settings_, and window_manager_.
Referenced by Render().
|
private |
Definition at line 531 of file activity_bar.cc.
References yaze::editor::WindowSidebar::Draw(), and window_sidebar_.
Referenced by Render().

|
private |
Definition at line 54 of file activity_bar.cc.
References yaze::editor::StatusBar::kStatusBarHeight, yaze::editor::UserSettings::prefs(), yaze::editor::UserSettings::Preferences::show_status_bar, and user_settings_.
Referenced by ActivityBar(), and DrawActivityBarStrip().

|
private |
Definition at line 155 of file activity_bar.cc.
References yaze::editor::UserSettings::prefs(), yaze::editor::UserSettings::Preferences::sidebar_pinned, and user_settings_.
Referenced by DrawActivityBarStrip().

|
private |
Definition at line 202 of file activity_bar.cc.
References yaze::editor::UserSettings::prefs(), yaze::editor::UserSettings::Preferences::sidebar_pinned, and user_settings_.
Referenced by DrawActivityBarStrip().

|
private |
Definition at line 81 of file activity_bar.h.
Referenced by DrawActivityBarStrip(), and Render().
|
private |
Definition at line 82 of file activity_bar.h.
Referenced by DrawWindowBrowser().
|
private |
Definition at line 83 of file activity_bar.h.
Referenced by DrawSidePanel().
|
private |
Definition at line 84 of file activity_bar.h.
Referenced by DrawActivityBarStrip(), DrawCategoryContextMenu(), GetBottomReservedHeight(), HandleReorderDragAndDrop(), and SetUserSettings().
|
private |
Definition at line 85 of file activity_bar.h.
Referenced by actions_registry(), and DrawActivityBarStrip().