Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
961cba1
feat(sonar): add copy and noexcept move consructor in AssetLocation
iMeaNz Jul 27, 2025
0bae801
refactor(sonar): the lambda used toi retrieve the name in the entity …
iMeaNz Jul 27, 2025
feac8df
style(sonar): use has_value for a more explicit code
iMeaNz Jul 27, 2025
b6d8849
feat(sonar): delete copy constructor
iMeaNz Jul 27, 2025
60dad09
style(sonar): add early return
iMeaNz Jul 27, 2025
5f7dd92
refactor(front-asset-manager): move layout settings out of the class
iMeaNz Jul 27, 2025
9ff915b
refactor(front-asset-manager): set the color only once + set the chil…
iMeaNz Jul 27, 2025
90a48b9
fix(front-asset-manager): properly check the children in the map + ea…
iMeaNz Jul 27, 2025
c5dba0e
refactor(front-asset-manager): remove some func from class and use th…
iMeaNz Jul 27, 2025
76174b3
feat(front-asset-manager): add updateFolderChildren method
iMeaNz Jul 27, 2025
7e3ddff
refactor(front-asset-manager): now use the popup manager for the fold…
iMeaNz Jul 27, 2025
f205ce1
style(front-asset-manager): rename the func that handles the new fold…
iMeaNz Jul 27, 2025
19a0225
refactor(front-asset-manager): make folder tree more readable and mai…
iMeaNz Jul 27, 2025
6fbfd65
fix(front-asset-manager): remove useless folder structure rebuilding …
iMeaNz Jul 27, 2025
ef485eb
refactor(front-asset-manager): hanbdle selection in a separate file
iMeaNz Jul 27, 2025
a26b853
refactor(front-asset-manager): handle asset grid rendering in a seppa…
iMeaNz Jul 27, 2025
2d2b68d
feat(front-asset-manager): add generic function to handle asset drop
iMeaNz Jul 27, 2025
179affd
fix(front-asset-manager): fix wrong string size
iMeaNz Jul 27, 2025
0343306
fix(front-asset-manager): fix wrong string size
iMeaNz Jul 27, 2025
9cbad85
chore(front-asset-manager): remove useless model import
iMeaNz Jul 27, 2025
ecfc8c1
feat(front-asset-manager): move folder icon getter to utils file
iMeaNz Jul 27, 2025
c394207
refactor(front-asset-manager): refactor the main rendering of the ass…
iMeaNz Jul 27, 2025
1fab308
chore(front-asset-manager): remove useless import
iMeaNz Jul 27, 2025
6e3fd89
fix(front-asset-manager): add missing include
iMeaNz Jul 27, 2025
5092b70
feat(front-asset-manager): add utils func to split a path
iMeaNz Jul 27, 2025
24acb49
chore(front-asset-manager): add source file
iMeaNz Jul 27, 2025
04c955e
refactor(front-asset-manager): asset drawing is now more readabme and…
iMeaNz Jul 28, 2025
34c8d75
feat(front-asset-manager): add new folder tree class to better handle…
iMeaNz Jul 28, 2025
b782984
fix(front-asset-manager): fix return of splitPath for MSVC
iMeaNz Jul 28, 2025
5186c90
fix(front-asset-manager): fix splitPath func for msvc
iMeaNz Jul 28, 2025
336c0b8
refactor(front-asset-manager): make drawFolder func more readable
iMeaNz Jul 28, 2025
9db44ac
fix(front-asset-manager): fix sonar + coderabbit issues
iMeaNz Jul 29, 2025
3709b9d
fix(front-asset-manager): fix msvc compilation
iMeaNz Jul 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions common/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
///////////////////////////////////////////////////////////////////////////////

#include "Path.hpp"
#include <ranges>
Comment thread
iMeaNz marked this conversation as resolved.

namespace nexo {

Expand Down Expand Up @@ -53,4 +54,16 @@ namespace nexo {
size_t end = s.find_last_not_of('/');
return s.substr(start, end - start + 1);
}

std::vector<std::string> splitPath(const std::filesystem::path& path)
{
std::vector<std::string> result;

for (const auto& part : path) {
if (part != path.root_name() && part != path.root_directory())
result.push_back(part.string());
}

return result;
}
}
2 changes: 2 additions & 0 deletions common/Path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ namespace nexo {
};

std::string normalizePathAndRemovePrefixSlash(const std::string &rawPath);

std::vector<std::string> splitPath(const std::filesystem::path& path);
} // namespace nexo
3 changes: 1 addition & 2 deletions common/String.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
#pragma once

#include <string_view>
#include <algorithm>
#include <ranges>
Comment thread
iMeaNz marked this conversation as resolved.

namespace nexo {

/**
* @brief Compare two strings case-insensitively.
*
Expand Down
5 changes: 5 additions & 0 deletions editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ set(SRCS
editor/src/DocumentWindows/AssetManager/Update.cpp
editor/src/DocumentWindows/AssetManager/FolderTree.cpp
editor/src/DocumentWindows/AssetManager/FileDrop.cpp
editor/src/DocumentWindows/AssetManager/FolderCreation.cpp
editor/src/DocumentWindows/AssetManager/Selection.cpp
editor/src/DocumentWindows/AssetManager/AssetGrid.cpp
editor/src/DocumentWindows/AssetManager/Utils.cpp
editor/src/DocumentWindows/AssetManager/FolderManager.cpp
editor/src/DocumentWindows/ConsoleWindow/Init.cpp
editor/src/DocumentWindows/ConsoleWindow/Log.cpp
editor/src/DocumentWindows/ConsoleWindow/Show.cpp
Expand Down
Loading
Loading