Jeff Young
7ec2a1f09c
Allow Scintilla-created clipboard to be accessed after quit.
2 years ago
Jeff Young
a12d79cd13
Performance improvements for multi-page dialogs.
2 years ago
Jeff Young
f341ab9b00
Bug fixes for flipping tables.
Also adds support for tabbing between table cells in the
table editor dialog.
Also adds support for calling the table editor dialog from
edit properties on a table selection.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17337
2 years ago
Jeff Young
e17d81cf6d
Re-enter auto-complete on a ctrl-space.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16445
2 years ago
jean-pierre charras
a60411b159
Fix a few compil and Coverity minor warnings.
2 years ago
Jeff Young
34769cec63
Filter line-endings from single-line Scintilla editors.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15793
2 years ago
Jeff Young
686dfba77a
ADDED autocomplete for value field in Symbol Properties dialog.
2 years ago
Jeff Young
c2f2247ae3
Don't process SCINTILLA_TRICKS onCharHook when autocomplete is active.
(ESC being the exception that proves the rule.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15001
2 years ago
Jeff Young
b3235ce667
Handle some Mac-standard keyboard shortcuts in Scintilla.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14973
2 years ago
Jeff Young
1518ddde74
Push much of text var autocomplete down into SCINTILLA_TRICKS.
Shared code == fewer bugs. Well, in theory anyway....
2 years ago
Jeff Young
e1db4e0694
Add backspace modifier handling to SCINTILLA_TRICKS.
Fixes https://gitlab.com/kicad/code/kicad/issues/13910
2 years ago
Mike Williams
b32ba16da4
UI: Add Numpad Enter as "Return" equivalent in missing places
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14244
3 years ago
Jeff Young
87eb4401e3
Add Scintilla support to WX_GRID.
3 years ago
Jeff Young
bb1eb94aa0
Fix typo.
Fixes https://gitlab.com/kicad/code/kicad/issues/12467
3 years ago
Jeff Young
7e8b6083f4
Try to find a better brace highlight color strategy.
Fixes https://gitlab.com/kicad/code/kicad/issues/12467
3 years ago
Jeff Young
1b104f20b6
Don't give Scintilla a colour with alpha; it doesn't know what to do.
Fixes https://gitlab.com/kicad/code/kicad/issues/10829
3 years ago
Jeff Young
c3a5947fe6
Make Scintilla paste a separate undo operation.
Fixes https://gitlab.com/kicad/code/kicad/issues/11756
3 years ago
Jeff Young
dead84e7a1
A right-to-left single-char sel followed by typing leaves cursor the same.
Fixes https://gitlab.com/kicad/code/kicad/issues/11349
4 years ago
Jeff Young
3fddf0414b
A bit of wxT().
4 years ago
Scott Candey
23fdbe4b21
Common: Corrects Mac OS text navigation shortcuts in Scintilla
Ctrl-A moves cursor to beginning of current line in text box.
Ctrl-E moves cursor to the end of the line.
This change makes navigation in Scintilla text boxes consistent
with other text boxes in KiCad.
Fixes https://gitlab.com/kicad/code/kicad/issues/9996
4 years ago
Mikolaj Wielgus
9efbeaa064
Dark theme support for SPICE model editor
4 years ago
jean-pierre charras
33454ef8d2
Ensure the end of line char is '\n' in wxStyledTextCtrl when using SCINTILLA_TRICKS.
4 years ago
Jeff Young
212666e987
Allow theme to change text color of highlighted text.
Fixes https://gitlab.com/kicad/code/kicad/issues/9716
4 years ago
Seth Hillbrand
766a09c338
Remove autocomplete when we lose focus
Prevents the excess dropdown from persisting over windows
Fixes https://gitlab.com/kicad/code/kicad/issues/9651
4 years ago
Jon Evans
43c85771eb
Fix paste into Scintilla fields on macOS
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9473
4 years ago
Seth Hillbrand
4852a8afa1
Set Scintilla cursor color for themes
Updates cursor to be visible even in dark themes
Fixes https://gitlab.com/kicad/code/kicad/issues/9398
4 years ago
Jeff Young
c38de1dcaf
Pull back some 7.0 fixes to Custom Rules code completion.
4 years ago
Jeff Young
7a993c0211
Add support mode for dark mode to SCINTILLA_TRICKS.
Also removes the return value from the BITMAP_STORE's themeChanged
method as it will provide the wrong answer for the second frame it's
called on.
Also hooked up ACTION_TOOLBAR, the app launcher, and the project tree
to the wx event for system color changes so they change on the fly.
Fixes https://gitlab.com/kicad/code/kicad/issues/6026
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Jeff Young
a2cb3e916a
Add a couple of OSX-standard keyboard cmds to Scintilla.
Fixes https://gitlab.com/kicad/code/kicad/issues/8865
4 years ago
Jeff Young
9975b8fb10
Attempt to handle deleting double-byte chars in Scintilla.
4 years ago
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
4 years ago
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
4 years ago
Jeff Young
cbe7f9057b
Add link to wxWidgets bug report.
4 years ago
Jeff Young
27804e40e2
Go back to using space-width for tabs (instead of max-char-width).
The max-char-width impl was buggy and never applied to PCBNew anyway.
Plus the stroke font has a max-char-width of 2.8 time the space width,
so it made for really wide tab spacing.
Also fixes a bug where the Scintilla editors weren't getting a
monospace font on Mac. (This bug may also exist on the other
platforms, but each would need its own fix.)
Also moves more of the Scintalla customizations to SCINTILLA_TRICKS
where they can be shared.
Fixes https://gitlab.com/kicad/code/kicad/issues/8666
4 years ago
Marek Roszko
4df3cb912d
Remove another leaky wx/log.h header
4 years ago
Roberto Fernandez Bautista
9aedeae5c3
Don't log error messages when using the clipboard
wxClipboard::GetData()and wxClipboard::SetData() both log a "wxLogSysError" error-level message (see for example: https://github.com/wxWidgets/wxWidgets/blob/v3.1.4/src/msw/clipbrd.cpp#L703 ). This logged message gets displayed as a messagebox to the user.
The logging can be disabled temporarily by creating a wxLogNull object. See https://docs.wxwidgets.org/3.0/classwx_log_null.html
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6956
5 years ago
Seth Hillbrand
02f91c52a0
Avoid nag confirmation in scintilla
If we need to confirm abandoning changes, we need to do it in the dialog
where we check for dialog changes.
5 years ago
Jeff Young
d5d9372839
Don't cancel dialog when esc-ing out of autocomplete.
5 years ago
jean-pierre charras
e4675ee9a6
Fix missing include (linux).
5 years ago
jean-pierre charras
539ac4c214
Remove a few include<wx/wx.h> in many files that do not actually use this include.
5 years ago
Jeff Young
53389442b8
Add Ctrl+A (select all) to scintilla tricks.
Fixes https://gitlab.com/kicad/code/kicad/issues/5538
5 years ago
Jeff Young
f2e0b4a6f6
Work around wxWidgets to produce a Ctrl-/.
Fixes https://gitlab.com/kicad/code/kicad/issues/5480
5 years ago
Jeff Young
4354fa7bde
Another try at a solution for ctrl-/.
Fixes https://gitlab.com/kicad/code/kicad/issues/5480
5 years ago
Jeff Young
c1889cefcf
Try to make block-quote/unquote more keyboard-variation-friendly.
Fixes https://gitlab.com/kicad/code/kicad/issues/git
5 years ago
Jeff Young
3573c8b967
ADDED hotkey for comment/uncomment line(s) in Scintilla.
Useful primarily for DRC Rules editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/5480
5 years ago
Jeff Young
0b17dbd123
Fix nesting issues in the DRC rule expression code generator.
We were executing function calls multiple times because we were
processing them at a depth the traversal algorithm wasn't expecting.
5 years ago
Jeff Young
de6314e3b5
Convert smart quotes and dashes to ASCII in DRC rules.
Fixes https://gitlab.com/kicad/code/kicad/issues/5135
5 years ago
Jeff Young
86c9adbcba
Add auto-completion for DRC rule function calls.
5 years ago
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