Step 167: split EditorState into sub-states

This commit is contained in:
Bill
2026-02-09 20:43:36 -07:00
parent 5b6e8d72d8
commit de13e514e1
26 changed files with 3503 additions and 2689 deletions

View 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;
};