* Initial plan
* Refactor Application.Mouse - Create IMouse interface and Mouse implementation
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Add enhanced documentation for Application.Mouse property
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Add parallelizable unit tests for IMouse interface
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Refactor Application.Mouse for decoupling and parallelism
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Move HandleMouseGrab method to IMouseGrabHandler interface
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Add parallelizable tests for IMouse and IMouseGrabHandler interfaces
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Add MouseEventRoutingTests - 27 parallelizable tests for View mouse event handling
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Fix terminology: Replace parent/child with superView/subView in MouseEventRoutingTests
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Fix coding standards: Use explicit types and target-typed new() in test files
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Update coding standards documentation with explicit var and target-typed new() guidance
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Refactor Application classes and improve maintainability
Refactored `Sixel` property to be immutable, enhancing thread safety.
Cleaned up `ApplicationImpl` by removing redundant fields, restructuring
methods (`CreateDriver`, `CreateSubcomponents`), and improving exception
handling. Updated `Run<T>` and `Shutdown` methods for consistency.
Standardized logging/debugging messages and fixed formatting issues.
Reorganized `IApplication` interface, added detailed XML documentation,
and grouped related methods logically.
Performed general code cleanup, including fixing typos, improving
readability, and removing legacy/unnecessary code to reduce technical debt.
* Code cleanup
* Remove unreferenced LayoutAndDraw method from ApplicationImpl
* Code cleanup and TODOs
- Updated namespaces to reflect the new structure.
- Added `Driver`, `Force16Colors`, and `ForceDriver` properties.
- Introduced `Sixel` collection for sixel image management.
- Added lifecycle methods: `GetDriverTypes`, `Shutdown`, and events.
- Refactored `Init` to support legacy and modern drivers.
- Improved driver event handling and screen abstraction.
- Updated `Run` method to align with the application lifecycle.
- Simplified `IConsoleDriver` documentation.
- Removed redundant methods and improved code readability.
* Refactor LayoutAndDraw logic for better encapsulation
Refactored `Application.Run` to delegate `LayoutAndDraw` to
`ApplicationImpl.Instance.LayoutAndDraw`, improving separation
of concerns. Renamed `forceDraw` to `forceRedraw` for clarity
and moved `LayoutAndDraw` implementation to `ApplicationImpl`.
Added a new `LayoutAndDraw` method in `ApplicationImpl` to
handle layout and drawing, including managing `TopLevels`,
handling active popovers, and refreshing the screen. Updated
the `IApplication` interface to reflect the new method and
improved its documentation.
Implemented `RequestStop` in `ApplicationImpl` and fixed
formatting inconsistencies in `Run<T>`. Added TODOs for future
refactoring to encapsulate `Top` and `TopLevels` into an
`IViewHierarchy` and move certain properties to `IApplication`.
* Refactor ApplicationImpl to enhance mouse and keyboard support
Added a new `Mouse` property to the `ApplicationImpl` class,
replacing its previous declaration, to improve mouse
functionality. Updated `MouseGrabHandler` to initialize with
a default instance of `MouseGrabHandler`.
Added comments to ensure the preservation of existing keyboard
settings (`QuitKey`, `ArrangeKey`, `NextTabKey`) for backward
compatibility. These changes enhance clarity, functionality,
and maintainability of the class.
* Merge IMouseGrabHandler into IMouse - consolidate mouse handling into single interface
Co-authored-by: tig <585482+tig@users.noreply.github.com>
* Rename Mouse to MouseImpl and Keyboard to KeyboardImpl for consistency
Co-authored-by: tig <585482+tig@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tig <585482+tig@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
* 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>
* touching publish.yml
* ColorScheme->Scheme
* ColorScheme->Scheme 2
* Prototype of GetAttributeForRole
* Badly broke CM
* Further Badly broke CM
* Refactored CM big-time. View still broken
* All unit test pass again. Tons added. CM is still WIP, but Schemes is not mostly refactored and working.
* Actually:
All unit test pass again.
Tons added.
CM is still WIP, but Schemes is not mostly refactored and working.
* Bug fixes.
DeepMemberWiseClone cleanup
* Further cleanup of Scope<T>, ConfigProperty, etc.
* Made ConfigManager thread safe.
* WIP: Broken
* WIP: new deep clone impl
* WIP: new deep clone impl is done. Now fixing CM
* WIP:
- config.md
- Working on AOT clean up
- Core CM is broken; but known.
* WIP
* Merged.
Removed CM from Application.Init
* WIP
* More WIP; Less broke
* All CM unit tests pass... Not sure if it actually works though
* All unit tests pass... Themes are broken though in UI Cat
* CM Ready for review?
* Fixed failures due to TextStyles PR
* Working on Scheme/Attribute
* Working on Scheme/Attribute 2
* Working on Scheme/Attribute 3
* Working on Scheme/Attribute 4
* Working on Scheme/Attribute 5
* Working on Scheme/Attribute 6
* Added test to show how awful memory usage is
* Improved schema. Updated config.json
* Nade Scope<T> concurrentdictionary and added test to prove
* Made Themes ConcrurrentDictionary. Added bunches of tests
* Code cleanup
* Code cleanup 2
* Code cleanup 3
* Tweaking Scheme
* ClearJsonErrors
* ClearJsonErrors2
* Updated Attribute API
* It all (mostly) works!
* Skip odd unit test
* Messed with Themes
* Theme tweaks
* Code reorg. New .md stuff
* Fixed Enabled. Added mock driver
* Fixed a bunch of View.Enabled related issues
* Scheme -> Get/SetScheme()
* Cleanup
* Cleanup2
* Broke something
* Fixed everything
* Made CM.Enable better
* Text Style Scenario
* Added comments
* Fixed UI Catalog Theme Changing
* Fixed more dynamic CM update stuff
* Warning cleanup
* New Default Theme
* fixed unit test
* Refactoring Scheme and Attribute to fix inheritance
* more unit tests
* ConfigProperty is not updating schemes correctly
* All unit tests pass.
Code cleanup
* All unit tests pass.
Code cleanup2
* Fixed unit tests
* Upgraded TextField and TextView
* Fixed TextView !Enabled bug
* More updates to TextView. More unit tests for SchemeManager
* Upgraded CharMap
* API docs
* Fixe HexView API
* upgrade HexView
* Fixed shortcut KeyView
* Fixed more bugs. Added new themes
* updated themes
* upgraded Border
* Fixed themes memory usage...mostly
* Fixed themes memory usage...mostly2
* Fixed themes memory usage...2
* Fixed themes memory usage...3
* Added new colors
* Fixed GetHardCodedConfig bug
* Added Themes Scenario - WIP
* Added Themes Scenario
* Tweaked Themes Scenario
* Code cleanup
* Fixed json schmea
* updated deepdives
* updated deepdives
* Tweaked Themes Scenario
* Made Schemes a concurrent dict
* Test cleanup
* Thread safe ConfigProperty tests
* trying to make things more thread safe
* more trying to make things more thread safe
* Fixing bugs in shadowview
* Fixing bugs in shadowview 2
* Refactored GetViewsUnderMouse to GetViewsUnderLocation etc...
* Fixed dupe unit tests?
* Added better description of layout and coordiantes to deep dive
* Added better description of layout and coordiantes to deep dive
* Modified tests that call v2.AddTimeout; they were returning true which means restart the timer!
This was causing mac/linux unit test failures.
I think
* Fixed auto scheme.
Broke TextView/TextField selection
* Realized Attribute.IsExplicitlySet is stupid; just use nullable
* Fixed Attribute. Simplified. MOre theme testing
* Updated themes again
* GetViewsUnderMouse to GetViewsUnderLocation broke TransparentMouse.
* Fixing mouseunder bugs
* rewriting...
* All working again.
Shadows are now slick as snot.
GetViewsUnderLocation is rewritten to actually work and be readable.
Tons more low-level unit tests.
Margin is now actually ViewportSettings.Transparent.
* Code cleanup
* Code cleanup
* Code cleanup of color apis
* Fixed Hover/Highlight
* Update Examples/UICatalog/Scenarios/AllViewsTester.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update Examples/UICatalog/Scenarios/CharacterMap/CharacterMap.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update Examples/UICatalog/Scenarios/Clipping.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fixed race condition?
* reverted
* Simplified Attribute API by removing events from SetAttributeForRole
* Removed recursion from GetViewsAtLocation
* Removed unneeded code
* Code clean up.
Fixed Scheme bug.
* reverted temporary disable
* Adjusted scheme algo
* Upgraded TextValidateField
* Fixed TextValidate bugs
* Tweaks
* Frameview rounded border by default
* API doc cleanup
* Readme fix
* Addressed tznind feeback
* Fixed more unit test issues by protecting Application statics from being set if Application.Initialized is not true
* Fixed more unit test issues by protecting Application statics from being set if Application.Initialized is not true 2
* cleanup
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 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