53    return ::GetColorSettings( 
DEFAULT_THEME )->GetColor( aLayer );
 
 
   94                                              Prj().GetProjectPath(),
 
 
  105    static std::mutex dialogMutex; 
 
  107    std::unique_lock<std::mutex> dialogLock( dialogMutex, std::try_to_lock );
 
  110    if( !dialogLock.owns_lock() )
 
  122    if( !aInitialPage.IsEmpty() )
 
  155        if( oldAliases != newAliases )
 
 
  172    return std::max( dotSize, 1 );
 
 
  190    if( !fn.HasName() || !
IsWritable( fn, 
false ) )
 
  210                                                  Prj().GetProjectPath(),
 
  215        if( !layoutfn.IsAbsolute() )
 
  216            success = layoutfn.MakeAbsolute( 
Prj().GetProjectPath() );
 
  218        if( success && layoutfn.IsOk() && !layoutfn.FileExists() && layoutfn.HasName() )
 
  220            if( layoutfn.DirExists() && layoutfn.IsDirWritable() )
 
  228    if( !topLevelSheets.empty() )
 
  231        projectSheets.clear();
 
  238            info.uuid = sheet->m_Uuid;
 
  239            info.name = sheet->GetName();
 
  245            if( sheet->GetScreen() )
 
  246                filename = sheet->GetScreen()->GetFileName();
 
  249            wxFileName sheetFn( filename );
 
  251            if( sheetFn.IsAbsolute() )
 
  252                sheetFn.MakeRelativeTo( projectPath );
 
  254            info.filename = sheetFn.GetFullPath();
 
  256            projectSheets.push_back( std::move( 
info ) );
 
 
  347        if( netNavigatorPane.IsDocked() )
 
  360        if( designBlocksPane.IsDocked() )
 
 
  377    wxCHECK_RET( aCfg, 
"Call to SCH_BASE_FRAME::LoadSettings with null settings" );
 
 
  404    wxCHECK_RET( aCfg, wxS( 
"Call to SCH_BASE_FRAME::SaveSettings with null settings" ) );
 
 
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
 
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
 
static wxString m_DrawingSheetFileName
the name of the drawing sheet file, or empty to use the default drawing sheet
 
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
 
void Save(const wxString &aFullFileName)
Save the description in a file.
 
SETTINGS_MANAGER * GetSettingsManager() const
 
bool IsWritable(const wxFileName &aFileName, bool aVerbose=true)
Check if aFileName can be written.
 
void ShowInfoBarError(const wxString &aErrorMsg, bool aShowCloseButton=false, WX_INFOBAR::MESSAGE_TYPE aType=WX_INFOBAR::MESSAGE_TYPE::GENERIC)
Show the WX_INFOBAR displayed on the top of the canvas with a message and an error icon on the left o...
 
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
 
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
 
static const wxString PropertiesPaneName()
 
SEARCH_PANE * m_searchPane
 
static const wxString DesignBlocksPaneName()
 
std::unique_ptr< EDA_SEARCH_DATA > m_findReplaceData
 
PROPERTIES_PANEL * m_propertiesPanel
 
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
 
FIND_REPLACE_EXTRA m_FindReplaceExtra
 
Provide an extensible class to resolve 3D model paths.
 
wxString ResolvePath(const wxString &aFileName, const wxString &aWorkingPath, std::vector< const EMBEDDED_FILES * > aEmbeddedFilesStack)
Determine the full path of the given file name.
 
void SetProgramBase(PGM_BASE *aBase)
Set a pointer to the application's PGM_BASE instance used to extract the local env vars.
 
bool SetProject(const PROJECT *aProject, bool *flgChanged=nullptr)
Set the current KiCad project directory as the first entry in the model path list.
 
A color representation with 4 components: red, green, blue, alpha.
 
void SetDefaultPenWidth(int aWidth)
 
void SetDefaultFont(const wxString &aFont)
 
void SetGapLengthRatio(double aRatio)
 
void SetDashLengthRatio(double aRatio)
 
void UpdateAllItems(int aUpdateFlags)
Update all items in the view according to the given flags.
 
void MarkDirty()
Force redraw of view on the next rendering.
 
virtual void CommonSettingsChanged(int aFlags=0)
Call CommonSettingsChanged() on all KIWAY_PLAYERs.
 
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
Calls Store() and then saves the JSON document contents into the parent JSON_SETTINGS.
 
std::shared_ptr< NETCLASS > GetDefaultNetclass()
Gets the default netclass for the project.
 
void SetInitialPage(const wxString &aPage, const wxString &aParentPage=wxEmptyString)
 
virtual SETTINGS_MANAGER & GetSettingsManager() const
 
The backing store for a PROJECT, in JSON format.
 
SCHEMATIC_SETTINGS * m_SchematicSettings
 
std::shared_ptr< NET_SETTINGS > & NetSettings()
 
std::map< wxString, std::vector< wxString > > m_BusAliases
Bus alias definitions for the schematic project.
 
std::vector< TOP_LEVEL_SHEET_INFO > & GetTopLevelSheets()
 
The project local settings are things that are attached to a particular project, but also might be pa...
 
SCH_SELECTION_FILTER_OPTIONS m_SchSelectionFilter
 
std::vector< wxString > m_SchHierarchyCollapsed
Collapsed nodes in the schematic hierarchy navigator.
 
virtual const wxString GetProjectPath() const
Return the full path of the project.
 
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
 
void IncrementNetclassesTicker()
 
virtual PROJECT_FILE & GetProjectFile() const
 
void IncrementTextVarsTicker()
 
These are loaded from Eeschema settings but then overwritten by the project settings.
 
wxString m_SchDrawingSheetFileName
 
double m_DashedLineGapRatio
 
double m_DashedLineDashRatio
 
std::shared_ptr< NGSPICE_SETTINGS > m_NgspiceSettings
Ngspice simulator settings.
 
SCHEMATIC_SETTINGS & Settings() const
 
void RecordERCExclusions()
Scan existing markers and record data from any that are Excluded.
 
EMBEDDED_FILES * GetEmbeddedFiles() override
 
SCH_SCREEN * RootScreen() const
Helper to retrieve the screen of the root sheet.
 
std::vector< SCH_SHEET * > GetTopLevelSheets() const
Get the list of top-level sheets.
 
SCH_RENDER_SETTINGS * GetRenderSettings()
 
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
 
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
 
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
 
EESCHEMA_SETTINGS * eeconfig() const
 
PANEL_SCH_SELECTION_FILTER * m_selectionFilterPanel
 
KIGFX::SCH_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
 
void ShowSchematicSetupDialog(const wxString &aInitialPage=wxEmptyString)
 
void RefreshOperatingPointDisplay()
Refresh the display of any operating points.
 
wxTreeCtrl * m_netNavigator
 
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag and update other data struc...
 
void SaveProjectLocalSettings() override
Save changes to the project settings to the project (.pro) file.
 
DIALOG_SCHEMATIC_SETUP * m_schematicSetupDialog
 
void RecalculateConnections(SCH_COMMIT *aCommit, SCH_CLEANUP_FLAGS aCleanupFlags, PROGRESS_REPORTER *aProgressReporter=nullptr)
Generate the connection data for the entire schematic hierarchy.
 
SCHEMATIC & Schematic() const
 
bool LoadProjectSettings()
Load the KiCad project file (*.pro) settings specific to Eeschema.
 
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
 
static const wxString SearchPaneName()
 
SCH_DESIGN_BLOCK_PANE * m_designBlocksPane
 
void LoadDrawingSheet()
Load the drawing sheet file.
 
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
 
double GetSchematicHopOverScale()
 
static const wxString SchematicHierarchyPaneName()
 
int GetSchematicJunctionSize()
 
static const wxString NetNavigatorPaneName()
 
void saveProjectSettings() override
Save any design-related project settings associated with this frame.
 
HIERARCHY_PANE * m_hierarchy
 
int m_SymbolLineWidth
Override line widths for symbol drawing objects set to default line width.
 
bool m_ShowPinsElectricalType
 
const wxString & GetFileName() const
 
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
 
bool SaveProject(const wxString &aFullPath=wxEmptyString, PROJECT *aProject=nullptr)
Save a loaded project.
 
This file is part of the common library.
 
COLOR4D GetLayerColor(SCH_LAYER_ID aLayer)
Helper for all the old plotting/printing code while it still exists.
 
static FILENAME_RESOLVER * resolver
 
static const std::string ProjectFileExtension
 
SCH_LAYER_ID
Eeschema drawing layers.
 
@ REPAINT
Item needs to be redrawn.
 
int GetUserUnits()
Return the currently selected user unit value for the interface.
 
PGM_BASE & Pgm()
The global program "get" accessor.
 
KIWAY Kiway(KFCTL_STANDALONE)
 
int design_blocks_panel_float_width
 
int search_panel_dock_direction
 
wxSize net_nav_panel_float_size
 
float properties_splitter
 
int design_blocks_panel_float_height
 
bool schematic_hierarchy_float
 
int design_blocks_panel_docked_width
 
int properties_panel_width
 
wxPoint net_nav_panel_float_pos
 
wxSize net_nav_panel_docked_size
 
bool show_schematic_hierarchy
 
std::vector< double > junction_size_mult_list
 
std::vector< GRID > grids
 
Common grid settings, available to every frame.
 
bool searchCurrentSheetOnly
 
Information about a top-level schematic sheet.
 
Definition of file extensions used in Kicad.