Wayne Stambaugh
0f6dfb782e
Pcbnew: footprint viewer wxAUI improvements.
...
* Make the tool bar dockable.
* Enable the overflow control in the tool bar in case the it does not fit in
it's parent window.
* Fix some wxAuiPaneInfo usage issues.
* Remove unused wxAuiPaneInfo objects.
* Move perspective saving and loading into EDA_BASE_FRAME object in preparation
for extending this to all frame windows.
2013-12-06 19:33:16 -05:00
jean-pierre charras
3d4fa72b51
Plot functions: some enhancements in mirror mode (Pcbnew specific): boards are mirrored horizontally, and the page layout is no more mirrored, and therefore is always readable.
2013-12-06 19:31:15 +01:00
Maciej Suminski
b67faf780e
Corrected drawing of zone outlines.
2013-12-06 11:25:23 +01:00
Maciej Suminski
3afbd8f2e1
Corrected polygon outline width.
2013-12-06 10:00:51 +01:00
Dick Hollenbeck
f37fb67e5a
merge lp:~cern-kicad/kicad/bugfix_1256302 from Orson
2013-12-05 12:55:07 -06:00
Maciej Suminski
0a51662c0b
Changed std::wstring to wxString.
2013-12-05 16:00:24 +01:00
Maciej Suminski
84af2eb8e1
Fixed SetCurrentContext() assert, that was firing on closure of pcbnew, when the OpenGL backend was active.
2013-12-05 14:54:30 +01:00
Dick Hollenbeck
8cc9b69017
Add a test script for plugin testing, and some asserts, no bugs fixed.
2013-12-03 12:37:21 -06:00
Maciej Suminski
12098fe113
Fixed non ASCII characters drawing using GAL.
2013-12-03 11:00:52 +01:00
jean-pierre charras
53053d0693
Pcbnew: fix issue in modedit, undo command: moved fields were not drawn afetr undo (due to incorrect flags state)
...
Fix incorrect initialization of lib names column in EDA_LIST_DIALOG. (Only the row 0 was initialized)
2013-12-03 09:50:58 +01:00
Maciej Suminski
47b6dd34af
Pcbnew: fixed disappearance of selected items after GAL switching.
2013-12-02 13:04:26 -05:00
Robert Yates
4bd71d676f
Boost::Context support for ARM platform.
2013-12-02 10:59:09 -05:00
Maciej Suminski
9a860c355a
Fixed disappearance of selected items after GAL switching.
2013-12-02 11:34:07 +01:00
Wayne Stambaugh
43eb124964
Pcbnew: footprint library table fixes.
...
* Replace illegal file system characters when reading legacy libraries to
prevent FPID parsing errors and allow saving to PRETTY file format.
* Create validator to filter illegal file system characters from footprint
name text edit controls to prevent issues when saving to PRETTY file format.
* Add missing source file licenses and some minor coding policy fixes.
2013-11-29 13:29:41 -05:00
jean-pierre charras
4897ea8c35
eeschema, Pcbnew: fix Bug #1255822 (incorrect position of multiline texts when plotting them)
2013-11-29 09:13:43 +01:00
Dick Hollenbeck
fa2edf8547
*.kicad_mod omits (at 0 0) for brevity.
2013-11-28 10:40:23 -06:00
Dick Hollenbeck
dcefaf675c
API Documentation improvements, especially noticable when viewing doxygen output.
2013-11-28 09:41:10 -06:00
Dick Hollenbeck
82b2558d96
Even more clarification on "Github" plugin usage
2013-11-27 14:15:11 -06:00
Dick Hollenbeck
466ecca932
Better GITHUB class header documentation, better eeschema library field dialog stretching and title.
2013-11-27 14:06:41 -06:00
jean-pierre charras
96adde2d52
Pcbnew: fix Bug #1255568 (relative to .pos file creation). Minor compil warnings fixes
2013-11-27 20:38:59 +01:00
jean-pierre charras
ecafc030ef
Pcbnew: Autoplace functions: renamed spread footprint functions. Rewritten.
...
Now footprints, after loaded by reading a netlist are grouped by sheets by the footprints spread function, and the grouping is better.
Rename 2 files. Fix minor issues. Clean code
2013-11-27 14:20:42 +01:00
Maciej Suminski
08ecc5005f
Profile counter simplified, so it should be more portable.
2013-11-27 09:46:59 +01:00
Dick Hollenbeck
7b70f2835c
Ensure a unique FootprintEnumerate() return list in GITHUB_PLUGIN when using COW.
2013-11-27 00:51:49 -06:00
Dick Hollenbeck
d8b046a361
*) Implement "Copy On Write" (COW) support in GITHUB_PLUGIN. See class header
...
comment for GITHUB_PLUGIN which should flow into Doxygen output.
*) Rewrote:
PCB_BASE_FRAME::Save_Module_In_Library(): now uses fp-lib-table and PROPERTIES.
PCB_EDIT_FRAME::ArchiveModulesOnBoard(): now can archive to any writable library type.
PCB_BASE_FRAME::SelectLibrary(): is now generic for selecting a library, not just the active library.
2013-11-27 00:04:04 -06:00
Dick Hollenbeck
0b01c898f0
PLUGINs which implement FootprintLibOptions() should call base class's implementation too.
2013-11-26 11:06:54 -06:00
Maciej Suminski
dd89260db3
Added ratsnest for GAL
2013-11-25 16:50:03 +01:00
jean-pierre charras
534a04206b
Fix bugs in autoplac.cpp
2013-11-25 12:29:16 +01:00
Andrey Fedorushkov
25eaf50586
pcbnew: fix error build autoplace.cpp in linux gcc-4.8.2
...
template: add file fp-lib-table.for-eagle
2013-11-25 10:10:24 +04:00
jean-pierre charras
e259a150fb
All: GetBoundingBox returns now a const EDA_RECT.
...
Pcbnew: Code cleaning and bug fix in autoplace functions
Dialog exchange footprints has now a separate button to update the .cmp file, only on request.
2013-11-24 18:48:14 +01:00
jean-pierre charras
6bc8d6a231
Pcbnew: Fix a crash on exit when an item was previously deleted. Fix not working footprint exchange functions
2013-11-22 20:47:10 +01:00
jean-pierre charras
8122846078
Pcbnew: Code cleaning and some minor fixes.
2013-11-20 18:26:47 +01:00
Dick Hollenbeck
2be3ebd401
FIX: regression loading of SMD pads within EAGLE_PLUGIN::FootprintLoad().
...
FIX: unique renaming of eagle footprints by substituting illegal : and / with URL encoding technique.
ADD: window resize border to DisplayError() windows.
2013-11-20 10:35:03 -06:00
Wayne Stambaugh
f114bed0d2
Pcbnew: minor target properties dialog improvements.
...
* Make spacing between controls and dialog frame consistent.
* Use default size to allow wxWigdets to determine optimal dialog size.
* Set OK button as default so return key works properly.
2013-11-20 11:03:09 -05:00
Dick Hollenbeck
413b776194
FIX: wx 2.8 convert to UTF8 differently than 2.9 caused problems in DIALOG_FP_PLUGIN_OPTIONS.
2013-11-19 14:38:29 -06:00
Wayne Stambaugh
af18baba7b
Pcbnew: fix graphic item undo/redo bug. (--fixes lp:1252264)
...
* Use std::swap for PCB_LINE_T items in SwapData().
* Use std::swap for PCB_MODULE_EDGE_T items in SwapData().
* Add assignment operator to EDGE_MODULE object.
* Move code from copy method to assignment operator.
* Minor coding policy fixes.
2013-11-19 13:58:12 -05:00
Dick Hollenbeck
bcd3470b20
*) Switch to later environment variable expansion in fp-lib-table.
...
*) Save library nickname in APP so upon module editor re-entry last is re-used.
*) Fix bug editing fp-lib-table Description field.
2013-11-19 11:24:45 -06:00
jean-pierre charras
801d72c55a
Eeszchema: Minor fixes.
...
Code cleanup: remove m_Son member in EDA_ITEM which was never used.
2013-11-19 17:27:13 +01:00
Dick Hollenbeck
6ea28cb69d
more useable, in the face of wx 2.8 vs. 3.0 differences.
2013-11-18 16:42:01 -06:00
Dick Hollenbeck
eed87fc699
more EDA_LIST_DIALOG usability enhancements, compiler warning, coding standards
2013-11-18 13:27:27 -06:00
jean-pierre charras
6c1a67684e
Fix some minor issues
2013-11-18 18:52:18 +01:00
Dick Hollenbeck
e5b6055e7d
Show the "Description" field from fp-lib-table in pcbnew's module editor 'set current library' dialog.
2013-11-18 10:04:23 -06:00
Dick Hollenbeck
1b01dba827
Show KISYSMOD in DIALOG_FP_LIB_TABLE even if it has not been referenced by a URI.
2013-11-15 08:36:11 -06:00
Dick Hollenbeck
4aa52ddd60
Show KIPRJMOD in DIALOG_FP_LIB_TABLE even if it has not been referenced by a URI.
2013-11-15 08:11:46 -06:00
jean-pierre charras
ca927e4227
Minor code cleaning: Remove unused file, remove obsolete or useless defines
2013-11-15 10:28:31 +01:00
jean-pierre charras
5f2f80f480
rtree.h: suppress compil warnings about not initialized vars.
...
Pcbnew: add WIN32_LEAN_AND_MEAN define in github_plugin.cpp. Note: this define is already in use in avhttp build (Windows specific)
2013-11-14 19:00:57 +01:00
Dick Hollenbeck
5c2b9d6011
Completion of DIALOG_FP_PLUGIN_OPTIONS
2013-11-12 14:49:17 -06:00
Maciej Suminski
66def25eab
Commit Launchpad merge request 194664.
...
* Modify error handling for OpenGL backend.
* Correct Doxygen comments notation.
2013-11-12 14:29:01 -05:00
Dick Hollenbeck
5b89f42738
wxString PCB_BASE_FRAME::SelectFootprintFromLibBrowser() now returns empty string on abort.
...
GITHUB_PLUGIN uses redirected URL to remove one HTTP hit time.
2013-11-11 19:14:17 -06:00
Wayne Stambaugh
882a0bcb7d
Footprint library table fixes.
...
* Pcbnew: catch exceptions when saving changes to footprint library table.
* Pcbnew: update footprint viewer library list if open when footprint library
table changes.
* CvPcb: update library list when footprint library table changes.
* Minor coding policy fixes.
2013-11-11 20:05:23 -05:00
Dick Hollenbeck
629d397508
*) Add PLUGIN::FootprintLibOptions( PROPERTIES* ), and extend DIALOG_FP_PLUGIN_OPTIONS to use it.
...
*) Move button handlers to LEFT MOUSE CLICK from COMMAND events, so wxGrid focus is not lost.
*) Sketch out the concept of COW support for the GITHUB_PLUGIN in its @todo.
2013-11-11 18:17:27 -06:00
Maciej Suminski
ee289e4a30
Modified error handling for OpenGL backend, now error messages should be visible.
2013-11-11 10:48:49 +01:00
jean-pierre charras
83ccbc7add
Pcbnew: fix a build issue when BUILD_GITHUB_PLUGIN is enabled.
2013-11-11 09:01:04 +01:00
jean-pierre charras
621b92cd5e
All: under mingw32+msys: fix an issue when using Cmake version >= 2.8.5 which uses by default a response file.
...
This response file is not expanded under mingw3 2 (mingw/gcc bug?), and the list of include paths, found in this file, is not taken in account.
Now, under mingw32+msys, when not cross-compiling, the response file is disabled.
Cvpcb, Pcbnew: fix a list of libs which should be added only when cross-compiling:
Previously, they were always added, which creates an issue with mingw/msy/ gcc 2.8.
Now they are added only when cross-compiling (this issue was noticeable only with msys+mingw version 2.8)
2013-11-10 20:15:09 +01:00
Brian Sidebotham
8750485c6d
* Build OpenSSL from source using the OpenSSL-CMake project on Windows with MinGW when no specifying OPENSSL_ROOT_DIR
2013-11-08 07:06:14 +00:00
Maciej Sumiński
27863c0bc9
Patches one by Lorenzo, one by Orson
2013-11-06 11:17:42 -06:00
Dick Hollenbeck
f0215a7009
add fix_eagle_package_name() and apply it in two places to re-spell eagle package names
2013-11-06 10:53:44 -06:00
Wayne Stambaugh
3a06962045
Set project footprint library table path environment variable before loading table.
2013-11-06 11:10:44 -05:00
jean-pierre charras
c760a1c545
Pcbnew: Fix incorrect bounding box calculation of texts. Only noticeable with boards conveted from Eagle, which are using other text justification than center.
...
Eagle plugin: filter and replace not allowed chars in FPID(-':' and '/') by _ or -, if they are used in Eagle footprint names (otherwise, boards converted and saved under kicad_pcb format are not readable by Pcbnew).
2013-11-05 18:12:27 +01:00
jean-pierre charras
a4c3485440
painter: better size of pad nums and pad netnames in opengl mode
2013-11-04 18:18:19 +01:00
Dick Hollenbeck
e8e223630a
filter better the unsupported layers coming into EAGLE_PLUGIN::Load()
2013-11-03 20:09:28 -06:00
Wayne Stambaugh
7b68bdce5f
Fix debug builds on wxWidgets 2.8.
2013-11-03 13:15:46 -05:00
jean-pierre charras
8884e47051
Opengl display: fix incorrect text size of pad num and pad netname.
2013-11-03 15:06:16 +01:00
Dick Hollenbeck
7c352e2038
Orson's changes
2013-11-02 15:06:13 -05:00
Dick Hollenbeck
2b20d3ef64
make PROPERTIES::Value() not inline
2013-11-02 14:49:46 -05:00
Dick Hollenbeck
0d5a7f3224
*) Start removing some of the problematic "<%s>.." format strings, which won't
...
pass into an HTML rendering panel and otherwise look goofey.
*) Implement BOARD::Move() can call it from EAGLE_PLUGIN::Load().
*) When USE_FP_LIB_TABLE, tolerate blank nicknames in FPIDs coming from eeschema.
See the switch for this in pcbnew/netlist.cpp as ALLOW_PARTIAL_FPID.
*) Add an assert and a try catch block to figure out that View does not
like some eagle pcb board. bitset::set() is getting a -1 value and firing
an exception.
2013-11-01 19:24:38 -05:00
jean-pierre charras
4bc0cdd8b3
Footprint wizards: fix issues.
2013-11-01 21:51:37 +01:00
jean-pierre charras
3511c95836
Make footprint wizards compatible with FPID changes (MODULE::SetLibRef changed to MODULE::SetFPID)
2013-11-01 16:29:50 +01:00
jean-pierre charras
5456ada1bd
Pcbnew, compiled with python support: Under windows, force python environment, if the folder python27_us is found in Kicad bin folder (<kicad>/bin, and if python27_us environment is not fully set (i.e. if python27_us is not in the path, or if PYTHONPATH id not defined.)
2013-11-01 14:02:10 +01:00
Orson
1fa3ef37c3
Fix redraw issue in modedit a modview, with GAL
2013-11-01 13:56:20 +01:00
Maciej Suminski
a5d8c49d75
Added some comments and missing parameter names for pcb_painter.h.
2013-11-01 10:06:50 +01:00
Dick Hollenbeck
0e69125217
cvpcb was not filtering on the current library when USE_FP_LIB_TABLE.
...
<%s> being replaced with '%s' because the former in invisible in html panels.
Cure some compiler warnings.
2013-10-31 16:30:57 -05:00
Dick Hollenbeck
e49a3275e2
more fp_lib_table dialog work
2013-10-30 10:33:51 -05:00
Dick Hollenbeck
30964aec70
merge lp:~cern-kicad/kicad/pcbnew_segfix from Orson
2013-10-30 07:46:36 -05:00
jean-pierre charras
4e39d09d1d
Add undo command to dxf file import. Change improper use of __WXDEBUG__ to DEBUG in class_board_connected_item.cpp.
2013-10-30 13:14:45 +01:00
Maciej Suminski
162b70ce5d
Fixed segfault occurring on rendering backend switch when pcbnew is run from the main KiCad dialog.
2013-10-30 11:50:09 +01:00
Dick Hollenbeck
4b49d5d355
memory leak, comments
2013-10-30 00:14:11 -05:00
Maciej Suminski
25919e8393
Merged upstream.
2013-10-28 21:34:06 +01:00
Maciej Suminski
1080a4e6f9
GAL is not activated by default. Late OpenGL backend initializatization.
2013-10-28 16:51:56 +01:00
jean-pierre charras
b97769bf5c
dxf import: minor enhancements in dialog. Update libdfxw from git, and uncrustify it. add a test dfx file
2013-10-28 09:06:38 +01:00
jean-pierre charras
fd1fc0f1d1
Fix typo
2013-10-26 20:17:44 +02:00
jean-pierre charras
eeddfcbec2
Pcbnew, dxf import: Add dialog to choose the board import layer, and the position of dxf coordinates origin
2013-10-26 09:03:06 +02:00
jean-pierre charras
fe2b9bd444
Add patch from Baranovskiy Konstantin about vertical justification of multiline texts.
...
Fix issues created by this patch.
Note, this fix slightly changes the vertical position of these texts.
This is not really a problem in eeschema, but in pcbnew this is perhaps more annoying, if the verical multiline text is critical.
Fix a very minor issue for vertical justification of single line texts in dxf import.
2013-10-25 14:16:18 +02:00
jean-pierre charras
cdd2967087
Add a DXF file import to create board outlines
2013-10-24 18:44:38 +02:00
Dick Hollenbeck
e61505149a
more DIALOG_FP_PLUGIN_OPTIONS work, make PROPERTIES a map instead of a hashtable for alphabetical iteration.
2013-10-24 08:58:05 -05:00
Dick Hollenbeck
38a0857a69
*) Factor out Cut, Copy, and Paste for wxGrid into class common/GRID_TRICKS.
...
*) Use it on 3 grids total in DIALOG_FP_PLUGIN_OPTIONS and DIALOG_FP_LIB_TABLE.
*) Fix bug when pasting "(fp_lib_table" text into FP_LIB_TABLE.
2013-10-23 13:56:03 -05:00
Dick Hollenbeck
f36cdde500
Grab pending (unsaved) wxGridCellEditor cell text and stuff into fp_lib_table.
2013-10-22 14:29:37 -05:00
Dick Hollenbeck
6de1bfb64c
When pasting into a fp_lib_table with no initial rows, start at column zero, not -1.
2013-10-22 09:29:48 -05:00
jean-pierre charras
a9dbdbc822
Pcbnew: fix bug 1199340
2013-10-20 17:39:15 +02:00
jean-pierre charras
3ad682a898
pl_editor: add a PPI (pixel per inch) setup option for bitmaps.
2013-10-19 12:29:54 +02:00
Wayne Stambaugh
55f69da613
Minor message box improvements
...
* Create a generic yes/no/cancel dialog from DIALOG_EXIT.
* Make DIALOG_EXIT return wxID_YES instead of wxID_OK so it is consistent
with the standard message dialogs.
* Add missing license to confirm.h and confirm.cpp.
* Change Eeschema message dialog when loading a schematic if the current
schematic is modified to be more consistent with the exit dialog.
* Change Pcbnew message dialog when loading a board if the current board
is modified to be more consistent with the exit dialog.
* Remove some Eeschema block debug logging code left over from my last
commit.
2013-10-18 09:32:22 -04:00
Dick Hollenbeck
33822213e6
fix formatting goofs
2013-10-17 13:47:46 -05:00
Dick Hollenbeck
cb05bedf08
Throw exception if accessing a GITHUB library from build not supporting GITHUB.
2013-10-17 13:46:20 -05:00
Wayne Stambaugh
f44eb0f8ba
Add PDF output to Pcbnew plot dialog. (fixes 1p:1188972)
2013-10-15 14:22:35 -04:00
Maciej Suminski
4bf49bf6a6
Renamed TOOL_MOUSE_BUTTONS constants to avoid name conflict with Windows MB_RIGHT constant.
2013-10-15 10:41:00 +02:00
Maciej Suminski
f9f23806ed
Mainly case changes.
2013-10-14 20:40:36 +02:00
Dick Hollenbeck
3569e16519
Planning for PCB_BASE_FRAME::Save_Module_In_Library and PCB_EDIT_FRAME::ArchiveModulesOnBoard rewrites
2013-10-14 11:54:00 -05:00
Wayne Stambaugh
efcd8987d9
Fix Pcbnew block rotate hot key and minor code cleaning.
2013-10-14 11:29:16 -04:00
Maciej Suminski
e66a4ce337
Namespace KiGfx->KIGFX.
...
template<> -> template <>
Some more reformatting according to uncrustify results.
2013-10-14 16:13:35 +02:00
Maciej Suminski
8253899a70
Converted tabs to spaces. Removed trailing whitespaces.
2013-10-14 13:43:57 +02:00
Maciej Suminski
a876fc788d
Merged 'testing'
2013-10-14 11:40:14 +02:00