Commit Graph

8049 Commits

Author SHA1 Message Date
BDisp
2025a81511 Fixes #4208. MainLoopSyncContext doesn't work with the v2 drivers (#4209) 2025-07-24 17:06:46 -06:00
Tig
e3049bcb37 Merge branch 'gui-cs:v2_develop' into v2_develop 2025-07-24 07:14:43 -06:00
BDisp
add2877e09 Fixes #4206. There is no need to use a Task.Run to force Invoke in the MainThreadId (#4207) 2025-07-24 06:26:51 -06:00
BDisp
3b13d5a83c Fixes #4196. Application.Begin doesn't refresh the screen at start (#4197)
* Fixes #4196. Application.Begin doesn't refresh the screen at start

* Reformatting to run CI again

* Revert "Reformatting to run CI again"

This reverts commit ef639c1e64.

* Trying fix an issue where sometimes subview variable is null running unit tests

* Add comment and decrease the delay time
2025-07-22 13:58:10 -06:00
BDisp
2ec08d5939 Fixes #4198. Application.Invoke isn't wakeup the driver if idle (#4199) 2025-07-22 13:57:38 -06:00
Tig
83c63a24a6 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-07-10 12:02:49 -06:00
Thomas Nind
ec827e901e Fixes #4172 Timeout revamp and remove continuous mouse (#4173)
* Remove continous press code from Application

* WIP prototype code to handle continuous press as subcomponent of View

* Prototype with Button

* Implement CWP

* Move to seperate classes and prevent double entry to Start

* Fix repeat clicking when moving mouse by removing phantom click code (old implementation of WantContinuousButtonPressed)

* Remove initial tick because it results in double activation e.g. button firing twice immediately as mouse is pressed down.

* Refactor DatePicker lamdas

* WIP investigate subcomponents instead of statics

* Add IMouseGrabHandler to IApplication

* Make mouse grabbing non static activity

* Make MouseHeldDown suppress when null fields e.g. app not initialized in tests

* Update test and remove dependency on Application

* Fix other mouse click and hold tests

* Code cleanup

* Update class diagram

* Fix bad xml doc references

* Fix timed events not getting passed through in v2 applications

* Make timed events nullable for tests that dont create an Application

* Remove strange blocking test

* WIP remove all idles and replace with zero timeouts

* Fix build of tests

* Fix unit tests

* Add wakeup call back in

* Comment out incredibly complicated test and fix others

* Fix test

* test fix

* Make Post execute immediately if already on UI thread

* Re enable test and simplify Invoke to just execute if in UI thread (up front)

* Remove xml doc references to idles

* Remove more references to idles

* Make Screen initialization threadsafe

* Add more exciting timeouts

* WIP add tests

* fix log

* fix test

* make continuous key press use smoth acceleration

* Rename _lock to _lockScreen

* Remove section on idles, they are not a thing anymore - and they kinda never were.

* Add nullable enable

* Add xml comment

* Fix namings and cleanup code

* xmldoc fix

* Rename LockAndRunTimers to just RunTimers

* Rename AddTimeout and RemoveTimeout (and event) to just Add/Remove

* Update description of MainLoop

* Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* Again? Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* Revert Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* When mouse is released from MouseHeldDown reset host MouseState

* Fix namespaces in class diagram

* Apply @BDisp suggested fix

* Fix class diagrams

* Add lock

* Make TimeSpan.Zero definetly run

* Fix duplicate entry in package props

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-07-10 11:59:27 -06:00
Tig
62fd462141 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-07-07 11:06:11 -06:00
Thomas Nind
23cacaee93 Fix integration tests failing on command line (#4185)
Co-authored-by: Tig <tig@users.noreply.github.com>
2025-07-07 11:05:53 -06:00
Tig
87fe518ea9 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-07-07 09:34:11 -06:00
Thomas Nind
3a645191db Fixes #4170 - Added analyzer that flags when user does not have Handled=true (#4182)
* Added analyzer

* WIP - Trying to create tests, failing with bad dependencies

* Working test woo

* Tidy up

* Tidy up

* Fix integration tests failing on command line

* Use 4.11 compiler

* Fix expecting 'e' as param name

* Make analyzer come as part of Terminal.Gui

* Add docs

* Fix warnings
2025-07-07 09:14:43 -06:00
Tig
639307248a Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-29 19:06:17 -06:00
Nemo Xiong
3d53c30ee1 readme: update outdated doc links (#4181) 2025-06-28 07:47:00 -06:00
Daniel Marbach
43142dedc3 Cleanup Dependencies slighty (#4178)
* Source link should be private

* Remove unnecessary System.Text.Json reference

* Use logging abstractions

* Use fixed logging version

* Remove unnecessary analysis references

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
2025-06-27 10:11:59 -06:00
BDisp
497ddb3b3e Fixes #4164. FluentTests sometime causes unit tests failures locally and in CI (#4165) 2025-06-24 09:23:46 -07:00
BDisp
b50a8fd665 Fixes #4162. Keyword dynamic isn't AOT-Compatible and must be removed (#4163) 2025-06-15 10:57:55 -06:00
BDisp
6e486c718e Fixes #4160. Benchmark All launch throws System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' (#4161) 2025-06-12 19:10:28 -06:00
Tig
4cd6511c89 Updated doc links 2025-06-12 13:45:39 -06:00
Tig
258824dba6 Updated readme etc for Alpha 2025-06-12 13:33:06 -06:00
Tig
e0e87a2b40 Migrating api docs 4 2025-06-12 12:27:06 -06:00
Tig
8c7c266618 Migrating api docs 3 2025-06-12 12:23:44 -06:00
Tig
5e96525522 Migrating api docs 2 2025-06-12 12:22:11 -06:00
Tig
40d6250427 Migrating api docs 2025-06-12 12:18:25 -06:00
Tig
f4d4a25704 pre-alpha -> alpha (#4158) 2025-06-12 12:16:54 -06:00
Tig
6e5e6dbbb9 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-12 12:03:41 -06:00
BDisp
ad1de255b1 Fixes #4139. Application.Run<T> isn't initializing properly by setting the Application.ForceDriver property (#4142)
* Fixes #4139. Application.Run<T> isn't initializing properly by setting the Application.ForceDriver property

* Trying fix unit tests

* Only to force again CI tests because I haven't errors locally

* This should pass, unless RunningUnitTests is set to false somewhere

* Fix Unix unit tests and failures via ReSharper

* Changes suggested by @tig

* Prevent empty string

* Centralize all the entry logic in the InternalInit method

* Change GetDriverTypes to return a tuple
2025-06-12 10:48:05 -06:00
BDisp
76b7e52e12 Fixes #4143. ReactiveExample throw System.NotSupportedException: 'Index expressions are only supported with constants.' (#4144) 2025-06-11 06:44:08 -06:00
Tig
5863d383f1 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-09 14:37:37 -06:00
BDisp
d3f4c42785 Fixes 4132. .editorconfig has ambiguous configuration with same files (#4133)
Co-authored-by: Tig <tig@users.noreply.github.com>
2025-06-09 14:31:11 -06:00
BDisp
2d72425ee3 Fixes #4127. PopupAutocomplete visible not updating when there are no suggestions (#4128)
* Fixes #4127. PopupAutocomplete visible not updating when there are no suggestions

* Code cleanup for re-run git actions
2025-06-09 14:30:57 -06:00
BDisp
e1086a45a9 Fixes #4112. WordForward and WordBackward are not consistent with identical RuneType (#4131)
* Move parallelizable to new file

* Add UseSameRuneTypeForWords property

* Add SelectWordOnlyOnDoubleClick property and ProcessDoubleClickSelection method

* Change IsSameRuneType method to also handle equivalent rune types

* Fix WordBackward and WordForward to support properly handle rune types

* Fix unit test to deal properly with the new roles of rune types

* Add new unit tests

* Remove duplicated unit test

* Add UseSameRuneTypeForWords and SelectWordOnlyOnDoubleClick handling into Editor scenario
2025-06-09 14:29:45 -06:00
Tig
b59ac3b69c Fixed. (#4140) 2025-06-09 14:29:29 -06:00
BDisp
f3c80d99e1 Fixes #4136. NetDriver and v2net are rendering badly the Button only in `Windows (#4137) 2025-06-09 13:53:46 -06:00
Tig
23cc44ca48 Fixes #4129 - GetViewsUnderMouse does not return anything (#4130) 2025-06-05 13:38:17 -06:00
Tig
1c04acf3b9 Cleaned up toc.yml 2025-06-04 12:43:05 -06:00
Tig
455ebc4548 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-04 12:41:55 -06:00
BDisp
4f707c453d Fixes #4080. TabGroup not always navigate correctly across groups (#4085)
* Fixes #4080. TabGroup not always navigate correctly across groups

* Remove duplicated code

* Improves code by removing duplicate code

* Made requested changes

* Change to Theory unit test

* Cleanup to run git actions again

* Trying fix racing fail unit tests

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-06-04 12:41:03 -06:00
BDisp
8fef16d35f Fixes #4116. NativeAot and SelfContained projects aren't working well in release mode (#4117)
* Fixes #4116. NativeAot and SelfContained projects aren't working well in release mode

* Revert delete nuget package because it fail in the git actions

* Trying automatize the nuget package installation

* Fixing UserProfile

* Trying fix push package for Unix OS

* Still triying to push nuget to the Unix

* Trying delete nuget package in the Pack target

* Trying fix git actions for release build

* Fix projects path

* Still fixing restore

* Add restore force parameter

* Build NativeAot and SelfContained projects before solution

* Build solution without restore

* Restore solutions packages before build

* Call dotnet restore before build the AOT and self-contained projects

* Remove unneeded run

* Revert "Remove unneeded run"

This reverts commit e04498d1ce.

* Trying fix racing fail unit tests

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-06-04 12:23:44 -06:00
Tig
4812d46e5f Fixes #4122 - Improves IPopover (#4124)
* upgraded to gitversion 6 2

* Remove invalid prevent-increment property

* upgraded to gitversion 6 3

* Fixed gitversion

* cleanup

* Added namespace docs

* Improved API docs.
Added runtime checks.
Refactored mouse check code.

* Refinements
2025-06-04 10:30:29 -06:00
Tig
2eb1238595 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-03 08:57:50 -06:00
Tig
764a804ddd Fixes #3209 - Formalize Cancellable Work Pattern and add helpers (#4092) 2025-06-03 08:12:57 -06:00
BDisp
7490ac9776 Fixes #4120. ConfigurationEditor is handle No button the same as Cancel button (#4121) 2025-06-02 19:22:34 -06:00
Tig
9681ba247a Merge branch 'v2_release' of tig:gui-cs/Terminal.Gui into v2_develop 2025-06-01 08:58:00 -06:00
Tig
94ab1792af Merge branch 'v2_develop' into v2_release 2025-05-31 21:45:43 -06:00
Tig
fb820fd32b merged 2025-05-31 21:44:30 -06:00
Tig
38c1182a6f Adds namespace docs & adds new multitasking.md deep dive (#4114)
* Added namespace docs

* Claned up FileServices

* rewrote mainloop.md to be focused on multitasking

* rewrote mainloop.md to be focused on multitasking2

* rewrote mainloop.md to be focused on multitasking3
2025-05-31 21:42:22 -06:00
Tig
d9db1a10b9 Added namespace docs 2025-05-31 20:55:53 -06:00
Tig
6b12879fbe Merge branch 'v2_release' of tig:gui-cs/Terminal.Gui into v2_release 2025-05-31 20:05:34 -06:00
Tig
41b17b2056 Merge branch 'v2_develop' into v2_release 2025-05-31 20:04:49 -06:00
Tig
9bdbf3ffec Fixed release builds 2025-05-31 20:04:15 -06:00