Commit Graph

109 Commits

Author SHA1 Message Date
Tig
8e5d2eeafd Fixes #4051 - Adds cancellable_work_pattern.md (#4052)
* touching publish.yml

* Updated md files

* Updated md files 2

* Updated md files 3

* Updated API docs to point

* commmand->command

* Update Terminal.Gui/View/View.Command.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-28 06:40:24 -06:00
Tig
4cc44091f2 Partially Fixes #2975 - Replaces old ContextMenu with new Bar/Shortcut based implementation (#4008)
* touching publish.yml

* Nuked ContextMenuv2 - use PopverMenu instead

* WIP context menu stuff

* More robust dispose

* Removed ConextMenu; use PopoverMenu instead

* Code cleanup

* Code cleanup2
2025-03-31 17:12:55 -06:00
Tig
39d4c7dd3d Fixes #3691 - Adds ViewArrangement.Popover (#3852)
* Added Applicaton.Popover.
Refactored FindDeepestView

* Popover prototype

* Testing highlight

* Fixed click outside issue

* Fixed DialogTests

* Fixed click outside issue (agbain)

* Enabled mouse wheel in Bar

* Enabled mouse wheel in Bar

* Progress. Broke arrangement

* Added popover tests.
Fixed a bunch more CM issues related ot unreliable unit tests.
Updated config.json to include Glyphs.

* Can't set ForceDriver to empty in Resources/config.json.

* added BUGBUG

* Made Position/ScreenPosition clear

* Added View.IsInHierarchy tests

* Added Contextmenuv2 scenario.

* Implemented CM2 in TextView

* Removed unneeded CM stuff from testhelpers

* Shortcut API docs

* Fixed keybinding unit tests

* Fixed mouse handling

* Fighting with CM related unit test failures

* Unit tests pass. I think.

* Shortcut code cleanup

* TextView uses new CM2

* Starting on OnSelect etc...

* Starting on OnSelect etc...

* Fixed ContextMenuv2

* ContextMenu is working again.

* Ugh. ANd fixed button api docs

* Fixed DrawHorizontalShadowTransparent (vertical was already fixed).

* Made Scenarios compatible with #nullable enable

* Undid some keybinding stuff

* Fixed stuff

* Sped up unit tests

* Sped up unit tests 2

* Sped up unit tests 3

* Messing with menus

* merged latest v2_develop

* Added more Popover unit tests

* Added more Popover unit tests2

* Fixed positioning bug

* Fixed mouse bug

* Fixed Bar draw issue

* WIP

* merge v2_develop

* CM2 sorta works

* Enabled Bar subclasses to have IDesignable

* Added ViewportSettings.Transparent

* Region -> nullable enable

* Added ViewportSettigs Editor

* merged v2_develop part 2

* merged v2_develop part 3

* WIP: GetViewsUnderMouse

* WIP: More GetViewsUnderMouse work

* Bars works again

* Added unit tests

* CM now works

* MenuItemv2 POC

* SubMenu POC

* CommandNotBound

* More POC

* Optimize Margin to not defer draw if there's no shadow

* Logger cleanup

* Reverted Generic

* Cascading mostly working

* fixed layout bug

* API docs

* API docs

* Fixed cascade

* Events basically work

* code cleanup

* Fixed IsDefault bug;

* Enabled hotkey support

* Made context-menu-like

* Improved usability

* Refactored ApplicationPopover again

* Cleanup

* Menuv2 POC basically complete

* Code Cleanup

* Made menu API simpler

* Fixed Strings bugs

* Got old ContextMenu scenario mostly working

* ContextMenu scenario now works

* ContextMenu fixes

* ContextMenu fixes

* Tons of menu cleanup

* ContextMenu works in TextView

* Fixed unit tes

* Added unit tests

* Fixed tests

* code cleanup

* More code cleanup

* Deep dive

* scenario

* typos

* Demo colorpicker in a Menu

* Added Region tests proving Region is broken in some Union cases

* fixed v2win/net
2025-03-29 11:30:52 -06:00
Tig
acb5979e6c Cleans up/Refactors View.Subviews (#3962)
* Subview clean up

* New Add/Remove event pattern

* Using Logging

* cleanup

* Subview -> SubView

* Test code cleanup. Killed many warnings.

* Fix tznind feedback

* Refactored AllViewTest helpers

* Moved keyboard tests to parallel

* Moved mouse tests to parallel

* Moved view tests to parallel

* Test code cleanup. Killed many warnings.

* dupe test

* Some mouse tests can't run in parallel because MouseGrabView

* Made SpinnerView more testable

* Moved more tests

* SubViews to IReadOnlyCollection<View>

* SubViews to IReadOnlyCollection<View> 2

* scrollbar tests

* shortcut tests

* Use InternalSubViews vs. _subviews

* Nuked View.IsAdded.
Added View.SuperViewChanged.

* API doc updats

* Unit Test tweak

* Unit Test tweak
2025-03-08 15:42:17 -07:00
Thomas Nind
c88c772462 Fixes #3692++ - Rearchitects drivers (#3837) 2025-02-28 12:09:29 -07:00
Tig
df9549e0a2 Tons of V2 API doc fixes (#3932)
* Tons of API doc updates

* tweaked scenario

* try to fix unit test crash in ubuntu action

* try to fix unit test crash in ubuntu action2
2025-02-27 17:00:47 -07:00
Tig
c00de4a092 Makes Window default Arrangement not be movable/resizable (#3931)
* Window -> not sizeable/movable by default.
Window: Code cleanup.
Frameview: Code cleanup.

* View API docs updates

* View API docs updates
2025-02-27 12:24:31 -07:00
Tig
b62e826576 API doc updates (#3928) 2025-02-27 10:45:31 -07:00
Tig
ed67edad41 Doc tweak 2024-12-08 18:30:03 -08:00
Tig
0b72db2785 Doc updates. 2024-12-07 22:22:17 -08:00
Tig
f673ef3b6c Doc updates. Code cleanup 2024-12-07 22:12:27 -08:00
Tig
fa040870a9 Changed order of loading configs 2024-11-24 06:58:09 -07:00
Tig
61bfe2f537 Renamed property. Updated conceptual docs. 2024-11-23 08:52:09 -07:00
Tig
9d7ac3525e Fixed doc issues (#3835) 2024-11-19 14:12:31 -07:00
Tig
14dde1aeb4 updated docs 2024-11-18 10:22:17 -07:00
Tig
a9b3a3ed93 Charmap refactor WIP 2024-11-17 09:58:02 -07:00
Tig
f527e599b2 Scenario cleanup. scrolling.md 2024-11-17 09:28:33 -07:00
Tig
127bfd50a2 Refactoring... WIP 2024-11-08 19:30:51 -07:00
Tig
dc7bd44ff5 Merged v2_develop 2024-11-08 09:51:37 -07:00
Tig
304784cbe7 Code cleanup and refactor 2024-11-04 09:42:50 -07:00
Tig
593160dc30 Code cleanup and refactor 2024-11-03 10:57:32 -07:00
Tig
17e3fe8c5f Non-rectangular clip reigion support basically works 2024-10-29 16:41:57 -06:00
Tig
e0551f4e4d NeedsDisplay -> NeedsDraw 2024-10-27 19:54:50 -07:00
Tig
53708fac9e api doc 2024-10-27 19:40:41 -07:00
Tig
ee29ed87ed View Draw API docs and code cleanup 2024-10-26 16:24:41 -07:00
Tig
2c3a761f67 Merge branch 'v2_develop' into v2_3777-hexedit 2024-10-15 11:07:51 -06:00
Tig
7866e800cc MouseEventArgs cleanup 2024-10-15 07:50:50 -06:00
Tig
1363995326 Merged MouseEvent and MouseEventEventArgs into MouseEventArgs 2024-10-15 07:40:42 -06:00
Tig
3f3ceae9c7 API docs 2024-10-14 16:35:10 -06:00
Tig
84b271947a Fixed InvokingKeyBindings event semantics 2024-10-14 12:43:14 -06:00
Tig
6df071fbe1 Fixed.
Added event.md
2024-10-14 12:32:41 -06:00
Tig
11f2f301f5 Added unicode edit support 2024-10-10 15:06:31 -06:00
Tig
db22d108a9 Conceptual docs 2024-10-07 09:10:53 -04:00
Tig
1ab70e6b53 Merge branch 'v2_develop' into v2_3764-Common-Events 2024-10-02 15:13:53 -06:00
Tig
c6b8843f70 navigation.md 2024-10-02 13:48:34 -06:00
Rishikeshan Sulochana/Lavakumar (Work)
894b1e2835 [minor typo] Update newinv2.md (#3765)
Fix minor typo
2024-10-02 10:42:25 -06:00
Tig
f3b93a58dd Fixed RadioGroup 2 2024-10-01 15:34:55 -06:00
Tig
66edb36cc7 Fixed RadioGroup 2024-09-30 14:29:07 -06:00
Tig
8fbbba750b ListView 2024-09-29 16:58:42 -06:00
Tig
3b256f20dc RadioGroup 2024-09-29 15:27:33 -07:00
Tig
8add6e0923 RadioGroup 2024-09-29 15:10:28 -07:00
Tig
700d869bed Initial commit 2024-09-29 14:48:55 -07:00
Tig
f512cd49c3 Refactored Leave event and added unit tests 2024-09-21 16:01:26 -06:00
Tig
eca05c9187 Apply docs changes from v2_2491-Overlapped 2024-09-19 12:37:22 -06:00
Tig
f8b2d02027 Doc'd samples 2024-09-09 11:57:24 -06:00
Tig
f4931c2234 API doc and overview improvements 2024-09-09 11:46:18 -06:00
Tig
a03a8cbc10 Code cleanup. Docs 2024-08-29 14:09:13 -04:00
Tig
f0508b9831 Improving Application.Navigation 2024-08-29 13:53:16 -04:00
Tig
775296f87e Improving Application.Navigation 2024-08-29 13:36:31 -04:00
Tig
1a16f43495 Refactored subview methods. Fixed issues. 2024-08-26 14:10:02 -07:00