Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
42022adb
Commit
42022adb
authored
Jul 30, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleaning
parent
5a391836
Changes
84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
84 changed files
with
477 additions
and
407 deletions
+477
-407
pcbstruct.h
include/pcbstruct.h
+1
-1
wxBasePcbFrame.h
include/wxBasePcbFrame.h
+368
-0
wxPcbStruct.h
include/wxPcbStruct.h
+6
-326
attribut.cpp
pcbnew/attribut.cpp
+1
-0
automove.cpp
pcbnew/automove.cpp
+1
-0
autoplac.cpp
pcbnew/autoplac.cpp
+1
-0
autorout.cpp
pcbnew/autorout.cpp
+1
-0
block.cpp
pcbnew/block.cpp
+1
-0
block_module_editor.cpp
pcbnew/block_module_editor.cpp
+1
-0
board_undo_redo.cpp
pcbnew/board_undo_redo.cpp
+1
-0
build_BOM_from_board.cpp
pcbnew/build_BOM_from_board.cpp
+1
-0
class_track.cpp
pcbnew/class_track.cpp
+1
-1
class_zone.cpp
pcbnew/class_zone.cpp
+1
-1
clean.cpp
pcbnew/clean.cpp
+1
-0
controle.cpp
pcbnew/controle.cpp
+1
-0
cotation.cpp
pcbnew/cotation.cpp
+1
-1
cross-probing.cpp
pcbnew/cross-probing.cpp
+1
-0
deltrack.cpp
pcbnew/deltrack.cpp
+3
-1
dialog_copper_zones.cpp
pcbnew/dialog_copper_zones.cpp
+1
-0
dialog_design_rules.cpp
pcbnew/dialog_design_rules.cpp
+1
-0
dialog_display_options.cpp
pcbnew/dialog_display_options.cpp
+1
-0
dialog_drc.cpp
pcbnew/dialog_drc.cpp
+1
-0
dialog_freeroute_exchange.cpp
pcbnew/dialog_freeroute_exchange.cpp
+1
-0
dialog_general_options.cpp
pcbnew/dialog_general_options.cpp
+1
-0
dialog_netlist.cpp
pcbnew/dialog_netlist.cpp
+1
-0
dialog_orient_footprints.cpp
pcbnew/dialog_orient_footprints.cpp
+1
-0
dialog_pcb_text_properties.cpp
pcbnew/dialog_pcb_text_properties.cpp
+1
-0
dialog_pcbnew_config_libs_and_paths.cpp
pcbnew/dialog_pcbnew_config_libs_and_paths.cpp
+1
-0
dialog_print_using_printer.cpp
pcbnew/dialog_print_using_printer.cpp
+1
-1
dialog_track_options.cpp
pcbnew/dialog_track_options.cpp
+1
-0
drc.cpp
pcbnew/drc.cpp
+2
-1
edgemod.cpp
pcbnew/edgemod.cpp
+1
-2
edit.cpp
pcbnew/edit.cpp
+1
-0
edit_pcb_text.cpp
pcbnew/edit_pcb_text.cpp
+1
-1
edit_track_width.cpp
pcbnew/edit_track_width.cpp
+1
-2
editedge.cpp
pcbnew/editedge.cpp
+2
-1
editmod.cpp
pcbnew/editmod.cpp
+1
-1
editrack-part2.cpp
pcbnew/editrack-part2.cpp
+2
-1
editrack.cpp
pcbnew/editrack.cpp
+2
-3
export_gencad.cpp
pcbnew/export_gencad.cpp
+1
-4
files.cpp
pcbnew/files.cpp
+2
-1
find.cpp
pcbnew/find.cpp
+1
-0
gen_modules_placefile.cpp
pcbnew/gen_modules_placefile.cpp
+1
-0
gendrill.cpp
pcbnew/gendrill.cpp
+1
-2
hotkeys.cpp
pcbnew/hotkeys.cpp
+1
-0
initpcb.cpp
pcbnew/initpcb.cpp
+1
-1
ioascii.cpp
pcbnew/ioascii.cpp
+1
-0
librairi.cpp
pcbnew/librairi.cpp
+1
-0
loadcmp.cpp
pcbnew/loadcmp.cpp
+1
-0
menubarmodedit.cpp
pcbnew/menubarmodedit.cpp
+4
-7
menubarpcb.cpp
pcbnew/menubarpcb.cpp
+1
-0
mirepcb.cpp
pcbnew/mirepcb.cpp
+1
-2
modedit.cpp
pcbnew/modedit.cpp
+1
-0
modedit_onclick.cpp
pcbnew/modedit_onclick.cpp
+1
-4
modedit_undo_redo.cpp
pcbnew/modedit_undo_redo.cpp
+1
-1
modeditoptions.cpp
pcbnew/modeditoptions.cpp
+1
-6
moduleframe.cpp
pcbnew/moduleframe.cpp
+1
-0
modules.cpp
pcbnew/modules.cpp
+1
-0
move_or_drag_track.cpp
pcbnew/move_or_drag_track.cpp
+1
-2
muonde.cpp
pcbnew/muonde.cpp
+1
-0
muwave_command.cpp
pcbnew/muwave_command.cpp
+1
-0
netlist.cpp
pcbnew/netlist.cpp
+1
-0
onleftclick.cpp
pcbnew/onleftclick.cpp
+1
-4
onrightclick.cpp
pcbnew/onrightclick.cpp
+3
-2
pcbcfg.cpp
pcbnew/pcbcfg.cpp
+1
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+2
-1
pcbnew.cpp
pcbnew/pcbnew.cpp
+1
-0
pcbplot.cpp
pcbnew/pcbplot.cpp
+7
-6
router.cpp
pcbnew/router.cpp
+1
-0
set_color.cpp
pcbnew/set_color.cpp
+3
-5
set_color.h
pcbnew/set_color.h
+0
-4
solve.cpp
pcbnew/solve.cpp
+1
-1
specctra_import.cpp
pcbnew/specctra_import.cpp
+1
-0
surbrill.cpp
pcbnew/surbrill.cpp
+1
-1
swap_layers.cpp
pcbnew/swap_layers.cpp
+1
-0
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+1
-0
tool_onrightclick.cpp
pcbnew/tool_onrightclick.cpp
+1
-4
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+1
-2
tracepcb.cpp
pcbnew/tracepcb.cpp
+1
-1
via_edit.cpp
pcbnew/via_edit.cpp
+2
-2
xchgmod.cpp
pcbnew/xchgmod.cpp
+1
-0
zone_filling_algorithm.cpp
pcbnew/zone_filling_algorithm.cpp
+1
-0
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+1
-0
zones_non_copper_type_functions.cpp
pcbnew/zones_non_copper_type_functions.cpp
+1
-0
No files found.
include/pcbstruct.h
View file @
42022adb
...
...
@@ -129,7 +129,7 @@ class RATSNEST_ITEM;
/* main window classes : */
#include "wx
PcbStruct
.h"
#include "wx
BasePcbFrame
.h"
/* Class to handle a board */
#include "class_board.h"
...
...
include/wxBasePcbFrame.h
0 → 100644
View file @
42022adb
This diff is collapsed.
Click to expand it.
include/wxPcbStruct.h
View file @
42022adb
This diff is collapsed.
Click to expand it.
pcbnew/attribut.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "protos.h"
...
...
pcbnew/automove.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "confirm.h"
#include "kicad_string.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "cell.h"
#include "id.h"
...
...
pcbnew/autoplac.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "zones.h"
#include "cell.h"
...
...
pcbnew/autorout.cpp
View file @
42022adb
...
...
@@ -8,6 +8,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "cell.h"
#include "zones.h"
...
...
pcbnew/block.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "block_commande.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "pcbplot.h"
#include "trigo.h"
...
...
pcbnew/block_module_editor.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "block_commande.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "pcbplot.h"
#include "trigo.h"
...
...
pcbnew/board_undo_redo.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
/* Functions to undo and redo edit commands.
* commmands to undo are stored in CurrentScreen->m_UndoList
...
...
pcbnew/build_BOM_from_board.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include <wx/listimpl.cpp>
...
...
pcbnew/class_track.cpp
View file @
42022adb
...
...
@@ -854,7 +854,7 @@ void TRACK::DisplayInfo( WinEDA_DrawFrame* frame )
{
wxString
msg
;
int
text_pos
;
BOARD
*
board
=
(
(
WinEDA_
PcbFrame
*
)
frame
)
->
GetBoard
();
BOARD
*
board
=
(
(
WinEDA_
BasePcbFrame
*
)
frame
)
->
GetBoard
();
#ifdef RATSNET_DEBUG
DbgDisplayTrackInfos
(
this
);
...
...
pcbnew/class_zone.cpp
View file @
42022adb
...
...
@@ -883,7 +883,7 @@ void ZONE_CONTAINER::DisplayInfo( WinEDA_DrawFrame* frame )
{
if
(
GetNet
()
>=
0
)
{
NETINFO_ITEM
*
equipot
=
(
(
WinEDA_PcbFrame
*
)
frame
)
->
GetBoard
()
->
FindNet
(
GetNet
()
);
NETINFO_ITEM
*
equipot
=
(
(
WinEDA_
Base
PcbFrame
*
)
frame
)
->
GetBoard
()
->
FindNet
(
GetNet
()
);
if
(
equipot
)
msg
=
equipot
->
GetNetname
();
...
...
pcbnew/clean.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "protos.h"
...
...
pcbnew/controle.cpp
View file @
42022adb
...
...
@@ -8,6 +8,7 @@
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
#include "id.h"
...
...
pcbnew/cotation.cpp
View file @
42022adb
...
...
@@ -6,7 +6,7 @@
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "
protos
.h"
#include "
wxPcbStruct
.h"
/* Routines Locales */
static
void
Exit_EditCotation
(
WinEDA_DrawPanel
*
Panel
,
wxDC
*
DC
);
...
...
pcbnew/cross-probing.cpp
View file @
42022adb
...
...
@@ -15,6 +15,7 @@
#include "appl_wxstruct.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "eda_dde.h"
#include "id.h"
#include "collectors.h"
...
...
pcbnew/deltrack.cpp
View file @
42022adb
...
...
@@ -4,11 +4,13 @@
/*********************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
...
...
pcbnew/dialog_copper_zones.cpp
View file @
42022adb
...
...
@@ -16,6 +16,7 @@
#include "confirm.h"
#include "PolyLine.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h"
#include "autorout.h"
#include "zones.h"
...
...
pcbnew/dialog_design_rules.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
#include "dialog_design_rules.h"
...
...
pcbnew/dialog_display_options.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
...
...
pcbnew/dialog_drc.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "wxstruct.h"
#include "dialog_drc.h"
#include "common.h"
#include "wxPcbStruct.h"
/* class DIALOG_DRC_CONTROL: a dialog to set DRC parameters (clearance, min cooper size)
* and run DRC tests
...
...
pcbnew/dialog_freeroute_exchange.cpp
View file @
42022adb
...
...
@@ -20,6 +20,7 @@
#include "common.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_freeroute_exchange.h"
...
...
pcbnew/dialog_general_options.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
...
...
pcbnew/dialog_netlist.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "fctsys.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_netlist.h"
...
...
pcbnew/dialog_orient_footprints.cpp
View file @
42022adb
...
...
@@ -19,6 +19,7 @@
#include "confirm.h"
#include "kicad_string.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_orient_footprints.h"
...
...
pcbnew/dialog_pcb_text_properties.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "drawtxt.h"
#include "confirm.h"
...
...
pcbnew/dialog_pcbnew_config_libs_and_paths.cpp
View file @
42022adb
...
...
@@ -15,6 +15,7 @@
#include "confirm.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_pcbnew_config_libs_and_paths.h"
...
...
pcbnew/dialog_print_using_printer.cpp
View file @
42022adb
...
...
@@ -176,7 +176,7 @@ void DIALOG_PRINT_USING_PRINTER::OnInitDialog( wxInitDialogEvent& event )
msg
=
_
(
"Layer"
);
msg
<<
wxT
(
" "
)
<<
ii
+
1
;
#else
msg
=
(
(
WinEDA_PcbFrame
*
)
m_Parent
)
->
GetBoard
()
->
GetLayerName
(
ii
);
msg
=
(
(
WinEDA_
Base
PcbFrame
*
)
m_Parent
)
->
GetBoard
()
->
GetLayerName
(
ii
);
#endif
m_BoxSelectLayer
[
ii
]
=
new
wxCheckBox
(
this
,
-
1
,
msg
);
...
...
pcbnew/dialog_track_options.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "fctsys.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_track_options.h"
...
...
pcbnew/drc.cpp
View file @
42022adb
...
...
@@ -31,8 +31,9 @@
#include "fctsys.h"
#include "common.h"
#include "pcbnew.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "trigo.h"
#include "gestfich.h"
...
...
pcbnew/edgemod.cpp
View file @
42022adb
...
...
@@ -10,14 +10,13 @@
*/
#include "fctsys.h"
#include "gr_basic.h"
#include "trigo.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
protos
.h"
#include "
wxPcbStruct
.h"
/* Routines Locales */
...
...
pcbnew/edit.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "id.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "protos.h"
...
...
pcbnew/edit_pcb_text.cpp
View file @
42022adb
...
...
@@ -8,7 +8,7 @@
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "
protos
.h"
#include "
wxPcbStruct
.h"
/* Local functions */
static
void
Move_Texte_Pcb
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
bool
erase
);
...
...
pcbnew/edit_track_width.cpp
View file @
42022adb
...
...
@@ -4,13 +4,12 @@
/***************************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "protos.h"
/* Routines Locales */
...
...
pcbnew/editedge.cpp
View file @
42022adb
...
...
@@ -5,12 +5,13 @@
/******************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
/* Routines Locales */
...
...
pcbnew/editmod.cpp
View file @
42022adb
...
...
@@ -9,7 +9,7 @@
#include "confirm.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "trigo.h"
#include "bitmaps.h"
#include "3d_struct.h"
...
...
pcbnew/editrack-part2.cpp
View file @
42022adb
...
...
@@ -4,12 +4,13 @@
/*******************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
...
...
pcbnew/editrack.cpp
View file @
42022adb
...
...
@@ -4,17 +4,16 @@
/*******************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "protos.h"
#include "drc_stuff.h"
#include "trigo.h"
#include "protos.h"
/* Routines Locales */
static
void
Exit_Editrack
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
);
...
...
pcbnew/export_gencad.cpp
View file @
42022adb
...
...
@@ -10,12 +10,9 @@
#include "appl_wxstruct.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h"
#include "bitmaps.h"
#include "protos.h"
#include "id.h"
bool
CreateHeaderInfoData
(
FILE
*
file
,
WinEDA_PcbFrame
*
frame
);
static
void
CreateTracksInfoData
(
FILE
*
file
,
BOARD
*
pcb
);
static
void
CreateBoardSection
(
FILE
*
file
,
BOARD
*
pcb
);
...
...
pcbnew/files.cpp
View file @
42022adb
...
...
@@ -9,6 +9,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
#include "id.h"
...
...
@@ -268,7 +269,7 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
// Display the loaded board:
DrawPanel
->
Refresh
(
true
);
wxSafeYield
();
// Needed if we want to see the board now.
// Compile rastnest and displays net info
Compile_Ratsnest
(
NULL
,
true
);
GetBoard
()
->
DisplayInfo
(
this
);
...
...
pcbnew/find.cpp
View file @
42022adb
...
...
@@ -17,6 +17,7 @@
#include "confirm.h"
#include "kicad_string.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
...
...
pcbnew/gen_modules_placefile.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h"
#include "appl_wxstruct.h"
...
...
pcbnew/gendrill.cpp
View file @
42022adb
...
...
@@ -5,8 +5,6 @@
#include "fctsys.h"
#include "appl_wxstruct.h"
using
namespace
std
;
#include <vector>
#include "common.h"
...
...
@@ -16,6 +14,7 @@ using namespace std;
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h"
#include "macros.h"
#include "appl_wxstruct.h"
...
...
pcbnew/hotkeys.cpp
View file @
42022adb
...
...
@@ -5,6 +5,7 @@
#include "fctsys.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
#include "class_drawpanel.h"
#include "confirm.h"
...
...
pcbnew/initpcb.cpp
View file @
42022adb
...
...
@@ -8,7 +8,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "protos.h"
...
...
pcbnew/ioascii.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "kicad_string.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#ifdef PCBNEW
#include "autorout.h"
...
...
pcbnew/librairi.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
/*
...
...
pcbnew/loadcmp.cpp
View file @
42022adb
...
...
@@ -14,6 +14,7 @@
#include "appl_wxstruct.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
class
ModList
...
...
pcbnew/menubarmodedit.cpp
View file @
42022adb
...
...
@@ -2,14 +2,11 @@
/* menubarmodedit.cpp - creation du menu general de l'editeur de module*/
/***********************************************************************/
#ifdef __GNUG__
#pragma implementation
#endif
#include "fctsys.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h"
#include "protos.h"
...
...
@@ -26,7 +23,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar()
{
wxMenuBar
*
menuBar
=
GetMenuBar
();
wxMenuItem
*
item
;
if
(
!
menuBar
)
{
menuBar
=
new
wxMenuBar
();
...
...
@@ -52,14 +49,14 @@ wxMenuItem * item;
item
->
SetBitmap
(
grid_xpm
);
sizes_menu
->
Append
(
item
);
////////////////
// Menu Help: //
////////////////
wxMenu
*
helpMenu
=
new
wxMenu
;
// Contents
item
=
new
wxMenuItem
(
helpMenu
,
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
// Menu entry name
_
(
"Open the pcbnew manual"
));
// Statusbar message
...
...
pcbnew/menubarpcb.cpp
View file @
42022adb
...
...
@@ -5,6 +5,7 @@
#include "appl_wxstruct.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h"
#include "protos.h"
#include "hotkeys.h"
...
...
pcbnew/mirepcb.cpp
View file @
42022adb
...
...
@@ -3,12 +3,11 @@
/*********************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "
protos
.h"
#include "
wxPcbStruct
.h"
/* Routines Locales */
...
...
pcbnew/modedit.cpp
View file @
42022adb
...
...
@@ -14,6 +14,7 @@
#include "3d_viewer.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
#include "collectors.h"
...
...
pcbnew/modedit_onclick.cpp
View file @
42022adb
...
...
@@ -2,16 +2,13 @@
/* modedit_onclick.cpp */
/************************/
#ifdef __GNUG__
#pragma implementation
#endif
#include "fctsys.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h"
#include "protos.h"
...
...
pcbnew/modedit_undo_redo.cpp
View file @
42022adb
...
...
@@ -7,7 +7,7 @@
#include "common.h"
#include "pcbnew.h"
#include "
id
.h"
#include "
wxPcbStruct
.h"
#include "protos.h"
...
...
pcbnew/modeditoptions.cpp
View file @
42022adb
...
...
@@ -9,22 +9,17 @@
*/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "pcbplot.h"
#include "autorout.h"
#include "wxPcbStruct.h"
#include "id.h"
#include "protos.h"
/* Fonctions locales */
/* variables locales */
/***********************************************************************/
...
...
pcbnew/moduleframe.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "bitmaps.h"
#include "protos.h"
#include "id.h"
...
...
pcbnew/modules.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "trigo.h"
#include "protos.h"
...
...
pcbnew/move_or_drag_track.cpp
View file @
42022adb
...
...
@@ -4,13 +4,12 @@
/****************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "trigo.h"
#include "drag.h"
...
...
pcbnew/muonde.cpp
View file @
42022adb
...
...
@@ -12,6 +12,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
/* Fonctions locales */
...
...
pcbnew/muwave_command.cpp
View file @
42022adb
...
...
@@ -7,6 +7,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
...
...
pcbnew/netlist.cpp
View file @
42022adb
...
...
@@ -29,6 +29,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_netlist.h"
...
...
pcbnew/onleftclick.cpp
View file @
42022adb
...
...
@@ -5,16 +5,13 @@
/**************************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "id.h"
#include "protos.h"
#include "eda_dde.h"
...
...
pcbnew/onrightclick.cpp
View file @
42022adb
...
...
@@ -10,11 +10,12 @@
#include "confirm.h"
#include "pcbnew.h"
#include "autorout.h"
#include "wxPcbStruct.h"
//#include "autorout.h"
#include "id.h"
#include "hotkeys.h"
#include "collectors.h"
#include "protos.h"
//
#include "protos.h"
/* Bitmaps */
...
...
pcbnew/pcbcfg.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "confirm.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h"
#include "pcbcfg.h"
#include "worksheet.h"
...
...
pcbnew/pcbframe.cpp
View file @
42022adb
...
...
@@ -8,6 +8,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "collectors.h"
#include "bitmaps.h"
#include "protos.h"
...
...
@@ -371,7 +372,7 @@ void WinEDA_PcbFrame::SetToolbars()
size_t
i
;
int
ii
,
jj
;
bool
state
;
if
(
m_ID_current_state
==
ID_TRACK_BUTT
)
{
if
(
Drc_On
)
...
...
pcbnew/pcbnew.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "plot_common.h"
#include "gestfich.h"
#include "pcbplot.h"
...
...
pcbnew/pcbplot.cpp
View file @
42022adb
...
...
@@ -9,6 +9,7 @@
#include "confirm.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "pcbplot.h"
#include "worksheet.h"
#include "id.h"
...
...
@@ -533,7 +534,7 @@ void WinEDA_PlotFrame::OnSetScaleOpt( wxCommandEvent& event )
/* Disable sheet reference for scale != 1:1 */
bool
scale1
=
(
m_Scale_Opt
->
GetSelection
()
==
1
);
m_Plot_Sheet_Ref
->
Enable
(
scale1
);
if
(
!
scale1
)
if
(
!
scale1
)
m_Plot_Sheet_Ref
->
SetValue
(
false
);
}
...
...
@@ -757,7 +758,7 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event )
break
;
case
PLOT_FORMAT_DXF
:
g_pcb_plot_options
.
Scale
=
1.0
;
g_pcb_plot_options
.
Scale
=
1.0
;
ext
=
wxT
(
"dxf"
);
wildcard
=
_
(
"DXF files (.dxf)|*.dxf"
);
break
;
...
...
@@ -792,23 +793,23 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event )
switch
(
format
)
{
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
);
break
;
case
PLOT_FORMAT_GERBER
:
m_Parent
->
Genere_GERBER
(
fn
.
GetFullPath
(),
layer_to_plot
,
s_PlotOriginIsAuxAxis
,
s_PlotOriginIsAuxAxis
,
g_pcb_plot_options
.
Trace_Mode
);
break
;
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
);
break
;
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
);
break
;
}
...
...
pcbnew/router.cpp
View file @
42022adb
...
...
@@ -11,6 +11,7 @@
#include "kicad_string.h"
#include "gestfich.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "zones.h"
#include "cell.h"
...
...
pcbnew/set_color.cpp
View file @
42022adb
...
...
@@ -5,17 +5,15 @@
/*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 "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "protos.h"
#include "wxPcbStruct.h"
//#include "protos.h"
// temporary variable used to handle grid visibility:
bool
s_showGrid
;
...
...
pcbnew/set_color.h
View file @
42022adb
...
...
@@ -5,10 +5,6 @@
#ifndef SET_COLOR_H
#define SET_COLOR_H
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "set_color.cpp"
#endif
#include "wx/statline.h"
class
wxBoxSizer
;
...
...
pcbnew/solve.cpp
View file @
42022adb
...
...
@@ -11,11 +11,11 @@
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "zones.h"
#include "protos.h"
#include <fcntl.h>
#include "cell.h"
/* Routines definies ici : */
...
...
pcbnew/specctra_import.cpp
View file @
42022adb
...
...
@@ -37,6 +37,7 @@
#include "class_drawpanel.h" // DrawPanel
#include "confirm.h" // DisplayError()
#include "gestfich.h" // EDA_FileSelector()
#include "wxPcbStruct.h"
...
...
pcbnew/surbrill.cpp
View file @
42022adb
...
...
@@ -9,7 +9,7 @@
#include "kicad_string.h"
#include "pcbnew.h"
#include "
protos
.h"
#include "
wxPcbStruct
.h"
#include "collectors.h"
...
...
pcbnew/swap_layers.cpp
View file @
42022adb
...
...
@@ -9,6 +9,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
...
...
pcbnew/tool_modedit.cpp
View file @
42022adb
...
...
@@ -6,6 +6,7 @@
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "protos.h"
...
...
pcbnew/tool_onrightclick.cpp
View file @
42022adb
...
...
@@ -3,16 +3,13 @@
/********************************************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "confirm.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "id.h"
#include "protos.h"
/*****************************************************************/
void
WinEDA_PcbFrame
::
ToolOnRightClick
(
wxCommandEvent
&
event
)
...
...
pcbnew/tool_pcb.cpp
View file @
42022adb
...
...
@@ -6,8 +6,7 @@
#include "common.h"
#include "pcbnew.h"
#include "protos.h"
#include "wxPcbStruct.h"
#include "bitmaps.h"
...
...
pcbnew/tracepcb.cpp
View file @
42022adb
...
...
@@ -16,7 +16,7 @@
#include "class_drawpanel.h"
#include "pcbnew.h"
#include "
autorou
t.h"
#include "
wxPcbStruc
t.h"
#include "pcbplot.h"
#include "protos.h"
...
...
pcbnew/via_edit.cpp
View file @
42022adb
...
...
@@ -3,11 +3,11 @@
/**********************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "id.h"
...
...
@@ -105,7 +105,7 @@ void WinEDA_PcbFrame::Via_Edit_Control( wxDC* DC, int command_type, SEGVIA* via
break
;
default
:
DisplayError
(
this
,
wxT
(
"WinEDA_PcbFrame::Via_Edition() error: unknown command"
)
);
wxMessageBox
(
wxT
(
"WinEDA_PcbFrame::Via_Edition() error: unknown command"
)
);
break
;
}
...
...
pcbnew/xchgmod.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "confirm.h"
#include "kicad_string.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "dialog_exchange_modules_base.h"
...
...
pcbnew/zone_filling_algorithm.cpp
View file @
42022adb
...
...
@@ -9,6 +9,7 @@
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "autorout.h"
#include "zones.h"
...
...
pcbnew/zones_by_polygon.cpp
View file @
42022adb
...
...
@@ -10,6 +10,7 @@
#include "class_drawpanel.h"
#include "confirm.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "zones.h"
#include "id.h"
#include "protos.h"
...
...
pcbnew/zones_non_copper_type_functions.cpp
View file @
42022adb
...
...
@@ -5,6 +5,7 @@
#include "confirm.h"
#include "common.h"
#include "pcbnew.h"
#include "wxPcbStruct.h"
#include "zones.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment