Commit Graph

40 Commits

Author SHA1 Message Date
jean-pierre charras 8762859c6d Fix a display issue in wxStyledTextCtrl widgets in dialogs (Windows specific).
It happens when a text is using some esoteric unicode chars.
Fixes #15314
https://gitlab.com/kicad/code/kicad/-/issues/15314
2023-08-03 18:35:49 +02:00
Paweł Płóciennik 614755f24e Dialogs autocompletion with backspace support. 2023-02-16 23:28:27 +00:00
Wayne Stambaugh 3b722de637 Code cleaning. 2023-02-08 08:26:54 -05:00
jean-pierre charras ddd4178c62 PL editor: Add ( missing in commit 0d903d43) test for invalid parameter. 2023-02-08 08:38:31 +01:00
jean-pierre charras 0d903d43a0 pagelayout editor: Add tests for invalid parameters.
Invalid parameters are repeat count < 1, size < 0 and default size < 0.01 mm
2023-02-07 12:53:34 +01:00
Jeff Young 7ffdfb1067 Clear Scintilla undo history after setting initial text.
Fixes https://gitlab.com/kicad/code/kicad/issues/12650
2022-10-14 22:01:20 +01:00
Mark Roszko b00178adb3 Nuke base_units from orbit 2022-09-16 04:38:10 +00:00
Jeff Young 52bc2511cd Add a radioButton mode to IMAGE_BUTTON.
Fixes https://gitlab.com/kicad/code/kicad/issues/11797
2022-06-12 20:09:46 +01:00
Roberto Fernandez Bautista 0015574a60 ${SHEETNAME} represents the sheet name + introduce ${SHEETPATH}
CHANGED: The text variable ${SHEETNAME} now always represents the name of the
sheet when used anywhere in the schematic editor, including the title block

ADDED: A new text variable ${SHEETPATH} which is replaced with the path to the
current sheet - e.g. "/Sheet 1/Sheet 2".

To ensure backward compatibility, the default drawing sheet now uses
${SHEETPATH}. Custom drawing sheets will need to be manually edited.
2022-04-09 15:45:58 +01:00
Jeff Young e8a543f1ea Colors for text in PL_Editor and Eeschema.
Fixes https://gitlab.com/kicad/code/kicad/issues/1952
2022-03-31 19:43:56 +01:00
Jeff Young b55bda8d6f Font support for drawing sheet editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/10306
2022-02-28 18:05:26 +00:00
Jeff Young fbab335128 Retire DPOINT and DSIZE. 2022-01-20 21:10:04 +00:00
Jeff Young e61144d45a Finish with EDA_ANGLE. 2022-01-16 21:15:40 +00:00
Jeff Young 86cb57f4a7 Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont 2021-12-28 22:15:20 +00:00
jean-pierre charras 054f8ed7bd pagelayout_editor: fix end of line char in wxStyledTextCtrl (is now always '\n')
Fixes #9806
https://gitlab.com/kicad/code/kicad/issues/9806
2021-11-29 10:26:06 +01:00
Seth Hillbrand 3da97ed02f Reword keyword message 2021-09-20 11:57:08 -07:00
Jeff Young 2479e1d7b1 Improve common settings property grouping.
Also moves apply-icon-scaling-to-fonts to its own checkbox.  (We used
to try to infer when to do it, but that turns out to be a rathole.)
2021-09-16 18:31:44 +01:00
Marek Roszko 4a81e4c945 Replace funny symbol with less funny word
Seems wrongish still but the symbol doesn't remember at all properly
2021-09-14 19:25:16 -04:00
Jeff Young 3aae3c6f65 Dark mode for a bunch of HTML dialogs.
WX_HTML_REPORT_BOX
WX_HTML_REPORT_PANEL
HTML_MESSAGEBOX
DIALOG_DISPLAY_HTML_TEXT

Fixes https://gitlab.com/kicad/code/kicad/issues/9157

Fixes https://gitlab.com/kicad/code/kicad/issues/9156
2021-09-14 21:23:57 +01:00
jean-pierre charras 4be8ebafbc Pl_editor: add a small help about variable texts in text properties. 2021-09-12 11:02:17 +02:00
Jeff Young 9c78e4cf54 Mac needs different font size handling than MSW & GTK.
Mac already uses diverse font sizes (for instance, smaller fonts for
radio button groups), and the anti-aliasing is a lot better.  The
other platforms need a more limited range of sizes.

Fixes https://gitlab.com/kicad/code/kicad/issues/8608
2021-09-11 23:40:31 +01:00
Jeff Young fbee62fc15 Tie font size scaling to when automatic icon scaling fails.
It appears that SetSymbolicSize() and ConvertDialogToPixes() fail
under the same circumstances.
2021-09-11 15:29:51 +01:00
Jeff Young 7a822b55aa Another round of changes to attempt to fix the GTK font size issue.
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
2021-09-10 15:59:50 +01:00
Jeff Young f013dbc7c4 More uniform handling of status fonts.
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
2021-09-08 21:34:22 +01:00
Wayne Stambaugh 4c457b5ed3 More NULL expunging. 2021-07-18 14:31:55 -04:00
Jeff Young 0c2ac9a711 Move GUI font code to common.
This also allows the Mac fixes for font facenames to be more
compartmentalized.

Fixes https://gitlab.com/kicad/code/kicad/issues/8657
2021-06-29 18:27:58 +01:00
Jeff Young d296bec5b8 Differentiate aSingleLine mode for SCINTILLA_TRICKS
This allows us to avoid the monospaced font (along with the tab-stop
handling), and process a <return> as an OK rather than just <shift> +
<return>.

Fixes https://gitlab.com/kicad/code/kicad/issues/8425
2021-06-28 11:20:12 +01:00
luz paz f968fc8719 Fix source comment / documentation typos 2021-06-09 19:32:58 +00:00
Jeff Young c4cabb38d5 More worksheet -> drawing sheet cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8516
2021-05-31 12:26:44 +01:00
jean-pierre charras 6da25337a9 Pl_editor: Try to fix an issue on wxGTK in PROPERTIES_FRAME
(scroll bars not always shown).
2021-03-08 15:02:05 +01:00
Jeff Young a3b9e8ddb4 Round 2 of Worksheet -> Drawing Sheet. 2021-02-23 11:57:44 +00:00
Jeff Young 69f8f79a42 Compress space out of pagelayout properties.
This allows the Apply button to appear on a MacBook Pro screen without
scrolling.
2021-01-13 21:22:24 +00:00
jean-pierre charras 431616981b pl_editor: fix a typo that copy the end pos Y prm into the end pos X prm
Fixes #7088
https://gitlab.com/kicad/code/kicad/issues/7088
2021-01-13 16:18:44 +01:00
jean-pierre charras 5d099bb789 pl_editor: fix a typo that copy the X repeat prm into the Y repeat prm
Fixes #7078
https://gitlab.com/kicad/code/kicad/issues/7078
2021-01-12 20:33:52 +01:00
Marek Roszko 8ff521819e Rearrange the item tab in pleditor properties
This will match how the v7 properties will probably work anyway.
It's a scrolled control, cram in controls widthwise to some arbitrary standard
2020-12-08 23:08:54 -05:00
Marek Roszko bf7daac975 Connect thickness to unit binder 2020-12-08 23:08:54 -05:00
Marek Roszko 6d678f4780 Bind the pleditor properties to units
We also go out of our way to ensure we still maintain the millimeter storage format
2020-12-08 23:08:53 -05:00
jean-pierre charras d28fa6c492 fix typo 2020-11-30 19:13:14 +01:00
jean-pierre charras 1fd862a362 Page layout editor: fix missing scrollbars in properties panel (GTK specific)
Fixes #4878
https://gitlab.com/kicad/code/kicad/issues/4878
2020-11-30 18:50:36 +01:00
Marek Roszko 377960d4be Push the 2 pleditor dialogs into the dialogs folder 2020-11-16 10:10:24 -05:00
Renamed from pagelayout_editor/properties_frame.cpp (Browse further)