Added layer menu and layer list
This commit is contained in:
parent
a29c5dc926
commit
c9aba47db1
19 changed files with 435 additions and 3 deletions
26
src/DrawingProgram/Layers/DrawingProgramLayerManagerGUI.hpp
Normal file
26
src/DrawingProgram/Layers/DrawingProgramLayerManagerGUI.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
#include <unordered_set>
|
||||
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
||||
#include "../../GUIStuff/Elements/TreeListing.hpp"
|
||||
#include "DrawingProgramLayerListItem.hpp"
|
||||
|
||||
class World;
|
||||
class DrawingProgramLayerManager;
|
||||
|
||||
class DrawingProgramLayerManagerGUI {
|
||||
public:
|
||||
DrawingProgramLayerManagerGUI(DrawingProgramLayerManager& layerManager);
|
||||
void refresh_gui_data();
|
||||
void setup_list_gui(const std::string& id);
|
||||
private:
|
||||
NetworkingObjects::NetObjOrderedListObjectInfoPtr<DrawingProgramLayerListItem> try_to_create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
NetworkingObjects::NetObjOrderedListObjectInfoPtr<DrawingProgramLayerListItem> create_in_proper_position(DrawingProgramLayerListItem* newItem);
|
||||
|
||||
GUIStuff::TreeListing::SelectionData selectionData;
|
||||
std::unordered_set<NetworkingObjects::NetObjID> oldSelection;
|
||||
std::string nameToEdit;
|
||||
std::string nameForNew;
|
||||
float alphaValToEdit = 0.0f;
|
||||
|
||||
DrawingProgramLayerManager& layerMan;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue