Added layer manager undo actions
This commit is contained in:
parent
18c7dab0ff
commit
2dec0ab2c5
6 changed files with 374 additions and 17 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
||||
#include "../../GUIStuff/Elements/TreeListing.hpp"
|
||||
#include "DrawingProgramLayerListItem.hpp"
|
||||
#include "SerializedBlendMode.hpp"
|
||||
|
||||
class World;
|
||||
class DrawingProgramLayerManager;
|
||||
|
|
@ -13,8 +14,11 @@ class DrawingProgramLayerManagerGUI {
|
|||
void refresh_gui_data();
|
||||
void setup_list_gui(const std::string& id, bool& hoveringOverDropdown);
|
||||
private:
|
||||
std::optional<NetworkingObjects::NetObjOrderedListIterator<DrawingProgramLayerListItem>> try_to_create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
NetworkingObjects::NetObjOrderedListIterator<DrawingProgramLayerListItem> create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
std::optional<std::pair<NetworkingObjects::NetObjID, NetworkingObjects::NetObjOrderedListIterator<DrawingProgramLayerListItem>>> try_to_create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
std::pair<NetworkingObjects::NetObjID, NetworkingObjects::NetObjOrderedListIterator<DrawingProgramLayerListItem>> create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
NetworkingObjects::NetObjOrderedListIterator<DrawingProgramLayerListItem> create_layer(DrawingProgramLayerListItem* newItem);
|
||||
void remove_layer(const NetworkingObjects::NetObjID& parentID, const NetworkingObjects::NetObjID& objectID);
|
||||
void editing_layer_check();
|
||||
|
||||
GUIStuff::TreeListing::SelectionData selectionData;
|
||||
std::unordered_set<NetworkingObjects::NetObjID> oldSelection;
|
||||
|
|
@ -23,5 +27,7 @@ class DrawingProgramLayerManagerGUI {
|
|||
float alphaValToEdit = 0.0f;
|
||||
size_t blendModeValToEdit = 0;
|
||||
|
||||
std::optional<DrawingProgramLayerListItemMetaInfo> editingData;
|
||||
|
||||
DrawingProgramLayerManager& layerMan;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue