Step 167: split EditorState into sub-states
This commit is contained in:
27
editor/src/state/LibraryState.h
Normal file
27
editor/src/state/LibraryState.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include "DependencyPanel.h"
|
||||
#include "LibraryBrowserPanel.h"
|
||||
#include "CompositionPanel.h"
|
||||
#include "LibraryIndexer.h"
|
||||
#include "PrimitivesRegistry.h"
|
||||
|
||||
struct LibraryState {
|
||||
bool showDependencyPanel = true;
|
||||
DependencyPanelState dependencyPanel;
|
||||
bool showLibraryBrowserPanel = true;
|
||||
LibraryBrowserState libraryBrowser;
|
||||
bool showCompositionPanel = false;
|
||||
CompositionPanelState compositionPanel;
|
||||
|
||||
struct LibraryIndexRequest {
|
||||
std::string name;
|
||||
std::string version;
|
||||
std::string source;
|
||||
int symbolsRequestId = -1;
|
||||
int completionRequestId = -1;
|
||||
};
|
||||
|
||||
std::vector<LibraryIndexRequest> libraryIndexRequests;
|
||||
LibraryIndexData libraryIndex;
|
||||
PrimitivesRegistry primitives;
|
||||
};
|
||||
Reference in New Issue
Block a user