infinipaint/src/Bookmarks/BookmarkManager.hpp

35 lines
1.2 KiB
C++
Raw Normal View History

2025-12-20 16:38:51 +03:00
#pragma once
#include <Helpers/Serializers.hpp>
#include <cereal/types/string.hpp>
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
2025-12-23 17:17:33 +03:00
#include "../GUIStuff/Elements/TreeListing.hpp"
2025-12-20 16:38:51 +03:00
#include "BookmarkListItem.hpp"
class World;
class BookmarkManager {
public:
BookmarkManager(World& w);
void init();
void scale_up(const WorldScalar& scaleUpAmount);
2025-12-21 00:33:04 +03:00
void setup_list_gui(const std::string& id);
2025-12-23 17:17:33 +03:00
void refresh_gui_data();
2025-12-20 16:38:51 +03:00
template <typename Archive> void save(Archive& a) const {
}
template <typename Archive> void load(Archive& a) {
}
NetworkingObjects::NetObjOwnerPtr<BookmarkListItem> bookmarkListRoot;
private:
2025-12-23 17:17:33 +03:00
NetworkingObjects::NetObjOrderedListObjectInfoPtr<BookmarkListItem> create_in_proper_position(BookmarkListItem* newItem);
NetworkingObjects::NetObjOrderedListObjectInfoPtr<BookmarkListItem> try_to_create_in_proper_position(BookmarkListItem* newItem);
GUIStuff::TreeListing::SelectionData selectionData;
std::unordered_set<NetworkingObjects::NetObjID> oldSelection;
std::string nameToEdit;
std::string nameForNew;
2025-12-20 16:38:51 +03:00
World& world;
};