yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
activity_bar.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_MENU_ACTIVITY_BAR_H_
2#define YAZE_APP_EDITOR_MENU_ACTIVITY_BAR_H_
3
4#include <functional>
5#include <string>
6#include <unordered_set>
7#include <vector>
8
9namespace yaze {
10namespace editor {
11
12class PanelManager;
13
15 public:
16 explicit ActivityBar(PanelManager& panel_manager);
17
18 void Render(size_t session_id, const std::string& active_category,
19 const std::vector<std::string>& all_categories,
20 const std::unordered_set<std::string>& active_editor_categories,
21 std::function<bool()> has_rom);
22
23 void DrawPanelBrowser(size_t session_id, bool* p_open);
24
25 private:
26 void DrawUtilityButtons(std::function<bool()> has_rom);
28 size_t session_id, const std::string& active_category,
29 const std::vector<std::string>& all_categories,
30 const std::unordered_set<std::string>& active_editor_categories,
31 std::function<bool()> has_rom);
32 void DrawSidePanel(size_t session_id, const std::string& category,
33 std::function<bool()> has_rom);
34
36};
37
38} // namespace editor
39} // namespace yaze
40
41#endif // YAZE_APP_EDITOR_MENU_ACTIVITY_BAR_H_
void DrawPanelBrowser(size_t session_id, bool *p_open)
void DrawSidePanel(size_t session_id, const std::string &category, std::function< bool()> has_rom)
void DrawUtilityButtons(std::function< bool()> has_rom)
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 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)
PanelManager & panel_manager_
ActivityBar(PanelManager &panel_manager)
Central registry for all editor cards with session awareness and dependency injection.