Maciej Suminski
75026d8754
Renamed BOARD_CONNECTED_ITEM::GetNet() -> GetNetCode()
...
Renamed BOARD_CONNECTED_ITEM::SetNet() -> SetNetCode()
Added BOARD_CONNECTED_ITEM::GetNet() for accessing NETINFO_ITEM* of a given item.
Fixed module editor crash when launched to edit a module from a PCB.
Replaced some BOARD::FindNet( item->GetNet() ) calls with BOARD_CONNECTED_ITEM::GetNet().
2014-02-25 11:40:34 +01:00
Marco Serantoni
d475c544c8
[MacOSX] Fixing resize issue in layer setup dialog
2014-02-21 17:38:29 +01:00
Maciej Suminski
151826b206
Upstream merge.
2014-02-21 11:05:28 +01:00
Maciej Suminski
8a8e5d8d14
Quick fix for unsupported pad types in PNS router.
2014-02-21 09:53:10 +01:00
Marco Serantoni
932c92af55
[MacOSX] New reorg for building system, typos and path refines
2014-02-19 22:39:21 +01:00
Marco Serantoni
7da13137da
[MacOSX] Fix for bugs #1258081 and #1267772
2014-02-18 21:30:17 +01:00
jean-pierre charras
fd2afec6f5
Remove some fully outdated code (#pragma, from Henner Zeller's report, and some other things)
2014-02-18 12:41:53 +01:00
Marco Serantoni
fcd17a59ee
[MacOSX] Fix some small issues, this should be the least for scripting
2014-02-17 19:58:03 +01:00
Maciej Suminski
9b1eb35472
Pcbnew: fix OpenGL PNS router track not shown bug. (fixes lp:1275319)
2014-02-15 18:54:51 -05:00
Marco Serantoni
fb9e5b94ca
[MacOSX] support for plugins in the bundle
2014-02-15 11:01:27 +01:00
Cirilo Bernardo
d5064b98a4
Export VRML and IDF maintenance.
...
Fix minor bug in eeschema (opening a relative path does not work) (patch from HennerZeller).
2014-02-15 08:39:06 +01:00
Marco Serantoni
1c5a997f82
[MacOSX] Reorg and preparation to include scripts into Bundles
2014-02-14 22:09:48 +01:00
jean-pierre charras
63eac42d07
Fix a minor error in class D_PAD: void D_PAD::Flip( int Y ) changed to virtual void D_PAD::Flip( const wxPoint& aCentre ) (as defined in BOARD_ITEM)
...
Scripting: fix compatibility current pcbnew version in 2 examples and the default extension of board files in board.i (was .kicad_brd, now is .kicad_pcb)
2014-02-13 18:27:48 +01:00
Miguel Angel Ajo
3329ed26f3
switching to the new python scripting console icon
2014-02-12 22:19:12 +01:00
Maciej Suminski
ec763dfede
NETINFO_ITEM for orphaned items now have empty netname and net code = 0 (to avoid problems).
...
Fixed case for the footprint legacy plugin when added module's do not have set parent (BOARD).
Added copyright notice for pcbnew/class_netinfolist.cpp (feel free to correct, it is just copied from corresponding header file).
2014-02-12 18:01:03 +01:00
jean-pierre charras
29a1bdb32a
Fix issues in print mirror. (include some changes coming from Cirilo Berdarno's patch)
...
gr_basic.cpp: rewrite the function which draws the outlines of a thick segment.
2014-02-12 11:03:34 +01:00
Nick Østergaard
f214a57629
Fix wrong numbering in the QFP footprint wizard python script
2014-02-12 08:59:56 +01:00
Fabrizio Tappero
7061d6c2a5
Icon update, and an other very minor fix.
2014-02-11 19:32:09 +01:00
Maciej Suminski
e6a01e5a41
Fixed ratsnest related segfaults on BOARD destruction.
2014-02-11 14:26:33 +01:00
Lorenzo Marcantonio
29dcb49c62
- Do not autonumber NPTH pads on add in module editor (keep the number blank)
...
Factored out the next-pad-number function
2014-02-10 18:19:15 +01:00
jean-pierre charras
c935624779
Use environment KISYS3DMOD to know defaut path for 3D shapes in footprint editors dialogs.
2014-02-10 10:30:08 +01:00
Miguel Angel Ajo
bbcd2c61d6
BOARD saving test
2014-02-09 00:21:47 +01:00
Marco Serantoni
2acaa2871d
[MacOSX] Fixing build system, sorry guys, refining build system and make building smoother.
2014-02-08 16:15:06 +01:00
jean-pierre charras
fff54d759e
Add the environment variable KYSYS3DMOD to define a default path for 3D models.
2014-02-08 11:44:55 +01:00
Maciej Suminski
222017758c
Moved PCB_VISIBLE size check to .cpp.
2014-02-07 20:54:58 +01:00
Maciej Suminski
9ef713dfa8
Right click on an item when there is nothing selected - enables the context menu.
2014-02-07 20:44:34 +01:00
jean-pierre charras
d6f348f41e
Remove duplicate icon apply.svg (use ckecked_ok.svg instead which is the same icon).
...
Add a workaround to fix a new bug in wxWidgets 3.0 ( Windows specific ) which shows icons only with a size = 16x16 in menus which have attribute wxITEM_CHECK
2014-02-07 20:32:08 +01:00
Marco Serantoni
c441c287b0
[MacOSX] Fixing minor issue for wxPython
2014-02-07 20:19:53 +01:00
Maciej Suminski
63e4defd2a
Corrected bounding box for arcs (DRAWSEGMENT).
2014-02-07 19:55:40 +01:00
Marco Serantoni
eb34364d89
[MacOSX] Automating building for OSX with KICAD_SCRIPTING, see Documentation/compiling/mac-osx.txt
2014-02-07 19:53:54 +01:00
Cirilo Bbernardo
87d2caa4c6
IDF export: fix incorrect rotation of flipped items.
2014-02-07 17:01:46 +01:00
Maciej Suminski
25dfbcd39f
Upstream merged.
2014-02-07 09:52:47 +01:00
Maciej Suminski
d124cf45f3
Reverted changes introduced by the revision 4655.
2014-02-06 21:34:03 +01:00
jean-pierre charras
f366f26523
Fix some incorrect icons (which were using a not supported font for texts). Add ps_router icon from Konstantin Baranovskiy.
2014-02-06 15:13:31 +01:00
Maciej Suminski
468e14f003
Merged ratsnest_threadsafe branch.
2014-02-05 11:55:04 +01:00
Maciej Suminski
3a15f5ad28
Initialized value to suppress Valgrind warnings.
2014-02-05 11:33:45 +01:00
Maciej Suminski
17c030aa98
Fixed removal of items in the KiCad-default style.
2014-02-05 11:08:34 +01:00
Maciej Suminski
857956e42e
Fixed bug introduced in the last commit.
2014-02-05 10:47:55 +01:00
Maciej Suminski
d7517e472b
Some items were still marked as selected after undoing an operation.
2014-02-05 10:30:50 +01:00
Cirilo Bernardo
fbe8484225
Apply IDF tools patch from Cirilo Bernardo
2014-02-05 10:27:21 +01:00
Maciej Suminski
a9031edc0d
Grip margin is relative to the world's zoom.
2014-02-05 10:17:14 +01:00
Maciej Suminski
f922533978
Added possibility for editing pads properties.
2014-02-05 09:05:27 +01:00
Maciej Suminski
8df0f769f7
Added KiCad-style modification methods (hover over an item and press a hot key, without selecting first).
...
Modification point is selected basing on the number of selected items.
Rotation angle setting (Preferences->General) is taken into account while rotating.
2014-02-04 17:27:00 +01:00
Maciej Suminski
625dcddb27
Added 2 tool actions:
...
- pcbnew.InteractiveSelection.Single for selecting a single item
- pcbnew.InteractiveSelection.Clear for clearing the selection
Made SELECTION_TOOL::clearSelection private.
2014-02-04 16:03:56 +01:00
Maciej Suminski
106fa9bbd8
Edit tool may still be activated if it was invoked with no selected items.
2014-02-04 14:21:29 +01:00
Maciej Suminski
347649e855
Protection against non consecutive net codes.
2014-02-04 13:40:39 +01:00
Maciej Suminski
82ca611ed3
SELECTION_TOOL::SELECTION::Clear made private, as there was no chance to call it outside the SELECTION_TOOL class.
2014-02-04 11:37:54 +01:00
Dick Hollenbeck
142782b402
remove wxApp()::FindLibraryPath() usages from Pcbnew. Use environment variable substitution.
2014-02-03 15:39:42 -06:00
Maciej Suminski
f87b6962e0
Enabled PNS for selected items.
2014-02-03 18:09:17 +01:00
Maciej Suminski
f6aa447036
Ratsnest lines for zones are removed when a zone is dragged.
2014-02-03 17:40:39 +01:00
Dick Hollenbeck
4f26386e8d
Initial KIWAY (modular-kicad) work. Various tweeks.
2014-02-03 09:10:37 -06:00
Maciej Suminski
3f5c3d4349
Minor changes (fix cvpcb build issue, wx2.8 compatibility, some other stuff).
2014-02-03 16:02:54 +01:00
Maciej Suminski
63bc40b58e
Takes into account hidden module text settings.
2014-02-03 07:22:31 -06:00
Maciej Suminski
fff616c8dc
Moved netnames (GAL specific layers) to a separate enum, to avoid saving/reading their settings from files.
...
Added a check for the number of PCB_VISIBLE elements.
Worksheet & general purpose overlay layers are visible by default.
2014-02-03 14:14:53 +01:00
Maciej Suminski
2fe85cf43d
Minor changes.
2014-02-03 13:26:25 +01:00
Maciej Suminski
864c86062d
Changed ROUTER_PREVIEW_ITEM layer.
2014-02-03 13:09:10 +01:00
Maciej Suminski
db252ea88c
Changed BOARD_DESIGN_SETTINGS::m_VisibleElements from int to long, to assure at least 32 bits length (without depending on the platfrom int size).
2014-02-03 13:08:01 +01:00
Maciej Suminski
44861f5889
Fixed tracks of 0 width causing division by 0 error.
2014-02-03 13:05:27 +01:00
Miguel Angel Ajo
15bfac3f4e
Moved QA to root.
2014-02-02 22:50:45 +01:00
Dick Hollenbeck
741bfb685b
Another attempt at wxFrame::SaveSettings() standard infrastructure.
2014-02-02 14:18:10 -06:00
Cirilo Bernardo
5a6665ec08
Dxf import fix (patch from Cirilo Bernardo, with a minor change)
2014-02-02 10:07:02 +01:00
Carl Poirier
1490099ddd
Parallelized the RN_DATA::Recalculate() function.
2014-01-31 18:27:06 +01:00
Maciej Suminski
0c67e26e9c
Added the dynamic ratsnest for the tracks that are currently routed with the PNS router.
2014-01-31 18:05:11 +01:00
Maciej Suminski
3e2e11fb42
Undo/redo buffer fixed once again..
2014-01-31 16:08:20 +01:00
Maciej Suminski
24ba75ba92
Minor change to clearing selection handling.
2014-01-31 14:52:01 +01:00
Maciej Suminski
630a3fb1b9
Safer RN_NET::GetNodes()
2014-01-31 14:41:15 +01:00
Maciej Suminski
7f3bf1bef7
Added missing operators==/!= for RN_NODE_PTR.
...
Moved ClearSimple() functions back to the header file.
2014-01-31 13:19:59 +01:00
Maciej Suminski
7f4648149b
Ratsnest is updated after backend switch.
2014-01-31 13:14:18 +01:00
Maciej Suminski
3827f495ca
Ratsnest color is saved in RENDER_SETTINGS. Temporary ratsnest is drawn using a brightened color.
2014-01-31 11:16:01 +01:00
Maciej Suminski
5fea60d20f
Fixed undo/redo while routing with the PNS error.
2014-01-30 17:11:40 +01:00
Maciej Suminski
510fee1358
Another way of handling items for the ratsnest (clearer and now finally supports undo/redo of the PNS created tracks).
2014-01-30 15:46:39 +01:00
Maciej Suminski
bbb3972fb7
Undo buffer for the PNS router. Still, it has a bug - it crashes when an undo/redo operation is performed while routing a track.
2014-01-30 11:32:08 +01:00
Maciej Suminski
a73e386505
Added a new tool event: TA_UNDO_REDO, sent after undo/redo operation is issued.
2014-01-30 11:18:58 +01:00
jean-pierre charras
ce6b907fe3
Add specific bitmaps in export IDF and export DSN menus.
...
Add missing calls to Show( false ) to some main frames (Kicad, eeschema, gerbview), to force config saving when closing these windows.
Code cleanup and minor coding style fixes in footprint_wizard_frame
2014-01-29 18:01:42 +01:00
unknown
690a001648
Pcbnew: export IDF fixes
2014-01-29 17:42:21 +01:00
Maciej Suminski
57bfaca131
PNS_ITEM::m_parent: BOARD_ITEM->BOARD_CONNECTED_ITEM
2014-01-29 15:35:25 +01:00
Maciej Suminski
af350eb1e6
RN_DATA::GetNets() -> RN_DATA::GetNet() with an assert to check if someone calls it for the unconnected net.
...
Only items that belong to a net are removed from ratsnest.
2014-01-29 15:24:19 +01:00
Maciej Suminski
b52e5fabda
Ratsnest lines are drawn using a more transparent color.
...
BOARD::chainMarkedSegments() uses a safer method for gettings pads.
2014-01-29 14:51:50 +01:00
Maciej Suminski
bec24b6c7f
Ratsnest is updated after rotation, flip, undo/redo operations.
...
Fixed crashes of ratsnest when a pointer for an item has changed after undo/redo operations.
Vias are properly removed from ratsnest (pcbnew/class_board.cpp).
2014-01-29 10:17:14 +01:00
Maciej Suminski
83f7c7e35e
Added RN_DATA::Add()/Remove() methods.
...
RN_DATA::Update()/AddSimple() take BOARD_ITEM* as the parameter (instead of being split to versions with BOARD_CONNECTED_ITEM* and MODULE*), to make the code look clearer.
2014-01-28 16:30:58 +01:00
Maciej Suminski
2b8f9fc621
Added BOARD_[CONNECTED_]ITEM::IsConnected() for checking if a BOARD_ITEM is BOARD_CONNECTED_ITEM as well.
2014-01-28 16:23:08 +01:00
Maciej Suminski
c3c7b2e9cc
Merged the netnames branch.
2014-01-28 11:59:04 +01:00
Maciej Suminski
7f6bc781aa
Upstream merge.
2014-01-28 10:43:55 +01:00
Maciej Suminski
15b8d3d20a
Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without modifying the net codes during the run time).
...
Now, nets are saved with consecutive net codes (both modern & legacy plugins).
Zones are saved together with their nets, without depending on the fact if there are any pads with such net. Therefore validation of zone net names was removed (pcbnew/class_board.cpp).
Performed tests:
- Changed a pad's net name from empty to existent - ok, name was changed.
- Changed a pad's net name from empty to nonexistent - ok, error message is displayed, net name stays empty.
- Changed a pad's net name from existent to empty - ok, net name became empty
- Changed a pad's net name from existent to nonexistent - ok, error message is displayed, net name is not changed.
- Drawn a zone that belongs to a net, then modified schematics so the net does not exist anymore. After reloading the net list, all pads/tracks are updated. Zones still belongs to the net that does not exist in the schematic (but still exists in .kicad_pcb file). After running DRC, the zone becomes not filled.
- Undo & redo affects assignment of a polygon to a specific net (you may change net of a polygon, refill it and undo/redo the changes).
- KiCad s-expr & legacy, Eagle, P-CAD boards seem to load without any problem (they also contain correct net names assigned to the appropriate pads). All types of board file formats were loaded, then saved in sexpr format and reopened with a KiCad built from the master branch (without my modifications).
- A few boards were also saved using the legacy format and were opened with the master KiCad without any issues.
- Change a net name for a pad, restore with undo/redo - ok
- Remove everything, restore with undo - ok
- Remove everything, reload netlist - ok
Differences observed between files saved by the master branch KiCad and this one:
- list of nets are not saved in any particular order, so net codes may differ
- the default net class does not contain the unconnected net
2014-01-28 10:19:51 +01:00
Dick Hollenbeck
c63fa6ff31
Add EDA_BASE_FRAME::Show() and call SaveSettings() only from there for all derived wxFrames. Remove calls to SaveSettings() elsewhere.
2014-01-27 19:29:26 -06:00
Dick Hollenbeck
9bce766331
Report findings of possible github zipfile caching in a comment, improve a Sprintf() setup.
2014-01-27 09:51:14 -06:00
Maciej Suminski
a10d918cac
Thread-safe version of Delaunay triangulation.
2014-01-27 11:42:47 +01:00
jean-pierre charras
e07b4cbe86
github_plugin.cpp: in error message relative to"cannot get zip archive...", line 496, make the sentence relative to http GET command not translatable
...
inside the full translated message.
2014-01-27 09:48:17 +01:00
Dick Hollenbeck
9afc4a0db6
Remove g_LibraryNames and all supporting infrastructure from pcbnew. FP_LIB_TABLE is now local to major wxFrames.
2014-01-27 01:23:02 -06:00
Dick Hollenbeck
6617ce58f3
Use factored SelectLibrary() from base class. Spelling and comments.
2014-01-27 00:41:40 -06:00
Maciej Suminski
8e6019748a
GAL takes into account hidden module text settings.
2014-01-26 22:02:48 +01:00
Maciej Suminski
e537480f1e
Fixes crash when there are no edges for a given net in the ratsnest.
2014-01-26 22:01:42 +01:00
jean-pierre charras
fe97521bda
Pcbnew: fix Bug #1272926 (Texts are now not accepted on edge cuts layer)
2014-01-26 18:30:20 +01:00
jean-pierre charras
3354bdde05
Pcbnew: fix bug #1272714 . Code cleanup: use 2 different enums for pad shapes and pad drill shapes. Remove never used pad shape.
2014-01-26 15:20:58 +01:00
jean-pierre charras
f7ca6e4bf9
add patch from Cirilo Bernardo, and minor fixes.
2014-01-25 13:23:29 +01:00
Dick Hollenbeck
aa451fb4d1
freerouter does not understand "mixed" layers, export mixed as signal
2014-01-20 13:11:42 -06:00
jean-pierre charras
a094f7d5b5
Fix some issues in modview, relative to few incorrect use of some wxAuiManager functions.
...
Fix not working + and - keys in layers manager.
Fix typo errors and modify some messages to make translator's life more easy.
2014-01-19 14:12:57 +01:00
maciej.
76aa0ba756
Fix compile errors when wx3.x is built with --enable-stl
2014-01-18 03:07:05 -06:00
Maciej Suminski
441e03172c
Added iterators for NETINFO_LIST (as net codes for existing net codes may be not consecutive).
2014-01-16 16:47:31 +01:00
Maciej Suminski
af7520ccb9
wxWidgets 2.8 fix
2014-01-16 14:36:09 +01:00