54 book->AddPage(
new wxPanel( book ),
_(
"PCB Editor" ) );
58 #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU) 78 Prj().GetProjectPath() );
88 GetCanvas()->GetView()->GetPainter()->GetSettings() );
93 for(
const wxString& hidden : localSettings.
m_HiddenNets )
96 hiddenNets.insert( net->GetNetCode() );
104 if( pair.second == COLOR4D::UNSPECIFIED )
108 netColors[ net->GetNetCode() ] = pair.second;
112 netclassColors.clear();
115 netclassColors[pair.first] = pair.second->GetPcbColor();
140 fn.MakeRelativeTo(
Prj().GetProjectPath() );
157 if( !fn.IsDirWritable() )
193 GetCanvas()->GetView()->GetPainter()->GetSettings() );
202 localSettings.
m_HiddenNets.emplace_back( net->GetNetname() );
209 for(
const std::pair<const int, KIGFX::COLOR4D>& pair : rs->
GetNetColorMap() )
218 for(
const std::pair<const wxString, NETCLASSPTR>& pair : netSettings.
m_NetClasses )
220 if( netclassColors.count( pair.first ) )
221 pair.second->SetPcbColor( netclassColors.at( pair.first ) );
238 if( !
Prj().IsNullProject() && fn.Exists() )
std::set< int > & GetHiddenNets()
virtual BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Returns the BOARD_DESIGN_SETTINGS for the open project.
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.
SETTINGS_MANAGER * GetSettingsManager() const
double m_TrackOpacity
Opacity override for all tracks.
std::map< wxString, KIGFX::COLOR4D > m_PcbNetColors
A map of fully-qualified net names to colors used in the board context.
APPEARANCE_CONTROLS * m_appearancePanel
AUI panel for controlling layer and object visibility and appearance.
double m_TrackOpacity
Opacity override for all tracks.
ZONE_DISPLAY_MODE m_ZoneDisplayMode
How zones are drawn.
virtual PROJECT_FILE & GetProjectFile() const
std::map< wxString, KIGFX::COLOR4D > & GetNetclassColorMap()
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
double m_ViaOpacity
Opacity override for all types of via.
The project local settings are things that are attached to a particular project, but also might be pa...
double m_ViaOpacity
Opacity override for all types of via.
bool LoadProjectSettings()
Load the current project's file configuration settings which are pertinent to this PCB_EDIT_FRAME ins...
NET_SETTINGS & NetSettings()
const NETINFO_LIST & GetNetInfo() const
void AddHotKeys(TOOL_MANAGER *aToolMgr)
void SetDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions)
NET_COLOR_MODE m_NetColorMode
The current net color mode.
PCB_LAYER_ID m_ActiveLayer
The current (active) board layer for editing.
void RecordDRCExclusions()
Scan existing markers and record data from any that are Excluded.
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
void LoadWindowState(const wxString &aFileName)
PROJECT_FILE is the backing store for a PROJECT, in JSON format.
bool m_UseConnectedTrackWidth
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
Board plot function definition file.
double m_PadOpacity
Opacity override for SMD pads and PTH.
static wxString m_PageLayoutDescrFileName
the name of the page layout descr file, or emty to used the default pagelayout
wxTreebook * GetTreebook()
virtual PCB_LAYER_ID GetActiveLayer() const
PCB specific render settings.
RATSNEST_MODE m_RatsnestMode
Ratsnest draw mode (all layers vs only visible layers)
Container for display options like enable/disable some optional drawings.
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
void SetCheckboxesFromFilter(SELECTION_FILTER_OPTIONS &aOptions)
wxString m_BoardPageLayoutDescrFile
PcbNew params.
wxString m_ActiveLayerPreset
The name of a LAYER_PRESET that is currently activated (or blank if none)
Container for NETINFO_ITEM elements, which are the nets.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
void SaveProjectSettings() override
Save changes to the project settings to the project (.pro) file.
RATSNEST_MODE m_RatsnestMode
The current ratsnest draw mode.
NET_SETTINGS stores various net-related settings in a project context.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.
bool m_AutoTrackWidth
The current setting for whether to automatically adjust track widths to match.
This file contains data structures that are saved in the project file or project local settings file ...
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
double m_ZoneOpacity
Opacity override for filled zones.
void SetUserLayerPresets(std::vector< LAYER_PRESET > &aPresetList)
std::vector< LAYER_PRESET > GetUserLayerPresets() const
Update the current layer presets from those saved in the project file.
double m_ZoneOpacity
Opacity override for filled zone areas.
Handle the data for a net.
double m_PadOpacity
Opacity override for SMD pads and PTHs.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
The current contrast mode.
void InstallPreferences(PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override
Allow Pcbnew to install its preferences panel into the preferences dialog.
PANEL_SELECTION_FILTER * m_selectionFilterPanel
AUI panel for changing the selection tool filter controls.
static const wxString MakeFullFileName(const wxString &aShortFileName, const wxString &aProjectPath)
bool SaveProject(const wxString &aFullPath=wxEmptyString)
Saves a loaded project.
ZONE_DISPLAY_MODE m_ZoneDisplayMode
wxString GetActiveLayerPreset() const
std::vector< wxString > m_HiddenNets
A list of netnames that have been manually hidden in the board editor.
SELECTION_FILTER_OPTIONS m_SelectionFilter
State of the selection filter widget.
std::vector< LAYER_PRESET > m_LayerPresets
List of stored layer presets.
std::map< int, KIGFX::COLOR4D > & GetNetColorMap()
NETINFO_ITEM * GetNetItem(int aNetCode) const
wxString GetCurrentFileName() const override
Get the full filename + path of the currently opened file in the frame.
NET_COLOR_MODE m_NetColorMode
How to use color overrides on specific nets and netclasses.
Container for design settings for a BOARD object.