Voltray Engine Docs
Loading...
Searching...
No Matches
AssetsPanel.h
Go to the documentation of this file.
1#pragma once
2#include "../../UI/Panel.h"
3#include "Core/AssetItem.h"
4#include "Core/AssetManager.h"
5#include "UI/AssetBrowser.h"
6#include "UI/ContextMenu.h"
7#include "UI/NavigationBar.h"
10#include <memory>
11
17namespace Editor
18{
19 namespace Assets
20 {
26 class AssetsPanel : public Panel
27 {
28 public:
33 void Draw() override;
34
35 private:
36 // Core components
37 AssetManager m_assetManager;
38 IconRenderer m_iconRenderer;
39 ContextMenu m_contextMenu;
40 NavigationBar m_navigationBar;
41 AssetDragDrop m_dragDrop;
42
43 // Browser components for each tab
44 std::unique_ptr<AssetBrowser> m_globalBrowser;
45 std::unique_ptr<AssetBrowser> m_sceneBrowser;
46
47 // UI state
48 int m_selectedTab = 0; // 0 = Global Assets, 1 = Scene Assets
49 };
50 }
51}
Handles drag and drop operations for assets into the viewport and other panels.
Core data structures for asset items.
Manages asset operations and data.
Handles right-click context menus for assets.
Handles rendering of visual icons for different file types.
Navigation bar component for asset browser.
A panel component responsible for managing and displaying asset resources.
Manages drag and drop operations for assets.
Definition AssetDragDrop.h:36
Handles asset data management, file operations, and state.
Definition AssetManager.h:20
Definition AssetsPanel.h:27
void Draw() override
Renders the Assets panel content.
Definition AssetsPanel.cpp:10
Manages context menus for the asset browser.
Definition ContextMenu.h:45
Renders visual icons using Dear ImGui drawing primitives.
Definition IconRenderer.h:19
Provides breadcrumb navigation and path controls for asset browser.
Definition NavigationBar.h:21
Base class for all UI panels in the editor.
Definition Panel.h:19
Definition AssetsPanel.cpp:7