Maciej Suminski
a1f80f20a7
Added TOOL_ACTION for updating EDIT_POINTS.
...
EDIT_POINTs show up when there is only one item selected (now after deselection as well).
2014-02-28 16:53:28 +01:00
Maciej Suminski
8d8c72856d
Added TOOL_MANAGER & ACTION_MANAGER::RunAction( const TOOL_ACTION aAction ).
...
Selection clearing is invoked using TOOL_ACTION object rather than its name.
2014-02-28 15:46:05 +01:00
jean-pierre charras
7d1c0ec4db
3D viewer: shows now the texts of footprints (ref, value and others) when visible.
...
Fix also other very minor issues.
Realistic mode shows or not the copper thickness (depending on selected option in preferences) to speed up the screen redraw.
2014-02-28 11:51:47 +01:00
Maciej Suminski
16a68d8528
Fixes ratsnest crashing on zones with negative net codes.
2014-02-28 11:12:55 +01:00
Marco Serantoni
9c1f4efb6e
Fix for bug #1285878 , build fails with clean repository and high parallelism due missing dependance between router and pcbcommon
2014-02-27 23:56:16 +01:00
Martin Janitschke
f503ee945f
make microwave toolbar accessible from menu (Bug #1285425 )
2014-02-27 19:48:18 +01:00
Maciej Suminski
125ef0a679
Initial version of POINT_EDITOR.
2014-02-27 17:29:08 +01:00
Maciej Suminski
075283d9a8
SELECTION_TOOL emits event notifying about selecting/deselecting/clearing selection.
2014-02-27 17:27:58 +01:00
Maciej Suminski
dbe19fc5f9
Added VIEW::ToWorld( double ).
...
TOOL_EVENT message is supposed to contain string as parameter.
Added missing header for class_drawsegment.h (KiROUND).
Renamed SELECTION_TOOL::containsSelected() to SELECTION_TOOL::selectionContains().
2014-02-27 16:13:27 +01:00
Marco Serantoni
9bdb0086b4
[MacOSX] Avoid race between cmake -E copy_directory, which triggers a build error when using an high parallelism
2014-02-26 21:46:25 +01:00
jean-pierre charras
eb25a2d42b
* fp_lib_table.cpp: fix an issue on Windows in ConvertFromLegacy: sometimes, because the comparison was case sensitive, lib nicknames were not found, although libs exist ( for instance if a path was given like f:\mypath instead of F:\mypath)
...
* getpart.cpp: fix a potential bug on a translatable string with has requirements in spelling.
* fix bug #1066179
* kicad: fix erroneous labels in sub menus.
2014-02-26 15:06:24 +01:00
Maciej Suminski
476ec04b13
Minor changes to BRIGHT_BOX class.
2014-02-25 18:08:33 +01:00
Maciej Suminski
62a76f1ed2
Removed a few RecacheAllItems() calls, some of them changed to specific type recaching (using TYPE_COLLECTOR & VIEW_ITEM::ViewUpdate() ).
...
Removed OPENGL_GAL::SetStrokeColor().
2014-02-25 14:28:09 +01:00
Maciej Suminski
e063962ce7
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:47:27 +01:00
Maciej Suminski
c1b7ced4e7
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
Maciej Suminski
374b15ff9e
Minor code cleaning and optimizations.
2014-02-24 14:31:55 +01:00
Maciej Suminski
de0e8bd519
Fixed a missing group clearing and update for restored VIEW_ITEMs.Fixed a missing group clearing and update for restored VIEW_ITEMs.
2014-02-24 12:56:47 +01:00
Maciej Suminski
0383f93aac
Some variables initialized to NULL.
2014-02-24 11:17:49 +01:00
Marco Serantoni
090eca72bc
[MacOSX] Fixing resize issue in layer setup dialog
2014-02-21 17:38:29 +01:00
Maciej Suminski
be6dc9d0af
Revisiting GAL:
...
- VIEW_ITEM::ViewUpdate() does not update items immediately. Now it marks them to be updated and the real update occurs on the next rendering frame.
- VIEW::InvalidateItem() made private.
- VIEW_LAYER::enabled -> visible
- Some functions moved to header files.
2014-02-21 16:57:18 +01:00
Maciej Suminski
81b610df16
Upstream merge.
2014-02-21 11:05:28 +01:00
Maciej Suminski
ee0b425538
Quick fix for unsupported pad types in PNS router.
2014-02-21 09:53:10 +01:00
Marco Serantoni
8590d7dbb8
[MacOSX] New reorg for building system, typos and path refines
2014-02-19 22:39:21 +01:00
Maciej Suminski
e4b2deed51
Removed some excessive variables.
2014-02-19 15:20:42 +01:00
Maciej Suminski
3dbb864e5e
Continous mode for drawing tools (i.e. they do not finish after adding a single object).
2014-02-19 13:51:32 +01:00
Marco Serantoni
0d68df1d93
[MacOSX] Fix for bugs #1258081 and #1267772
2014-02-18 21:30:17 +01:00
jean-pierre charras
26fd1960e6
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
af075c1cb2
[MacOSX] Fix some small issues, this should be the least for scripting
2014-02-17 19:58:03 +01:00
Maciej Suminski
f01b2502c8
Added TOOL_ACTION for PNS router activation.
...
Most of the GAL tools are activated by corresponding buttons on the right toolbar.
Removed menu entry for PNS router (as it is activated as the usual "Add track" tool).
2014-02-17 18:21:00 +01:00
Maciej Suminski
0161fab1a3
Fixed wrongly formulated assert.
2014-02-17 17:20:44 +01:00
Maciej Suminski
364d0e0f02
Undo/redo support.
2014-02-17 14:53:01 +01:00
Maciej Suminski
7278716c65
Small leak fix.
2014-02-17 14:36:51 +01:00
Maciej Suminski
e79d47fed2
Improved way of drawing 45-degree lines.
2014-02-17 11:33:03 +01:00
Maciej Suminski
6348c77788
Pcbnew: fix OpenGL PNS router track not shown bug. (fixes lp:1275319)
2014-02-15 18:54:51 -05:00
Marco Serantoni
af54a74a24
[MacOSX] support for plugins in the bundle
2014-02-15 11:01:27 +01:00
Cirilo Bernardo
8123415163
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
45f64652ef
[MacOSX] Reorg and preparation to include scripts into Bundles
2014-02-14 22:09:48 +01:00
Maciej Suminski
6d3e691dd9
Added a few asserts. Made some steps idiotproof.
2014-02-14 15:52:13 +01:00
Maciej Suminski
834dce571e
New items are created using pointers (instead of copying automatic variables when drawing is finished).
2014-02-14 15:13:42 +01:00
Maciej Suminski
8aef3b30fa
Refactorization: moved drawing 45 degree multiple line to a function.
2014-02-14 14:24:12 +01:00
Maciej Suminski
1c7cc3229c
Some more minor refactorization.
2014-02-14 11:35:48 +01:00
Maciej Suminski
881b24c6e4
Refactoring: zones and keepout areas are drawn using the same function.
2014-02-14 10:47:43 +01:00
Maciej Suminski
b0aa561719
Refactoring: made VIEW, VIEW_CONTROLS, BOARD and PCB_EDIT_FRAME fields in DRAWING_TOOL.
2014-02-14 09:49:49 +01:00
Maciej Suminski
249de46078
Cursor is in world coordinates.
2014-02-13 20:23:28 +01:00
jean-pierre charras
9a56467e13
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
Maciej Suminski
1492f71d6c
Added keepout areas drawing tool.
2014-02-13 16:24:33 +01:00
Maciej Suminski
88bc292a37
Added zone drawing tool.
2014-02-13 16:10:32 +01:00
Maciej Suminski
ff12d3d2e5
Changed PCB_EDIT_FRAME::setTopLayer() to PCB_EDIT_FRAME::SetTopLayer() and changed to public (as it had exactly the same functionality).
2014-02-13 15:57:57 +01:00
Maciej Suminski
39de31f7b2
Placing modules with a minor bug.
2014-02-13 12:46:39 +01:00
Miguel Angel Ajo
750cf6a26e
switching to the new python scripting console icon
2014-02-12 22:19:12 +01:00
Maciej Suminski
7cddc08e1f
Merged fix from the selection_tool branch.
2014-02-12 18:04:27 +01:00
Maciej Suminski
ddfdbb6ff0
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
ddd39027e7
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
5a9d750f7d
Fix wrong numbering in the QFP footprint wizard python script
2014-02-12 08:59:56 +01:00
Fabrizio Tappero
6c8b0ea59c
Icon update, and an other very minor fix.
2014-02-11 19:32:09 +01:00
Maciej Suminski
59a56fc820
Added PCB_TARGET placing tool.
2014-02-11 17:15:33 +01:00
Maciej Suminski
46f3c2210d
Fixed ratsnest related segfaults on BOARD destruction.
2014-02-11 14:39:14 +01:00
Maciej Suminski
962a0e16c5
Added DIMENSION drawing tool.
2014-02-11 14:38:44 +01:00
Maciej Suminski
8feab0ad66
Fixed ratsnest related segfaults on BOARD destruction.
2014-02-11 14:26:33 +01:00
Maciej Suminski
4eee9e18d5
Removed redundant fields DIMENSION::m_arrowD1O, m_arrowD2O, m_arrowG1O, m_arrowG2O (==m_crossBarO/F).
...
Added DIMENSION::SetOrigin(), DIMENSION::SetEnd(), DIMENSION::GetOrigin(), DIMENSION::GetEnd(), DIMENSION::GetHeight().
Fixed flipping for DIMENSION class.
Added an information that helps to understand roles of the points in the DIMENSION class.
Some minor changes to PCB_PAINTER (mainly using const COLOR4D& for taking the result of GetColor() function).
2014-02-11 13:22:30 +01:00
Lorenzo Marcantonio
ae93328c21
- 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
Maciej Suminski
0dac3077bd
Made rotate & flip tool actions generic.
...
Drawing tool reacts to rotate & flip events while placing a text.
2014-02-10 17:08:55 +01:00
Maciej Suminski
5491a468ba
Basic text placing tool.
2014-02-10 15:40:25 +01:00
Maciej Suminski
aaf0c13838
Drawing arcs - version 1
2014-02-10 10:58:58 +01:00
jean-pierre charras
b7d5bd5ab8
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
373a5b5bb7
BOARD saving test
2014-02-09 00:21:47 +01:00
Marco Serantoni
1cacfffd5f
[MacOSX] Fixing build system, sorry guys, refining build system and make building smoother.
2014-02-08 16:15:06 +01:00
jean-pierre charras
0c615f78a1
Add the environment variable KYSYS3DMOD to define a default path for 3D models.
2014-02-08 11:44:55 +01:00
Maciej Suminski
9583c522dd
Moved PCB_VISIBLE size check to .cpp.
2014-02-07 20:54:58 +01:00
Maciej Suminski
90c0e2e8f4
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
aff1bdc853
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
c0b0918c45
[MacOSX] Fixing minor issue for wxPython
2014-02-07 20:19:53 +01:00
Maciej Suminski
68a1b06674
Corrected bounding box for arcs (DRAWSEGMENT).
2014-02-07 19:55:40 +01:00
Marco Serantoni
09636c1a88
[MacOSX] Automating building for OSX with KICAD_SCRIPTING, see Documentation/compiling/mac-osx.txt
2014-02-07 19:53:54 +01:00
Maciej Suminski
52e5d11d0a
Corrected bounding box for arcs (DRAWSEGMENT).
2014-02-07 19:51:04 +01:00
Cirilo Bbernardo
56c237410b
IDF export: fix incorrect rotation of flipped items.
2014-02-07 17:01:46 +01:00
Maciej Suminski
5959e7c2ef
Upstream merged.
2014-02-07 09:52:47 +01:00
Maciej Suminski
9f18e6f152
Reverted changes introduced by the revision 4655.
2014-02-06 21:34:03 +01:00
Maciej Suminski
93483241ed
Actually added files for drawing tools. Added possibility of drawing circles.
2014-02-06 17:12:37 +01:00
jean-pierre charras
11fcf7ab6e
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
3a25e108f5
Initial version of the drawing tool.
2014-02-06 15:09:38 +01:00
Maciej Suminski
5299e41ac4
Added TOOL_INTERACTIVE::Activate().
...
Removed an unnecessary header from class_board_item.h.
2014-02-06 14:45:33 +01:00
Maciej Suminski
37dc675b7a
Merged the lp:~cern-kicad/kicad/selection_tool branch.
2014-02-06 12:48:18 +01:00
Maciej Suminski
8718c57d41
Fixed included headers.
2014-02-06 12:38:47 +01:00
Maciej Suminski
b3c5980e61
Merged ratsnest_threadsafe branch.
2014-02-05 11:55:04 +01:00
Maciej Suminski
c8c98753b5
Initialized value to suppress Valgrind warnings.
2014-02-05 11:33:45 +01:00
Maciej Suminski
de0c476042
Fixed removal of items in the KiCad-default style.
2014-02-05 11:08:34 +01:00
Maciej Suminski
cff1ea84ee
Fixed bug introduced in the last commit.
2014-02-05 10:47:55 +01:00
Maciej Suminski
aff5e66ab8
Some items were still marked as selected after undoing an operation.
2014-02-05 10:30:50 +01:00
Cirilo Bernardo
82bfe0dbdf
Apply IDF tools patch from Cirilo Bernardo
2014-02-05 10:27:21 +01:00
Maciej Suminski
7e8b1906b2
Grip margin is relative to the world's zoom.
2014-02-05 10:17:14 +01:00
Maciej Suminski
cf9e5417d0
Added possibility for editing pads properties.
2014-02-05 09:05:27 +01:00
Maciej Suminski
244be39ffa
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
9ee9c93ef8
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
980e325ba1
Edit tool may still be activated if it was invoked with no selected items.
2014-02-04 14:21:29 +01:00
Maciej Suminski
e954736b5d
Protection against non consecutive net codes.
2014-02-04 13:40:39 +01:00
Maciej Suminski
0833cd4b61
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
a792a0e7ea
remove wxApp()::FindLibraryPath() usages from Pcbnew. Use environment variable substitution.
2014-02-03 15:39:42 -06:00
Maciej Suminski
51bf04932b
Enabled PNS for selected items.
2014-02-03 18:09:17 +01:00
Maciej Suminski
8cfc8b0157
Ratsnest lines for zones are removed when a zone is dragged.
2014-02-03 17:40:39 +01:00