KiCad PCB EDA Suite
sch_edit_frame.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <pgm_base.h>
#include <gr_basic.h>
#include <sch_draw_panel.h>
#include <gestfich.h>
#include <confirm.h>
#include <base_units.h>
#include <msgpanel.h>
#include <html_messagebox.h>
#include <executable_names.h>
#include <eda_dockart.h>
#include <profile.h>
#include <advanced_config.h>
#include <general.h>
#include <eeschema_id.h>
#include <netlist.h>
#include <class_library.h>
#include <sch_edit_frame.h>
#include <symbol_lib_table.h>
#include <reporter.h>
#include <lib_edit_frame.h>
#include <viewlib_frame.h>
#include <ee_hotkeys.h>
#include <eeschema_config.h>
#include <sch_sheet.h>
#include <sim/sim_plot_frame.h>
#include <invoke_sch_dialog.h>
#include <dialogs/dialog_schematic_find.h>
#include <dialog_symbol_remap.h>
#include <view/view.h>
#include <tool/tool_manager.h>
#include <tool/tool_dispatcher.h>
#include <tool/common_tools.h>
#include <tool/zoom_tool.h>
#include <tools/ee_actions.h>
#include <tools/ee_selection_tool.h>
#include <tools/ee_picker_tool.h>
#include <tools/ee_point_editor.h>
#include <tools/sch_drawing_tools.h>
#include <tools/sch_wire_bus_tool.h>
#include <tools/sch_move_tool.h>
#include <tools/sch_edit_tool.h>
#include <tools/ee_inspection_tool.h>
#include <tools/sch_editor_control.h>
#include <build_version.h>
#include <wildcards_and_files_ext.h>
#include <connection_graph.h>
#include <dialogs/dialog_fields_editor_global.h>
#include <sch_view.h>
#include <sch_painter.h>
#include <gal/graphics_abstraction_layer.h>

Go to the source code of this file.

Macros

#define FN_LEN_MAX   80
 

Functions

static void add_search_paths (SEARCH_STACK *aDst, const SEARCH_STACK &aSrc, int aIndex)
 
static void add_search_paths (SEARCH_STACK *aDst, wxConfigBase *aCfg, int aIndex)
 

Variables

SCH_SHEET_PATHg_CurrentSheet = nullptr
 With the new connectivity algorithm, many more places than before want to know what the current sheet is. More...
 
CONNECTION_GRAPHg_ConnectionGraph = nullptr
 This also wants to live in the eventual SCHEMATIC object. More...
 

Macro Definition Documentation

◆ FN_LEN_MAX

#define FN_LEN_MAX   80

Function Documentation

◆ add_search_paths() [1/2]

static void add_search_paths ( SEARCH_STACK aDst,
const SEARCH_STACK aSrc,
int  aIndex 
)
static

Definition at line 85 of file sch_edit_frame.cpp.

86 {
87  for( unsigned i=0; i<aSrc.GetCount(); ++i )
88  aDst->AddPaths( aSrc[i], aIndex );
89 }
size_t i
Definition: json11.cpp:597
void AddPaths(const wxString &aPaths, int aIndex=-1)
Function AddPaths insert or append path(s)

References SEARCH_STACK::AddPaths(), and i.

◆ add_search_paths() [2/2]

static void add_search_paths ( SEARCH_STACK aDst,
wxConfigBase *  aCfg,
int  aIndex 
)
static

Definition at line 94 of file sch_edit_frame.cpp.

95 {
96  for( int i=1; true; ++i )
97  {
98  wxString key = wxString::Format( wxT( "LibraryPath%d" ), i );
99  wxString upath = aCfg->Read( key, wxEmptyString );
100 
101  if( !upath )
102  break;
103 
104  aDst->AddPaths( upath, aIndex );
105  }
106 }
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
size_t i
Definition: json11.cpp:597
void AddPaths(const wxString &aPaths, int aIndex=-1)
Function AddPaths insert or append path(s)

References SEARCH_STACK::AddPaths(), Format(), and i.

Variable Documentation

◆ g_ConnectionGraph

◆ g_CurrentSheet

SCH_SHEET_PATH* g_CurrentSheet = nullptr

With the new connectivity algorithm, many more places than before want to know what the current sheet is.

This was moved here from SCH_EDIT_FRAME but we could refactor things to get rid of this global.which sheet we are presently working on.

Definition at line 80 of file sch_edit_frame.cpp.

Referenced by SCH_EDIT_FRAME::AnnotateComponents(), SCH_EDIT_FRAME::CheckAnnotate(), SCH_EDIT_FRAME::CreateScreens(), SCH_EDIT_FRAME::DeleteAnnotation(), SCH_EDIT_FRAME::DisplayCurrentSheet(), SCH_DRAWING_TOOLS::doPlaceComponent(), SCH_JUNCTION::Draw(), KIGFX::SCH_PAINTER::Draw(), KIGFX::SCH_PAINTER::draw(), SCH_SCREEN::Draw(), SCH_HIERLABEL::Draw(), SCH_DRAWING_TOOLS::DrawSheet(), SCH_EDIT_FRAME::EditComponentFieldText(), SCH_EDITOR_CONTROL::EnterSheet(), SCH_EDIT_FRAME::FindComponentAndItem(), SCH_EDIT_FRAME::GetCurrentSheet(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), LIB_PIN::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_COMPONENT::GetMsgPanelInfo(), SCH_EDIT_FRAME::GetScreen(), SCH_EDIT_FRAME::GetScreenDesc(), SCH_EDIT_FRAME::GetUniqueFilenameForCurrentSheet(), SCH_EDIT_FRAME::HardRedraw(), highlightNet(), SCH_EDIT_FRAME::importFile(), SCH_DRAWING_TOOLS::Init(), EE_SELECTION_TOOL::Init(), SCH_WIRE_BUS_TOOL::Init(), SCH_EDITOR_CONTROL::LeaveSheet(), LIB_VIEW_FRAME::OnAddPartToSchematic(), LIB_EDIT_FRAME::OnAddPartToSchematic(), SCH_EDIT_FRAME::OnCloseWindow(), SCH_EDIT_FRAME::OnFindDrcMarker(), SCH_EDIT_FRAME::OnFindReplace(), SCH_EDIT_FRAME::OnFindSchematicItem(), DIALOG_MIGRATE_BUSES::onItemSelected(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDITOR_CONTROL::Paste(), SCH_EDIT_TOOL::Properties(), SCH_EDIT_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::SCH_EDIT_FRAME(), SCH_EDIT_FRAME::SelectUnit(), SCH_EDIT_FRAME::SetCurrentSheet(), SCH_EDIT_FRAME::SetSheetNumberAndCount(), BUS_UNFOLD_MENU::update(), SCH_EDIT_FRAME::updateFindReplaceView(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), SCH_EDIT_FRAME::UpdateTitle(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().