Commit 42022adb authored by charras's avatar charras

code cleaning

parent 5a391836
...@@ -129,7 +129,7 @@ class RATSNEST_ITEM; ...@@ -129,7 +129,7 @@ class RATSNEST_ITEM;
/* main window classes : */ /* main window classes : */
#include "wxPcbStruct.h" #include "wxBasePcbFrame.h"
/* Class to handle a board */ /* Class to handle a board */
#include "class_board.h" #include "class_board.h"
......
This diff is collapsed.
This diff is collapsed.
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "protos.h" #include "protos.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "confirm.h" #include "confirm.h"
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "cell.h" #include "cell.h"
#include "id.h" #include "id.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "zones.h" #include "zones.h"
#include "cell.h" #include "cell.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "cell.h" #include "cell.h"
#include "zones.h" #include "zones.h"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "block_commande.h" #include "block_commande.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "trigo.h" #include "trigo.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "block_commande.h" #include "block_commande.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "trigo.h" #include "trigo.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
/* Functions to undo and redo edit commands. /* Functions to undo and redo edit commands.
* commmands to undo are stored in CurrentScreen->m_UndoList * commmands to undo are stored in CurrentScreen->m_UndoList
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include <wx/listimpl.cpp> #include <wx/listimpl.cpp>
......
...@@ -854,7 +854,7 @@ void TRACK::DisplayInfo( WinEDA_DrawFrame* frame ) ...@@ -854,7 +854,7 @@ void TRACK::DisplayInfo( WinEDA_DrawFrame* frame )
{ {
wxString msg; wxString msg;
int text_pos; int text_pos;
BOARD* board = ( (WinEDA_PcbFrame*) frame )->GetBoard(); BOARD* board = ( (WinEDA_BasePcbFrame*)frame)->GetBoard();
#ifdef RATSNET_DEBUG #ifdef RATSNET_DEBUG
DbgDisplayTrackInfos( this ); DbgDisplayTrackInfos( this );
......
...@@ -883,7 +883,7 @@ void ZONE_CONTAINER::DisplayInfo( WinEDA_DrawFrame* frame ) ...@@ -883,7 +883,7 @@ void ZONE_CONTAINER::DisplayInfo( WinEDA_DrawFrame* frame )
{ {
if( GetNet() >= 0 ) if( GetNet() >= 0 )
{ {
NETINFO_ITEM* equipot = ( (WinEDA_PcbFrame*) frame )->GetBoard()->FindNet( GetNet() ); NETINFO_ITEM* equipot = ( (WinEDA_BasePcbFrame*) frame )->GetBoard()->FindNet( GetNet() );
if( equipot ) if( equipot )
msg = equipot->GetNetname(); msg = equipot->GetNetname();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "protos.h" #include "protos.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
#include "id.h" #include "id.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
/* Routines Locales */ /* Routines Locales */
static void Exit_EditCotation( WinEDA_DrawPanel* Panel, wxDC* DC ); static void Exit_EditCotation( WinEDA_DrawPanel* Panel, wxDC* DC );
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "eda_dde.h" #include "eda_dde.h"
#include "id.h" #include "id.h"
#include "collectors.h" #include "collectors.h"
......
...@@ -4,11 +4,13 @@ ...@@ -4,11 +4,13 @@
/*********************************************/ /*********************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "confirm.h" #include "confirm.h"
#include "PolyLine.h" #include "PolyLine.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "autorout.h" #include "autorout.h"
#include "zones.h" #include "zones.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
#include "dialog_design_rules.h" #include "dialog_design_rules.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "wxstruct.h" #include "wxstruct.h"
#include "dialog_drc.h" #include "dialog_drc.h"
#include "common.h" #include "common.h"
#include "wxPcbStruct.h"
/* class DIALOG_DRC_CONTROL: a dialog to set DRC parameters (clearance, min cooper size) /* class DIALOG_DRC_CONTROL: a dialog to set DRC parameters (clearance, min cooper size)
* and run DRC tests * and run DRC tests
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "common.h" #include "common.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_freeroute_exchange.h" #include "dialog_freeroute_exchange.h"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_netlist.h" #include "dialog_netlist.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "confirm.h" #include "confirm.h"
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_orient_footprints.h" #include "dialog_orient_footprints.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "drawtxt.h" #include "drawtxt.h"
#include "confirm.h" #include "confirm.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "confirm.h" #include "confirm.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_pcbnew_config_libs_and_paths.h" #include "dialog_pcbnew_config_libs_and_paths.h"
......
...@@ -176,7 +176,7 @@ void DIALOG_PRINT_USING_PRINTER::OnInitDialog( wxInitDialogEvent& event ) ...@@ -176,7 +176,7 @@ void DIALOG_PRINT_USING_PRINTER::OnInitDialog( wxInitDialogEvent& event )
msg = _( "Layer" ); msg = _( "Layer" );
msg << wxT( " " ) << ii + 1; msg << wxT( " " ) << ii + 1;
#else #else
msg = ( (WinEDA_PcbFrame*) m_Parent )->GetBoard()->GetLayerName( ii ); msg = ( (WinEDA_BasePcbFrame*) m_Parent )->GetBoard()->GetLayerName( ii );
#endif #endif
m_BoxSelectLayer[ii] = new wxCheckBox( this, -1, msg ); m_BoxSelectLayer[ii] = new wxCheckBox( this, -1, msg );
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_track_options.h" #include "dialog_track_options.h"
......
...@@ -31,8 +31,9 @@ ...@@ -31,8 +31,9 @@
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "pcbnew.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "trigo.h" #include "trigo.h"
#include "gestfich.h" #include "gestfich.h"
......
...@@ -10,14 +10,13 @@ ...@@ -10,14 +10,13 @@
*/ */
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "trigo.h" #include "trigo.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
/* Routines Locales */ /* Routines Locales */
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "id.h" #include "id.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "protos.h" #include "protos.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
/* Local functions */ /* Local functions */
static void Move_Texte_Pcb( WinEDA_DrawPanel* panel, wxDC* DC, bool erase ); static void Move_Texte_Pcb( WinEDA_DrawPanel* panel, wxDC* DC, bool erase );
......
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
/***************************************************************/ /***************************************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
/* Routines Locales */ /* Routines Locales */
......
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
/******************************************************/ /******************************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
/* Routines Locales */ /* Routines Locales */
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "confirm.h" #include "confirm.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "3d_struct.h" #include "3d_struct.h"
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
/*******************************/ /*******************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -4,17 +4,16 @@ ...@@ -4,17 +4,16 @@
/*******************************/ /*******************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "protos.h"
#include "drc_stuff.h" #include "drc_stuff.h"
#include "trigo.h" #include "trigo.h"
#include "protos.h"
/* Routines Locales */ /* Routines Locales */
static void Exit_Editrack( WinEDA_DrawPanel* panel, wxDC* DC ); static void Exit_Editrack( WinEDA_DrawPanel* panel, wxDC* DC );
......
...@@ -10,12 +10,9 @@ ...@@ -10,12 +10,9 @@
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "bitmaps.h"
#include "protos.h"
#include "id.h"
bool CreateHeaderInfoData( FILE* file, WinEDA_PcbFrame* frame ); bool CreateHeaderInfoData( FILE* file, WinEDA_PcbFrame* frame );
static void CreateTracksInfoData( FILE* file, BOARD* pcb ); static void CreateTracksInfoData( FILE* file, BOARD* pcb );
static void CreateBoardSection( FILE* file, BOARD* pcb ); static void CreateBoardSection( FILE* file, BOARD* pcb );
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
#include "id.h" #include "id.h"
...@@ -268,7 +269,7 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append ) ...@@ -268,7 +269,7 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
// Display the loaded board: // Display the loaded board:
DrawPanel->Refresh( true); DrawPanel->Refresh( true);
wxSafeYield(); // Needed if we want to see the board now. wxSafeYield(); // Needed if we want to see the board now.
// Compile rastnest and displays net info // Compile rastnest and displays net info
Compile_Ratsnest( NULL, true ); Compile_Ratsnest( NULL, true );
GetBoard()->DisplayInfo( this ); GetBoard()->DisplayInfo( this );
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "confirm.h" #include "confirm.h"
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
#include "fctsys.h" #include "fctsys.h"
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
using namespace std;
#include <vector> #include <vector>
#include "common.h" #include "common.h"
...@@ -16,6 +14,7 @@ using namespace std; ...@@ -16,6 +14,7 @@ using namespace std;
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "macros.h" #include "macros.h"
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#ifdef PCBNEW #ifdef PCBNEW
#include "autorout.h" #include "autorout.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
/* /*
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
class ModList class ModList
......
...@@ -2,14 +2,11 @@ ...@@ -2,14 +2,11 @@
/* menubarmodedit.cpp - creation du menu general de l'editeur de module*/ /* menubarmodedit.cpp - creation du menu general de l'editeur de module*/
/***********************************************************************/ /***********************************************************************/
#ifdef __GNUG__
#pragma implementation
#endif
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "protos.h" #include "protos.h"
...@@ -26,7 +23,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar() ...@@ -26,7 +23,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar()
{ {
wxMenuBar * menuBar = GetMenuBar(); wxMenuBar * menuBar = GetMenuBar();
wxMenuItem * item; wxMenuItem * item;
if( ! menuBar ) if( ! menuBar )
{ {
menuBar = new wxMenuBar(); menuBar = new wxMenuBar();
...@@ -52,14 +49,14 @@ wxMenuItem * item; ...@@ -52,14 +49,14 @@ wxMenuItem * item;
item->SetBitmap(grid_xpm); item->SetBitmap(grid_xpm);
sizes_menu->Append(item); sizes_menu->Append(item);
//////////////// ////////////////
// Menu Help: // // Menu Help: //
//////////////// ////////////////
wxMenu *helpMenu = new wxMenu; wxMenu *helpMenu = new wxMenu;
// Contents // Contents
item = new wxMenuItem(helpMenu , item = new wxMenuItem(helpMenu ,
ID_GENERAL_HELP, ID_GENERAL_HELP,
_("&Contents"), // Menu entry name _("&Contents"), // Menu entry name
_("Open the pcbnew manual")); // Statusbar message _("Open the pcbnew manual")); // Statusbar message
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "protos.h" #include "protos.h"
#include "hotkeys.h" #include "hotkeys.h"
......
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
/*********************************************/ /*********************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
/* Routines Locales */ /* Routines Locales */
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "3d_viewer.h" #include "3d_viewer.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
#include "collectors.h" #include "collectors.h"
......
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
/* modedit_onclick.cpp */ /* modedit_onclick.cpp */
/************************/ /************************/
#ifdef __GNUG__
#pragma implementation
#endif
#include "fctsys.h" #include "fctsys.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "protos.h" #include "protos.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "id.h" #include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -9,22 +9,17 @@ ...@@ -9,22 +9,17 @@
*/ */
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "pcbplot.h" #include "wxPcbStruct.h"
#include "autorout.h"
#include "id.h" #include "id.h"
#include "protos.h" #include "protos.h"
/* Fonctions locales */
/* variables locales */
/***********************************************************************/ /***********************************************************************/
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "protos.h" #include "protos.h"
#include "id.h" #include "id.h"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "protos.h" #include "protos.h"
......
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
/****************************************************/ /****************************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "drag.h" #include "drag.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
/* Fonctions locales */ /* Fonctions locales */
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_netlist.h" #include "dialog_netlist.h"
......
...@@ -5,16 +5,13 @@ ...@@ -5,16 +5,13 @@
/**************************************************************/ /**************************************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "id.h" #include "id.h"
#include "protos.h"
#include "eda_dde.h"
......
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
//#include "autorout.h"
#include "id.h" #include "id.h"
#include "hotkeys.h" #include "hotkeys.h"
#include "collectors.h" #include "collectors.h"
#include "protos.h" //#include "protos.h"
/* Bitmaps */ /* Bitmaps */
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "confirm.h" #include "confirm.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "pcbcfg.h" #include "pcbcfg.h"
#include "worksheet.h" #include "worksheet.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "collectors.h" #include "collectors.h"
#include "bitmaps.h" #include "bitmaps.h"
#include "protos.h" #include "protos.h"
...@@ -371,7 +372,7 @@ void WinEDA_PcbFrame::SetToolbars() ...@@ -371,7 +372,7 @@ void WinEDA_PcbFrame::SetToolbars()
size_t i; size_t i;
int ii, jj; int ii, jj;
bool state; bool state;
if( m_ID_current_state == ID_TRACK_BUTT ) if( m_ID_current_state == ID_TRACK_BUTT )
{ {
if( Drc_On ) if( Drc_On )
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "plot_common.h" #include "plot_common.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbplot.h" #include "pcbplot.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "confirm.h" #include "confirm.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "worksheet.h" #include "worksheet.h"
#include "id.h" #include "id.h"
...@@ -533,7 +534,7 @@ void WinEDA_PlotFrame::OnSetScaleOpt( wxCommandEvent& event ) ...@@ -533,7 +534,7 @@ void WinEDA_PlotFrame::OnSetScaleOpt( wxCommandEvent& event )
/* Disable sheet reference for scale != 1:1 */ /* Disable sheet reference for scale != 1:1 */
bool scale1 = (m_Scale_Opt->GetSelection() == 1); bool scale1 = (m_Scale_Opt->GetSelection() == 1);
m_Plot_Sheet_Ref->Enable( scale1 ); m_Plot_Sheet_Ref->Enable( scale1 );
if (!scale1) if (!scale1)
m_Plot_Sheet_Ref->SetValue(false); m_Plot_Sheet_Ref->SetValue(false);
} }
...@@ -757,7 +758,7 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event ) ...@@ -757,7 +758,7 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event )
break; break;
case PLOT_FORMAT_DXF: case PLOT_FORMAT_DXF:
g_pcb_plot_options.Scale = 1.0; g_pcb_plot_options.Scale = 1.0;
ext = wxT( "dxf" ); ext = wxT( "dxf" );
wildcard = _( "DXF files (.dxf)|*.dxf" ); wildcard = _( "DXF files (.dxf)|*.dxf" );
break; break;
...@@ -792,23 +793,23 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event ) ...@@ -792,23 +793,23 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event )
switch( format ) switch( format )
{ {
case PLOT_FORMAT_POST: case PLOT_FORMAT_POST:
m_Parent->Genere_PS( fn.GetFullPath(), layer_to_plot, useA4(), m_Parent->Genere_PS( fn.GetFullPath(), layer_to_plot, useA4(),
g_pcb_plot_options.Trace_Mode ); g_pcb_plot_options.Trace_Mode );
break; break;
case PLOT_FORMAT_GERBER: case PLOT_FORMAT_GERBER:
m_Parent->Genere_GERBER( fn.GetFullPath(), layer_to_plot, m_Parent->Genere_GERBER( fn.GetFullPath(), layer_to_plot,
s_PlotOriginIsAuxAxis, s_PlotOriginIsAuxAxis,
g_pcb_plot_options.Trace_Mode ); g_pcb_plot_options.Trace_Mode );
break; break;
case PLOT_FORMAT_HPGL: case PLOT_FORMAT_HPGL:
m_Parent->Genere_HPGL( fn.GetFullPath(), layer_to_plot, m_Parent->Genere_HPGL( fn.GetFullPath(), layer_to_plot,
g_pcb_plot_options.Trace_Mode ); g_pcb_plot_options.Trace_Mode );
break; break;
case PLOT_FORMAT_DXF: case PLOT_FORMAT_DXF:
m_Parent->Genere_DXF( fn.GetFullPath(), layer_to_plot, m_Parent->Genere_DXF( fn.GetFullPath(), layer_to_plot,
g_pcb_plot_options.Trace_Mode ); g_pcb_plot_options.Trace_Mode );
break; break;
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "gestfich.h" #include "gestfich.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "zones.h" #include "zones.h"
#include "cell.h" #include "cell.h"
......
...@@ -5,17 +5,15 @@ ...@@ -5,17 +5,15 @@
/*Set up the items and layer colors and show/no show options /*Set up the items and layer colors and show/no show options
*/ */
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "set_color.h"
#endif
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h" #include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
//#include "protos.h"
// temporary variable used to handle grid visibility: // temporary variable used to handle grid visibility:
bool s_showGrid; bool s_showGrid;
......
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
#ifndef SET_COLOR_H #ifndef SET_COLOR_H
#define SET_COLOR_H #define SET_COLOR_H
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "set_color.cpp"
#endif
#include "wx/statline.h" #include "wx/statline.h"
class wxBoxSizer; class wxBoxSizer;
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "zones.h" #include "zones.h"
#include "protos.h" #include "protos.h"
#include <fcntl.h>
#include "cell.h" #include "cell.h"
/* Routines definies ici : */ /* Routines definies ici : */
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "class_drawpanel.h" // DrawPanel #include "class_drawpanel.h" // DrawPanel
#include "confirm.h" // DisplayError() #include "confirm.h" // DisplayError()
#include "gestfich.h" // EDA_FileSelector() #include "gestfich.h" // EDA_FileSelector()
#include "wxPcbStruct.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "protos.h" #include "wxPcbStruct.h"
#include "collectors.h" #include "collectors.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h" #include "protos.h"
......
...@@ -3,16 +3,13 @@ ...@@ -3,16 +3,13 @@
/********************************************************************************/ /********************************************************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "id.h" #include "id.h"
#include "protos.h"
/*****************************************************************/ /*****************************************************************/
void WinEDA_PcbFrame::ToolOnRightClick( wxCommandEvent& event ) void WinEDA_PcbFrame::ToolOnRightClick( wxCommandEvent& event )
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
#include "bitmaps.h" #include "bitmaps.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "autorout.h" #include "wxPcbStruct.h"
#include "pcbplot.h" #include "pcbplot.h"
#include "protos.h" #include "protos.h"
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
/**********************************************/ /**********************************************/
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h"
#include "common.h" #include "common.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h" #include "id.h"
...@@ -105,7 +105,7 @@ void WinEDA_PcbFrame::Via_Edit_Control( wxDC* DC, int command_type, SEGVIA* via ...@@ -105,7 +105,7 @@ void WinEDA_PcbFrame::Via_Edit_Control( wxDC* DC, int command_type, SEGVIA* via
break; break;
default: default:
DisplayError( this, wxT( "WinEDA_PcbFrame::Via_Edition() error: unknown command" ) ); wxMessageBox( wxT( "WinEDA_PcbFrame::Via_Edition() error: unknown command" ) );
break; break;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "confirm.h" #include "confirm.h"
#include "kicad_string.h" #include "kicad_string.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_exchange_modules_base.h" #include "dialog_exchange_modules_base.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h" #include "autorout.h"
#include "zones.h" #include "zones.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "zones.h" #include "zones.h"
#include "id.h" #include "id.h"
#include "protos.h" #include "protos.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "confirm.h" #include "confirm.h"
#include "common.h" #include "common.h"
#include "pcbnew.h" #include "pcbnew.h"
#include "wxPcbStruct.h"
#include "zones.h" #include "zones.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment