Commit Graph

5118 Commits

Author SHA1 Message Date
Tig
b83b392ccd Updated View and Event classes for viewport and content size handling
Updated several classes to improve viewport and content size handling.

Added `SetFrame` method to `View` class in `ViewLayout.cs` and replaced direct `_frame` property setting.

Updated `OnLayoutStarted` and `OnLayoutComplete` methods to take `ContentSize` instead of `oldViewport`. Added `ViewportChanged` event and `OnViewportChanged` method to `View` class in `ViewContent.cs`.

Updated `DrawEventArgs` and `LayoutEventArgs` classes in `ViewEventArgs.cs` to include new and old viewport properties and removed `Rectangle` property.

Updated `OnDrawContentComplete` method in `ViewDrawing.cs` to take `DrawEventArgs` instead of `Rectangle`.

Updated `SetViewport` method in `ViewContent.cs` to trigger `OnViewportChanged` event.

Added check in `ListView.cs` for view initialization before setting `ContentSize` and `Viewport`.

Updated `FileDialog` class in `FileDialog.cs` to use `NewViewport.Width` instead of `e.Rectangle.Width`.

Updated `ViewEventArgs` class in `ViewEventArgs.cs` to include a `view` parameter in its constructor.
2024-04-13 09:56:46 -06:00
Tig
7926781d3c Modernized Scrolling scenario 2024-04-12 14:57:51 -06:00
Tig
1a5bf0f688 Modernized Scrolling scenario 2024-04-12 14:52:39 -06:00
Tig
8df0ea44dc Scenario clean up 2024-04-12 14:34:51 -06:00
Tig
6dd349fdf3 Doc improvements 2024-04-12 12:57:41 -06:00
Tig
8bfc468794 Found and fixed double-doubleclick bug in Charmap 2024-04-12 12:32:38 -06:00
Tig
86f05d1479 Found and fixed FindDeepestView bug and added unit tests 2024-04-12 12:19:48 -06:00
Tig
2203f0b164 Fixed bug in SetViewport; added unit tests 2024-04-12 11:48:48 -06:00
Tig
0684d11a9e Fixed latent bug in ScrollBarView x2 2024-04-12 09:48:13 -06:00
Tig
1ffabac38b Fixed latent bug in ScrollBarView 2024-04-12 09:34:57 -06:00
Tig
248bbe0afc Refactored Run_All_Scenarios to use theory data 2024-04-12 09:21:53 -06:00
Tig
25a2e040f0 Updated scenario 2024-04-11 14:32:39 -06:00
Tig
c0b460e6c0 Updated api docs 2024-04-11 14:23:29 -06:00
Tig
25491bdac6 Fixed FindDeepestView bugg I caused by unravelling the recursion 2024-04-11 14:04:46 -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
9f93dea5cb TODOs 2024-04-11 07:00:46 -06:00
Tig
f924ea3d79 Completed settings UI in demo scenario 2024-04-11 06:22:07 -06:00
Tig
ad411ce5eb Fixed FrameToScreen 2024-04-11 06:14:22 -06:00
Tig
685e59f20e ListView now uses ViewPort and ContentSize 2024-04-11 06:05:44 -06:00
Tig
5d85242020 WIP fixing FrameToScreen 2024-04-11 06:05:19 -06:00
Tig
e8640e9d92 Found and fixed bug in non-recursive FindDeepestView; added reltaed unit test 2024-04-10 11:18:17 -04:00
Tig
d654c9c281 Reapply "Reapply "Reapply "Reapply "Rewrote FindDeepestView to be clearer and more performant""""
This reverts commit 30e62a694f.
2024-04-10 11:07:20 -04:00
Tig
30e62a694f Revert "Reapply "Reapply "Reapply "Rewrote FindDeepestView to be clearer and more performant""""
This reverts commit 907dc4d9bf.
2024-04-10 11:06:51 -04:00
Tig
907dc4d9bf Reapply "Reapply "Reapply "Rewrote FindDeepestView to be clearer and more performant"""
This reverts commit 4feff89ccc.
2024-04-10 10:59:31 -04:00
Tig
4feff89ccc Revert "Reapply "Reapply "Rewrote FindDeepestView to be clearer and more performant"""
This reverts commit d8043cdbc4.
2024-04-10 10:53:44 -04:00
Tig
d8043cdbc4 Reapply "Reapply "Rewrote FindDeepestView to be clearer and more performant""
This reverts commit 0983c6997d.
2024-04-10 10:52:22 -04:00
Tig
0983c6997d Revert "Reapply "Rewrote FindDeepestView to be clearer and more performant""
This reverts commit d964c9c668.
2024-04-10 10:44:09 -04:00
Tig
d964c9c668 Reapply "Rewrote FindDeepestView to be clearer and more performant"
This reverts commit f5c7448b48.
2024-04-10 10:43:12 -04:00
Tig
f5c7448b48 Revert "Rewrote FindDeepestView to be clearer and more performant"
This reverts commit a6ff5629b4.
2024-04-10 10:35:00 -04:00
Tig
1d9b64951f renamed viewscrollin.cs. updated api docs 2024-04-10 10:01:00 -04:00
Tig
e5d01bfdb1 Fixed Button with WantContinuousPressed = true not responding to single clicks 2024-04-10 00:30:11 -04:00
Tig
a6ff5629b4 Rewrote FindDeepestView to be clearer and more performant 2024-04-09 23:39:27 -04:00
Tig
da55844277 Rewrote ScreenToFrame to be clearer and more performant 2024-04-09 23:34:15 -04:00
Tig
4a06074cdc Updated conceptual API documentation; added mouse.md 2024-04-09 23:25:00 -04:00
Tig
62f015645a Updated conceptual API documentation; added mouse.md 2024-04-09 22:44:45 -04:00
Tig
6b80b23340 Updated conceptual API documentation; added mouse.md 2024-04-09 21:38:14 -04:00
Tig
5c36db22a4 merge 2024-04-09 09:02:55 -04:00
Tig
f1bc42aaa5 Merge pull request #3372 from tig/v2_3370_continuous_button
Fixes #3370. Adds visual highlight for press and hold (for `Button`, `Checkbox`, `RadioGroup`, and `Border`)
2024-04-08 12:43:17 -04:00
Tig
d71554d1ef Merge branch 'v2_develop' into v2_3370_continuous_button 2024-04-08 12:19:27 -04:00
Tig
102269ec2a Temp fix for ProgressStyles scenario 2024-04-08 12:17:37 -04:00
Tig
bd0f89f8b1 Border changes color, not line style on drag 2024-04-08 11:59:53 -04:00
Tig
ef6e22c7a2 Merge pull request #3386 from BDisp/v2_WindowsDriver-input-fix_3380
Fixes #3380. WindowsDriver is sending mouse button pressed only on moving.
2024-04-08 11:39:38 -04:00
Tig
6c296bb299 Disabled Hover (#define HOVER).
Added Color.GetHighlightColor. Simple implementation for now. Needs to be more robust.
2024-04-08 10:16:30 -04:00
Tig
ac667dae2c Got Hover working for all Views (Button) and Border. Still a bit of a prototype. 2024-04-06 09:09:42 -04:00
Tig
40ae272944 Refactored MouseEnter/Leave APIs to match design guidelines 2024-04-06 08:15:57 -04:00
Tig
cca32726fc Refactored API to support extensibilty... eg Hover (not implemented yet). 2024-04-05 17:25:23 -04:00
Tig
dceed59a5f Fixed more unit tests 2024-04-05 12:27:04 -04:00
Tig
ba429cffc2 Merged (Rebased) continous button PR 2024-04-05 12:15:13 -04:00
Tig
50f9b3559e Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-04-05 11:48:57 -04:00