55 return Pgm().GetSettingsManager().GetColorSettings()->GetColor( aLayer );
64 book->AddPage(
new wxPanel( book ),
_(
"Schematic Editor" ) );
69 _(
"Field Name Templates" ) );
93 Prj().GetProjectPath() );
105 if( !aInitialPage.IsEmpty() )
169 wxCHECK_RET( aCfg,
"Call to SCH_BASE_FRAME::SaveSettings with null settings" );
207 wxCHECK_RET( aCfg,
"Call to SCH_BASE_FRAME::SaveSettings with null settings" );
218 book->AddPage(
new wxPanel( book ),
_(
"Symbol Editor" ) );
249 if( !prjPath.IsEmpty() )
255 tbl->
Load( fn.GetFullPath() );
260 msg.Printf(
_(
"An error occurred loading the symbol library table \"%s\"." ),
static const wxString & GetSymbolLibTableFileName()
static SYMBOL_LIB_TABLE & GetGlobalLibTable()
const wxString & GetFileName() const
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
void LoadDrawingSheet(const wxString &aFullFileName=wxEmptyString, bool Append=false)
Populates the list with a custom layout or the default layout if no custom layout is available.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
SETTINGS_MANAGER * GetSettingsManager() const
void SaveProjectSettings() override
Save changes to the project settings to the project (.pro) file.
This file is part of the common library.
const std::string ProjectFileExtension
void SetInitialPage(const wxString &aPage, const wxString &aParentPage=wxEmptyString)
virtual PROJECT_FILE & GetProjectFile() const
#define PROJECT_VAR_NAME
A variable name whose value holds the current project directory.
NET_SETTINGS & NetSettings()
KIGFX::SCH_RENDER_SETTINGS * GetRenderSettings()
void AddHotKeys(TOOL_MANAGER *aToolMgr)
virtual _ELEM * GetElem(ELEM_T aIndex)
Get and set the elements for this project.
bool IsWritable(const wxFileName &aFileName)
Checks if aFileName can be written.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
std::vector< double > zoom_factors
virtual void SetElem(ELEM_T aIndex, _ELEM *aElem)
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
static wxString m_PageLayoutDescrFileName
the name of the page layout descr file, or emty to used the default pagelayout
EESCHEMA_SETTINGS * eeconfig() const
wxTreebook * GetTreebook()
static int GetSubpartIdSeparator()
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
std::vector< wxString > sizes
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
virtual const wxString What() const
A composite of Problem() and Where()
static int GetSubpartFirstId()
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
void ResolveNetClassAssignments(bool aRebuildFromScratch=false)
Explodes the list of netclass assignments to include atomic members of composite labels (buses).
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
int m_DefaultWireThickness
SCHEMATIC & Schematic() const
Definition of file extensions used in Kicad.
COLOR4D GetLayerColor(SCH_LAYER_ID aLayer)
Helper for all the old plotting/printing code while it still exists.
int m_DefaultBusThickness
SCH_LAYER_ID
Eeschema drawing layers.
#define ZOOM_LIST_EESCHEMA
SCHEMATIC_SETTINGS * m_defaults
void Load(const wxString &aFileName)
Load the library table using the path defined by aFileName aFallBackTable.
void InstallPreferences(PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override
Allow the symbol editor to install its preferences panel into the preferences dialog.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
bool LoadProjectSettings()
Loads the KiCad project file (*.pro) settings specific to Eeschema.
int m_DefaultWireThickness
void InstallPreferences(PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override
Allows Eeschema to install its preferences panels into the preferences dialog.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
static void SetSubpartIdNotation(int aSep, int aFirstId)
Set the separator char between the subpart id and the reference 0 (no separator) or '.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
static const wxString MakeFullFileName(const wxString &aShortFileName, const wxString &aProjectPath)
bool SaveProject(const wxString &aFullPath=wxEmptyString)
Saves a loaded project.
EDA_UNITS m_userUnits
Map containing the UI update handlers registered with wx for each action.
virtual void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged)
Call CommonSettingsChanged() on all KIWAY_PLAYERs.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
Definition for part library class.
SCH_SCREEN * RootScreen() const
Helper to retreive the screen of the root sheet.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void SetDefaultPenWidth(int aWidth)
void ShowSchematicSetupDialog(const wxString &aInitialPage=wxEmptyString)
bool m_ShowPinsElectricalType
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
void RecordERCExclusions()
Scan existing markers and record data from any that are Excluded.
int m_DefaultBusThickness
void SetShowPageLimits(bool aDraw)
A color representation with 4 components: red, green, blue, alpha.