From 5569896671215223047773321111725273168431 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 8 Apr 2025 20:15:14 -0400 Subject: Action to push/pull all types to a Type Archive --- ui/typebrowser.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/typebrowser.h b/ui/typebrowser.h index db23e22d..c319f77f 100644 --- a/ui/typebrowser.h +++ b/ui/typebrowser.h @@ -474,6 +474,8 @@ public: std::optional selectedTypeContainer(bool makeSureItHasPlatform = true, bool preferView = false) const; // Same as above, but if it returns nullopt, try again with m_data std::optional selectedTypeContainerOrMData(bool makeSureItHasPlatform = true, bool preferView = false) const; + // Selected type container ids, or containers of selected types + std::unordered_set selectedTypeContainerIds() const; // TA selected or TA relevant to selected types, only if JUST ta stuff is selected and only 1 TA std::optional selectedTA() const; @@ -512,10 +514,17 @@ public: bool canSyncSelectedTypes(); void syncSelectedTypes(); + bool pushTypesFromView(BinaryViewRef view, const std::unordered_set& names); bool canPushSelectedTypes(); void pushSelectedTypes(); + bool canPushAllTypes(); + void pushAllTypes(); + bool pullTypesFromView(BinaryViewRef view, const std::unordered_set& viewTypeNames); + bool pullTypesFromArchives(BinaryViewRef view, const std::unordered_map>& archiveTypeIdSelection); bool canPullSelectedTypes(); void pullSelectedTypes(); + bool canPullAllTypes(); + void pullAllTypes(); bool canDisassociateSelectedTypes(); void disassociateSelectedTypes(); -- cgit v1.3.1