mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
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
18 lines
544 B
C++
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
|