#include <activity_bar.h>
|
| 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) |
| |
|
| 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) |
| |
| void | DrawSidePanel (size_t session_id, const std::string &category, std::function< bool()> has_rom) |
| |
| void | DrawCategoryContextMenu (const std::string &category) |
| |
| void | HandleReorderDragAndDrop (const std::string &category) |
| |
Definition at line 20 of file activity_bar.h.
◆ ActivityBar()
| yaze::editor::ActivityBar::ActivityBar |
( |
WorkspaceWindowManager & | window_manager, |
|
|
std::function< bool()> | is_dungeon_workbench_mode = {}, |
|
|
std::function< void(bool)> | set_dungeon_workflow_mode = {} ) |
|
explicit |
◆ ~ActivityBar()
| yaze::editor::ActivityBar::~ActivityBar |
( |
| ) |
|
|
default |
◆ SetUserSettings()
| void yaze::editor::ActivityBar::SetUserSettings |
( |
UserSettings * | settings | ) |
|
|
inline |
◆ actions_registry()
◆ Render()
| 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 = {} ) |
◆ DrawWindowBrowser()
| void yaze::editor::ActivityBar::DrawWindowBrowser |
( |
size_t | session_id, |
|
|
bool * | p_open ) |
◆ SortCategories()
| std::vector< std::string > yaze::editor::ActivityBar::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 ) |
|
static |
◆ DrawUtilityButtons()
| void yaze::editor::ActivityBar::DrawUtilityButtons |
( |
std::function< bool()> | has_rom | ) |
|
|
private |
◆ DrawActivityBarStrip()
| void yaze::editor::ActivityBar::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 ) |
|
private |
Definition at line 225 of file activity_bar.cc.
References actions_registry_, yaze::gui::IconSize::ActivityBar(), yaze::gui::ColoredText(), yaze::gui::ConvertColorToImVec4(), DrawCategoryContextMenu(), yaze::editor::MoreAction::enabled_fn, yaze::gui::ThemeManager::Get(), 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().
◆ DrawSidePanel()
| void yaze::editor::ActivityBar::DrawSidePanel |
( |
size_t | session_id, |
|
|
const std::string & | category, |
|
|
std::function< bool()> | has_rom ) |
|
private |
◆ DrawCategoryContextMenu()
| void yaze::editor::ActivityBar::DrawCategoryContextMenu |
( |
const std::string & | category | ) |
|
|
private |
◆ HandleReorderDragAndDrop()
| void yaze::editor::ActivityBar::HandleReorderDragAndDrop |
( |
const std::string & | category | ) |
|
|
private |
◆ window_manager_
◆ window_browser_
◆ window_sidebar_
◆ user_settings_
| UserSettings* yaze::editor::ActivityBar::user_settings_ = nullptr |
|
private |
◆ actions_registry_
The documentation for this class was generated from the following files: