Commit Graph

5139 Commits

Author SHA1 Message Date
Tig
92e7bc67ce Cleaned up AdornmentsEditor to fix Progress Styles scenario.
Fixed GetFocusColor to not show focus if nothing else can be foucused
2024-04-14 23:47:57 -06:00
Tig
012e7a376a Fixed Button.NumericUpDown focus issue 2024-04-14 21:21:44 -06:00
Tig
085fd6316d Made Buttons.NumericUpDown even cooler. Updated Adornments scenario to use it. 2024-04-14 20:58:05 -06:00
Tig
4ad3dc8642 Made Buttons.NumericUpDown cooler 2024-04-14 20:12:22 -06:00
Tig
dc4ee2993c Updated package versions in multiple projects
Updated the versions of various packages across four projects. In `ReactiveExample.csproj`, the `ReactiveUI` package was updated. In `Terminal.Gui.csproj`, the `System.IO.Abstractions` and `System.Text.Json` packages were updated. In `UICatalog.csproj`, the `Microsoft.VisualStudio.Azure.Containers.Tools.Targets`, `SixLabors.ImageSharp`, and `CsvHelper` packages were updated. In `UnitTests.csproj`, the `ReportGenerator`, `TestableIO.System.IO.Abstractions.TestingHelpers`, `xunit`, `xunit.runner.visualstudio`, and `coverlet.collector` packages were updated.
2024-04-14 19:44:39 -06:00
Tig
2430088b18 Renamed scenario.
Fixed ContentSize < 0 issue.
2024-04-14 16:21:10 -06:00
Tig
dc4943f0ff Deleted temp scenario 2024-04-14 15:45:30 -06:00
Tig
a655120e48 Merge branch 'v2_develop' into v2_3269_Bounds-ContentArea 2024-04-14 15:00:11 -06:00
Tig
ffaf756898 Merge pull request #3405 from tznind/fix-tab-remove-null-ref
Fixes #3365 - Fix null reference removing tab
2024-04-14 14:59:20 -06:00
Tig
32e79bdd17 Code and API doc cleanup 2024-04-14 14:57:35 -06:00
tznind
caddcdb846 Fix null reference removing tab 2024-04-14 21:46:50 +01:00
Tig
0a73396375 Merge pull request #3399 from BDisp/v2_listview-scrolling-fix_3396
V2 Fixes #3396. ListViewWIthSelection scenario does not show all rows and other issues
2024-04-14 14:24:18 -06:00
Tig
78bde18d4f Merge pull request #3402 from tznind/disable-autosize
Fixes #3366 - Add ability to disable AutoSize
2024-04-14 14:08:47 -06:00
Tig
513eb135c6 Fixed layout issue when contentsize changed. 2024-04-14 14:03:07 -06:00
Tig
88222c4dfd Fixed clipping - mostly: Still an issue w/ subviews of adornments 2024-04-14 13:22:25 -06:00
tznind
fadecc150a Revert "Add ability to disable AutoSize"
This reverts commit aa72a97cd6.
2024-04-14 09:41:05 +01:00
tznind
7d4d77ca64 Force AutoSize false instead of throw Exception when setting Width/Height 2024-04-14 09:40:31 +01:00
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
tznind
aa72a97cd6 Add ability to disable AutoSize 2024-04-13 15:04:30 +01: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
BDisp
24aef987be Restoring unit test from v1. 2024-04-11 18:00:12 +01:00
BDisp
a121b62c77 Fix size in the scenario. 2024-04-11 17:44:59 +01:00
BDisp
36469b7298 Fix horizontal scrolling in the ListView. 2024-04-11 17:44:16 +01: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