Commit Graph

1367 Commits

Author SHA1 Message Date
BDisp
d074ff0328 Improves @tig prototype. 2024-04-26 23:54:11 +01:00
Tig
e6da3db22d Prototype/WIP for revamping how cursor handling works.
Views should not have to do complex cursor logic just to position / show a cursor.
Application should take care of more of the heavy liftig.
Advanced cursor handling should be possible.
ProcessCursor is poorly designed and fragile.
2024-04-26 13:19:11 -06:00
BDisp
986c681775 Applying dispose. 2024-04-26 00:21:54 +01:00
BDisp
46fcb58a71 Create IsViewLocationVisibleInViewport method. 2024-04-25 23:30:08 +01: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
56922b4357 Merge pull request #3323 from tig/v2_3269_Bounds-ContentArea
Fixes #3169. `Bounds` -> `Viewport`: Content Scrolling in `View`
2024-04-16 06:37:37 -06:00
Tig
069089ee27 Made Arrangement = ViewArrangement.Fixed the default for Toplevels 2024-04-15 17:08:12 -06:00
Tig
50fcb19af5 Keep Force16Colors set across apps to ease debugging of flicker issue 2024-04-15 14:48:26 -06:00
Tig
00cc59add2 Smarter focuscolor fix just for Border 2024-04-15 00:08:26 -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
BDisp
7236dd19c7 Fix unit test. 2024-04-14 23:55:18 +01:00
BDisp
92a5fe98c5 Merge branch 'v2_develop' into v2_view-dispose-mousegrabview-fix_3394 2024-04-14 23:42:28 +01:00
Tig
a655120e48 Merge branch 'v2_develop' into v2_3269_Bounds-ContentArea 2024-04-14 15:00:11 -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
88222c4dfd Fixed clipping - mostly: Still an issue w/ subviews of adornments 2024-04-14 13:22:25 -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
248bbe0afc Refactored Run_All_Scenarios to use theory data 2024-04-12 09:21:53 -06:00
BDisp
24aef987be Restoring unit test from v1. 2024-04-11 18:00:12 +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
ad411ce5eb Fixed FrameToScreen 2024-04-11 06:14:22 -06:00
Tig
5d85242020 WIP fixing FrameToScreen 2024-04-11 06:05:19 -06:00
BDisp
c42c88ccbc Ensures the menu bar grabs the mouse when removing a menu. 2024-04-10 18:16:51 +01:00
BDisp
d5800743ea Fixes #3394. View.Dispose doen't call UngrabMouse if MouseGrabView is the view itself. 2024-04-10 17:33:47 +01:00
Tig
e8640e9d92 Found and fixed bug in non-recursive FindDeepestView; added reltaed unit test 2024-04-10 11:18:17 -04:00
Tig
e5d01bfdb1 Fixed Button with WantContinuousPressed = true not responding to single clicks 2024-04-10 00:30:11 -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
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
Tig
e1a2793c5c Fixed fragile toplevel drag unit tests 2024-04-04 19:34:39 -04:00
Tig
c5b7b084a9 Way too big a committ.... but I got carried away.
- Started MouseEventEventArgs -> MouseEvent transition - for OnMouseEvent. Partially fixes #3029.
- Refactored Appliation.OnMouseEvent and View.OnMouseEvent to match design guidelines.
- Re-impleented highlight, enabling extensibility (see Border).
- Beefed up unit tests
2024-04-04 18:50:13 -04:00
Tig
dd8fe76cab Rebased with v2_develop - broke stuff. 2024-04-03 21:27:10 -04:00
Tig
f68adf77ae Fixed core bug. Wasn't what we thought it was. 2024-04-03 15:04:35 -05:00