Added GUI to add bookmarks and folders
This commit is contained in:
parent
cd4d2572f8
commit
c2e85e8a62
14 changed files with 400 additions and 110 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include <Helpers/Serializers.hpp>
|
||||
#include <cereal/types/string.hpp>
|
||||
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
||||
#include "../GUIStuff/Elements/TreeListing.hpp"
|
||||
#include "BookmarkListItem.hpp"
|
||||
|
||||
class World;
|
||||
|
|
@ -12,6 +13,7 @@ class BookmarkManager {
|
|||
void init();
|
||||
void scale_up(const WorldScalar& scaleUpAmount);
|
||||
void setup_list_gui(const std::string& id);
|
||||
void refresh_gui_data();
|
||||
|
||||
template <typename Archive> void save(Archive& a) const {
|
||||
}
|
||||
|
|
@ -21,5 +23,12 @@ class BookmarkManager {
|
|||
|
||||
NetworkingObjects::NetObjOwnerPtr<BookmarkListItem> bookmarkListRoot;
|
||||
private:
|
||||
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;
|
||||
|
||||
World& world;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue