Browse Source

Code cleanup: Pcbnew: move files relative to exort functions to the new folder exporters

all: remove include <protos.h>  from a lot of  files which do not need it.
pull/1/head
jean-pierre charras 12 years ago
parent
commit
f905b4697e
  1. 14
      common/eda_dde.cpp
  2. 1
      common/sch_item_struct.cpp
  3. 1
      eeschema/block_libedit.cpp
  4. 1
      eeschema/bus-wire-junction.cpp
  5. 1
      eeschema/busentry.cpp
  6. 1
      eeschema/class_libentry.cpp
  7. 1
      eeschema/class_library.cpp
  8. 1
      eeschema/controle.cpp
  9. 6
      eeschema/cross-probing.cpp
  10. 1
      eeschema/dialogs/dialog_color_config.cpp
  11. 1
      eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
  12. 1
      eeschema/dialogs/dialog_netlist.cpp
  13. 1
      eeschema/edit_label.cpp
  14. 9
      eeschema/eeschema.cpp
  15. 1
      eeschema/erc.cpp
  16. 2
      eeschema/events_called_functions_for_edit.cpp
  17. 1
      eeschema/hotkeys.cpp
  18. 1
      eeschema/lib_arc.cpp
  19. 1
      eeschema/lib_bezier.cpp
  20. 1
      eeschema/lib_circle.cpp
  21. 1
      eeschema/lib_draw_item.cpp
  22. 1
      eeschema/lib_field.cpp
  23. 1
      eeschema/lib_pin.cpp
  24. 1
      eeschema/lib_polyline.cpp
  25. 1
      eeschema/lib_rectangle.cpp
  26. 1
      eeschema/lib_text.cpp
  27. 1
      eeschema/libarch.cpp
  28. 1
      eeschema/netlist.cpp
  29. 18
      eeschema/protos.h
  30. 1
      eeschema/sheetlab.cpp
  31. 1
      eeschema/tool_lib.cpp
  32. 1
      eeschema/tool_viewlib.cpp
  33. 1
      include/eda_dde.h
  34. 8
      include/wxEeschemaStruct.h
  35. 8
      include/wxPcbStruct.h
  36. 11
      include/wxstruct.h
  37. 23
      pcbnew/CMakeLists.txt
  38. 1
      pcbnew/block_module_editor.cpp
  39. 2
      pcbnew/class_pcb_text.cpp
  40. 27
      pcbnew/cross-probing.cpp
  41. 1
      pcbnew/dialogs/dialog_find.cpp
  42. 1
      pcbnew/dialogs/dialog_pad_properties.cpp
  43. 1
      pcbnew/drc.cpp
  44. 1
      pcbnew/drc_clearance_test_functions.cpp
  45. 1
      pcbnew/edit.cpp
  46. 17
      pcbnew/editrack-part2.cpp
  47. 0
      pcbnew/exporters/export_d356.cpp
  48. 0
      pcbnew/exporters/export_gencad.cpp
  49. 0
      pcbnew/exporters/export_idf.cpp
  50. 0
      pcbnew/exporters/export_vrml.cpp
  51. 0
      pcbnew/exporters/gen_drill_report_files.cpp
  52. 0
      pcbnew/exporters/gen_modules_placefile.cpp
  53. 0
      pcbnew/exporters/gendrill_Excellon_writer.cpp
  54. 0
      pcbnew/exporters/gendrill_Excellon_writer.h
  55. 0
      pcbnew/exporters/idf.cpp
  56. 0
      pcbnew/exporters/idf.h
  57. 0
      pcbnew/exporters/vrml_board.cpp
  58. 0
      pcbnew/exporters/vrml_board.h
  59. 15
      pcbnew/highlight.cpp
  60. 1
      pcbnew/hotkeys_board_editor.cpp
  61. 1
      pcbnew/hotkeys_module_editor.cpp
  62. 1
      pcbnew/menubar_pcbframe.cpp
  63. 1
      pcbnew/move_or_drag_track.cpp
  64. 1
      pcbnew/muonde.cpp
  65. 2
      pcbnew/muwave_command.cpp
  66. 1
      pcbnew/pcbframe.cpp
  67. 5
      pcbnew/pcbnew.cpp
  68. 1
      pcbnew/print_board_functions.cpp
  69. 3
      pcbnew/protos.h
  70. 1
      pcbnew/tracepcb.cpp

14
common/eda_dde.cpp

@ -13,19 +13,10 @@ static const wxString HOSTNAME( wxT( "localhost" ) );
// buffer for read and write data in socket connections
#define IPC_BUF_SIZE 4096
static char client_ipc_buffer[IPC_BUF_SIZE];
static wxSocketServer* server;
void (*RemoteFct)(const char* cmd);
void SetupServerFunction( void (*remotefct)(const char* remotecmd) )
{
RemoteFct = remotefct;
}
/**********************************/
/* Routines related to the server */
@ -75,10 +66,7 @@ void EDA_DRAW_FRAME::OnSockRequest( wxSocketEvent& evt )
sock->Read( client_ipc_buffer + 1, IPC_BUF_SIZE - 2 );
len = 1 + sock->LastCount();
client_ipc_buffer[len] = 0;
if( RemoteFct )
RemoteFct( client_ipc_buffer );
ExecuteRemoteCommand( client_ipc_buffer );
break;
case wxSOCKET_LOST:

1
common/sch_item_struct.cpp

@ -36,7 +36,6 @@
#include <wxEeschemaStruct.h>
#include <general.h>
#include <protos.h>
const wxString traceFindItem( wxT( "KicadFindItem" ) );

1
eeschema/block_libedit.cpp

@ -34,7 +34,6 @@
#include <general.h>
#include <class_library.h>
#include <protos.h>
#include <libeditframe.h>

1
eeschema/bus-wire-junction.cpp

@ -36,7 +36,6 @@
#include <lib_draw_item.h>
#include <lib_pin.h>
#include <general.h>
#include <protos.h>
#include <sch_bus_entry.h>
#include <sch_junction.h>
#include <sch_line.h>

1
eeschema/busentry.cpp

@ -36,7 +36,6 @@
#include <wxEeschemaStruct.h>
#include <general.h>
#include <protos.h>
#include <sch_bus_entry.h>

1
eeschema/class_libentry.cpp

@ -37,7 +37,6 @@
#include <richio.h>
#include <general.h>
#include <protos.h>
#include <template_fieldnames.h>
#include <transform.h>
#include <class_library.h>

1
eeschema/class_library.cpp

@ -37,7 +37,6 @@
#include <richio.h>
#include <general.h>
#include <protos.h>
#include <class_library.h>
#include <boost/foreach.hpp>

1
eeschema/controle.cpp

@ -38,7 +38,6 @@
#include <eeschema_id.h>
#include <general.h>
#include <hotkeys.h>
#include <protos.h>
#include <libeditframe.h>
#include <viewlib_frame.h>
#include <lib_draw_item.h>

6
eeschema/cross-probing.cpp

@ -35,15 +35,13 @@
#include <general.h>
#include <eeschema_id.h>
#include <protos.h>
#include <lib_draw_item.h>
#include <lib_pin.h>
#include <sch_component.h>
/**
* Function RemoteCommand
* read a remote command sent by Pcbnew via a socket connection.
* Execute a remote command sent by Pcbnew via a socket connection.
* <p>
* When user selects a module or pin in Pcbnew, Eeschema shows that same
* component or pin and moves cursor on the item. The socket port used
@ -57,7 +55,7 @@
* <p>
* @param cmdline = received command from Pcbnew
*/
void RemoteCommand( const char* cmdline )
void SCH_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
{
char line[1024];
char* idcmd;

1
eeschema/dialogs/dialog_color_config.cpp

@ -8,7 +8,6 @@
#include <class_drawpanel.h>
#include <general.h>
#include <protos.h>
#include <dialog_color_config.h>
#include <layers_id_colors_and_visibility.h>

1
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp

@ -35,7 +35,6 @@
#include <base_units.h>
#include <general.h>
#include <protos.h>
#include <libeditframe.h>
#include <class_library.h>
#include <sch_component.h>

1
eeschema/dialogs/dialog_netlist.cpp

@ -46,7 +46,6 @@
#include <general.h>
#include <netlist.h>
#include <protos.h>
#include <sch_sheet.h>
#include <dialog_helpers.h>
#include <dialogs/dialog_netlist_base.h>

1
eeschema/edit_label.cpp

@ -37,7 +37,6 @@
#include <kicad_device_context.h>
#include <general.h>
#include <protos.h>
#include <sch_text.h>
#include <eeschema_id.h>

9
eeschema/eeschema.cpp

@ -39,8 +39,7 @@
#include <general.h>
#include <class_libentry.h>
#include <sch_junction.h>
#include <protos.h>
//#include <sch_junction.h>
#include <hotkeys.h>
#include <dialogs/dialog_color_config.h>
#include <transform.h>
@ -138,11 +137,7 @@ bool EDA_APP::OnInit()
SetTopWindow( frame );
frame->Show( true );
if( CreateServer( frame, KICAD_SCH_PORT_SERVICE_NUMBER ) )
{
// RemoteCommand is in controle.cpp and is called when Pcbnew sends Eeschema a command.
SetupServerFunction( RemoteCommand );
}
CreateServer( frame, KICAD_SCH_PORT_SERVICE_NUMBER );
frame->Zoom_Automatique( true );

1
eeschema/erc.cpp

@ -36,7 +36,6 @@
#include <netlist.h>
#include <class_netlist_object.h>
#include <lib_pin.h>
#include <protos.h>
#include <erc.h>
#include <sch_marker.h>
#include <sch_component.h>

2
eeschema/events_called_functions_for_edit.cpp

@ -8,8 +8,6 @@
#include <general.h>
#include <kicad_device_context.h>
#include <wxEeschemaStruct.h>
#include <protos.h>
#include <sch_component.h>
#include <sch_text.h>

1
eeschema/hotkeys.cpp

@ -33,7 +33,6 @@
#include <wxEeschemaStruct.h>
#include <general.h>
#include <protos.h>
#include <libeditframe.h>
#include <class_libentry.h>
#include <sch_junction.h>

1
eeschema/lib_arc.cpp

@ -38,7 +38,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <lib_arc.h>
#include <transform.h>

1
eeschema/lib_bezier.cpp

@ -38,7 +38,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <lib_bezier.h>
#include <transform.h>

1
eeschema/lib_circle.cpp

@ -39,7 +39,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <lib_circle.h>
#include <transform.h>

1
eeschema/lib_draw_item.cpp

@ -32,7 +32,6 @@
#include <wxstruct.h>
#include <msgpanel.h>
#include <protos.h>
#include <general.h>
#include <lib_draw_item.h>

1
eeschema/lib_field.cpp

@ -40,7 +40,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <class_libentry.h>
#include <transform.h>
#include <lib_field.h>

1
eeschema/lib_pin.cpp

@ -40,7 +40,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <libeditframe.h>
#include <class_libentry.h>
#include <lib_pin.h>

1
eeschema/lib_polyline.cpp

@ -38,7 +38,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <lib_polyline.h>
#include <transform.h>

1
eeschema/lib_rectangle.cpp

@ -38,7 +38,6 @@
#include <msgpanel.h>
#include <general.h>
#include <protos.h>
#include <lib_rectangle.h>
#include <transform.h>

1
eeschema/lib_text.cpp

@ -39,7 +39,6 @@
#include <lib_draw_item.h>
#include <general.h>
#include <protos.h>
#include <transform.h>
#include <lib_text.h>

1
eeschema/libarch.cpp

@ -37,7 +37,6 @@
#include <general.h>
#include <netlist.h>
#include <protos.h>
#include <class_library.h>
#include <sch_component.h>
#include <sch_sheet.h>

1
eeschema/netlist.cpp

@ -32,7 +32,6 @@
#include <netlist.h>
#include <class_netlist_object.h>
#include <protos.h>
#include <class_library.h>
#include <lib_pin.h>
#include <sch_junction.h>

18
eeschema/protos.h

@ -7,17 +7,9 @@
class EDA_DRAW_PANEL;
class EDA_DRAW_FRAME;
class PICKED_ITEMS_LIST;
class SCH_EDIT_FRAME;
class LIB_EDIT_FRAME;
class CMP_LIBRARY;
class SCH_COMPONENT;
class SCH_SCREEN;
class SCH_ITEM;
/****************/
/* DATABASE.CPP */
/****************/
//void DisplayCmpDoc( wxString& Name );
wxString DataBaseGetName( EDA_DRAW_FRAME* frame, wxString& Keys, wxString& BufName );
@ -39,7 +31,8 @@ SCH_ITEM* DuplicateStruct( SCH_ITEM* DrawStruct, bool aClone = false );
/****************/
/* EEREDRAW.CPP */
/****************/
void DrawDanglingSymbol( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& pos, EDA_COLOR_T Color );
void DrawDanglingSymbol( EDA_DRAW_PANEL* panel, wxDC* DC,
const wxPoint& pos, EDA_COLOR_T Color );
/***************/
@ -81,11 +74,4 @@ CMP_LIBRARY* SelectLibraryFromList( EDA_DRAW_FRAME* frame );
*/
int GetNameOfPartToLoad( EDA_DRAW_FRAME* frame, CMP_LIBRARY* Lib, wxString& BufName );
/****************/
/* CONTROLE.CPP */
/****************/
void RemoteCommand( const char* cmdline );
#endif /* __PROTOS_H__ */

1
eeschema/sheetlab.cpp

@ -37,7 +37,6 @@
#include <base_units.h>
#include <general.h>
#include <protos.h>
#include <sch_sheet.h>
#include <dialog_helpers.h>

1
eeschema/tool_lib.cpp

@ -32,7 +32,6 @@
#include <eeschema_id.h>
#include <general.h>
#include <protos.h>
#include <libeditframe.h>
#include <dialog_helpers.h>

1
eeschema/tool_viewlib.cpp

@ -33,7 +33,6 @@
#include <eeschema_id.h>
#include <general.h>
#include <protos.h>
#include <hotkeys.h>
#include <class_library.h>
#include <viewlib_frame.h>

1
include/eda_dde.h

@ -23,6 +23,5 @@
wxSocketServer* CreateServer( wxWindow * window, int port, bool local = true );
bool SendCommand( int port, const char* cmdline );
void SetupServerFunction( void (*remotefct) (const char* remotecmd) );
#endif // EDA_DDE_H_

8
include/wxEeschemaStruct.h

@ -362,6 +362,14 @@ public:
void InstallConfigFrame( wxCommandEvent& event );
/**
* Execute a remote command send by Pcbnew via a socket,
* port KICAD_SCH_PORT_SERVICE_NUMBER (currently 4243)
* this is a virtual function called by EDA_DRAW_FRAME::OnSockRequest().
* @param cmdline = received command from socket
*/
virtual void ExecuteRemoteCommand( const char* cmdline );
void OnLeftClick( wxDC* aDC, const wxPoint& aPosition );
void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition );
bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu );

8
include/wxPcbStruct.h

@ -232,6 +232,14 @@ public:
void OnQuit( wxCommandEvent& event );
/**
* Execute a remote command send by Eeschema via a socket,
* port KICAD_PCB_PORT_SERVICE_NUMBER (currently 4242)
* this is a virtual function called by EDA_DRAW_FRAME::OnSockRequest().
* @param cmdline = received command from socket
*/
virtual void ExecuteRemoteCommand( const char* cmdline );
/**
* Function ToPlotter
* Open a dialog frame to create plot and drill files

11
include/wxstruct.h

@ -588,6 +588,17 @@ public:
*/
virtual BASE_SCREEN* GetScreen() const { return m_currentScreen; }
/**
* Execute a remote command send via a socket to the application,
* port KICAD_PCB_PORT_SERVICE_NUMBER (currently 4242)
* It called by EDA_DRAW_FRAME::OnSockRequest().
* this is a virtual function becuse the actual commands depends on the
* application.
* the basic function do nothing
* @param cmdline = received command from socket
*/
virtual void ExecuteRemoteCommand( const char* cmdline ){}
void OnMenuOpen( wxMenuEvent& event );
void OnMouseEvent( wxMouseEvent& event );

23
pcbnew/CMakeLists.txt

@ -27,6 +27,7 @@ include_directories(
../common
../polygon
../common/dialogs
./exporters
../lib_dxf
./import_dxf
${INC_AFTER}
@ -125,6 +126,18 @@ set( PCBNEW_IMPORT_DXF
import_dxf/dxf2brd_items.cpp
)
set( PCBNEW_EXPORTERS
exporters/export_d356.cpp
exporters/export_gencad.cpp
exporters/export_idf.cpp
exporters/export_vrml.cpp
exporters/idf.cpp
exporters/gen_drill_report_files.cpp
exporters/gen_modules_placefile.cpp
exporters/gendrill_Excellon_writer.cpp
exporters/vrml_board.cpp
)
set( PCBNEW_AUTOROUTER_SRCS
autorouter/rect_placement/rect_placement.cpp
autorouter/move_and_route_event_functions.cpp
@ -159,6 +172,7 @@ set( PCBNEW_CLASS_SRCS
deltrack.cpp
${PCBNEW_DIALOGS}
${PCBNEW_IMPORT_DXF}
${PCBNEW_EXPORTERS}
dragsegm.cpp
drc.cpp
drc_clearance_test_functions.cpp
@ -173,21 +187,12 @@ set( PCBNEW_CLASS_SRCS
edit_track_width.cpp
edtxtmod.cpp
event_handlers_tracks_vias_sizes.cpp
export_d356.cpp
export_gencad.cpp
export_idf.cpp
export_vrml.cpp
vrml_board.cpp
files.cpp
gen_drill_report_files.cpp
gen_modules_placefile.cpp
gendrill_Excellon_writer.cpp
globaleditpad.cpp
highlight.cpp
hotkeys.cpp
hotkeys_board_editor.cpp
hotkeys_module_editor.cpp
idf.cpp
initpcb.cpp
layer_widget.cpp
librairi.cpp

1
pcbnew/block_module_editor.cpp

@ -43,7 +43,6 @@
#include <trigo.h>
#include <pcbnew.h>
#include <protos.h>
#include <class_board.h>
#include <class_track.h>

2
pcbnew/class_pcb_text.cpp

@ -46,8 +46,6 @@
#include <class_board.h>
#include <class_pcb_text.h>
#include <protos.h>
TEXTE_PCB::TEXTE_PCB( BOARD_ITEM* parent ) :
BOARD_ITEM( parent, PCB_TEXT_T ),

27
pcbnew/cross-probing.cpp

@ -22,18 +22,16 @@
#include <collectors.h>
#include <pcbnew.h>
#include <protos.h>
/**
* Read a remote command send by Eeschema via a socket,
* port KICAD_PCB_PORT_SERVICE_NUMBER (currently 4242)
* @param cmdline = received command from Eeschema
/* Execute a remote command send by Eeschema via a socket,
* port KICAD_PCB_PORT_SERVICE_NUMBER
* cmdline = received command from Eeschema
* Commands are
* $PART: "reference" put cursor on component
* $PIN: "pin name" $PART: "reference" put cursor on the footprint pin
*/
void RemoteCommand( const char* cmdline )
void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
{
char line[1024];
wxString msg;
@ -41,8 +39,7 @@ void RemoteCommand( const char* cmdline )
char* idcmd;
char* text;
MODULE* module = 0;
PCB_EDIT_FRAME* frame = (PCB_EDIT_FRAME*)wxGetApp().GetTopWindow();
BOARD* pcb = frame->GetBoard();
BOARD* pcb = GetBoard();
wxPoint pos;
strncpy( line, cmdline, sizeof(line) - 1 );
@ -57,14 +54,14 @@ void RemoteCommand( const char* cmdline )
{
modName = FROM_UTF8( text );
module = frame->GetBoard()->FindModuleByReference( modName );
module = pcb->FindModuleByReference( modName );
if( module )
msg.Printf( _( "%s found" ), GetChars( modName ) );
else
msg.Printf( _( "%s not found" ), GetChars( modName ) );
frame->SetStatusText( msg );
SetStatusText( msg );
if( module )
pos = module->GetPosition();
@ -114,21 +111,21 @@ void RemoteCommand( const char* cmdline )
else if( pad == NULL )
{
msg.Printf( _( "%s pin %s not found" ), GetChars( modName ), GetChars( pinName ) );
frame->SetCurItem( module );
SetCurItem( module );
}
else
{
msg.Printf( _( "%s pin %s found" ), GetChars( modName ), GetChars( pinName ) );
frame->SetCurItem( pad );
SetCurItem( pad );
}
frame->SetStatusText( msg );
SetStatusText( msg );
}
if( module ) // if found, center the module on screen, and redraw the screen.
{
frame->SetCrossHairPosition( pos );
frame->RedrawScreen( pos, false );
SetCrossHairPosition( pos );
RedrawScreen( pos, false );
}
}

1
pcbnew/dialogs/dialog_find.cpp

@ -36,7 +36,6 @@
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <protos.h>
#include <dialog_find_base.h>

1
pcbnew/dialogs/dialog_pad_properties.cpp

@ -42,7 +42,6 @@
#include <base_units.h>
#include <wx/dcbuffer.h>
#include <protos.h>
#include <class_board.h>
#include <class_module.h>

1
pcbnew/drc.cpp

@ -40,7 +40,6 @@
#include <class_zone.h>
#include <pcbnew.h>
#include <protos.h>
#include <drc_stuff.h>
#include <dialog_drc.h>

1
pcbnew/drc_clearance_test_functions.cpp

@ -36,7 +36,6 @@
#include <trigo.h>
#include <pcbnew.h>
#include <protos.h>
#include <drc_stuff.h>
#include <class_board.h>

1
pcbnew/edit.cpp

@ -42,7 +42,6 @@
#include <pcbnew_id.h>
#include <pcbnew.h>
#include <module_editor_frame.h>
#include <protos.h>
#include <class_board.h>
#include <class_module.h>

17
pcbnew/editrack-part2.cpp

@ -43,7 +43,6 @@
#include <pcbnew.h>
#include <drc_stuff.h>
#include <protos.h>
bool PCB_EDIT_FRAME::Other_Layer_Route( TRACK* aTrack, wxDC* DC )
@ -200,7 +199,7 @@ bool PCB_EDIT_FRAME::Other_Layer_Route( TRACK* aTrack, wxDC* DC )
* which also is on the via (will change when moving mouse)
*/
track->SetEnd( via->GetStart() );
track->SetStart( via->GetStart() );
track->SetStart( via->GetStart() );
g_CurrentTrackList.PushBack( track );
@ -312,17 +311,3 @@ void PCB_EDIT_FRAME::Show_1_Ratsnest( EDA_ITEM* item, wxDC* DC )
}
}
void PCB_EDIT_FRAME::HighlightUnconnectedPads( wxDC* DC )
{
for( unsigned ii = 0; ii < GetBoard()->GetRatsnestsCount(); ii++ )
{
RATSNEST_ITEM* net = &GetBoard()->m_FullRatsnest[ii];
if( (net->m_Status & CH_ACTIF) == 0 )
continue;
net->m_PadStart->Draw( m_canvas, DC, GR_OR | GR_HIGHLIGHT );
net->m_PadEnd->Draw( m_canvas, DC, GR_OR | GR_HIGHLIGHT );
}
}

0
pcbnew/export_d356.cpp → pcbnew/exporters/export_d356.cpp

0
pcbnew/export_gencad.cpp → pcbnew/exporters/export_gencad.cpp

0
pcbnew/export_idf.cpp → pcbnew/exporters/export_idf.cpp

0
pcbnew/export_vrml.cpp → pcbnew/exporters/export_vrml.cpp

0
pcbnew/gen_drill_report_files.cpp → pcbnew/exporters/gen_drill_report_files.cpp

0
pcbnew/gen_modules_placefile.cpp → pcbnew/exporters/gen_modules_placefile.cpp

0
pcbnew/gendrill_Excellon_writer.cpp → pcbnew/exporters/gendrill_Excellon_writer.cpp

0
pcbnew/gendrill_Excellon_writer.h → pcbnew/exporters/gendrill_Excellon_writer.h

0
pcbnew/idf.cpp → pcbnew/exporters/idf.cpp

0
pcbnew/idf.h → pcbnew/exporters/idf.h

0
pcbnew/vrml_board.cpp → pcbnew/exporters/vrml_board.cpp

0
pcbnew/vrml_board.h → pcbnew/exporters/vrml_board.h

15
pcbnew/highlight.cpp

@ -170,7 +170,6 @@ int PCB_EDIT_FRAME::SelectHighLight( wxDC* DC )
HighLight( DC );
}
return netcode; // HitTest() failed.
}
@ -184,3 +183,17 @@ void PCB_EDIT_FRAME::HighLight( wxDC* DC )
GetBoard()->DrawHighLight( m_canvas, DC, GetBoard()->GetHighLightNetCode() );
}
void PCB_EDIT_FRAME::HighlightUnconnectedPads( wxDC* DC )
{
for( unsigned ii = 0; ii < GetBoard()->GetRatsnestsCount(); ii++ )
{
RATSNEST_ITEM* net = &GetBoard()->m_FullRatsnest[ii];
if( (net->m_Status & CH_ACTIF) == 0 )
continue;
net->m_PadStart->Draw( m_canvas, DC, GR_OR | GR_HIGHLIGHT );
net->m_PadEnd->Draw( m_canvas, DC, GR_OR | GR_HIGHLIGHT );
}
}

1
pcbnew/hotkeys_board_editor.cpp

@ -39,7 +39,6 @@
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <hotkeys.h>
#include <protos.h>
/* How to add a new hotkey:
* see hotkeys.cpp

1
pcbnew/hotkeys_module_editor.cpp

@ -12,7 +12,6 @@
#include <class_board_design_settings.h>
#include <hotkeys.h>
#include <protos.h>
/* How to add a new hotkey:
* See hotkeys.cpp

1
pcbnew/menubar_pcbframe.cpp

@ -32,7 +32,6 @@
#include <appl_wxstruct.h>
#include <pcbnew.h>
#include <wxPcbStruct.h>
#include <protos.h>
#include <hotkeys.h>
#include <pcbnew_id.h>

1
pcbnew/move_or_drag_track.cpp

@ -44,7 +44,6 @@
#include <drc_stuff.h>
#include <drag.h>
#include <pcbnew_id.h>
#include <protos.h>
static void Show_MoveNode( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition,

1
pcbnew/muonde.cpp

@ -48,7 +48,6 @@
#include <class_module.h>
#include <class_edge_mod.h>
#include <protos.h>
#include <pcbnew.h>

2
pcbnew/muwave_command.cpp

@ -11,8 +11,6 @@
#include <pcbnew_id.h>
#include <kicad_device_context.h>
#include <protos.h>
/* Handle microwave commands.
*/

1
pcbnew/pcbframe.cpp

@ -43,7 +43,6 @@
#include <fp_lib_table.h>
#include <pcbnew.h>
#include <protos.h>
#include <pcbnew_id.h>
#include <drc_stuff.h>
#include <layer_widget.h>

5
pcbnew/pcbnew.cpp

@ -227,10 +227,7 @@ bool EDA_APP::OnInit()
SetTopWindow( frame );
frame->Show( true );
if( CreateServer( frame, KICAD_PCB_PORT_SERVICE_NUMBER ) )
{
SetupServerFunction( RemoteCommand );
}
CreateServer( frame, KICAD_PCB_PORT_SERVICE_NUMBER );
frame->Zoom_Automatique( true );

1
pcbnew/print_board_functions.cpp

@ -39,7 +39,6 @@
#include <class_zone.h>
#include <pcbnew.h>
#include <protos.h>
#include <pcbplot.h>
#include <module_editor_frame.h>

3
pcbnew/protos.h

@ -54,6 +54,7 @@ class MODULE;
* @param nbsegment Number of segments in list
* @param mode_color Drawing mode (GRXOR, GROR ..)
*/
void DrawTraces( EDA_DRAW_PANEL* panel,
wxDC* DC,
TRACK* aStartTrace,
@ -71,8 +72,6 @@ void ShowNewTrackWhenMovingCursor( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPo
*/
void CalculateSegmentEndPoint( const wxPoint& aPosition, int ox, int oy, int* fx, int* fy );
void RemoteCommand( const char* cmdline );
/**
* Finds the projection of a grid point on a track. This is the point
* from where we want to draw new orthogonal tracks when starting on a track.

1
pcbnew/tracepcb.cpp

@ -43,7 +43,6 @@
#include <pcbnew.h>
#include <module_editor_frame.h>
#include <pcbplot.h>
#include <protos.h>
#include <wx/overlay.h>

Loading…
Cancel
Save