Commit Graph

1258 Commits

Author SHA1 Message Date
BDisp
0766ad32b0 Fix RunStateTests. 2024-03-23 17:52:36 +00:00
BDisp
2905979c45 Fix MouseTests. 2024-03-23 17:49:30 +00:00
BDisp
d35e2f449a Fix MainLoopTests. 2024-03-23 17:35:21 +00:00
BDisp
1cf7207ea1 Fix KeyboardTests. 2024-03-23 17:32:14 +00:00
BDisp
e6de9ed9dc Ensures Top disposing on the AutoInitShutdownAttribute and fix ApplicationTests. 2024-03-23 17:18:51 +00:00
BDisp
97a0595353 Ensures disposing toplevel before throwing. 2024-03-23 15:58:24 +00:00
BDisp
c471cf1aeb Add ObjectDisposedException testing for View.Title and fixes unit test. 2024-03-23 15:54:33 +00:00
BDisp
034861bba2 Standardizes the entire Application.Run to be consistent between them. 2024-03-23 10:34:05 +00:00
BDisp
163c0384a5 Delegate the disposable handling to the caller. 2024-03-22 18:49:46 +00:00
BDisp
c68849a314 Remove Top from the Init method. 2024-03-22 17:04:15 +00:00
Tig
0a6193a7a3 Moved Canceled from FileDialog to Dialog (because that's just a good idea and it provides a good case for having a property test for Disposal on get/set).
Tweaked `Run_Dispose_Dialog` to illustrate how broken it is to have `Run/End` dispose `Top`.
2024-03-21 08:46:55 -07:00
Tig
74849ddf75 Merge branch 'v2_develop' into v2_3338-Toplevel-Must-Be-Disposed 2024-03-21 07:56:09 -07:00
BDisp
c8890628e9 Fixes #3338. Application.Run/End -> Callers must dispose Toplevel 2024-03-20 17:34:20 +00:00
BDisp
d2a2ff1f99 Fixes #3340. Mouse ButtonShift doesn't work anymore on Windows Terminal. 2024-03-19 23:42:44 +00:00
Tig
8cf63d565a Added some NeedDisplay unit tess 2024-03-18 12:46:35 -07:00
BDisp
d8c1a0c118 Merge branch 'v2_develop' into v2_mousegrabview-fix_3333 2024-03-17 22:47:20 +00:00
BDisp
0120a3648f Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit. 2024-03-17 20:06:03 +00:00
Tig
bd4eeb9fab Merge branch 'v2_develop' into v2_3313-Application-End-Top 2024-03-17 07:50:56 -08:00
Tig
ab07ec665b Removed erroneous Disosal and fixed poorly coded unit test: A toplevel manually creatged must be disposed by creator 2024-03-17 07:41:37 -08:00
Tig
73a6e66139 Tweaked unit tests 2024-03-16 08:46:29 -08:00
BDisp
2b3a67c7a9 Fix typo. 2024-03-14 23:02:23 +00:00
BDisp
534ab2a631 Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse. 2024-03-14 22:42:21 +00:00
Tig
df4f479ce6 Fixed drag bug; added mouse unit tests 2024-03-13 20:24:46 -08:00
Tig
52b464f305 Simplified and renamed GetLocationThatFits 2024-03-11 11:39:22 -08:00
Tig
591434054c Simplified and renamed GetLocationThatFits 2024-03-11 11:38:44 -08:00
Tig
919f8e5991 Merge branch 'v2_develop' into v2_3273_FOUND_finddeepestview 2024-03-10 10:56:14 -06:00
Tig
ce89aaf961 Merge branch 'v2_develop' into v2_3310-OnMouseClick-CanSetFocus 2024-03-10 09:34:01 -06:00
Tig
a46bf922bd Merge pull request #3305 from tig/v2_3304-diagnosticflags
Fixes #3304. Refactored `ConsoleDriver.Diagnostics`
2024-03-10 09:33:36 -06:00
Tig
0649cd2149 Adds CanFocus/SetFocus test 2024-03-10 07:32:42 -08:00
Tig
7d6d5280f1 Adds CanFocus/SetFocus test 2024-03-10 07:30:42 -08:00
Tig
dabb8df0ac Adds Label mouse click test 2024-03-10 07:16:41 -08:00
Tig
667912a610 Fixed a buinch of bugs. Updated unit tests including some that test all views to utilize TheoryData 2024-03-09 09:00:13 -09:00
Tig
7119ee74ff Adornment w/ subview unit tests 2024-03-08 23:50:49 -07:00
Tig
e8c851631f Ensured adornments layout 2024-03-08 23:25:14 -07:00
Tig
1da6c39407 Subviews of adornments work! 2024-03-08 19:12:06 -07:00
Tig
550a263155 Tweaked r# settings and applied to View and ViewLayout.cs 2024-03-08 08:11:43 -07:00
Tig
3e10486771 rebased and added mouseevent diag flag 2024-03-07 12:13:30 -07:00
Tig
1be3851154 Started on unit test 2024-03-07 09:04:24 -07:00
Tig
a518cb37ee Refactored Diagnostics 2024-03-07 08:55:13 -07:00
Tig
4991fc00ee Merge branch 'v2_3273_FOUND_finddeepestview' of tig:tig/Terminal.Gui into v2_3273_FOUND_finddeepestview 2024-03-06 22:19:21 -07:00
Tig
3f1e184e7e Removed ClearFrame API. Not needed. 2024-03-06 22:03:37 -07:00
Tig
3888c86ee4 Fixed unit tests that broke due to rebase 2024-03-06 21:37:22 -07:00
Tig
3c3babb7fd git rebase --onto v2_3298_REDO-xxxToScreen-improvements 2024-03-06 21:32:01 -07:00
Tig
a8e9fcfca5 Added Thickness.Add + unit tests 2024-03-06 20:54:35 -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
17f9927a76 Re-removed clamped 2024-03-06 09:39:05 -07:00
Tig Kindel
d6e4a5b0bc Fixed fragile unit test 2024-03-05 14:07:33 -07:00
Tig Kindel
714121b1f9 Workaround VS2022 17.10.0 Preview 1.0 breaks collection expression for certain types 2024-03-05 11:32:04 -07:00
Tig Kindel
5607f530e4 Moved HasFocus out of Responder and made non-virtual 2024-03-04 17:24:39 -07:00