Commit Graph

107 Commits

Author SHA1 Message Date
Tig
f3b5ed7afc Fixing tests... 2024-04-18 13:14:22 -06:00
Tig
a48146af82 Tons of unit test updates 2024-04-18 09:59:07 -06:00
Tig
3a8d1d546f Tweak 2024-04-17 15:42:10 -06:00
Tig
ef4c52c6bc Merged.
Fixed merge issues. Added more tests.
2024-04-17 15:17:37 -06:00
Tig
e3a0d8cbc5 API doc improvements 2024-04-17 13:01:06 -06:00
Tig
652f7aa1b9 Renamed API to simplify and make more clear 2024-04-17 08:05:21 -06:00
Tig
64b7149ff8 PosDim.cs code cleanup 2024-04-16 17:42:48 -06:00
Tig
e8467f25c4 Rewrote SetRelativeLayout to move logic in to the Pos & Dim classes. Massively beefed up unit tests. 2024-04-16 17:15:50 -06:00
Tig
264ba87e73 AnchorEnd() works! Cleaned up usages and modernized Sceanrios 2024-04-16 14:00:38 -06:00
Tig
162aa081ad Implemented AnchorEnd(); added .UseDimForOffset property 2024-04-16 11:47:51 -06:00
Tig
671a18f1b5 Added tests to test new fn; which isn't implemented yet, so they fail. 2024-04-16 11:22:53 -06:00
Tig
05d3399f35 Added primitive AnchorEnd tests 2024-04-16 11:19:10 -06:00
Tig
719f39c8b3 Removed dupe tests 2024-04-16 10:33:18 -06:00
Tig
537f909e9f Factored AnchorEnd unit tests out to separate file. 2024-04-16 09:59:00 -06:00
Tig
d3dfb16597 Initial commit. Made all calls to AnchorEnd() be AnchorEnd(0) in prep 2024-04-16 09:51:22 -06:00
Tig
8da54ad41d Rebased onto bounds-contentarea and merged -broke 2024-04-14 21:52:45 -06:00
Tig
2203f0b164 Fixed bug in SetViewport; added unit tests 2024-04-12 11:48:48 -06:00
Tig
7644f631f0 Refactored ViewportSettings - Now makes more sense and LixtView works as before 2024-04-11 10:42:18 -06:00
Tig
d49bc3c06f Renamed ScrollSettings enum members to be more clear 2024-04-11 07:34:49 -06:00
Tig
ad411ce5eb Fixed FrameToScreen 2024-04-11 06:14:22 -06:00
Tig
5d85242020 WIP fixing FrameToScreen 2024-04-11 06:05:19 -06:00
Tig
cf97b5b708 Fixed some unit tests. Prepared for Issue #3368 2024-04-01 11:22:27 -06:00
Tig
9b75effe49 Backed out some changes and fixed unit tests 2024-03-31 10:21:04 -06:00
Tig
1bb90abb52 Merged v2_develop 2024-03-29 09:25:21 -06:00
Tig
465c04f59f API doc updates 2024-03-29 01:39:59 -06:00
Tig
d25f98f8e3 Everything appears to work (except ScrollView which I broke but will fix). 2024-03-28 23:57:36 -06:00
Tig
4f59a64b2c Merged v2_develop 2024-03-26 17:27:38 -06:00
Tig
df5f04b645 Merged v2_develop 2024-03-26 14:36:23 -06:00
BDisp
41971a6e5a Fix all tests. 2024-03-25 17:36:35 +00:00
Tig
90e38384c4 WIP towards scrolling working 2024-03-21 06:42:00 -07:00
Tig
fd4fdb8b1a More unit tests and code cleanup 2024-03-20 07:33:02 -07:00
Tig
f55d9bbdcd ViewportToScreen now deals with + location. Updated unit tests. 2024-03-20 07:01:31 -07:00
Tig
6f664c9c6a Added ContentSize property and first unit test 2024-03-19 17:52:44 -07:00
Tig
ebc47de514 Reamed Bounds -> Viewport test rename 2024-03-14 10:24:31 -08:00
Tig
0900333e12 Reamed Bounds -> Viewport - more rename 2024-03-14 08:12:50 -08:00
Tig
3a40dec249 Reamed Bounds -> Viewport in comments 2024-03-14 07:39:12 -08:00
Tig
f6ff36968e Reamed Bounds -> ViewPort to see how it feels 2024-03-14 07:30:27 -08:00
Tig
3c3babb7fd git rebase --onto v2_3298_REDO-xxxToScreen-improvements 2024-03-06 21:32:01 -07:00
Tig
745e2c21a2 Added low-level unit tests; found latent bugs in View.Clear, Bounds, etc... Fixed. 2024-03-06 20:38:25 -07:00
Tig
bb5c899864 cherry picked from old branch 2024-03-06 09:44:21 -07:00
Tig Kindel
1eaf8a713d Simplified test 2024-03-01 13:01:25 -07:00
Tig Kindel
248efc2cc2 Simplified FindDeepestVieew 2024-02-27 07:43:13 -07:00
Brandon Thetford
1ebc99b226 Fix this test for Release builds 2024-02-25 20:49:14 -07:00
Brandon Thetford
bfedfee9ee Simplify construction of new Rectangle, Size, Point, and *F instances
Use *.Empty when possible.
Use `with` in a few cases.
Also add some TODO commentary
2024-02-25 20:05:00 -07:00
Brandon Thetford
3d807c3833 Merge branch 'v2_develop' into v2_3256_prepare_for_Rect_removal
* v2_develop:
  Fixes #3039. Fix View.HotKey (#3249)
2024-02-22 15:51:04 -07:00
Tig
16055c53b0 Fixes #3039. Fix View.HotKey (#3249)
* Added View.DefaultCommand etc... Started on dedicated scenario

* Fixed un-shifted hotkeys -> Fixed Key Equals. Fixed WindowsDriver passing wrong key. Etc.

* Fixed Key Bindings and HotKeys

* Fixed Key Bindings and HotKeys

* Label now correctly supports hotkey

* Disabled unix hot keys because they are annoying and get in the way

* Updated nuget. fixed warnings

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Changed TextChangingEventArgs to inherit from CancelEventArgs

* TextChangingEventArgs -> TextEventArgs

* Simplified Text events by having only on args class

* Fixed unit tests fail

* Simplified by removing TitleEventArgs

* POC of Title being primary for hotkey. Label and Button hacked to work

* POC of Title being primary for hotkey. Label and Button hacked to work - all unit tests pass

* Dropped Microsoft.NETFramework.ReferenceAssemblies

* Fixed Dialogs scenario hotkeys

* Fixed build warnings

* Fixed Border Title render bug

* Regiggering default command handling

* Regiggering default command handling

* Checkbox clean up

* Added StateEventArgs POC

* Command.Default -> Command.HotKey

* Command.Default -> Command.HotKey - fixed TableView

* Command.Default -> Command.HotKey - fixed TableView

* Updated reactive example

* Fixed Toplevel.BringOverlappedTopToFront - was reordering SubViews when it shouldn't

* WIP - broke

* Finished impl of StateEventArgs

* Deleted ToggleEventArgs.cs. Added StateEventArgs.cs

* XML doc fix

* Removed old code

* Removed commented out code

* Label.Clicked -> Label.Accept (missed this before)

* Removed Labels as Buttons scenario as it's not really  useful

* Moved SubView tests to own file

* Moved SubView tests to own file

* Simplified Text test

* Added OnAccept test

* Deleted DefaultCommand

* Modernized CheckBox

* New button test

* Cleaned up RadioGroup; added tests

* KeyCode->Key in ListView

* Added ListView unit tests

* ListView now does Accept correctly

* TreeView now does Accept correctly

* Cleaned up some TextField tests

* TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Fixed ComboBox to deal with TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Removed un-needed using statement
2024-02-22 15:11:26 -07:00
Brandon Thetford
f0b2fb1820 Fix these tests the same way as the previous commit 2024-02-20 20:19:52 -07:00
Brandon Thetford
3d0c750bd6 Fix this test
This is not a test of Rectangle, so trust that Rectangle gets it right.
2024-02-20 20:19:52 -07:00
Brandon Thetford
a638edeeaf Rename Rect to Rectangle in preparation for removal 2024-02-20 20:19:52 -07:00
dodexahedron
34bef2c839 Fixes #3242 - Replaces simple null checks (#3248)
* Replace all 342 `== null` with `is null`

* Replace 354 `!= null` with `is { }`

* Wrap these in conditionals since they break tests against Release configuration

The members they depend on do not exist in Release configuration

* Split these up and dispose properly

This test needs to be revisited for several reasons at some point.

* Fix release configuration tests

* Declare interface these already support

* Annotate constructor properly and use throw helper

* Move class to its own file

* Rename these files so they nest in the solution explorer

* Make this a record type and remove now-redundant/illegal members

* Reference passing to avoid some struct copies

* Simplify this

* Carry reference passing through as appropriate

* Turn this into a record struct

* Remove unused internal constructor and its test

It was only used by that test.

* Simplify this constructor

* This should be a property

* Simplify constructor

* Simplify GetHashCode

* Mark this ignored just in case

* Missed a couple of opportunities for reference passing

* record struct already does this by value

* Remove unused class

* Simplify the type initializer and Reset method

* Implement INotifyCollectionChanged and IDictionary by delegating to ColorSchemes

* Fix for reflection-based configuration

* Make CI  build happy by disambiguiating this attribute
2024-02-16 16:46:25 -07:00