KiCad PCB EDA Suite
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2010 Jean-Pierre Charras,
5  * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  *
20  * or you may search the website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
29 #ifndef WXPCB_STRUCT_H_
30 #define WXPCB_STRUCT_H_
33 #include <pcb_base_edit_frame.h>
34 #include <config_params.h>
36 #include <zones.h>
39 /* Forward declarations of classes. */
40 class PCB_SCREEN;
41 class BOARD;
42 class BOARD_COMMIT;
44 class TEXTE_PCB;
45 class MODULE;
46 class TRACK;
47 class SEGZONE;
48 class VIA;
49 class D_PAD;
50 class TEXTE_MODULE;
51 class PCB_TARGET;
52 class DIMENSION;
53 class EDGE_MODULE;
54 class DRC;
60 class MARKER_PCB;
61 class BOARD_ITEM;
63 class NETLIST;
64 class REPORTER;
65 struct PARSE_ERROR;
66 class IO_ERROR;
67 class FP_LIB_TABLE;
70 namespace PCB { struct IFACE; } // KIFACE_I is in pcbnew.cpp
78 #define PCB_EDIT_FRAME_NAME wxT( "PcbFrame" )
82 {
83  friend struct PCB::IFACE;
84  friend class PCB_LAYER_WIDGET;
90  wxAuiToolBar* m_microWaveToolBar;
93 protected:
100  wxString m_lastNetListRead;
102  // The Tool Framework initalization
103  void setupTools();
105  // we'll use lower case function names for private member functions.
106  void createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu* aPopMenu );
107  void createPopUpMenuForFootprints( MODULE* aModule, wxMenu* aPopMenu );
108  void createPopUpMenuForFpTexts( TEXTE_MODULE* aText, wxMenu* aPopMenu );
109  void createPopUpMenuForFpPads( D_PAD* aPad, wxMenu* aPopMenu );
110  void createPopupMenuForTracks( TRACK* aTrack, wxMenu* aPopMenu );
111  void createPopUpMenuForTexts( TEXTE_PCB* Text, wxMenu* menu );
112  void createPopUpBlockMenu( wxMenu* menu );
113  void createPopUpMenuForMarkers( MARKER_PCB* aMarker, wxMenu* aPopMenu );
119  void enableGALSpecificMenus();
124  virtual void SwitchCanvas( wxCommandEvent& aEvent ) override;
130  void forceColorsToLegacy();
137  void RebuildActionPluginMenus();
144  void OnActionPlugin( wxCommandEvent& aEvent);
151  void OnActionPluginRefresh( wxCommandEvent& aEvent)
152  {
154  }
155 #endif
161  static const wxChar * pythonConsoleNameId()
162  {
163  return wxT( "PythonConsole" );
164  }
169  static wxWindow * findPythonConsole()
170  {
171  return FindWindowByName( pythonConsoleNameId() );
172  }
183  void syncLayerWidgetLayer();
191  void syncRenderStates();
199  void syncLayerVisibilities();
201  virtual void unitsChangeRefresh() override;
210  virtual bool doAutoSave() override;
216  virtual bool isAutoSaveRequired() const override;
224  void duplicateZone( wxDC* aDC, ZONE_CONTAINER* aZone );
230  void moveExact();
237  void duplicateItems( bool aIncrement ) override;
239  // protected so that PCB::IFACE::CreateWindow() is the only factory.
240  PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent );
242 public:
243  PCB_LAYER_BOX_SELECTOR* m_SelLayerBox; // a combo box to display and select active layer
244  wxChoice* m_SelTrackWidthBox; // a choice box to display and select current track width
245  wxChoice* m_SelViaSizeBox; // a choice box to display and select current via diameter
250  virtual ~PCB_EDIT_FRAME();
261  void LoadFootprints( NETLIST& aNetlist, REPORTER* aReporter );
263  void OnQuit( wxCommandEvent& event );
270  void PythonPluginsReload();
276  void UpdateUserInterface();
283  static wxString GetAutoSaveFilePrefix();
291  virtual void ExecuteRemoteCommand( const char* cmdline ) override;
293  void KiwayMailIn( KIWAY_EXPRESS& aEvent ) override;
300  void ToPlotter( wxCommandEvent& event );
306  void ToPrinter( wxCommandEvent& event );
312  void SVG_Print( wxCommandEvent& event );
314  // User interface update command event handlers.
315  void OnUpdateSave( wxUpdateUIEvent& aEvent );
316  void OnUpdateLayerPair( wxUpdateUIEvent& aEvent );
317  void OnUpdateLayerSelectBox( wxUpdateUIEvent& aEvent );
318  void OnUpdateDrcEnable( wxUpdateUIEvent& aEvent );
319  void OnUpdateShowBoardRatsnest( wxUpdateUIEvent& aEvent );
320  void OnUpdateAutoDeleteTrack( wxUpdateUIEvent& aEvent );
321  void OnUpdateViaDrawMode( wxUpdateUIEvent& aEvent );
322  void OnUpdateTraceDrawMode( wxUpdateUIEvent& aEvent );
323  void OnUpdateHighContrastDisplayMode( wxUpdateUIEvent& aEvent );
324  void OnUpdateShowLayerManager( wxUpdateUIEvent& aEvent );
325  void OnUpdateShowMicrowaveToolbar( wxUpdateUIEvent& aEvent );
326  void OnUpdateVerticalToolbar( wxUpdateUIEvent& aEvent );
327  void OnUpdateSelectViaSize( wxUpdateUIEvent& aEvent );
328  void OnUpdateZoneDisplayStyle( wxUpdateUIEvent& aEvent );
329  void OnUpdateSelectTrackWidth( wxUpdateUIEvent& aEvent );
330  void OnUpdateSelectAutoTrackWidth( wxUpdateUIEvent& aEvent );
331  void OnUpdateSelectCustomTrackWidth( wxUpdateUIEvent& aEvent );
332  void OnUpdateAutoPlaceModulesMode( wxUpdateUIEvent& aEvent );
333  void OnUpdateAutoPlaceTracksMode( wxUpdateUIEvent& aEvent );
334  void OnUpdateMuWaveToolbar( wxUpdateUIEvent& aEvent );
335  void OnLayerColorChange( wxCommandEvent& aEvent );
336  void OnConfigurePaths( wxCommandEvent& aEvent );
337  void OnUpdatePCBFromSch( wxCommandEvent& event );
342  void OnAltWheel( wxCommandEvent& event );
353  virtual void PrintPage( wxDC* aDC, LSET aPrintMaskLayer, bool aPrintMirrorMode,
354  void* aData = NULL ) override;
356  void GetKicadAbout( wxCommandEvent& event );
362  virtual bool IsGridVisible() const override;
370  virtual void SetGridVisibility( bool aVisible ) override;
376  virtual COLOR4D GetGridColor() override;
382  virtual void SetGridColor( COLOR4D aColor ) override;
384  // Configurations:
385  void Process_Config( wxCommandEvent& event );
406  void SaveProjectSettings( bool aAskForSave ) override;
414  bool LoadProjectSettings();
433  void LoadSettings( wxConfigBase* aCfg ) override;
435  void SaveSettings( wxConfigBase* aCfg ) override;
437  wxConfigBase* GetSettings() { return config(); };
444  wxString GetLastNetListRead();
457  void SetLastNetListRead( const wxString& aNetListFile );
460  EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
471  bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
485  bool OnHotkeyDeleteItem( wxDC* aDC );
495  bool OnHotkeyPlaceItem( wxDC* aDC );
497  bool OnHotkeyEditItem( int aIdCommand );
504  int OnHotkeyCopyItem();
513  bool OnHotkeyDuplicateOrArrayItem( int aIdCommand );
522  bool OnHotkeyMoveItem( int aIdCommand );
532  bool OnHotkeyRotateItem( int aIdCommand );
542  bool OnHotkeyFlipItem( int aIdCommand );
554  TRACK * OnHotkeyBeginRoute( wxDC* aDC );
556  void OnCloseWindow( wxCloseEvent& Event ) override;
557  void Process_Special_Functions( wxCommandEvent& event );
558  void Tracks_and_Vias_Size_Event( wxCommandEvent& event );
559  void OnSelectTool( wxCommandEvent& aEvent );
566  void OnResetModuleTextSizes( wxCommandEvent& event );
568  void ProcessMuWaveFunctions( wxCommandEvent& event );
569  void MuWaveCommand( wxDC* DC, const wxPoint& MousePos );
571  void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
572  void ReCreateHToolbar() override;
573  void ReCreateAuxiliaryToolbar() override;
574  void ReCreateVToolbar() override;
576  void ReCreateOptToolbar();
577  void ReCreateMenuBar() override;
586  void ReCreateLayerBox( bool aForceResizeToolbar = true );
599  bool SetCurrentNetClass( const wxString& aNetClassName );
609  virtual void OnModify() override;
616  virtual void SetActiveLayer( PCB_LAYER_ID aLayer ) override;
626  bool IsElementVisible( GAL_LAYER_ID aElement ) const;
635  void SetElementVisibility( GAL_LAYER_ID aElement, bool aNewState );
641  void SetVisibleAlls();
648  void ReFillLayerWidget();
654  void Show3D_Frame( wxCommandEvent& event ) override;
657  void UseGalCanvas( bool aEnable ) override;
659  bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
665  void ShowDesignRulesEditor( wxCommandEvent& event );
667  /* toolbars update UI functions: */
669  void PrepareLayerIndicator();
671  /* mouse functions events: */
672  void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
673  void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override;
682  bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu ) override;
684  void OnSelectOptionToolbar( wxCommandEvent& event );
685  void OnFlipPcbView( wxCommandEvent& event );
686  void ToolOnRightClick( wxCommandEvent& event ) override;
688  /* Block operations: */
698  virtual int BlockCommand( EDA_KEY aKey ) override;
707  virtual void HandleBlockPlace( wxDC* DC ) override;
719  virtual bool HandleBlockEnd( wxDC* DC ) override;
727  void Block_SelectItems();
733  void Block_Delete();
740  void Block_Rotate();
747  void Block_Flip();
755  void Block_Move();
761  void Block_Mirror_X();
769  void Block_Duplicate( bool aIncrement );
771  void Process_Settings( wxCommandEvent& event );
772  void OnConfigurePcbOptions( wxCommandEvent& aEvent );
773  void InstallDisplayOptionsDialog( wxCommandEvent& aEvent );
774  void InstallPcbGlobalDeleteFrame( const wxPoint& pos );
781  void GenFootprintsPositionFile( wxCommandEvent& event );
797  int DoGenFootprintsPositionFile( const wxString& aFullFileName, bool aUnitsMM,
798  bool aForceSmdItems, int aSide, bool aFormatCSV = false );
805  void GenFootprintsReport( wxCommandEvent& event );
815  bool DoGenFootprintsReport( const wxString& aFullFilename, bool aUnitsMM );
817  void InstallDrillFrame( wxCommandEvent& event );
818  void GenD356File( wxCommandEvent& event );
819  void ToPostProcess( wxCommandEvent& event );
821  void OnFileHistory( wxCommandEvent& event );
829  void Files_io( wxCommandEvent& event );
845  void Files_io_from_id( int aId );
861  bool OpenProjectFiles( const std::vector<wxString>& aFileSet, int aCtl = 0 ) override;
868  bool AppendBoardFile( const wxString& aFullFileName, int aCtl );
882  bool SavePcbFile( const wxString& aFileName, bool aCreateBackupFile = CREATE_BACKUP_FILE );
895  bool SavePcbCopy( const wxString& aFileName );
897  // BOARD handling
904  bool Clear_Pcb( bool aQuery );
907  void SetBoard( BOARD* aBoard ) override;
910  BOARD_ITEM_CONTAINER* GetModel() const override;
913  void SetPageSettings( const PAGE_INFO& aPageSettings ) override;
915  // Drc control
917  /* function GetDrcController
918  * @return the DRC controller
919  */
920  DRC* GetDrcController() { return m_drc; }
928  void RecreateCmpFileFromBoard( wxCommandEvent& aEvent );
940  void ArchiveModulesOnBoard( bool aStoreInNewLib );
946  void RecreateBOMFileFromBoard( wxCommandEvent& aEvent );
952  void ExportToGenCAD( wxCommandEvent& event );
958  void OnExportVRML( wxCommandEvent& event );
989  bool ExportVRML_File( const wxString & aFullFileName, double aMMtoWRMLunit,
990  bool aExport3DFiles, bool aUseRelativePaths,
991  bool aUsePlainPCB, const wxString & a3D_Subdir,
992  double aXRef, double aYRef );
998  void OnExportIDF3( wxCommandEvent& event );
1011  bool Export_IDF3( BOARD* aPcb, const wxString& aFullFileName,
1012  bool aUseThou, double aXRef, double aYRef );
1019  void OnExportSTEP( wxCommandEvent& event );
1026  void ExportToSpecctra( wxCommandEvent& event );
1035  bool ExportSpecctraFile( const wxString& aFullFilename );
1044  void ImportSpecctraSession( wxCommandEvent& event );
1054  void ImportSpecctraDesign( wxCommandEvent& event );
1060  void Access_to_External_Tool( wxCommandEvent& event );
1075  void ListNetsAndSelect( wxCommandEvent& event );
1077  void Swap_Layers( wxCommandEvent& event );
1079  // Handling texts on the board
1080  void Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC );
1081  void FlipTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC );
1082  TEXTE_PCB* CreateTextePcb( wxDC* aDC, TEXTE_PCB* aText = NULL );
1083  void Delete_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC );
1084  void StartMoveTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC, bool aErase = true );
1085  void Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC );
1086  void InstallTextPCBOptionsFrame( TEXTE_PCB* TextPCB, wxDC* DC );
1088  // Graphic Segments type DRAWSEGMENT
1089  void Start_Move_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC );
1090  void Place_DrawItem( DRAWSEGMENT* drawitem, wxDC* DC );
1091  void InstallGraphicItemPropertiesDialog( DRAWSEGMENT* aItem, wxDC* aDC );
1093  // Footprint edition (see also PCB_BASE_FRAME)
1094  void InstallModuleOptionsFrame( MODULE* Module, wxDC* DC );
1104  void StartMoveModule( MODULE* aModule, wxDC* aDC, bool aDragConnectedTracks );
1114  void DlgGlobalChange_PadSettings( D_PAD* aPad, bool aRedraw );
1123  bool Delete_Module( MODULE* aModule, wxDC* aDC );
1134  void Change_Side_Module( MODULE* Module, wxDC* DC );
1136  int InstallExchangeModuleFrame( MODULE* ExchangeModuleModule );
1147  void Exchange_Module( MODULE* aOldModule, MODULE* aNewModule, BOARD_COMMIT& aCommit );
1149  // loading modules: see PCB_BASE_FRAME
1151  // Board handling
1152  void RemoveStruct( BOARD_ITEM* Item, wxDC* DC );
1160  void OnEditItemRequest( wxDC* aDC, BOARD_ITEM* aItem ) override;
1166  int SelectHighLight( wxDC* DC );
1172  void HighLight( wxDC* DC );
1174  // Track and via edition:
1175  void Via_Edit_Control( wxCommandEvent& event );
1187  bool IsMicroViaAcceptable( void );
1201  bool Other_Layer_Route( TRACK* track, wxDC* DC );
1202  void HighlightUnconnectedPads( wxDC* DC );
1210  TRACK* Delete_Segment( wxDC* DC, TRACK* Track );
1212  void Delete_Track( wxDC* DC, TRACK* Track );
1213  void Delete_net( wxDC* DC, TRACK* Track );
1221  void Remove_One_Track( wxDC* DC, TRACK* pt_segm );
1230  bool Reset_All_Tracks_And_Vias_To_Netclass_Values( bool aTrack, bool aVia );
1240  bool Change_Net_Tracks_And_Vias_Sizes( int aNetcode, bool aUseNetclassValue );
1250  void Edit_Track_Width( wxDC* aDC, TRACK* aTrackSegment );
1258  void Edit_TrackSegm_Width( wxDC* aDC, TRACK* aTrackItem );
1275  TRACK* Begin_Route( TRACK* aTrack, wxDC* aDC );
1284  bool End_Route( TRACK* aTrack, wxDC* aDC );
1286  void Attribut_Segment( TRACK* track, wxDC* DC, bool Flag_On );
1287  void Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On );
1288  void Attribut_net( wxDC* DC, int net_code, bool Flag_On );
1295  void StartMoveOneNodeOrSegment( TRACK* aTrack, wxDC* aDC, int aCommand );
1297  bool PlaceDraggedOrMovedTrackSegment( TRACK* Track, wxDC* DC );
1307  bool MergeCollinearTracks( TRACK* track, wxDC* DC, int end );
1309  void Start_DragTrackSegmentAndKeepSlope( TRACK* track, wxDC* DC );
1310  void SwitchLayer( wxDC* DC, PCB_LAYER_ID layer ) override;
1321  bool Add45DegreeSegment( wxDC* aDC );
1336  int EraseRedundantTrack( wxDC* aDC,
1337  TRACK* aNewTrack,
1338  int aNewTrackSegmentsCount,
1339  PICKED_ITEMS_LIST* aItemsListPicker );
1352  bool SetTrackSegmentWidth( TRACK* aTrackItem,
1353  PICKED_ITEMS_LIST* aItemsListPicker,
1354  bool aUseNetclassValue );
1357  // zone handling
1369  void Delete_OldZone_Fill( SEGZONE* aZone, time_t aTimestamp = 0 );
1377  int Delete_LastCreatedCorner( wxDC* DC );
1389  int Begin_Zone( wxDC* DC );
1397  bool End_Zone( wxDC* DC );
1408  int Fill_Zone( ZONE_CONTAINER* aZone );
1418  int Fill_All_Zones( wxWindow * aActiveWindow, bool aVerbose = true );
1427  void Add_Zone_Cutout( wxDC* DC, ZONE_CONTAINER* zone_container );
1436  void Add_Similar_Zone( wxDC* DC, ZONE_CONTAINER* zone_container );
1442  void Edit_Zone_Params( wxDC* DC, ZONE_CONTAINER* zone_container );
1450  void Start_Move_Zone_Corner( wxDC* DC,
1451  ZONE_CONTAINER* zone_container,
1452  int corner_id,
1453  bool IsNewCorner );
1459  void Start_Move_Zone_Drag_Outline_Edge( wxDC* DC,
1460  ZONE_CONTAINER* zone_container,
1461  int corner_id );
1469  void End_Move_Zone_Corner_Or_Outlines( wxDC* DC, ZONE_CONTAINER* zone_container );
1476  void Remove_Zone_Corner( wxDC* DC, ZONE_CONTAINER* zone_container );
1489  void Delete_Zone_Contour( wxDC* DC, ZONE_CONTAINER* zone_container );
1497  void Start_Move_Zone_Outlines( wxDC* DC, ZONE_CONTAINER* zone_container );
1499  // Target handling
1500  PCB_TARGET* CreateTarget( wxDC* DC );
1501  void DeleteTarget( PCB_TARGET* aTarget, wxDC* DC );
1502  void BeginMoveTarget( PCB_TARGET* aTarget, wxDC* DC );
1503  void PlaceTarget( PCB_TARGET* aTarget, wxDC* DC );
1504  void ShowTargetOptionsDialog( PCB_TARGET* aTarget, wxDC* DC );
1506  // Graphic segments type DRAWSEGMENT handling:
1507  DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, STROKE_T shape, wxDC* DC );
1508  void End_Edge( DRAWSEGMENT* Segment, wxDC* DC );
1509  void Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC );
1510  void Delete_Drawings_All_Layer( PCB_LAYER_ID aLayer );
1512  // Dimension handling:
1513  void ShowDimensionPropertyDialog( DIMENSION* aDimension, wxDC* aDC );
1514  DIMENSION* EditDimension( DIMENSION* aDimension, wxDC* aDC );
1515  void DeleteDimension( DIMENSION* aDimension, wxDC* aDC );
1516  void BeginMoveDimensionText( DIMENSION* aItem, wxDC* DC );
1517  void PlaceDimensionText( DIMENSION* aItem, wxDC* DC );
1520  // netlist handling:
1521  void InstallNetlistFrame( wxDC* DC );
1544  void ReadPcbNetlist( const wxString& aNetlistFileName,
1545  const wxString& aCmpFileName,
1546  REPORTER* aReporter,
1547  bool aChangeFootprint,
1548  bool aDeleteBadTracks,
1549  bool aDeleteExtraFootprints,
1550  bool aSelectByTimestamp,
1551  bool aDeleteSinglePadNets,
1552  bool aIsDryRun );
1561  bool RemoveMisConnectedTracks();
1564  // Autoplacement:
1565  void OnPlaceOrRouteFootprints( wxCommandEvent& event );
1567 #if defined( KICAD_SCRIPTING_WXPYTHON )
1573  void ScriptingConsoleEnableDisable( wxCommandEvent& aEvent );
1575  void OnUpdateScriptingConsoleState( wxUpdateUIEvent& aEvent );
1577 #endif
1579  void OnSelectAutoPlaceMode( wxCommandEvent& aEvent );
1585  void OnOrientFootprints( wxCommandEvent& event );
1595  bool ReOrientModules( const wxString& ModuleMask, double Orient, bool include_fixe );
1596  void LockModule( MODULE* aModule, bool aLocked );
1615  void SpreadFootprints( std::vector<MODULE*>* aFootprints,
1616  bool aMoveFootprintsOutsideBoardOnly,
1617  bool aCheckForBoardEdges,
1618  wxPoint aSpreadAreaPosition,
1619  bool aPrepareUndoCommand = true );
1627  void AutoPlaceModule( MODULE* Module, int place_mode, wxDC* DC );
1629  // Autorouting:
1630  int Solve( AUTOROUTER_CONTEXT& aCtx, int aLayersCount );
1631  void Reset_Noroutable( wxDC* DC );
1632  void Autoroute( wxDC* DC, int mode );
1633  void ReadAutoroutedTracks( wxDC* DC );
1634  void GlobalRoute( wxDC* DC );
1643  void Show_1_Ratsnest( EDA_ITEM* item, wxDC* DC );
1652  void Clean_Pcb();
1654  void InstallFindFrame();
1662  void SendMessageToEESCHEMA( BOARD_ITEM* objectToSync );
1669  void Edit_Gap( wxDC* DC, MODULE* Module );
1680  MODULE* CreateMuWaveBaseFootprint( const wxString& aValue, int aTextSize, int aPadCount );
1689  MODULE* Create_MuWaveComponent( int shape_type );
1693  void Begin_Self( wxDC* DC );
1695  void ShowChangedLanguage() override;
1707  void UpdateTitle();
1710 };
1712 #endif // WXPCB_STRUCT_H_
void BeginMoveTarget(PCB_TARGET *aTarget, wxDC *DC)
void SaveSettings(wxConfigBase *aCfg) override
Function SaveSettings saves common frame parameters to a configuration data file. ...
Definition: pcbframe.cpp:821
void syncRenderStates()
Function syncRenderStates updates the "Render" checkboxes in the layer widget according to current to...
Definition: pcbframe.cpp:912
void UpdateTitle()
Function UpdateTitle sets the main window title bar text.
Definition: pcbframe.cpp:1031
void InstallDisplayOptionsDialog(wxCommandEvent &aEvent)
void Edit_Track_Width(wxDC *aDC, TRACK *aTrackSegment)
Function Edit_Track_Width Modify a full track width (using DRC control).
void Place_DrawItem(DRAWSEGMENT *drawitem, wxDC *DC)
Definition: editedge.cpp:74
void ExportToSpecctra(wxCommandEvent &event)
Function ExporttoSPECCTRA Ask for a filename and call ExportSpecctraFile to export the current BOARD ...
bool MergeCollinearTracks(TRACK *track, wxDC *DC, int end)
IFACE(const char *aName, KIWAY::FACE_T aType)
Definition: pcbnew.cpp:370
void OnUpdateLayerPair(wxUpdateUIEvent &aEvent)
virtual void OnModify() override
Function OnModify must be called after a board change to set the modified flag.
Definition: pcbframe.cpp:999
Class ZONE_CONTAINER handles a list of polygons defining a copper zone.
Definition: class_zone.h:78
A list of parameters type.
bool Other_Layer_Route(TRACK *track, wxDC *DC)
Function Other_Layer_Route operates in one of two ways.
void MuWaveCommand(wxDC *DC, const wxPoint &MousePos)
void SetPageSettings(const PAGE_INFO &aPageSettings) override
Definition: pcbframe.cpp:523
void RecreateCmpFileFromBoard(wxCommandEvent &aEvent)
Function RecreateBOMFileFromBoard Recreates a .cmp file from the current loaded board this is the sam...
Class KIWAY_EXPRESS carries a payload from one KIWAY_PLAYER to another within a PROJECT.
Definition: kiway_express.h:39
void DeleteTarget(PCB_TARGET *aTarget, wxDC *DC)
void SetElementVisibility(GAL_LAYER_ID aElement, bool aNewState)
Function SetElementVisibility changes the visibility of an element category.
Definition: pcbframe.cpp:939
void OnExportIDF3(wxCommandEvent &event)
Function OnExportIDF3 will export the current BOARD to a IDFv3 board and lib files.
void Start_Move_Zone_Corner(wxDC *DC, ZONE_CONTAINER *zone_container, int corner_id, bool IsNewCorner)
Function Start_Move_Zone_Corner Prepares a move corner in a zone outline, called from a move corner c...
void Start_Move_Zone_Drag_Outline_Edge(wxDC *DC, ZONE_CONTAINER *zone_container, int corner_id)
Function Start_Move_Zone_Corner Prepares a drag edge in an existing zone outline,.
void GetKicadAbout(wxCommandEvent &event)
PARAM_CFG_ARRAY GetProjectFileParameters()
Function GetProjectFileParameters returns a project file parameter list for Pcbnew.
void syncLayerWidgetLayer()
Function syncLayerWidgetLayer updates the currently layer "selection" within the PCB_LAYER_WIDGET.
Definition: pcbframe.cpp:905
void SpreadFootprints(std::vector< MODULE * > *aFootprints, bool aMoveFootprintsOutsideBoardOnly, bool aCheckForBoardEdges, wxPoint aSpreadAreaPosition, bool aPrepareUndoCommand=true)
Function SpreadFootprints Footprints (after loaded by reading a netlist for instance) are moved to be...
TRACK * Delete_Segment(wxDC *DC, TRACK *Track)
Function Delete_Segment removes a track segment.
Definition: deltrack.cpp:45
void OnConfigurePaths(wxCommandEvent &aEvent)
Definition: pcbframe.cpp:1174
void Process_Config(wxCommandEvent &event)
void OnUpdateAutoPlaceTracksMode(wxUpdateUIEvent &aEvent)
void DeleteDimension(DIMENSION *aDimension, wxDC *aDC)
Definition: dimension.cpp:363
virtual void unitsChangeRefresh() override
Function unitsChangeRefresh is called when when the units setting has changed to allow for any derive...
Definition: pcbframe.cpp:925
void AutoPlaceModule(MODULE *Module, int place_mode, wxDC *DC)
Function AutoPlaceModule automatically places footprints within the confines of the PCB edges...
static wxString GetAutoSaveFilePrefix()
Function GetAutoSaveFilePrefix.
void OnPlaceOrRouteFootprints(wxCommandEvent &event)
bool End_Zone(wxDC *DC)
Function End_Zone terminates (if no DRC error ) the zone edge creation process.
void InstallTextPCBOptionsFrame(TEXTE_PCB *TextPCB, wxDC *DC)
Routine for main window class to launch text properties dialog.
int InstallExchangeModuleFrame(MODULE *ExchangeModuleModule)
Definition: pcbframe.cpp:1235
void InstallPcbGlobalDeleteFrame(const wxPoint &pos)
void LockModule(MODULE *aModule, bool aLocked)
void UseGalCanvas(bool aEnable) override
Definition: pcbframe.cpp:710
void OnAltWheel(wxCommandEvent &event)
called when the alt key is pressed during a mouse wheel action
DRAWSEGMENT * Begin_DrawSegment(DRAWSEGMENT *Segment, STROKE_T shape, wxDC *DC)
Definition: editedge.cpp:249
void PrepareLayerIndicator()
Definition: tool_pcb.cpp:92
void ToPlotter(wxCommandEvent &event)
Function ToPlotter Open a dialog frame to create plot and drill files relative to the current board...
Definition: pcbframe.cpp:1153
bool Delete_Module(MODULE *aModule, wxDC *aDC)
Function Delete Module Remove a footprint from m_Modules linked list and put it in undelete buffer Th...
Definition: modules.cpp:260
Class BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class...
int Fill_All_Zones(wxWindow *aActiveWindow, bool aVerbose=true)
Function Fill_All_Zones Fill all zones on the board The old fillings are removed. ...
void PlaceDimensionText(DIMENSION *aItem, wxDC *DC)
Definition: dimension.cpp:445
void ToPrinter(wxCommandEvent &event)
Function ToPrinter Install the print dialog.
void SetLastNetListRead(const wxString &aNetListFile)
Set the last net list successfully read by the net list dialog box.
Definition: pcbframe.cpp:986
void Exchange_Module(MODULE *aOldModule, MODULE *aNewModule, BOARD_COMMIT &aCommit)
Function Exchange_Module Replaces OldModule by NewModule, using OldModule settings: position...
Class PCB_LAYER_WIDGET is here to implement the abstract functions of LAYER_WIDGET so they may be tie...
bool SavePcbCopy(const wxString &aFileName)
Function SavePcbCopy writes the board data structures to a aFileName but unlike SavePcbFile, does not make anything else (no backup, borad fliename change, no flag changes ...) Used under a project mgr to save under a new name the current board.
void LoadSettings(wxConfigBase *aCfg) override
Function LoadSettings loads common frame parameters from a configuration file.
Definition: pcbframe.cpp:796
void FlipTextePcb(TEXTE_PCB *aTextePcb, wxDC *aDC)
void SVG_Print(wxCommandEvent &event)
Function SVG_Print shows the print SVG file dialog.
Definition: pcbframe.cpp:1010
bool OnHotkeyPlaceItem(wxDC *aDC)
Function OnHotkeyPlaceItem Place the item (footprint, track, text .
virtual bool doAutoSave() override
Function doAutoSave performs auto save when the board has been modified and not saved within the auto...
void ReCreateMicrowaveVToolbar()
Definition: tool_pcb.cpp:500
void OnUpdateLayerSelectBox(wxUpdateUIEvent &aEvent)
void OnExportSTEP(wxCommandEvent &event)
Function OnExportSTEP Exports the current BOARD to a STEP assembly.
void ToolOnRightClick(wxCommandEvent &event) override
void InstallFindFrame()
wxChoice * m_SelViaSizeBox
Definition: wxPcbStruct.h:245
bool Add45DegreeSegment(wxDC *aDC)
Function Add45DegreeSegment adds a track segment between 2 tracks segments if these 2 segments make a...
Definition: editrack.cpp:295
void InstallGraphicItemPropertiesDialog(DRAWSEGMENT *aItem, wxDC *aDC)
void ToPostProcess(wxCommandEvent &event)
void BeginMoveDimensionText(DIMENSION *aItem, wxDC *DC)
Definition: dimension.cpp:381
void ShowDimensionPropertyDialog(DIMENSION *aDimension, wxDC *aDC)
Definition: dimension.cpp:353
bool Clear_Pcb(bool aQuery)
Function Clear_Pcb delete all and reinitialize the current board.
Definition: initpcb.cpp:39
void OnLayerColorChange(wxCommandEvent &aEvent)
Definition: pcbframe.cpp:1134
void RecreateBOMFileFromBoard(wxCommandEvent &aEvent)
Function RecreateBOMFileFromBoard Creates a BOM file from the current loaded board.
bool Export_IDF3(BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef)
Function Export_IDF3 Creates an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file.
Definition: export_idf.cpp:553
void Start_Move_Zone_Outlines(wxDC *DC, ZONE_CONTAINER *zone_container)
Function Start_Move_Zone_Outlines Initialize parameters to move an existing zone outlines.
GAL layers are "virtual" layers, i.e.
bool LoadProjectSettings()
Load the current project's file configuration settings which are pertinent to this PCB_EDIT_FRAME ins...
void OnUpdateSave(wxUpdateUIEvent &aEvent)
void ReCreateLayerBox(bool aForceResizeToolbar=true)
Re create the layer Box by clearing the old list, and building le new one, from the new layers names ...
Definition: tool_pcb.cpp:711
bool OnRightClick(const wxPoint &aMousePos, wxMenu *aPopMenu) override
Function OnRightClick populates a popup menu with the choices appropriate for the current context...
PARAM_CFG_ARRAY & GetConfigurationSettings()
Function GetConfigurationSettings returns the Pcbnew applications settings list.
void Edit_Gap(wxDC *DC, MODULE *Module)
Function Edit_Gap edits the GAP module if it has changed the position and/or size of the pads that fo...
Definition: microwave.cpp:681
The common library.
virtual wxConfigBase * config()
Function config returns the wxConfigBase used in SaveSettings(), and is overloaded in KICAD_MANAGER_F...
Definition: basicframe.cpp:361
void Delete_Texte_Pcb(TEXTE_PCB *TextePcb, wxDC *DC)
void OnSelectTool(wxCommandEvent &aEvent)
Definition: edit.cpp:1424
void ExportToGenCAD(wxCommandEvent &event)
Function ExportToGenCAD creates a file in GenCAD 1.4 format from the current board.
virtual void SetGridColor(COLOR4D aColor) override
Function SetGridColor() , virtual.
Definition: pcbframe.cpp:855
Class to display a pcb layer list in a wxBitmapComboBox.
bool m_show_microwave_tools
Definition: wxPcbStruct.h:247
void ReCreateHToolbar() override
Definition: tool_pcb.cpp:202
void syncLayerVisibilities()
Function syncLayerVisibilities updates each "Layer" checkbox in the layer widget according to each la...
Definition: pcbframe.cpp:918
DRC * m_drc
the DRC controller, see drc.cpp
Definition: wxPcbStruct.h:96
DIMENSION * EditDimension(DIMENSION *aDimension, wxDC *aDC)
Definition: dimension.cpp:259
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:61
void Swap_Layers(wxCommandEvent &event)
void Remove_Zone_Corner(wxDC *DC, ZONE_CONTAINER *zone_container)
Function End_Move_Zone_Corner_Or_Outlines Remove the currently selected corner in a zone outline the ...
void OnCloseWindow(wxCloseEvent &Event) override
Definition: pcbframe.cpp:603
TRACK * Begin_Route(TRACK *aTrack, wxDC *aDC)
Function Begin_Route Starts a new track and/or establish of a new track point.
Definition: editrack.cpp:98
void Block_Flip()
Function Block_Flip Flip items within the selected block.
bool SetCurrentNetClass(const wxString &aNetClassName)
Function SetCurrentNetClass Must be called after a netclass selection (or after a netclass parameter ...
Definition: pcbframe.cpp:1161
wxChoice * m_SelTrackWidthBox
Definition: wxPcbStruct.h:244
void ReadAutoroutedTracks(wxDC *DC)
void RemoveStruct(BOARD_ITEM *Item, wxDC *DC)
Definition: edit.cpp:1275
void SaveProjectSettings(bool aAskForSave) override
Function SaveProjectSettings saves changes to the project settings to the project (...
bool End_Route(TRACK *aTrack, wxDC *aDC)
Function End_Route Terminates a track currently being created.
Definition: editrack.cpp:410
static wxWindow * findPythonConsole()
Definition: wxPcbStruct.h:169
void Start_Move_DrawItem(DRAWSEGMENT *drawitem, wxDC *DC)
Definition: editedge.cpp:56
void SetVisibleAlls()
Function SetVisibleAlls Set the status of all visible element categories and layers to VISIBLE...
Definition: pcbframe.cpp:947
void ReadPcbNetlist(const wxString &aNetlistFileName, const wxString &aCmpFileName, REPORTER *aReporter, bool aChangeFootprint, bool aDeleteBadTracks, bool aDeleteExtraFootprints, bool aSelectByTimestamp, bool aDeleteSinglePadNets, bool aIsDryRun)
Function ReadPcbNetlist reads aNetlistFileName and updates the footprints (load missing footprints an...
virtual bool IsGridVisible() const override
Function IsGridVisible() , virtual.
Definition: pcbframe.cpp:837
bool SetTrackSegmentWidth(TRACK *aTrackItem, PICKED_ITEMS_LIST *aItemsListPicker, bool aUseNetclassValue)
Function SetTrackSegmentWidth Modify one track segment width or one via diameter (using DRC control)...
void Begin_Self(wxDC *DC)
Definition: microwave.cpp:139
MODULE * ListAndSelectModuleName()
Function ListAndSelectModuleName builds and shows a list of existing modules on board that the user c...
void createPopUpBlockMenu(wxMenu *menu)
virtual bool isAutoSaveRequired() const override
Function isautoSaveRequired returns true if the board has been modified.
Definition: pcbframe.cpp:551
void PlaceTarget(PCB_TARGET *aTarget, wxDC *DC)
bool m_show_layer_manager_tools
Definition: wxPcbStruct.h:248
void moveExact()
Function moveExact Move the selected item exactly.
Definition: edit.cpp:1537
void Process_Settings(wxCommandEvent &event)
void GlobalRoute(wxDC *DC)
void Place_Texte_Pcb(TEXTE_PCB *TextePcb, wxDC *DC)
PCB_TARGET * CreateTarget(wxDC *DC)
bool AppendBoardFile(const wxString &aFullFileName, int aCtl)
Function AppendBoardFile appends a board file onto the current one, creating God knows what...
void OnUpdateShowMicrowaveToolbar(wxUpdateUIEvent &aEvent)
int DoGenFootprintsPositionFile(const wxString &aFullFileName, bool aUnitsMM, bool aForceSmdItems, int aSide, bool aFormatCSV=false)
Function DoGenFootprintsPositionFile Creates an ascii footprint position file.
void KiwayMailIn(KIWAY_EXPRESS &aEvent) override
Function KiwayMailIn receives KIWAY_EXPRESS messages from other players.
void OnUpdateZoneDisplayStyle(wxUpdateUIEvent &aEvent)
bool DoGenFootprintsReport(const wxString &aFullFilename, bool aUnitsMM)
Function DoGenFootprintsReport Creates an ascii footprint report file giving some infos on footprints...
bool IsElementVisible(GAL_LAYER_ID aElement) const
Function IsElementVisible tests whether a given element category is visible.
Definition: pcbframe.cpp:933
void Attribut_Track(TRACK *track, wxDC *DC, bool Flag_On)
Definition: attribut.cpp:68
void GenFootprintsReport(wxCommandEvent &event)
Function GenFootprintsReport Calls DoGenFootprintsReport to create a footprint reprot file See DoGenF...
A quick note on layer IDs:
void Tracks_and_Vias_Size_Event(wxCommandEvent &event)
void StartMoveTextePcb(TEXTE_PCB *aTextePcb, wxDC *aDC, bool aErase=true)
bool OnHotkeyDuplicateOrArrayItem(int aIdCommand)
Function OnHotkeyDuplicateOrArrayItem Duplicate an item (optionally incrementing if necessary and pos...
wxAuiToolBar * m_microWaveToolBar
The auxiliary right vertical tool bar used to access the microwave tools.
Definition: wxPcbStruct.h:90
Class LSET is a set of PCB_LAYER_IDs.
MODULE * Create_MuWavePolygonShape()
Definition: microwave.cpp:574
void Show_1_Ratsnest(EDA_ITEM *item, wxDC *DC)
Function Show_1_Ratsnest draw ratsnest.
Definition: ratsnest.cpp:246
Class NETLIST stores all of information read from a netlist along with the flags used to update the N...
Definition: pcb_netlist.h:205
TEXTE_PCB * CreateTextePcb(wxDC *aDC, TEXTE_PCB *aText=NULL)
MODULE * Create_MuWaveComponent(int shape_type)
Create_MuWaveComponent creates a module "GAP" or "STUB" used in micro wave designs.
Definition: microwave.cpp:226
BOARD_ITEM_CONTAINER * GetModel() const override
Definition: pcbframe.cpp:517
void OnSelectOptionToolbar(wxCommandEvent &event)
Definition: tool_pcb.cpp:729
bool OpenProjectFiles(const std::vector< wxString > &aFileSet, int aCtl=0) override
Function OpenProjectFiles (was LoadOnePcbFile) loads a KiCad board (.kicad_pcb) from aFileName...
void Block_Delete()
Function Block_Delete deletes all items within the selected block.
bool RemoveMisConnectedTracks()
Function RemoveMisConnectedTracks finds all track segments which are mis-connected (to more than one ...
Definition: clean.cpp:717
int Begin_Zone(wxDC *DC)
Function Begin_Zone either initializes the first segment of a new zone, or adds an intermediate segme...
bool OnHotkeyMoveItem(int aIdCommand)
Function OnHotkeyMoveItem Moves or drag the item (footprint, track, text .
void OnConfigurePcbOptions(wxCommandEvent &aEvent)
void OnUpdateAutoDeleteTrack(wxUpdateUIEvent &aEvent)
int EraseRedundantTrack(wxDC *aDC, TRACK *aNewTrack, int aNewTrackSegmentsCount, PICKED_ITEMS_LIST *aItemsListPicker)
Function EraseRedundantTrack Called after creating a track Remove (if exists) the old track that have...
Definition: tr_modif.cpp:63
virtual void ExecuteRemoteCommand(const char *cmdline) override
Execute a remote command send by Eeschema via a socket, port KICAD_PCB_PORT_SERVICE_NUMBER (currently...
void OnLeftDClick(wxDC *DC, const wxPoint &MousePos) override
void Rotate_Texte_Pcb(TEXTE_PCB *TextePcb, wxDC *DC)
void OnUpdateShowLayerManager(wxUpdateUIEvent &aEvent)
Class PAGE_INFO describes the page size and margins of a paper page on which to eventually print or p...
void InstallModuleOptionsFrame(MODULE *Module, wxDC *DC)
Definition: editmod.cpp:49
void DlgGlobalChange_PadSettings(D_PAD *aPad, bool aRedraw)
Function DlgGlobalChange_PadSettings Function to change pad caracteristics for the given footprint or...
void Delete_OldZone_Fill(SEGZONE *aZone, time_t aTimestamp=0)
Function Delete_OldZone_Fill (obsolete) Used for compatibility with old boards Remove the zone fillin...
void createPopUpMenuForFootprints(MODULE *aModule, wxMenu *aPopMenu)
void Via_Edit_Control(wxCommandEvent &event)
void createPopUpMenuForZones(ZONE_CONTAINER *edge_zone, wxMenu *aPopMenu)
bool ReOrientModules(const wxString &ModuleMask, double Orient, bool include_fixe)
Function ReOrientModules Set the orientation of footprints.
void ReCreateVToolbar() override
Definition: tool_pcb.cpp:414
void ReCreateMenuBar() override
Function ReCreateMenuBar Creates recreates the menu bar.
virtual ~PCB_EDIT_FRAME()
Definition: pcbframe.cpp:497
void End_Move_Zone_Corner_Or_Outlines(wxDC *DC, ZONE_CONTAINER *zone_container)
Function End_Move_Zone_Corner_Or_Outlines Terminates a move corner in a zone outline, or a move zone outlines.
PCB_EDIT_FRAME(KIWAY *aKiway, wxWindow *aParent)
Definition: pcbframe.cpp:322
TRACK * OnHotkeyBeginRoute(wxDC *aDC)
Function OnHotkeyBeginRoute If the current active layer is a copper layer, and if no item currently e...
virtual bool HandleBlockEnd(wxDC *DC) override
Function HandleBlockEnd() Handle the "end" of a block command, i.e.
void ShowChangedLanguage() override
Function ShowChangedLanguage redraws the menus and what not in current language.
Definition: pcbframe.cpp:956
virtual COLOR4D GetGridColor() override
Function GetGridColor() , virtual.
Definition: pcbframe.cpp:849
void Block_SelectItems()
Function Block_SelectItems Uses GetScreen()->m_BlockLocate select items within the selected block...
Class KIWAY is a minimalistic software bus for communications between various DLLs/DSOs (DSOs) within...
Definition: kiway.h:257
wxConfigBase * GetSettings()
Definition: wxPcbStruct.h:437
void Delete_Segment_Edge(DRAWSEGMENT *Segment, wxDC *DC)
Definition: editedge.cpp:113
void HighLight(wxDC *DC)
Function HighLight.
Definition: highlight.cpp:101
Enum STROKE_T is the set of shapes for segments (graphic segments and tracks) which are often in the ...
uint32_t EDA_KEY
Definition: common.h:52
void StartMoveOneNodeOrSegment(TRACK *aTrack, wxDC *aDC, int aCommand)
Function StartMoveOneNodeOrSegment initializes the parameters to move one via or/and a terminal point...
virtual void SwitchCanvas(wxCommandEvent &aEvent) override
switches currently used canvas (default / Cairo / OpenGL).
Definition: pcbframe.cpp:1140
void Start_DragTrackSegmentAndKeepSlope(TRACK *track, wxDC *DC)
bool OnHotkeyFlipItem(int aIdCommand)
Function OnHotkeyFlipItem Flip the item (text or footprint) found under the mouse cursor...
void OnQuit(wxCommandEvent &event)
Definition: pcbframe.cpp:597
void UpdateUserInterface()
Update the layer manager and other widgets from the board setup (layer and items visibility, colors ...)
Definition: pcbframe.cpp:1056
Definition: wxPcbStruct.h:94
Class PICKED_ITEMS_LIST is a holder to handle information on schematic or board items.
int Fill_Zone(ZONE_CONTAINER *aZone)
Function Fill_Zone Calculate the zone filling for the outline zone_container The zone outline is a fr...
bool OnHotKey(wxDC *aDC, int aHotkeyCode, const wxPoint &aPosition, EDA_ITEM *aItem=NULL) override
Function OnHotKey.
virtual void PrintPage(wxDC *aDC, LSET aPrintMaskLayer, bool aPrintMirrorMode, void *aData=NULL) override
Function PrintPage , virtual used to print a page Print the page pointed by the current screen...
void ReCreateOptToolbar()
Definition: tool_pcb.cpp:325
bool PlaceDraggedOrMovedTrackSegment(TRACK *Track, wxDC *DC)
int Delete_LastCreatedCorner(wxDC *DC)
Function Delete_LastCreatedCorner Used only while creating a new zone outline Remove and delete the c...
void Show3D_Frame(wxCommandEvent &event) override
Function Show3D_Frame displays the 3D view of current printed circuit board.
Definition: pcbframe.cpp:683
void Reset_Noroutable(wxDC *DC)
Definition: autorout.cpp:210
bool OnHotkeyDeleteItem(wxDC *aDC)
Function OnHotkeyDeleteItem Delete the item found under the mouse cursor Depending on the current act...
void Autoroute(wxDC *DC, int mode)
Definition: autorout.cpp:54
void Add_Similar_Zone(wxDC *DC, ZONE_CONTAINER *zone_container)
Function Add_Similar_Zone Add a zone to a given zone outline.
void OnUpdateDrcEnable(wxUpdateUIEvent &aEvent)
void ShowDesignRulesEditor(wxCommandEvent &event)
Function ShowDesignRulesEditor displays the Design Rules Editor.
Definition: pcbframe.cpp:782
void Add_Zone_Cutout(wxDC *DC, ZONE_CONTAINER *zone_container)
Function Add_Zone_Cutout Add a cutout zone to a given zone outline.
void RedrawActiveWindow(wxDC *DC, bool EraseBg) override
Definition: tracepcb.cpp:97
static const wxChar * pythonConsoleNameId()
Has meaning only if KICAD_SCRIPTING_WXPYTHON option is not defined.
Definition: wxPcbStruct.h:161
void Edit_Zone_Params(wxDC *DC, ZONE_CONTAINER *zone_container)
Function Edit_Zone_Params Edit params (layer, clearance, ...) for a zone outline. ...
void Attribut_net(wxDC *DC, int net_code, bool Flag_On)
Definition: attribut.cpp:97
void OnSelectAutoPlaceMode(wxCommandEvent &aEvent)
Definition: pcbframe.cpp:1103
void OnOrientFootprints(wxCommandEvent &event)
Function OnOrientFootprints install the dialog box for the common Orient Footprints.
void enableGALSpecificMenus()
an helper function to enable some menus only active when the display is switched to GAL mode and whic...
Definition: pcbframe.cpp:752
bool OnHotkeyRotateItem(int aIdCommand)
Function OnHotkeyRotateItem Rotate the item (text or footprint) found under the mouse cursor...
void Attribut_Segment(TRACK *track, wxDC *DC, bool Flag_On)
Definition: attribut.cpp:50
wxString m_lastNetListRead
Last net list read with relative path.
Definition: wxPcbStruct.h:100
void OnUpdateViaDrawMode(wxUpdateUIEvent &aEvent)
int Solve(AUTOROUTER_CONTEXT &aCtx, int aLayersCount)
Definition: solve.cpp:266
EDA_HOTKEY * GetHotKeyDescription(int aCommand) const override
void Delete_Track(wxDC *DC, TRACK *Track)
Definition: deltrack.cpp:140
void OnUpdateSelectCustomTrackWidth(wxUpdateUIEvent &aEvent)
void SendMessageToEESCHEMA(BOARD_ITEM *objectToSync)
Function SendMessageToEESCHEMA sends a message to the schematic editor so that it may move its cursor...
wxString GetLastNetListRead()
Get the last net list read with the net list dialog box.
Definition: pcbframe.cpp:971
void createPopUpMenuForFpPads(D_PAD *aPad, wxMenu *aPopMenu)
bool OnHotkeyEditItem(int aIdCommand)
void ShowTargetOptionsDialog(PCB_TARGET *aTarget, wxDC *DC)
Definition: target_edit.cpp:83
virtual void HandleBlockPlace(wxDC *DC) override
Function HandleBlockPlace() Called after HandleBlockEnd, when a block command needs to be executed af...
void OnFileHistory(wxCommandEvent &event)
void LoadFootprints(NETLIST &aNetlist, REPORTER *aReporter)
Function loadFootprints loads the footprints for each COMPONENT in aNetlist from the list of librarie...
void OnUpdatePCBFromSch(wxCommandEvent &event)
Definition: pcbframe.cpp:1180
Struct PARSE_ERROR contains a filename or source description, a problem input line, a line number, a byte offset, and an error message which contains the the caller's report and his call site information: CPP source file, function, and line number.
Definition: ki_exception.h:94
void Block_Move()
Function Block_Move move all items within the selected block.
void createPopUpMenuForTexts(TEXTE_PCB *Text, wxMenu *menu)
class EDA_HOTKEY is a class to handle hot key commands.
Definition: hotkeys_basic.h:57
void SetBoard(BOARD *aBoard) override
Definition: pcbframe.cpp:503
void createPopupMenuForTracks(TRACK *aTrack, wxMenu *aPopMenu)
bool ExportVRML_File(const wxString &aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, bool aUsePlainPCB, const wxString &a3D_Subdir, double aXRef, double aYRef)
Function ExportVRML_File Creates the file(s) exporting current BOARD to a VRML file.
void ImportSpecctraSession(wxCommandEvent &event)
Function ImportSpecctraSession will import a specctra *.ses file and use it to relocate MODULEs and t...
Common, abstract interface for edit frames.
void Process_Special_Functions(wxCommandEvent &event)
Definition: edit.cpp:65
void OnUpdateHighContrastDisplayMode(wxUpdateUIEvent &aEvent)
void duplicateZone(wxDC *aDC, ZONE_CONTAINER *aZone)
Function duplicateZone duplicates the given zone.
void ArchiveModulesOnBoard(bool aStoreInNewLib)
Function ArchiveModulesOnBoard Save modules in a library:
Definition: librairi.cpp:568
void GenD356File(wxCommandEvent &event)
void updateViaSizeSelectBox()
Definition: tool_pcb.cpp:654
virtual void SetGridVisibility(bool aVisible) override
Function SetGridVisibility() , virtual It may be overloaded by derived classes if you want to store/r...
Definition: pcbframe.cpp:843
Class BOARD holds information pertinent to a Pcbnew printed circuit board.
Definition: class_board.h:169
void OnEditItemRequest(wxDC *aDC, BOARD_ITEM *aItem) override
Function OnEditItemRequest Install the corresponding dialog editor for the given item.
void Files_io(wxCommandEvent &event)
Function Files_io.
MODULE * CreateMuWaveBaseFootprint(const wxString &aValue, int aTextSize, int aPadCount)
Function CreateMuWaveBaseFootprint create a basic footprint for micro wave applications.
Definition: microwave.cpp:185
void StartMoveModule(MODULE *aModule, wxDC *aDC, bool aDragConnectedTracks)
Function StartMoveModule Initialize a drag or move pad command.
Definition: modules.cpp:100
Class DRC is the Design Rule Checker, and performs all the DRC tests.
Definition: drc_stuff.h:158
Definition: wxstruct.h:59
Class GENERAL_COLLECTOR is intended for use when the right click button is pressed, or when the plain "arrow" tool is in effect.
Definition: collectors.h:211
void createPopUpMenuForMarkers(MARKER_PCB *aMarker, wxMenu *aPopMenu)
void OnExportVRML(wxCommandEvent &event)
Function OnExportVRML will export the current BOARD to a VRML file.
void OnUpdateSelectViaSize(wxUpdateUIEvent &aEvent)
void Block_Rotate()
Function Block_Rotate Rotate all items within the selected block.
void OnUpdateVerticalToolbar(wxUpdateUIEvent &aEvent)
void createPopUpMenuForFpTexts(TEXTE_MODULE *aText, wxMenu *aPopMenu)
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
Definition: base_struct.h:165
void OnUpdateTraceDrawMode(wxUpdateUIEvent &aEvent)
void OnUpdateMuWaveToolbar(wxUpdateUIEvent &aEvent)
void ListNetsAndSelect(wxCommandEvent &event)
Function ListNetsAndSelect called by a command event displays the sorted list of nets in a dialog fra...
void OnUpdateSelectAutoTrackWidth(wxUpdateUIEvent &aEvent)
void forceColorsToLegacy()
Helper function to coerce all colors to legacy-compatible when switching from GAL to legacy canvas...
Definition: pcbframe.cpp:737
void Delete_Zone_Contour(wxDC *DC, ZONE_CONTAINER *zone_container)
Function Delete_Zone Remove the zone which include the segment aZone, or the zone which have the give...
void Block_Mirror_X()
Function Block_Mirror_X mirrors all items within the currently selected block in the X axis...
void Delete_net(wxDC *DC, TRACK *Track)
Definition: deltrack.cpp:152
void Block_Duplicate(bool aIncrement)
Function Block_Duplicate Duplicate all items within the selected block.
bool IsMicroViaAcceptable(void)
Function IsMicroViaAcceptable return true if a microvia can be placed on the board.
Definition: pcbframe.cpp:867
virtual int BlockCommand(EDA_KEY aKey) override
Function BlockCommand Returns the block command internat code (BLOCK_MOVE, BLOCK_COPY...) corresponding to the keys pressed (ALT, SHIFT, SHIFT ALT ..) when block command is started by dragging the mouse.
void OnUpdateSelectTrackWidth(wxUpdateUIEvent &aEvent)
PARAM_CFG_ARRAY m_configParams
List of Pcbnew configuration settings.
Definition: wxPcbStruct.h:98
void HighlightUnconnectedPads(wxDC *DC)
Abstract interface for BOARD_ITEMs capable of storing other items inside.
Definition: wxPcbStruct.h:243
void OnUpdateShowBoardRatsnest(wxUpdateUIEvent &aEvent)
void ReFillLayerWidget()
Function ReFillLayerWidget changes out all the layers in m_Layers and may be called upon loading a ne...
Definition: pcbframe.cpp:578
void Files_io_from_id(int aId)
Function Files_io_from_id Read and write board files.
void Change_Side_Module(MODULE *Module, wxDC *DC)
Function Change_Side_Module Flip a footprint (switch layer from component or component to copper) The...
Definition: modules.cpp:287
Class GENERAL_COLLECTORS_GUIDE is a general implementation of a COLLECTORS_GUIDE. ...
Definition: collectors.h:378
void updateTraceWidthSelectBox()
Definition: tool_pcb.cpp:616
DRC * GetDrcController()
Definition: wxPcbStruct.h:920
bool Change_Net_Tracks_And_Vias_Sizes(int aNetcode, bool aUseNetclassValue)
Function Change_Net_Tracks_And_Vias_Sizes Reset all tracks width and vias diameters and drill to thei...
int OnHotkeyCopyItem()
Function OnHotkeyCopyItem returns the copy event id for copyable items.
void SwitchLayer(wxDC *DC, PCB_LAYER_ID layer) override
Definition: edit.cpp:1352
void ProcessMuWaveFunctions(wxCommandEvent &event)
void PythonPluginsReload()
Reload the Python plugins if they are newer than the already loaded, and load new plugins if any Do n...
Definition: pcbframe.cpp:1217
void OnFlipPcbView(wxCommandEvent &event)
Definition: pcbframe.cpp:1208
void OnUpdateAutoPlaceModulesMode(wxUpdateUIEvent &aEvent)
void duplicateItems(bool aIncrement) override
Function duplicateItems Duplicate selected item if possible and start a move.
Definition: edit.cpp:1602
bool SavePcbFile(const wxString &aFileName, bool aCreateBackupFile=CREATE_BACKUP_FILE)
Function SavePcbFile writes the board data structures to a aFileName Creates backup when requested an...
Struct IO_ERROR is a class used to hold an error message and may be used when throwing exceptions con...
Definition: ki_exception.h:47
void InstallDrillFrame(wxCommandEvent &event)
virtual void SetActiveLayer(PCB_LAYER_ID aLayer) override
Function SetActiveLayer will change the currently active layer to aLayer and also update the PCB_LAYE...
Definition: pcbframe.cpp:888
void Access_to_External_Tool(wxCommandEvent &event)
Function Access_to_External_Tool Run an external tool (like freeroute )
void ReCreateAuxiliaryToolbar() override
Definition: tool_pcb.cpp:543
void Clean_Pcb()
Function Clean_Pcb Clean up the board (remove redundant vias, not connected tracks and merges colline...
Definition: clean.cpp:142
void Delete_Drawings_All_Layer(PCB_LAYER_ID aLayer)
Definition: editedge.cpp:148
void OnLeftClick(wxDC *DC, const wxPoint &MousePos) override
bool Reset_All_Tracks_And_Vias_To_Netclass_Values(bool aTrack, bool aVia)
Function Reset_All_Tracks_And_Vias_To_Netclass_Values Reset all tracks width and/or vias diameters an...
void Remove_One_Track(wxDC *DC, TRACK *pt_segm)
Function Remove_One_Track removes 1 track/ The leading segment is removed and all adjacent segments u...
Definition: deltrack.cpp:192
int SelectHighLight(wxDC *DC)
Locate track or pad and highlight the corresponding net.
Definition: highlight.cpp:44
void Edit_TrackSegm_Width(wxDC *aDC, TRACK *aTrackItem)
Function Edit_TrackSegm_Width Modify one track segment width or one via diameter (using DRC control)...
void OnResetModuleTextSizes(wxCommandEvent &event)
Function OnResetModuleTextSizes resets text size and width of all module text fields of given field t...
bool GeneralControl(wxDC *aDC, const wxPoint &aPosition, EDA_KEY aHotKey=0) override
Function GeneralControl performs application specific control using aDC at aPosition in logical units...
void setupTools()
Definition: pcbframe.cpp:560
void ImportSpecctraDesign(wxCommandEvent &event)
Function ImportSpecctraDesign will import a specctra *.dsn file and use it to replace an entire BOARD...
void End_Edge(DRAWSEGMENT *Segment, wxDC *DC)
Definition: editedge.cpp:316
bool ExportSpecctraFile(const wxString &aFullFilename)
Function ExportSpecctraFile will export the current BOARD to a specctra dsn file. ...
void GenFootprintsPositionFile(wxCommandEvent &event)
Function GenFootprintsPositionFile Calls DoGenFootprintsPositionFile to create a footprint position f...
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39