Commit Graph

4560 Commits

Author SHA1 Message Date
Tig Kindel
c2bda7a280 Updated nuget refs 2024-01-05 08:00:56 -07:00
Tig Kindel
97a75af86a Code cleanup. 2024-01-05 07:56:14 -07:00
Tig Kindel
4330c12b16 merged v2_develop 2024-01-05 07:41:38 -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 Kindel
e80bd4fd39 Merge v2_develop 2023-12-26 09:45:21 -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
BDisp
3f35352561 Fixes #3066. The last RunIteration only work on WindowsDriver (#3067)
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-12-26 09:25:33 -07:00
Thomas Nind
e885af0282 Support for publishing UICatalog as single file (#3074) 2023-12-26 09:15:00 -07:00
Tig Kindel
cbf7bae6f2 Merge branch 'v2_develop' into v2_fixes_2432_Dim_AutoSize 2023-12-26 09:12:01 -07:00
BDisp
2c8f4034b8 Fixes #3080. Potentially unintended behavior of static pre-defined Attribute.Default in Attribute class (v2) (#3091) 2023-12-26 08:29:16 -07:00
Tig Kindel
f48ff99628 Progress on low level unit tess 2023-12-23 10:23:00 -07:00
Tig Kindel
bb04a629ff Debugging Pos.Center + x in SetRelativeLayout - WIP 2023-12-22 09:53:11 -07:00
Tig Kindel
eb037b528c Better documented existing SetRelativeLayout behavior + unit tess 2023-12-21 16:42:26 -07:00
Andrey Akinshin
7822cd8100 Fix MouseEvent.ToString() (#3068) 2023-12-20 19:16:20 -07:00
Tig Kindel
ef00373726 Factored out SetRelativeLayout tests 2023-12-20 11:16:13 -07:00
Tig Kindel
3b96182e57 Fixed API docs for SetRelativeLayout 2023-12-20 10:44:43 -07:00
Tig Kindel
b35c7e9cbb Renamed and moved SetFrameToFitText 2023-12-20 10:30:41 -07:00
Tig Kindel
eabcd36b48 Clean up cocde formatting 2023-12-20 08:31:21 -07:00
Tig Kindel
eba732537e Moved ViewLayout.cs into Layout folder 2023-12-20 08:28:07 -07:00
Tig Kindel
f35e783f83 Merged v2_develop 2023-12-19 16:44:31 -07:00
BDisp
74afd18148 Fixes #3064. Pos.View returns PosCombine (#3065) 2023-12-19 16:34:17 -07:00
Tig Kindel
679ec90106 WIP 2023-12-19 15:23:08 -07:00
Tig Kindel
b22c1e3121 renamed scenario 2023-12-19 11:14:34 -07:00
Tig Kindel
9b743b20b2 Fixed unit tests 2023-12-19 09:16:56 -07:00
Tig Kindel
a367e4d326 Implemented DimAuto(min) 2023-12-19 09:02:12 -07:00
Tig Kindel
2f4381c6e0 Fixed GethashCode warning 2023-12-19 08:38:20 -07:00
Tig Kindel
64d3568234 Removed unneeded override of Anchor 2023-12-19 08:34:53 -07:00
Tig Kindel
770dae3be3 Temporarily made DimAutoStyle.Subviews default 2023-12-19 08:34:25 -07:00
Tig Kindel
d3f470f8d1 Added arg checking for not implemented features 2023-12-19 08:31:44 -07:00
Tig Kindel
46d8465262 Added DimAutoStyle 2023-12-19 08:25:41 -07:00
Tig Kindel
e249a8494b started impl on min/max. 2023-12-18 16:51:42 -07:00
Tig Kindel
fa597ccad4 started impl on min/max. 2023-12-18 16:39:18 -07:00
Tig Kindel
84bbd5f25d Started on DimAuto unit tests 2023-12-18 13:39:21 -07:00
Tig Kindel
af17636d1f prep for Dialog to use Dim.Auto - Make Dialog tests not depend on MessageBox 2023-12-18 11:27:10 -07:00
Tig Kindel
83c59318e3 prep for Dialog to use Dim.Auto - Simplify unit tests 2023-12-18 11:11:10 -07:00
Tig Kindel
9ba5edbec4 prep for Dialog to use Dim.Auto - Simplify unit tests 2023-12-18 11:08:01 -07:00
Tig Kindel
8274451805 prep for Dialog to use Dim.Auto - Simplify unit tests to not depend on things not important to the unit test (like Dialog) 2023-12-18 10:40:47 -07:00
Tig Kindel
42f93cdded Adds validation 2023-12-18 08:30:16 -07:00
Tig Kindel
b89c262b8c AutoSize->Auxo 2023-12-18 06:38:25 -07:00
Tig Kindel
bbb84f812e Updated MessageBoxes and Dialogs Scenarios to use AutoSize 2023-12-18 01:27:38 -07:00