Jeff Young
3d135189d3
Fix grid resizing issues.
Normally we don't want to resize when a control is open (such as a
drop-down), but it appears safe enough when all the controls are
just text-button controls.
Fixes https://gitlab.com/kicad/code/kicad/issues/6090
5 years ago
jean-pierre charras
f6b4b66a86
Avoid include wx/wx.h in many files that do not actually use this include.
Including wx.h includes the full set of wxWidgets include files, that is not good,
and can create some conflicts with some Windows headers on msys2.
5 years ago
Jeff Young
e782794f96
Flesh out object properties and DRC Rule syntax help.
5 years ago
Jeff Young
15c136ead2
Make a bunch of help dialogs modeless.
Fixes https://gitlab.com/kicad/code/kicad/issues/5334
5 years ago
Ian McInerney
fedc6519cd
Preserve the externally defined variables in the configure paths dialog
Previously the variables that were defined externally weren't being
readded to the variable map, so they would not appear in the dialog
the next time.
5 years ago
Simon Richter
c407e96b14
std::min/std::max requires <algorithm>
5 years ago
jean-pierre charras
b7e7d6fd5c
DIALOG_CONFIGURE_PATHS: Fix crash when deleting the last item in list.
When the list (in 3D search path list) contains only one item, when trying
to remove this last item, the crash happened.
6 years ago
Jeff Young
4990d1e7b2
Variable substitution framework.
This implements editing of variables and moving SCH_FIELDs,
TEXTE_MODULEs, TEXTE_PCB and worksheet items over to the new
framework.
6 years ago
Jeff Young
535033c5c9
Enable editing of sheet fields.
6 years ago
jean-pierre charras
4d3e86d795
DIALOG_CONFIGURE_PATHS: do not allow users to define the env var KIPRJMOD
It always defines the project path, and should never be defined by users.
Fixes: lp:1824912
https://bugs.launchpad.net/kicad/+bug/1824912
7 years ago
Jeff Young
69f003ba4a
Remove previous cell selection fixes in favour of slow-click hack.
wxWidgets has several bugs that result in cell editors being closed
right after they're opened. There are two wxWidgets hacks to
partially address this: the SetInSetFocus() hack, and a slow-click
hack. We used to try and work-around these bugs ourselves for
single-click access, but this changelist moves those over to
wxWidget's slow-click hack.
Fixes: lp:1817965
* https://bugs.launchpad.net/kicad/+bug/1817965
7 years ago
jean-pierre charras
3b97961ccb
minor fixes (Coverity warnings and compil warning)
7 years ago
Jeff Young
f6e6ac3162
Don't issue errors for externally-defined env variables.
Fixes: lp:1809300
* https://bugs.launchpad.net/kicad/+bug/1809300
7 years ago
John Beard
3da0d03c36
Centralise utilities for env variables.
This puts generic logic for KiCad environment vars in
one place.
Also updates the DIALOG_CONFIGURE_PATHS help to document
the new KICAD_USER_TEMPLATE_DIR and KICAD_TEMPLATE_DIR.
7 years ago
Thomas Pointhuber
c170e8930b
Fix focus bug and possible race-condition for path deletion dialog
Fixes: lp:1788873
* https://bugs.launchpad.net/kicad/+bug/1788873
7 years ago
Jeff Young
c90a3efea2
Change KIDIALOG hashing algorithm to __FILE__ + __LINE__.
Using Title + Message wasn't working for all the dialogs which
did substitutions in the message (which was a lot of them).
Fixes: lp:1789348
* https://bugs.launchpad.net/kicad/+bug/1789348
7 years ago
Jeff Young
21eea1f567
Remove HasFocus() checks (which don't work on all platforms) in favour of row highlighting which is visible without focus.
Fixes: lp:1788873
* https://bugs.launchpad.net/kicad/+bug/1788873
7 years ago
Jeff Young
895fc0b536
Add a cell editor for paths and use it in Configure Paths.
7 years ago
Jeff Young
b90a261d5c
More safety fixes for uncommitted grid changes.
7 years ago
Jeff Young
c1df78d531
Finish project frame library table editing.
Fixes: lp:1782761
* https://bugs.launchpad.net/kicad/+bug/1782761
7 years ago
Jeff Young
0010ad37d1
In-place editing for footprint TEXTE_MODULEs.
Fixes: lp:1102168
* https://bugs.launchpad.net/kicad/+bug/1102168
Fixes: lp:1779913
* https://bugs.launchpad.net/kicad/+bug/1779913
(cherry picked from commit 83781ab)
8 years ago
Jeff Young
8f0aa68ab8
Fold 3D Search Paths dialog into Configure Paths.
Use in-place editing for both.
Fixes: lp:1743823
* https://bugs.launchpad.net/kicad/+bug/1743823
(cherry picked from commit 33622cd)
8 years ago