jean-pierre charras
eaa1e6d594
Fix a collision with a Windows define and our use of the same var name.
We use IN for INCH as units, but IN is defined in a Windows header
10 months ago
Jeff Young
f951497a4f
Code brevity.
10 months ago
Wayne Stambaugh
5c8f4697ca
Common folder housekeeping part 1.
1 year ago
Seth Hillbrand
0b2d4d4879
Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo. Avoids needing to
repeatly update.
Also updates AUTHORS.txt from current repo with contributor names
1 year ago
Seth Hillbrand
ba5ad70b68
Add default rotation format
2 years ago
Seth Hillbrand
fc93c63a19
Revert "Remove trailing zeros from all values"
This reverts commit abd0388794 .
2 years ago
Seth Hillbrand
abd0388794
Remove trailing zeros from all values
If we are showing a value to the end user, we should avoid unneeded
precision
2 years ago
Seth Hillbrand
d8b6e28890
Excise the remaining unused ifdef EESCHEMA
Common units are now shared between programs, so we need a different way
other than compile definitions to choose how many digits to display.
2 years ago
Alex Shvartzkop
bd59fb7768
Fix spelling mistake.
2 years ago
Alex Shvartzkop
93581607a8
Don't print unnecessary digits after decimal point for imperial units.
1 nm = 0.00003937 mils = 0.00000003937 inches,
So there's no reason to print more decimal places than 5 for mils and 8 for inches.
Related: https://gitlab.com/kicad/code/kicad/-/issues/15539
2 years ago
Jeff Young
c051e66830
Handle units switch in board stackup.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16361
2 years ago
jean-pierre charras
4a5859cc45
Fix compil warnings.
2 years ago
Johannes Pfister
4177b64c27
Add micrometre and centimetre units
2 years ago
Jeff Young
2c02c26af4
Centralize min/opt/max printing.
2 years ago
Jeff Young
5793abd310
Fix build on MacOS.
2 years ago
Alex Shvartzkop
471bfb1131
Add EDA_UNIT_UTILS::ParseInternalUnits
2 years ago
Jeff Young
f2c2017068
Formatting. No (intentional) functional changes.
3 years ago
Johannes Pfister
a87550a2c6
When importing legacy PCB dimension: Use automatic dimension when Unit couldn't be determined
3 years ago
Marek Roszko
aacc9746e3
Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
3 years ago
Marek Roszko
b2421c7d9f
Fix tiny bug in double 2 string formatting
- I forgot to handle the trailing dots when I added the fmt variant
- UIDouble2Str (the original) lacked the comma check
- Add unit test lol
3 years ago
Marek Roszko
1edf84d756
More wxS ugh
3 years ago
Jeff Young
b52106aa37
Formatting and commenting.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Marek Roszko
63295cfb9e
Remove unused vars
3 years ago
Marek Roszko
ece23d434b
Split up Double2Str to a format function to make its use case clear
3 years ago
Marek Roszko
59a9ddac20
Convert the primary file io formatter for doubles
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Marek Roszko
a8a75a91e1
Try and fix file encoding
3 years ago
Marek Roszko
03aa63bd50
Move 5 helpers to EDA_UNIT_UTILS since they aren't iu specific
3 years ago
Marek Roszko
e928b2d8fd
Split EDA_UNITS out from common.
5 years ago
Marek Roszko
1d559108c8
Move LOCALE_IO out of common.h
5 years ago
Jeff Young
ee9d8fcd15
Collapse Pcbnew & ModEdit display and edit settings.
(Prep work for reusing them with a custom shape editor.)
6 years ago
Jeff Young
909f850d16
Give panels the correct parent (the treebook, not the dialog).
(cherry picked from commit 7338533)
(cherry picked from commit 3ce75be)
8 years ago
Jeff Young
7841f8a466
Unified preferences dialog framework.
(cherry picked from commit 8ee3e77)
8 years ago
Jeff Young
8b4e8fcd26
Dialog changes to go with new menu structure.
Move sketch mode stuff from Display Settings to View menu.
Move Icons in Menus from View menu to General Preferences.
Move Icon Scaling from Display Settings to General Preferences.
Regroup some items in both dialogs for better comprehension.
8 years ago
Simon Richter
59c81976dc
Explicitly mark overriding functions.
9 years ago
Chris Pavlina
9eef653625
Remove legacy option to zoom to selection on middle mouse button
This feature was not reliably available: neither pl_editor nor GAL supported
it. It has been replaced over the past few commits with a new zoom-to-selection
tool available in all applications and modes.
10 years ago
Wayne Stambaugh
86b39ca3c0
More missing source license fixes.
11 years ago
Lorenzo Marcantonio
342016b692
Constification of HitTest and GetParent
In particular HitTest for zones *do not* select the nearest vertex/edge as a side effect
12 years ago
Lorenzo Marcantonio
85c5aa22c6
Constification of HitTest and GetParent
In particular HitTest for zones *do not* select the nearest vertex/edge as a side effect
12 years ago
jean-pierre charras
f0dc54340d
All: new middle mouse pan feature, from lajos kamocsay (and jp charras for some enhancements).
If enable in preference menu, allow the pan with drag mouse with middle button down.
both unlimited and limited pan is allowed.
14 years ago
Dick Hollenbeck
b8a0ab4c52
switch to <> for includes from "" per conversation with Jean-Pierre and Wayne, adjust search paths
14 years ago
Wayne Stambaugh
b9b341dce2
PCB common library global variable removal and other minor fixes.
* Move auto save time global variables into PCB_EDIT_FRAME object.
* Move footprint library name list global variable int PCB_EDIT_FRAME
object.
* Improve library back up and temporary file error message strings and make
them translatable.
* PCBNew string unification.
* Translate French code names and comments.
* Coding style policy and Doxygen comment fixes.
14 years ago
Wayne Stambaugh
1010601a78
PCBNew control update bug fixes, fixes lp:725963.
* Fix grid select box update bug on context menu.
* Fix via size and track width select box update bugs.
* Fix layer pair indicator button update bug.
* Fix auto track width tool bar control enable bug.
* Fix via size and track width select status bug in context menu.
* Fix layer select box and layer control widget select bug when current
layer is removed.
* Add virtual function to notify objects derived from EDA_DRAW_FRAME that
the units setting has changed.
* Coding policy class naming fixes.
15 years ago
jean-pierre charras
cdd9e8cabe
Pcbnew: code cleanup
15 years ago
charras
5732d815c6
Work on colors handling, and others changes. see changelog.
hide/show rastnest in pcbnew is currently not working, will be fixed soon
16 years ago
charras
c2ea4a0aff
code cleaning
16 years ago
charras
29e217d310
pcbnew Rewrite the GUI relative to the tracks widths and vias diameters and drills selection and edition, for compatibility with new netclass approach.
16 years ago
charras
360eda0f3c
Pcbnew: Added: Option to show the via area while creating a new track.
Useful in compact designs to know hos to place a via during track creation.
17 years ago