jean-pierre charras
78ab5c3f07
Fix ASCII code used in accelerator menus for BkSp key (Linux only)
...
On Linux (GTK?) the accelerator key BkSp, when used in menus must be coded as "\t\b" and not "\tBkSp".
However, On Windows, it must be "\tBkSp".
Joys of multi-platform development.
2018-08-09 17:55:08 +02:00
jean-pierre charras
3eb3db02c3
Cvpcb, DISPLAY_FOOTPRINTS_FRAME: add measurement and zoom to selection tools.
2018-08-09 11:15:43 +02:00
Jeff Young
f6f1c1e944
Performance optimization for MSW directory time-stamping.
2018-08-08 20:07:26 +02:00
Jeff Young
80f713f366
Revert accidental commit.
2018-08-08 12:51:31 +01:00
Jeff Young
d63d0c40ef
Performance optimisation for MSW direcotry timestamping.
2018-08-07 20:16:25 +01:00
Jeff Young
7c04d8be1c
Double opening speed of PCBs with ground and/or power planes.
...
(Or any other boards with complicated zones.)
2018-08-07 17:01:44 +01:00
Seth Hillbrand
539ca5aa3b
Adjust RTree default floating point to use double
...
This reverts the previous work-around 7d62f14dd
for the RTree splitting
degeneracy that was placed prior to v5. It appears not to have worked
for all systems. In its place, we use doubles instead of floats to
calculate the bounding box when filling the RTree. This keeps maximum
volume items from overlapping with the system boundary in test cases.
2018-08-06 16:55:00 -07:00
Wayne Stambaugh
bbfce129bb
Fix windows build error.
2018-08-06 10:26:22 -04:00
Jeff Young
be1d6113d6
More performance enhancements.
...
Be more intelligent about sorting lib tree items. (Footprint
entries, for instance, come out of an already-sorted list.)
Don't recreate menus twice when laoding Footprint Editor.
More pervasive use of WX_FILENAME to avoid expensive calls to
wxFileName::SplitPath() and string concatenation.
For POSIX kernels do all the work on the file-system side so we
don't have to keep converting back and forth between encodings.
2018-08-06 13:49:27 +01:00
Jeff Young
0fbe702043
Layout adjustments to Choose Symbol and Choose Footprint.
2018-08-06 13:48:17 +01:00
Jeff Young
08bcec9ac0
Make sure symbols have a valid lib nickname...
...
... even if the library pointer isn't set.
Also fixes the "every symbol as a Unit A" issue.
Fixes: lp:1785438
* https://bugs.launchpad.net/kicad/+bug/1785438
2018-08-06 13:48:17 +01:00
Jeff Young
146ab1eb32
Small performance improvement loading stroke font.
2018-08-06 13:48:17 +01:00
Jeff Young
d52429fc3c
Read footprint info cache when fpinfo requested via kiway.
2018-08-06 13:48:17 +01:00
Jeff Young
c1cf7c32c3
Performance enhancement: don't process envvars in configs.
2018-08-06 13:48:17 +01:00
Jeff Young
0cd75b2556
Flip show/hide of controls so they're shown when doing layout.
...
Fixes: lp:1785113
* https://bugs.launchpad.net/kicad/+bug/1785113
2018-08-06 13:48:17 +01:00
jean-pierre charras
8cb94f09c3
Allows bigger image size in DIALOG_IMAGE_EDITOR
2018-08-04 19:10:20 +02:00
jean-pierre charras
0902bbabc5
Allows bigger max page size (120x120") in Eeschema, Gerbview and Page Layout Editor
...
Due to its small internal unit, pcbnew still have a max page size of 48x48"
Fixes: lp:1785155
https://bugs.launchpad.net/kicad/+bug/1785155
2018-08-04 17:19:48 +02:00
jean-pierre charras
c32fcd1403
Fix commit f3f814e622
that breaks the compilation on Windows.
...
Fiw also a minor compil warning
2018-08-04 17:18:15 +02:00
Jeff Young
fd3e57d67f
Layout adjustments and language-change-updating for modview.
2018-08-04 12:59:04 +01:00
Jeff Young
345f57ccb8
Fix bug in optimization of wxExpandEnvVars.
...
Fixes: lp:1785228
* https://bugs.launchpad.net/kicad/+bug/1785228
2018-08-04 11:29:24 +01:00
Jeff Young
33fc74a04d
Performance enhancements for Footprint Editor construction.
2018-08-04 10:29:17 +01:00
Jeff Young
f3f814e622
Performance enhancements for footprint info list.
...
Cache the footprint info on disk (in the project).
Move timestamp-generation (and checking) to the filesystem so the
above will be bullet-proof.
Rewrite some wxWidgets classes for performance (see common.h).
2018-08-04 10:29:17 +01:00
Jeff Young
5e8e2570ba
Fix thread-safety issue with some global wxStrings.
...
These cause intermittent crashes in footprint loading. See
comments in code.
2018-08-04 10:29:17 +01:00
qu1ck
72fcf46430
Extend swig definitions to contain SHAPE_LINE_CHAIN and VECTOR2I
2018-08-02 17:03:11 -04:00
Wayne Stambaugh
8e7d6063fd
Minor dialog and frame window improvements.
...
Drop all uses of wxRAISED_BORDER and wxSUNKEN_BORDER from dialogs and
panels used in main frame windows.
Drop use of wxSP_3DSASH options on all wxSplitterWindow definitions.
Minor dialog alignment and spacing fixes.
2018-08-02 13:00:41 -04:00
Jeff Young
d8d4f75fa1
Fix button order and genralize Exit dialog so it can be shared more.
...
This also fixes a bunch of bugs where an error during save would
still close the window (rather than cancelling the close action).
Fixes: lp:1785034
* https://bugs.launchpad.net/kicad/+bug/1785034
2018-08-02 11:01:03 +01:00
Jeff Young
3a39ea21a2
Library pointer can be null even when LibId is set.
2018-08-01 15:27:54 +01:00
Jeff Young
2155dd6591
Simplify ExitDialog and make platform-compliant.
...
Put the buttons in platform-compliant order.
Get rid of SaveMultiOptions in favour of repeated standard save
dialogs with a "Apply to all" checkbox.
Fixes: lp:1783444
* https://bugs.launchpad.net/kicad/+bug/1783444
2018-08-01 15:27:54 +01:00
Jeff Young
72338a7002
Remove more dead code.
2018-08-01 12:36:55 +01:00
Jeff Young
6dbfa793e8
Fix GTK compile errors and remove dead code.
...
Fixes: lp:1783993
* https://bugs.launchpad.net/kicad/+bug/1783993
2018-08-01 12:23:16 +01:00
Jeff Young
98849bde96
Generalize OSX &Cancel fix to work for other languages.
...
Fixes: lp:1784350
* https://bugs.launchpad.net/kicad/+bug/1784350
2018-08-01 10:56:45 +01:00
Jeff Young
4e3c84e733
Score leaf nodes in LIB_TREEs, not just symbols & footprints.
...
Fixes: lp:1783251
* https://bugs.launchpad.net/kicad/+bug/1783251
2018-08-01 09:35:46 +01:00
Jeff Young
f8a5e2c1c8
Performance enhancements in fp loading, string cmp, etc.
...
Knocks about 1/3 off the first footprint load, and more than 1/2
off subsequent loads.
2018-08-01 09:35:46 +01:00
Jeff Young
0a35c5c97e
Convert Footprint Editor to component tree.
...
Fixes: lp:1784178
* https://bugs.launchpad.net/kicad/+bug/1784178
Fixes: lp:1780363
* https://bugs.launchpad.net/kicad/+bug/1780363
2018-08-01 09:35:46 +01:00
Jeff Young
b400565880
Convert Place Footprint to component tree.
2018-08-01 09:35:45 +01:00
Jeff Young
97f7bd4cb9
Push component tree down into common.
...
Precondition to reusing component tree for footprints.
2018-08-01 09:35:45 +01:00
Mark van Doesburg
91e3d21d68
Eeschema: Copy attributes from eagle.
...
Eagle allows for variants of components to be listed in the schematic.
This patch copies the variant data into the imported schematic item,
prefixing the alternate variant names with "VARIANT_" and keeping the
alternate values.
2018-07-31 11:58:01 -07:00
jean-pierre charras
5a2e171f9e
fix a few wxWidgets asserts.
2018-07-31 13:16:58 +02:00
Seth Hillbrand
d8abfcf827
Revert "Extend swig definitions to contain SHAPE_LINE_CHAIN and VECTOR2I"
...
This reverts commit be0e44e2ae
.
Causes build failure with gcc 4.9.2
2018-07-30 10:19:05 -07:00
qu1ck
be0e44e2ae
Extend swig definitions to contain SHAPE_LINE_CHAIN and VECTOR2I
2018-07-30 08:45:26 -07:00
jean-pierre charras
3a02e54411
Opengl fix: bitmaps having a width not multiple of 4 were incorrectly drawn.
...
This fix draws a "sub bitmap" having a width multiple of 4.
(The loss of 1 to 3 pixels in horizontal size should be not really noticeable)
2018-07-30 16:19:35 +02:00
Tomasz Wlostowski
516cf47946
OPENGL_GAL: optimized JP's bitmap drawing function to use textures
2018-07-30 00:13:37 +02:00
jean-pierre charras
fefc7b8172
GAL canvases: add DrawBitmap(), using a basic brute force algo for OpenGL, and a optimized code for Cairo. In this fix the brute force means draw each pixel as a rectangle. It works fine, but could be optimized.
2018-07-30 00:13:30 +02:00
jean-pierre charras
70d08a2364
Fix incorrect scaling factor to draw the page limits (GAL mode)
2018-07-28 18:36:51 +02:00
jean-pierre charras
3e5cd86288
Fix a few wxWidgets minor asserts. Fix a compil warning
2018-07-28 10:31:04 +02:00
jean-pierre charras
361366bbbc
wxHtmlWindow doesn't render HTML text when used only inside our .kiface dll. (Windows and Linux)
...
* When a wxHtmlWindow is used *only* in a dll/so module, the Html text is displayed
* as plain text.
* this patch forces wxHtmlWinParser initialization to avoid this issue
*see https://groups.google.com/forum/#!topic/wx-users/FF0zv5qGAT0
Fixes: lp:1783544
https://bugs.launchpad.net/kicad/+bug/1783544
2018-07-28 07:19:22 +02:00
jean-pierre charras
46f5d81d6e
Fixes in DIALOG_IMAGE_EDITOR (minor bug fix, and code update).
...
Fixes: lp:1783796
https://bugs.launchpad.net/kicad/+bug/1783796
2018-07-27 16:30:13 +02:00
Jeff Young
3c2c5c38ad
Make icon buttons slightly wider for MSW.
...
Fixes: lp:1783703
* https://bugs.launchpad.net/kicad/+bug/1783703
2018-07-27 14:58:19 +01:00
Jeff Young
40f5ca0bf7
Fix copy/paste error in numeric evaluator.
...
Fixes: lp:1783991
* https://bugs.launchpad.net/kicad/+bug/1783991
2018-07-27 14:58:19 +01:00
Jeff Young
4dfae16c1b
Consolidate to single menu actions for save, revert, etc.
...
There's no point in having both Save Symbol and Save Library when
only one can be selected at a time.
Also cleans up a bunch of extraneous icons, and fixes a few
copy/paste errors in menus and toolbars.
2018-07-27 14:58:19 +01:00