Jeff Young
e9da02e2d5
Only reserve hotkeys for focused textCtrls that are editabled.
Otherwise just send Ctrl-C to the disabled control, and everything
else to the tool framework.
Fixes https://gitlab.com/kicad/code/kicad/issues/4801
5 years ago
Seth Hillbrand
7f991ce855
Revert "Set DoubleBuffering to reduce flicker"
This reverts commit 106259f6e6 .
5 years ago
Seth Hillbrand
e19a7910f8
Revert "Revert "Set DoubleBuffering to reduce flicker""
This reverts commit c18cab6154 .
5 years ago
Seth Hillbrand
af501a7e4e
Revert "Fix compile issue on OSX."
This reverts commit 7cbaeae265 .
5 years ago
Seth Hillbrand
90e927f55a
Revert "Protect SetDoubleBuffered against wx3.1"
This reverts commit 30eef410a9 .
5 years ago
Jon Evans
d349b24f7a
Unlink board from project before close
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4876
5 years ago
Jon Evans
97c360aa9b
Fix saving of default netclass
This was broken as a side-effect of 3939b31
Default netclass doesn't get the "nets" member
but still needs to be added to the array of classes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4860
5 years ago
Jeff Young
efc3f8c29d
Remove unused nets when updating PCB.
Fixes https://gitlab.com/kicad/code/kicad/issues/4247
5 years ago
Jeff Young
940570e9ec
Catch exception so that we at least throw up an error message.
Fixes https://gitlab.com/kicad/code/kicad/issues/4677
5 years ago
Jeff Young
dd61f6f019
Use pin graphic only for rubber-band selection hit-testing.
Fixes https://gitlab.com/kicad/code/kicad/issues/4138
5 years ago
jean-pierre charras
d34f8fd4b5
Prepare removing creation of a wxPaintEvent instance, not allowed in 3.1.4 wxWidgets
5 years ago
Jeff Young
1cd2a51db2
Make undo/redo lists protected.
5 years ago
Jeff Young
fa9937701f
Undo for Edit Component's LibId.
5 years ago
Jeff Young
7340c97ef9
Undo for schematic-wide operations.
Editing value/footprint fields of multi-unit components.
Find/Change.
Annotation.
Back annotation.
Fixes https://gitlab.com/kicad/code/kicad/issues/2122
Fixes https://gitlab.com/kicad/code/kicad/issues/4869
Fixes https://gitlab.com/kicad/code/kicad/issues/3933
Fixes https://gitlab.com/kicad/code/kicad/issues/4871
Fixes https://gitlab.com/kicad/code/kicad/issues/3899
5 years ago
Seth Hillbrand
30eef410a9
Protect SetDoubleBuffered against wx3.1
In 3.0, SetDoubleBuffered() is defined only under MSW and Linux. In
3.1, they change the routine to be a virtual function and so we need to
protect against redefining an existing function (Thanks Ian for pointing
this out!)
5 years ago
Seth Hillbrand
9f09c3872f
Ensure file reads always use the C-locale variant
Str2Double assumes current locale. We usually switch the locale when
reading files but we should be using the function that explicitly gets
the C-locale conversion.
5 years ago
Jon Evans
a2041073ee
Skip project backup in standalone mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4867
5 years ago
Jon Evans
2ea42196ed
Ensure high contrast mode gets a proper default value
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4864
5 years ago
Jon Evans
a94a81b9a8
GAL: Handle text opacity in OpenGL
Vertex alpha was being dropped in the font shader
5 years ago
Jon Evans
2f31bf278b
Fix layer hotkey dispatch
Hotkeys received by more than one tool need AF_NOTIFY
5 years ago
Jon Evans
5d118b0700
More visibility settings infrastructure
ADDED: Three-state high contrast mode action
ADDED: Save contrast mode in local settings
Also some initial infrastructure for layer presets
5 years ago
Wayne Stambaugh
abcbfaa481
Fix ngspice version information issue.
The config.h header for ngspice is not packaged with all platforms so
use pkg-config to fetch the version information when available. When
pkg-config is not available, check if the ngspice/config.h file is
installed on the system before including it to build the ngspice version
string. If neither pkg-config or ngspice/config.h is available set the
version string to "unknown".
Fixes https://gitlab.com/kicad/code/kicad/issues/4851
5 years ago
Wayne Stambaugh
e254d8cd29
Fix about dialog padding on GTK builds.
As expected, the required padding difference between wxStaticText and
wxHyperlinkCtrl varies depending on the platform. Restore the original
padding which was correct for windows and add the extra padding required
for GTK builds. Someone with MacOS should verify if the padding looks
correct and change the padding for MacOS as required.
5 years ago
Jeff Young
7cbaeae265
Fix compile issue on OSX.
(OSX is always double-buffered so wxWidgets left that method out
of the OSX impl. Might have been nicer if they had just no-op'ed
it.)
5 years ago
Jeff Young
9b92b275de
Remove vestiages of old open-PCB-for-settings hack.
We used to have to open a PCB_EDIT_FRAME to get the settings for
the footprint editor and footprint viewer. This necessitated some
special processing when opening a PCB_EDIT_FRAME to actually edit
a board as it might already be open but unloaded.
Since the new settings architecture allows the footprint editor and
footprint viewer to init themselves we no longer need the special-
case code.
5 years ago
Jeff Young
e325d2e18f
Allow Net Inspector to create, rename and delete nets.
ADDED: create/edit/delete nets in PCBnew Net Inspector
ADDED: update from PCB now allows updating of changed nets
Fixes https://gitlab.com/kicad/code/kicad/issues/1996
5 years ago
Jon Evans
570cc61b3f
Give kicad manager frame a tool dispatcher
Without this, tool hotkeys don't work. Also need to make sure
that the log text field doesn't get initial focus.
I am a bit confused about how this was working on other
platforms besides Windows...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4801
5 years ago
Mario Luzeiro
74c6f6ab82
3D-Viewer: set missing scale and position to the list
Fixes https://gitlab.com/kicad/code/kicad/issues/4826
5 years ago
Mario Luzeiro
ef7d7477d0
3D-Viewer: Remove not used list
5 years ago
Seth Hillbrand
c18cab6154
Revert "Set DoubleBuffering to reduce flicker"
This reverts commit 106259f6e6 .
In its place, we set double buffering to only menubars in an attempt to
find a soluton to #4785
Fixes https://gitlab.com/kicad/code/kicad/issues/4863
5 years ago
Simon Richter
c407e96b14
std::min/std::max requires <algorithm>
5 years ago
Peter Montgomery
73168a9405
Gerbview: Keep existing layer selected if user clicks Cancel on 'Select Layer' dialog
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4752
5 years ago
jean-pierre charras
a1a8eca844
Gerbview: fix crash in LAYERS_MAP_DIALOG when trying to use a stored choice,
if no choice exists (new install for instance)
Fixes #4862
https://gitlab.com/kicad/code/kicad/issues/4862
5 years ago
Ben Ellis
4486b0b6d6
Fixed bounds checking. Not the root cause but keeps things from crashing.
5 years ago
Jon Evans
d248736f08
Draw ratsnest with colors if color data is available
5 years ago
Jon Evans
72b08f2b18
ADDED: Hide ratsnest for specific nets
List of hidden nets stored in project local settings
Hide/Show actions in context menu only for now, will
add them to some more GUI places soon.
Ref https://gitlab.com/kicad/code/kicad/-/issues/1951
5 years ago
Seth Hillbrand
95bfb64d48
Update templating for hash values
This cleans the template for hash_combine to provide a single signature
for basic hash_combine, recursing to a null function.
5 years ago
Seth Hillbrand
106259f6e6
Set DoubleBuffering to reduce flicker
This sets double buffering for GTK and MSW to minimize flicker when
redrawing window elements.
Fixes https://gitlab.com/kicad/code/kicad/issues/4785
5 years ago
jean-pierre charras
2675f69479
Hyperlynx export: use the board current stackup parameters instead of fixed prms
Fixes #4856
https://gitlab.com/kicad/code/kicad/issues/4856
5 years ago
jean-pierre charras
ef0ae8a8ee
Gerbview: show a message instead of an error when trying to open a job file as plot file.
Fixes #4844
https://gitlab.com/kicad/code/kicad/issues/4844
5 years ago
Seth Hillbrand
7201e9d7eb
pcbnew: adjust component hash for GenCAD export
The previous hash was not unique for changes in integer/boolean values.
Generic hash_combine routines provide decent coverage for limited extra
cycles.
5 years ago
Jon Evans
4a5792cb87
Fix bus unfolding in the wake of bus entry changes
Since bus entry shape is not a thing anymore,
unfolding routine can be simplified to just use size
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4853
5 years ago
Jon Evans
66bdd37637
Connectivity optimizations
Cache names of potential driving items
Change a few data structures based on profiling
5 years ago
Jon Evans
fc92fb076e
Cache sheet path to string conversion in UpdateSymbolInstances
Profiling of large designs (with many hierarchical sheets)
showed that this can be a huge (4x) speed up to schematic
loading times.
5 years ago
Ian McInerney
af24a5d5a7
Properly dismiss the grid combobox editor when it loses focus
The old way of checking for focus loss caused GTK to be unable to
even open the combobox. This way checks for the event sent when the
list closes and uses that to close the grid editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/4617
5 years ago
Jon Evans
bb596ac139
Add Move with Reference to Special Tools menu
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4838
5 years ago
Jeff Young
998c216487
Remove some nag tests which keep you from doing a DRC.
Fixes https://gitlab.com/kicad/code/kicad/issues/4845
5 years ago
Jeff Young
9806d846b2
Remove redundant Text Filter toggle icon and fix <Enter>.
(Enter in the filter textbox should execute the search, not close
the dialog.)
Fixes https://gitlab.com/kicad/code/kicad/issues/4768
5 years ago
Jon Evans
b1b9cef5fb
Full-project automatic backup system
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4763
5 years ago
jean-pierre charras
5226d6b4df
libcommon build: add NGSPICE_INCLUDE_DIR in include list (similar to Eeschema build).
Useful when ngspice is build by the developer in a specific folder.
Fix also an other minor compil warning.
Fixes #4851
https://gitlab.com/kicad/code/kicad/issues/4851
5 years ago