Commit Graph

1156 Commits

Author SHA1 Message Date
Tig Kindel
bf7dbcacda merged 2024-01-08 12:25:53 -07:00
Tig Kindel
660a467007 merged 2024-01-08 12:16:09 -07:00
joebart457
3150d43979 Fixes #3144. TextView Autocomplete does not insert capital letters (#3145)
* Fixes #3144. TextView Autocomplete does not insert capital letters

* Fixes #3144. Fix unit test for fix of TextView Autocomplete does not insert capital letters
2024-01-08 12:11:11 -07:00
BDisp
d69de86ba4 Fix Disposing unit tests that sometimes throws because some instances aren't cleared on others unit tests classes. (#3142) 2024-01-08 12:08:48 -07:00
Tig Kindel
a6092aedc6 Merges in #3019 changes. Makes OnResizeNeeded non-virtual. If we find a use-case where someone wants to override it we can change this back. 2024-01-08 11:55:46 -07:00
Tig Kindel
d4ee0b382b Added 'Bounds =' unit tests 2024-01-08 09:07:47 -07:00
Tig Kindel
9d23aea396 Merge branch 'v2_develop' into v2_fixes_3127_CheckAbsoulte 2024-01-08 02:06:42 -07:00
BDisp
b2aeb3887d Fixes #3128. Some Key class unit tests does not run. (#3129)
* Fixes #3128. Some Key class unit tests does not run.

* Disabling duplicates warnings.

* Removes duplicate InlineData.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-01-08 02:06:13 -07:00
Tig Kindel
5e93af47eb Updated API docs. Cleaned up code. 2024-01-08 01:53:42 -07:00
Tig Kindel
a9098d5ac2 All tests pass!!!!!!! 2024-01-08 01:07:46 -07:00
Tig Kindel
2d4948a18d All AutoSize tests pass! 2024-01-08 01:04:52 -07:00
Tig Kindel
dcdaf1009d Hcked ScrolLBarView unit tests to pass 2024-01-07 23:57:29 -07:00
Tig Kindel
c4dc3fee29 Fixed TabView 2024-01-07 23:32:50 -07:00
Tig Kindel
169f34d573 Fixed TextView 2024-01-07 21:22:58 -07:00
Tig Kindel
47118c7eb3 Fixed bad Dialog test. Was cleary invalid 2024-01-07 20:31:40 -07:00
Tig Kindel
da0281c7ae Debugging Dialog test failure 2024-01-07 20:16:30 -07:00
Tig
a374389675 Merge branch 'v2_develop' into v2_toplevel_fill 2024-01-07 19:27:23 -07:00
BDisp
93c6b1fe44 Fixes #3124. 0001 for year in DateField. (#3131)
* Prefix private fields with underscore.

* Rename to SetInitialProperties.

* Ensures clear all selection if there isn't selecting.

* Fix format and replace duplicate key bindings for DeleteCharLeft.

* Test the new key binding for DeleteCharLeft.

* Fix formating when typing with selection which may broken the format.

* Fix copy/paste.

* Test data from 01/01/0001 to 12/31/9999.
2024-01-07 19:25:20 -07:00
Tig Kindel
454d7277c8 Fixed more minor issues in tests 2024-01-07 19:21:06 -07:00
Tig Kindel
aae93723ff Fixed contextmenu 2024-01-07 18:48:57 -07:00
Tig Kindel
0c80fbcba2 Fixed hexview 2024-01-07 18:47:44 -07:00
Tig Kindel
0e49b2aa60 Fixed every thing but autosize scenarios?? 2024-01-07 18:24:39 -07:00
Tig Kindel
d5fe8b48fc re-reverting 2024-01-07 15:09:53 -07:00
Tig Kindel
2086d498bb reverting 2024-01-07 14:53:50 -07:00
Tig Kindel
19f9501ac8 merged 2024-01-07 14:48:30 -07:00
Tig Kindel
fe4b60a0b0 Removed TopLevel.Create 2024-01-07 14:20:01 -07:00
Tig Kindel
98024dc7f7 Added test from #3136 2024-01-07 13:46:24 -07:00
Tig Kindel
5ab8d4d545 Fixed Create and related unit tests 2024-01-07 07:39:29 -07:00
Tig Kindel
e0e9413283 reorg'd Toplevel tests 2024-01-07 07:35:40 -07:00
Tig Kindel
a2d3d27845 Cleaned up code 2024-01-07 06:44:51 -07:00
Tig Kindel
77186b2912 Cleaned up code 2024-01-07 06:41:01 -07:00
Tig Kindel
748cdfd803 Removed unused API and cleaned up code 2024-01-07 06:38:08 -07:00
Tig Kindel
d6f634bfb9 New test 2024-01-07 06:22:23 -07:00
Tig Kindel
bf0745361a Commented test TODOs 2024-01-07 06:21:04 -07:00
Tig Kindel
1c9cfc4b34 Broke out AutoSize = false tests to new file 2024-01-06 10:24:15 -07:00
Tig Kindel
bdb5fb283e Moved AutoSize specific tests out of Pos/Dim tests 2024-01-06 09:58:10 -07:00
Tig Kindel
a7449df5af Dim/Pos != null WIP 2024-01-06 09:35:55 -07:00
Tig Kindel
42eb0c36cb Removes CheckAbsoulte and updates unit tests to match 2024-01-05 12:01:59 -07:00
Tig
c6570a5bfd Fixes #3098 & #3099 - Slider bugs (#3121)
* Fixed bugs

* Fixed #3098

* Fixed a slew of issues

* Fixed a slew more of issues

* Code cleanup. Fixed unit test failure

* Code cleanup.

* Code cleanup.

* Code cleanup.
2024-01-05 07:38:54 -07:00
Tig
7af54f369d Robustness improvements in prep for implementing Virtual Terminal Sequences (#3094)
* Fixes #2616. Support combining sequences that don't normalize

* Decouples Application from ConsoleDriver in TestHelpers

* Updates driver tests to match new arch

* Start on making all driver tests test all drivers

* Improves handling if combining marks.

* Fix unit tests fails.

* Fix unit tests fails.

* Handling combining mask.

* Tying to fix this unit test that sometimes fail.

* Add support for combining mask on NetDriver.

* Enable CombiningMarks as List<Rune>.

* Prevents combining marks on invalid runes default and space.

* Formatting for CI tests.

* Fix non-normalized combining mark to add 1 to Col.

* Reformatting for retest the CI.

* Forces non-normalized CMs to be ignored.

* Initial experiment

* Created ANSiDriver. Updated UI Catalog command line handling

* Fixed ForceDriver logic

* Fixed ForceDriver logic

* Updating P/Invoke

* Force16 colors WIP

* Fixed 16 colo mode

* Updated unit tests

* UI catalog tweak

* Added chinese scenario from bdisp

* Disabled AnsiDriver unit tests for now.

* Code cleanup

* Initial commit (fork from v2_fixes_2610_WT_VTS)

* Code cleanup

* Removed nativemethods.txt

* Removed not needed native stuff

* Code cleanup

* Ensures command line handler doesn't eat exceptions

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2024-01-04 22:35:18 -07:00
BDisp
e2a59050fe Fixes #3122. Shift-Tab is broken on TextView. (#3123) 2024-01-04 22:15:14 -07:00
BDisp
0484fc8bf9 Cleans up key handling in drivers (was "fixes VkeyPacketSimulator is broken") (#3078)
* Fixes #3054. VkeyPacketSimulator scenario is broken.

* Fix some key handle and unit tests.

* Remove unnecessary conditional.

* Improves key handling.

* Also allow map capslock to shift with accented characters.

* Change to MemberData.

* Remove unnecessary using.

* Fix merge errors.

* Fixes #3095. WindowsDriver should return the mask keys to IsShift, IsAlt and IsCtrl return the right value.

* Modifiers keys are valid to be handled on key down and key up.

* Map KeyCode.Enter to ConsoleKey.Enter and vice versa.

* Updated ScanCodeMapping table with readable constants

* Documented bugs

* Implemented mapping using MapVirtualKeyEx

* Implemented mapping using MapVirtualKeyEx

* Changed KeyCode special keys to match ConsoleKey values + max unicode codepoint

* Fixed bogus CollectionNavigator impl and tests

* Nuked DeleteChar. renamed InsertChar to Insert

* KeyCode.Enter = ConsoleKey.Enter, not \n

* Code cleanup

* Added diag for keyboard layout name

* Fixed AltGr support (hopefully)

* Simplified code

* Simplified KeyCode by removing ShiftKeys

* Fixed TextView

* Code cleanup

* Fixes cursesdriver (somewhat)

* Code cleanup

* netdriver wip

* Fixed netdriver under WSL

* Turned off debug spew

* Removed old code

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: Tig Kindel <tig@kindel.com>
2024-01-04 12:37:01 -07:00
Tig
bc41d9bc09 Fixes #2465 - Simplify/Enforce LayoutStyle.Absolute when X, Y, Width, and/or Height are null or Absolute() (#2467)
* Merged v2_develop; updated API docs

* Code cleanup

* Fixed code that was using Dim/Pos before IsInit

* Fixed ComboBox using Bounds before IsInitalized and grabbing focus when it shouldn't

* Fixed ComboBox tests. Fixed FileDialog

* Fixed all !IsInitalized warnings

* Fixed AllviewsTester

* Fixed CharMap scenario

* Fixed ColorPicker (hack)

* Fixed CoputedLayout and Csv Editor

* Imrpoved warning

* Fixed more warnings

* Fixed GetTextFormatterSizeNeededForTextAndHotKey

* Fixed AllViewsTester

* AllViewsTester code cleanup

* AllViewsTester code cleanup

* AllViewsTester fixed for realz

* Decided Fill was better than Percent for default
2024-01-04 10:40:47 -07:00
Tig
3b394c8104 Fixes #3115. TextView should use Command.ShowContextMenu not Command.Accept (#3118)
* Command.Accept->Command.ShowContextMenu + Unit Test

* fixed unit test
2024-01-04 10:40:02 -07:00
BDisp
0b7ca7bf44 Fixes #3097. Now that View is IDisposable, it should expose a Disposing event. (#3104) 2024-01-04 07:13:31 -07:00
Maciej
3d829d71db Fixes #3106: Combo Box selection fixes (#3117)
* Search selected item on filtered set

* Fix unit test - don't return first item when combobox is not focused or showed

* Improve method readability

* Clean selection from previous search

* Update unit test - after changing search text unselect previously selected item
2024-01-03 17:07:33 -07:00
Thomas Nind
8954fa5ecf Add constructor overload to SliderOption<T> (#3101)
* Add constructor overload to SliderOption

* Adjust whitespace

* Move tests to SliderOptionTests

* Empty commit for CI
2023-12-31 05:45:20 -07:00
Thomas Nind
55bf53336a Add ToString implementation for SliderOption<T> (#3103)
* Add ToString implementation for SliderOption<T>

* Add test case for SliderOption ToString with more complex class
2023-12-31 05:44:42 -07:00
Tig
80ef4b5e19 Fixes #3071 & #3079. Key cast and static props are not correct (#3089)
* Removed char->Key cast. Added Key(char)

* Re-added char->key cast. Added unit tests

* Fixed standard keys to always return new instead of being readonly

* Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up

* Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up

* Adds string constructor to Key + tests.

* Simplified Key json

* Added string/Key cast operators.
2023-12-27 15:50:37 -07:00
Tig
a7209bcd88 Improves robustness of Dim, Pos, and SetRelativeLayout (#3077)
* Updated overview docs

* Updated toc

* Updated docs more

* Updated yml via dependabot

* Initial work in progress

* Fixed some autosize things

* Revamped Pos / Dim API docs

* Removed margin

* horiz->width

* Updated MessageBoxes and Dialogs Scenarios to use AutoSize

* AutoSize->Auxo

* Adds validation

* prep for Dialog to use Dim.Auto - Simplify unit tests to not depend on things not important to the unit test (like Dialog)

* prep for Dialog to use Dim.Auto - Simplify unit tests

* prep for Dialog to use Dim.Auto - Simplify unit tests

* prep for Dialog to use Dim.Auto - Make Dialog tests not depend on MessageBox

* Started on DimAuto unit tests

* started impl on min/max.

* started impl on min/max.

* Added DimAutoStyle

* Added arg checking for not implemented features

* Temporarily made DimAutoStyle.Subviews default

* Removed unneeded override of Anchor

* Fixed GethashCode warning

* Implemented DimAuto(min)

* Fixed unit tests

* renamed scenario

* WIP

* Moved ViewLayout.cs into Layout folder

* Clean up cocde formatting

* Renamed and moved SetFrameToFitText

* Fixed API docs for SetRelativeLayout

* Factored out SetRelativeLayout tests

* Better documented existing SetRelativeLayout behavior + unit tess

* Debugging Pos.Center + x in SetRelativeLayout - WIP

* Progress on low level unit tess

* Initial commit

* Restored unmodified scenarios

* Bump deps
2023-12-26 09:28:43 -07:00