kicad-source/eeschema/save_project_utils.h
Seth Hillbrand 8c0cf3550b Update schematic save as functionality
Default to copying subsheet data if it lives in the current project.
Allows options for other behavior.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21518
2025-08-20 10:08:49 -07:00

18 lines
544 B
C++

#ifndef SAVE_PROJECT_UTILS_H
#define SAVE_PROJECT_UTILS_H
#include <unordered_map>
#include <wx/filename.h>
class SCHEMATIC;
class SCH_SCREEN;
class SCH_SCREENS;
bool PrepareSaveAsFiles( SCHEMATIC& aSchematic, SCH_SCREENS& aScreens,
const wxFileName& aOldRoot, const wxFileName& aNewRoot,
bool aSaveCopy, bool aCopySubsheets, bool aIncludeExternSheets,
std::unordered_map<SCH_SCREEN*, wxString>& aFilenameMap,
wxString& aErrorMsg );
#endif