KiCad PCB EDA Suite
Loading...
Searching...
No Matches
project_tree_item.cpp File Reference
#include <wx/regex.h>
#include <wx/textfile.h>
#include <wx/filename.h>
#include <set>
#include <confirm.h>
#include <mail_type.h>
#include <gestfich.h>
#include <kiplatform/environment.h>
#include <kiplatform/io.h>
#include <kiway.h>
#include <tool/tool_manager.h>
#include <tools/kicad_manager_actions.h>
#include <wx/msgdlg.h>
#include "kicad_manager_frame.h"
#include "project_tree.h"
#include "pgm_kicad.h"
#include "project_tree_pane.h"
#include "project_tree_item.h"
#include "kicad_id.h"

Go to the source code of this file.

Functions

static void ScanSchematicHierarchy (const wxString &aRootSchematic, std::set< wxString > &aSheetFiles)
 Scan a schematic file hierarchy to collect all sheet file paths.
 

Function Documentation

◆ ScanSchematicHierarchy()

static void ScanSchematicHierarchy ( const wxString & aRootSchematic,
std::set< wxString > & aSheetFiles )
static

Scan a schematic file hierarchy to collect all sheet file paths.

This performs a lightweight text scan of schematic files to find sheet references without fully loading the schematic. Used to determine if a file is part of the project hierarchy before deciding how to open it.

Parameters
aRootSchematicFull path to the root schematic file
aSheetFilesSet to populate with all schematic file paths in the hierarchy

Definition at line 191 of file project_tree_item.cpp.

References ScanSchematicHierarchy().

Referenced by PROJECT_TREE_ITEM::Activate(), and ScanSchematicHierarchy().