Просмотр исходного кода

Fixes #4107 - Revamps Terminal.Gui's `namespace` (#4109)

* upgraded to gitversion 6 2

* Remove invalid prevent-increment property

* upgraded to gitversion 6 3

* Fixed gitversion

* touching publish.yml

* cleanup

* Fixes #4000. Named colors as enums. (#4005)

* Add W3C color enum with the RGB as numeric value

* Add transform helper class for W3cColor enum

For the sake of backwards compatibility prioritize parsing 16 color mode color names over the W3C colors because the previous resource-based color names/values had a mix of W3C and 16 color mode RGB values.

Mechanism for choosing/prioritizing one color scheme over the other is currently only available at higher application/driver/output level.

* IColorNameResolver enable null analysis

* Remove obsolete color name related ResourceManagerTests

* Replace remains of W3CColors with direct W3C color name resolver

Temporarily breaks backwards compatibility and tests even further.

* Add ANSI 4-bit (ColorName16) color name resolver

* Add multi-standard color name resolver

Combined resolver for both ANSI 4-bit (ColorName16) and W3C colors while trying to maintain backwards compatibility for ColorPicker.

* Split conditional name resolver test cases

* Change W3C colors tests to be similar to name resolvers

* Change W3cColorsTests to W3cColorNameResolverTests

More consistent when all the tests refer to the color name resolver layer.

* Make W3cColors internal

Color name resolver is the public interface.

* W3cColors: Use Color.Argb instead of individual RGB components

* MultiStandardColorNameResolver: Substitute instead of blocking alternative W3C names

Changes color picker behavior a bit, e.g. Aqua will match to Cyan instead of jumping to Aquamarine.

* Remove leftover color string resources

* Consistent position for IColorNameResolver #nullable enable directive

* Add missing XML comments to ColorScheme.Colors.cs

* 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

* 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

* Partially Fixes #2975 - Upgrades UICatalog to `Menuv2` (#4011)

* Fixes #4009 - fix tree ordering (#4015)

* Fixes #4022 file dialog tests and bugfix for cancellation (#4024)

* Add class for detecting information about console in extensible way

* WIP - Create test for reordering

* Change Dictionary to List and preserve TreeBuilder order

* Add test to ensure branch expansion/status remains consistent despite reorder

* Cleanup code

* Fix regression when removed child was the selected one

* Revert "Add class for detecting information about console in extensible way"

This reverts commit 7e4253cf28428ea80a4773b137d4bd89cf321746.

* Code cleanup and enable nullable on Branch

* Remove color scheme and driver from Branch draw

* Add xunit context extensions

* Investigate codegen for xunit

* Getting closer to something that works

* Fix code generation

* Further explore code gen

* Generate all methods in single class for easier extensibility

* Simplify code gen by moving parameter creation to its own method

* Implement asserts A-I

* Add remaining assert calls that are not obsolete

* Fix unit test

* Roll back versions to be compatible with CI version of csharp

* Handle params and ref etc

* Fix null warning

* WIP - start to add integration tests for FileDialog

* Add ability to tab focus to specific control with simple one line delegate

* Clarify test criteria

* Add unit tests for Ok and other ways of canceling dialog

* Fix other buttons also triggering save

* Fix for linux environment tests

* Fix for linux again

* Fix application null race condition - add better way of knowing if stuff is finished

* Better fix for shutdown detection

* Add test that shows #4026 is not an issue

* Switch to `_fileSystem.Directory.GetLogicalDrives ()`

* Don't show duplicate MyDocuments etc

* Partial on #2975 - Replaces Menu v1 in many places with v2 (#4040)

* touching publish.yml

* Fixed UICatalog bugs. Added fluent tests.

* marked v1 menu stuff as obsolte

* Tweaks.
Added View.GetSubMenus<type>().

* fixed unit tests

* general messing around

* general messing around

* Playing with Fluent

* ColorScheme tweaks

* WIP: ColorScheme tweaks

* Playing with Fluent

* Merged from laptop2

* Hacky-ish fixes to:
- #4016
- #4014

* Fixed Region bug preventing menus without borders from working

* Tweaks

* Fixed a bunch of CM issues

* Fixed OoptionSelector

* ip

* FixedCM issues

* Fixed CM issues2

* Revert "FixedCM issues"

This reverts commit dd6c6a70a3d16a6a13b572b80f9a41c8a721ed1c.

* Reverted stuff

* Found and fixed bug in AllViews_Center_Properly

* Fixed CM issues2

* removed menuv2 onapplied.
Changed how UICatalog Applys CM

* changed test time out to see if it helkps with ubuntu fails

* reset app on fail?

* back to 1500ms

* Made StatusBar nullable.

* Code Cleanup.

* HexEditor Code Cleanup.

* HexEditor Code Cleanup.

* Back to 3000ms. Sigh.

* Trying different logic

* Trying different logic2

* Fixed potential crash in runlop

* Fixed potential crash in runlop2

* Tweaked Spinner stuff

* Removed TabView from TextEffects scenario. Not needed and possible culprit.

* back to 2000ms

* WIP: Revamping menu scenarios

* Menu Scenario refinements.
Fixed a few bugs.
Code cleanup.

* fixed unit test

* Fixed warnings

* Fixed warnings2

* Fixed File.Exit

* WIP: Dealing with QuitKey struggles

* WIP: Dealing with QuitKey struggles 2

* WIP: Dealing with QuitKey struggles 3

* Fixed ListView collection nav bug

* Fixed a bunch of menu stuff.
Fixed Appv2 stuff.

* Lots of refactoring and fixing

* Lots of unit test issues

* Fixed DebugIDisposable issues

* Fixed release build issue

* Fixed release build issue 2

* DebugIDisposable -> EnableDebugIDisposableAsserts and more

* DebugIDisposable -> EnableDebugIDisposableAsserts and more 2

* Fixed Menus scenario - context menu

* Added @bdisp suggested assert. Commented it out as it breaks tests.

* Code cleanup

* Fixed disposed but

* Fixed UICatalog exit

* Fixed Unit test I broke.
Added 'Minimal' Theme that turns off all borders etc...

* Fixes #3966. TextField crashes app when pasting unicode surrogate pair (#3982)

* Add constructor Key(int) and operator for handled with non-Bmp.

* Fix TextField non-BMP issues

* Fix TextField PositionCursor.

* Reformat

* Add IsValidInput method to handle clipboard paste when pressing CTRL+V in WT

* Add handle IsValidInput in FakeDriver and unit tests

* Fixes #3984 - `Margin` w/out shadow should not force draw (#3985)

* shortcut tests

* Generic demos

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

* Fixes #4041. WSLClipboard doesn't handles well with surrogate pairs

* Avoid running Clipboard.Contents twice

* Fixes #4042. Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Could not find testhost

* Moving tests to the parallelizable unit tests

* Remove unused folder

* Prevent warnings about not installed nuget packages

* Using Toplevel instead of Application.Top

* Cleanup code

---------

Co-authored-by: Tig <[email protected]>

* Goblin fighter (#4037)

* touching publish.yml

* WIP Investigate how to build random maze

* Fix maze rendering

* Use line canvas for rendering

* Move around the maze

* Code cleanup

* Infinite maze

* Fight goblins

* Generate new npcs on new maps

* Code cleanup

* Make it possible to die

* Fix variable naming

* Refactored Mazing to use Commmands and KeyBindings.
Code cleanup of Mazing.
Refactored Snake to use KeyBindings/Commmands + some code cleanup

* Fix bug where your health would regenerate when reaching end making it impossible to loose.

---------

Co-authored-by: Tig <[email protected]>

* Fixes #4046 - Moves examples into `./Examples` and fixes `./Tests` (#4047)

* touching publish.yml

* Moved Examples into ./Examples

* Moved Benchmarks into ./Tests

* Moved Benchmarks into ./Tests

* Moved UICatalog into ./Examples

* Moved UICatalog into ./Examples 2

* Moved tests into ./Tests

* Updated nuget

* Fixes #4027. Add collection search matcher (#4029)

* Add collection search matcher

* Fix naming

* fix naming

* Move FileDialogCollectionNavigator to its own file (no longer private class)
Add class diagram for collectionNavigation

* Add ICollectionNavigator interface

* Move to separate file IListCollectionNavigator

* Update class diagram

* update class diagram

* Add tests for overriding ICollectionNavigatorMatcher

* xmldoc and nullability warning fixes

* Code Cleanup

* Make requested changes to naming and terminology

* Move to seperate namespace

* Update class diagram and change TreeView to reference the interface not concrete class

* Switch to implicit new

* highlight that this class also works with tree view

* Apply tig patch to ensure keybindings get priority over navigator

See: https://github.com/gui-cs/Terminal.Gui/issues/4027#issuecomment-2810020893

* Apply 'keybinding has priority' fix to TreeView too

* Apply 'keybindngs priority over navigation' fix to TableView

* Remove entire branch for selectively returning false now that it is default when there is a keybinding collision

* Make classes internal and remove 'custom' navigator that was configured in UICatlaogToplevel

* Change logging in collection navigator from Trace to Debug

* Switch to NewKeyDownEvent and directly setting HasFocus

* Remove application top dependency

* Remove references to application

* Remove Application

* Move new tests to parallel

---------

Co-authored-by: Tig <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>

* Update getting-started.md (#4063)

* Fixes #4035 - FileDialog keeps path when selecting folder (optionally) (#4065)

* WIP keep path

* Make new 'sticky filename' behaviour optional

* Tests for new behaviour when selecting in TreeView

* Add more tests, this time for table view navigation

* Add the new style option into UICatalog scenario

* Allow hotkey specifier to be at any position in label (#4067)

Allow hotkey specifier to be at any position in label

"D_irectory" doesn't work because hotPos is hardcoded 0

* Fixes #4053. v2 WindowsDriver and v2win doesn't show any scenario in the UICatalog with cmd or conhost (#4055)

* Fix WindowsDriver to work with non-WindowsTerminal

* Fix unit test failure

* Fix v2win to work with non-WindowsTerminal

* Force16Colors isn't being setting in v2win driver on changing.

---------

Co-authored-by: Tig <[email protected]>

* Fixes #4023 - Changes `CommandEventArgs` to be based on `HandledEventArgs` instead of `CancelEventArgs` (#4054)

* touching publish.yml

* CancelEventArgs->HandledEventArgs

* Fixed Handled issues

* Fixes #4076 cursor text field (#4077)

* Add test for TextField cursor position

* Add comment and one more assert

* Fix cursor position at the end

* Remove unused local field

---------

Co-authored-by: BDisp <[email protected]>

* Fixes #4074 - Popover eats `Key.Space` (#4075)

* touching publish.yml

* Added unit tests.
Fixed

* Actually fixed bug.

* Addres Bdisp feedback

* Addres Bdisp feedback2

* Addresses #4058. Basic support for non-color text styles. (#4071)

* TextStyle enum

* CSI_AppendTextStyleChange

* Add TextStyle to Attribute

* Apply text style in NetOutput.Write()

* Don't append escape code if nothing to change

* Make TextStyle an init property

* Apply TextStyle to OutputBuffer attributes

* Fix flag checking

Misunderstood how Enum.HasFlag worked, fixed now

* Allow bold-faint text

Also adds remarks to TextStyle noting that they may be incompatible depending on terminal settings.

* Remove unnecessary check

Realized it's actually impossible for no escape codes to be added, as this is only the case when prev and next are the same, which is already accounted for.

* Remove redundant check

Attributes are records, and thus already use equality-by-value, meaning attr != redrawAttr will already be false when the TextStyle changes.

* WindowsOutput support for text style

---------

Co-authored-by: Tig <[email protected]>

* More on #4058 - Adds `TextStyle` Scenario (#4079)

* Fixed Generic.cs.
Added TextStyles Scenario.

* Code cleanup

* Fixes #4070 - `GetContentSize()` api docs (#4081)

* touching publish.yml

* Fixed api docs

* Fixes #4070 - `GetContentSize()` API docs -2nd try (#4082)

* Fixed api docs again

* Fixes 4088 mouse released flag cannot be combined safely with report position (#4091)

* added more mouse under tests

* Fixes #4057 - MASSIVE! Fully implements `ColorScheme`->`Scheme` + `VisualRole` + `Colors.`->`SchemeManager.`  (#4062)

* 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 <[email protected]>

* Update Examples/UICatalog/Scenarios/CharacterMap/CharacterMap.cs

Co-authored-by: Copilot <[email protected]>

* Update Examples/UICatalog/Scenarios/Clipping.cs

Co-authored-by: Copilot <[email protected]>

* 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 <[email protected]>

* Removed API key2?

* Simplified usings

* Cleand up curses.
Fixed css

* One proposal

* Proposal 2

* Clean up

* Fixed API docs

* Auto gen list of views

* Auto gen list of views

* More API doc cleanup

* TextValidateField IDesignable

* regen view.md

* Fixed unit test failure

* Clean up

* Fixed CM editor bug

* Removed dupe file

* Deep dive clean up

* Fixed warnings

---------

Co-authored-by: Tonttu <[email protected]>
Co-authored-by: Thomas Nind <[email protected]>
Co-authored-by: BDisp <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Brandon G <[email protected]>
Co-authored-by: M3Logic <[email protected]>
Co-authored-by: Error-String-Expected-Got-Nil <[email protected]>
Tig 3 месяцев назад
Родитель
Сommit
cab22566ea
100 измененных файлов с 130 добавлено и 231 удалено
  1. 3 1
      Examples/CommunityToolkitExample/LoginView.Designer.cs
  2. 2 1
      Examples/CommunityToolkitExample/LoginView.cs
  3. 2 1
      Examples/CommunityToolkitExample/LoginViewModel.cs
  4. 4 1
      Examples/CommunityToolkitExample/Program.cs
  5. 9 4
      Examples/Example/Example.cs
  6. 4 1
      Examples/NativeAot/Program.cs
  7. 4 1
      Examples/ReactiveExample/LoginView.cs
  8. 1 4
      Examples/ReactiveExample/LoginViewModel.cs
  9. 4 1
      Examples/ReactiveExample/Program.cs
  10. 1 1
      Examples/ReactiveExample/TerminalScheduler.cs
  11. 2 1
      Examples/ReactiveExample/ViewExtensions.cs
  12. 4 1
      Examples/SelfContained/Program.cs
  13. 0 1
      Examples/UICatalog/README.md
  14. 0 1
      Examples/UICatalog/Scenario.cs
  15. 0 1
      Examples/UICatalog/Scenarios/Adornments.cs
  16. 0 1
      Examples/UICatalog/Scenarios/AllViewsTester.cs
  17. 0 1
      Examples/UICatalog/Scenarios/AnimationScenario/AnimationScenario.cs
  18. 0 1
      Examples/UICatalog/Scenarios/AnsiRequestsScenario.cs
  19. 3 4
      Examples/UICatalog/Scenarios/Arrangement.cs
  20. 0 1
      Examples/UICatalog/Scenarios/Bars.cs
  21. 0 1
      Examples/UICatalog/Scenarios/Buttons.cs
  22. 0 1
      Examples/UICatalog/Scenarios/CharacterMap/CharacterMap.cs
  23. 1 2
      Examples/UICatalog/Scenarios/ChineseUI.cs
  24. 0 1
      Examples/UICatalog/Scenarios/ClassExplorer.cs
  25. 1 2
      Examples/UICatalog/Scenarios/Clipping.cs
  26. 0 1
      Examples/UICatalog/Scenarios/CollectionNavigatorTester.cs
  27. 0 1
      Examples/UICatalog/Scenarios/ColorPicker.cs
  28. 0 1
      Examples/UICatalog/Scenarios/CombiningMarks.cs
  29. 0 1
      Examples/UICatalog/Scenarios/ComboBoxIteration.cs
  30. 0 1
      Examples/UICatalog/Scenarios/ComputedLayout.cs
  31. 46 77
      Examples/UICatalog/Scenarios/ConfigurationEditor.cs
  32. 0 1
      Examples/UICatalog/Scenarios/ContextMenus.cs
  33. 0 1
      Examples/UICatalog/Scenarios/CsvEditor.cs
  34. 1 2
      Examples/UICatalog/Scenarios/DatePickers.cs
  35. 0 1
      Examples/UICatalog/Scenarios/Dialogs.cs
  36. 0 1
      Examples/UICatalog/Scenarios/DimAutoDemo.cs
  37. 0 1
      Examples/UICatalog/Scenarios/DynamicMenuBar.cs
  38. 0 1
      Examples/UICatalog/Scenarios/DynamicStatusBar.cs
  39. 0 1
      Examples/UICatalog/Scenarios/Editor.cs
  40. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/AdornmentEditor.cs
  41. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/AdornmentsEditor.cs
  42. 1 2
      Examples/UICatalog/Scenarios/EditorsAndHelpers/AllViewsView.cs
  43. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/ArrangementEditor.cs
  44. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/BorderEditor.cs
  45. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/DimEditor.cs
  46. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/EditorBase.cs
  47. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/EventLog.cs
  48. 2 3
      Examples/UICatalog/Scenarios/EditorsAndHelpers/ExpanderButton.cs
  49. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/LayoutEditor.cs
  50. 3 4
      Examples/UICatalog/Scenarios/EditorsAndHelpers/MarginEditor.cs
  51. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/PosEditor.cs
  52. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/SchemeViewer.cs
  53. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/ThemeViewer.cs
  54. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/ViewPropertiesEditor.cs
  55. 24 25
      Examples/UICatalog/Scenarios/EditorsAndHelpers/ViewportSettingsEditor.cs
  56. 0 1
      Examples/UICatalog/Scenarios/EditorsAndHelpers/VisualRoleViewer.cs
  57. 0 1
      Examples/UICatalog/Scenarios/FileDialogExamples.cs
  58. 0 1
      Examples/UICatalog/Scenarios/Generic.cs
  59. 1 2
      Examples/UICatalog/Scenarios/GraphViewExample.cs
  60. 0 1
      Examples/UICatalog/Scenarios/HexEditor.cs
  61. 0 1
      Examples/UICatalog/Scenarios/HotKeys.cs
  62. 1 7
      Examples/UICatalog/Scenarios/Images.cs
  63. 0 1
      Examples/UICatalog/Scenarios/InteractiveTree.cs
  64. 0 1
      Examples/UICatalog/Scenarios/KeyBindings.cs
  65. 0 1
      Examples/UICatalog/Scenarios/Keys.cs
  66. 1 2
      Examples/UICatalog/Scenarios/LineCanvasExperiment.cs
  67. 0 1
      Examples/UICatalog/Scenarios/LineDrawing.cs
  68. 0 1
      Examples/UICatalog/Scenarios/LineViewExample.cs
  69. 0 1
      Examples/UICatalog/Scenarios/ListColumns.cs
  70. 2 3
      Examples/UICatalog/Scenarios/ListViewWithSelection.cs
  71. 0 1
      Examples/UICatalog/Scenarios/ListsAndCombos.cs
  72. 0 1
      Examples/UICatalog/Scenarios/Localization.cs
  73. 0 1
      Examples/UICatalog/Scenarios/Mazing.cs
  74. 0 1
      Examples/UICatalog/Scenarios/MenuBarScenario.cs
  75. 0 1
      Examples/UICatalog/Scenarios/Menus.cs
  76. 0 1
      Examples/UICatalog/Scenarios/MessageBoxes.cs
  77. 0 1
      Examples/UICatalog/Scenarios/Mouse.cs
  78. 0 1
      Examples/UICatalog/Scenarios/MultiColouredTable.cs
  79. 0 1
      Examples/UICatalog/Scenarios/Navigation.cs
  80. 0 1
      Examples/UICatalog/Scenarios/Notepad.cs
  81. 0 1
      Examples/UICatalog/Scenarios/NumericUpDownDemo.cs
  82. 0 1
      Examples/UICatalog/Scenarios/PosAlignDemo.cs
  83. 0 1
      Examples/UICatalog/Scenarios/ProcessTable.cs
  84. 0 1
      Examples/UICatalog/Scenarios/Progress.cs
  85. 0 1
      Examples/UICatalog/Scenarios/ProgressBarStyles.cs
  86. 0 1
      Examples/UICatalog/Scenarios/RegionScenario.cs
  87. 1 2
      Examples/UICatalog/Scenarios/RunTExample.cs
  88. 0 1
      Examples/UICatalog/Scenarios/RuneWidthGreaterThanOne.cs
  89. 0 1
      Examples/UICatalog/Scenarios/ScrollBarDemo.cs
  90. 0 1
      Examples/UICatalog/Scenarios/Scrolling.cs
  91. 0 1
      Examples/UICatalog/Scenarios/SendKeys.cs
  92. 0 1
      Examples/UICatalog/Scenarios/ShadowStyles.cs
  93. 0 1
      Examples/UICatalog/Scenarios/Shortcuts.cs
  94. 0 1
      Examples/UICatalog/Scenarios/SingleBackgroundWorker.cs
  95. 0 1
      Examples/UICatalog/Scenarios/Sliders.cs
  96. 0 1
      Examples/UICatalog/Scenarios/Snake.cs
  97. 0 1
      Examples/UICatalog/Scenarios/SpinnerStyles.cs
  98. 0 1
      Examples/UICatalog/Scenarios/SyntaxHighlighting.cs
  99. 0 1
      Examples/UICatalog/Scenarios/TabViewExample.cs
  100. 2 3
      Examples/UICatalog/Scenarios/TableEditor.cs

+ 3 - 1
Examples/CommunityToolkitExample/LoginView.Designer.cs

@@ -1,4 +1,6 @@
-using Terminal.Gui;
+
+using Terminal.Gui.ViewBase;
+using Terminal.Gui.Views;
 
 namespace CommunityToolkitExample;
 

+ 2 - 1
Examples/CommunityToolkitExample/LoginView.cs

@@ -1,5 +1,6 @@
 using CommunityToolkit.Mvvm.Messaging;
-using Terminal.Gui;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
 
 namespace CommunityToolkitExample;
 

+ 2 - 1
Examples/CommunityToolkitExample/LoginViewModel.cs

@@ -1,7 +1,8 @@
 using CommunityToolkit.Mvvm.ComponentModel;
 using CommunityToolkit.Mvvm.Input;
 using CommunityToolkit.Mvvm.Messaging;
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.Drawing;
 
 namespace CommunityToolkitExample;
 

+ 4 - 1
Examples/CommunityToolkitExample/Program.cs

@@ -1,5 +1,8 @@
 using Microsoft.Extensions.DependencyInjection;
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
+
 
 namespace CommunityToolkitExample;
 

+ 9 - 4
Examples/Example/Example.cs

@@ -1,9 +1,14 @@
-// This is a simple example application.  For the full range of functionality
-// see the UICatalog project
+// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements
 
-// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements
+// This is a simple example application.  For the full range of functionality
+// see the UICatalog project
 
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.App;
+using Terminal.Gui.Drawing;
+using Terminal.Gui.ViewBase;
+using Terminal.Gui.Views;
+using Attribute = Terminal.Gui.Drawing.Attribute;
 
 // Override the default configuration for the application to use the Light theme
 ConfigurationManager.RuntimeConfig = """{ "Theme": "Light" }""";

+ 4 - 1
Examples/NativeAot/Program.cs

@@ -3,7 +3,10 @@
 using System.Diagnostics;
 using System.Diagnostics.CodeAnalysis;
 using System.Globalization;
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.Views;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
 
 namespace NativeAot;
 

+ 4 - 1
Examples/ReactiveExample/LoginView.cs

@@ -2,7 +2,10 @@ using System.Reactive.Disposables;
 using System.Reactive.Linq;
 using ReactiveMarbles.ObservableEvents;
 using ReactiveUI;
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.Views;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
 
 namespace ReactiveExample;
 

+ 1 - 4
Examples/ReactiveExample/LoginViewModel.cs

@@ -1,12 +1,9 @@
-using System;
-using System.ComponentModel;
 using System.Reactive;
 using System.Reactive.Linq;
 using System.Runtime.Serialization;
-using System.Threading.Tasks;
 using ReactiveUI;
 using ReactiveUI.SourceGenerators;
-using Terminal.Gui;
+using Terminal.Gui.Input;
 
 namespace ReactiveExample;
 

+ 4 - 1
Examples/ReactiveExample/Program.cs

@@ -1,6 +1,9 @@
 using System.Reactive.Concurrency;
 using ReactiveUI;
-using Terminal.Gui;
+using ReactiveUI.SourceGenerators;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
 
 namespace ReactiveExample;
 

+ 1 - 1
Examples/ReactiveExample/TerminalScheduler.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Reactive.Concurrency;
 using System.Reactive.Disposables;
-using Terminal.Gui;
+using Terminal.Gui.App;
 
 namespace ReactiveExample;
 

+ 2 - 1
Examples/ReactiveExample/ViewExtensions.cs

@@ -1,5 +1,6 @@
 using System;
-using Terminal.Gui;
+using Terminal.Gui.ViewBase;
+using Terminal.Gui.Views;
 
 namespace ReactiveExample;
 public static class ViewExtensions

+ 4 - 1
Examples/SelfContained/Program.cs

@@ -3,7 +3,10 @@
 using System.Diagnostics;
 using System.Diagnostics.CodeAnalysis;
 using System.Globalization;
-using Terminal.Gui;
+using Terminal.Gui.Configuration;
+using Terminal.Gui.App;
+using Terminal.Gui.ViewBase;
+using Terminal.Gui.Views;
 
 namespace SelfContained;
 

+ 0 - 1
Examples/UICatalog/README.md

@@ -55,7 +55,6 @@ To add a new **Scenario** simply:
 The sample below is provided in the `.\UICatalog\Scenarios` directory as a generic sample that can be copied and re-named:
 
 ```csharp
-using Terminal.Gui;
 
 namespace UICatalog {
 	[ScenarioMetadata (Name: "Generic", Description: "Generic sample - A template for creating new Scenarios")]

+ 0 - 1
Examples/UICatalog/Scenario.cs

@@ -4,7 +4,6 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Diagnostics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Adornments.cs

@@ -1,5 +1,4 @@
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/AllViewsTester.cs

@@ -3,7 +3,6 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/AnimationScenario/AnimationScenario.cs

@@ -8,7 +8,6 @@ using System.Threading.Tasks;
 using SixLabors.ImageSharp;
 using SixLabors.ImageSharp.PixelFormats;
 using SixLabors.ImageSharp.Processing;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/AnsiRequestsScenario.cs

@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 3 - 4
Examples/UICatalog/Scenarios/Arrangement.cs

@@ -1,5 +1,4 @@
 using System.Collections.Generic;
-using Terminal.Gui;
 using Timer = System.Timers.Timer;
 
 namespace UICatalog.Scenarios;
@@ -192,7 +191,7 @@ public class Arrangement : Scenario
         TransparentView transparentView = new ()
         {
             Title = "Transparent",
-            ViewportSettings = Terminal.Gui.ViewportSettings.Transparent,
+            ViewportSettings = Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent,
             X = 30,
             Y = 5,
             Width = 35,
@@ -209,7 +208,7 @@ public class Arrangement : Scenario
         testFrame.Add (new TransparentView ()
         {
             Title = "Transparent|TransparentMouse",
-            ViewportSettings = Terminal.Gui.ViewportSettings.TransparentMouse | Terminal.Gui.ViewportSettings.Transparent
+            ViewportSettings = Terminal.Gui.ViewBase.ViewportSettingsFlags.TransparentMouse | Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent
         });
 
         adornmentsEditor.AutoSelectSuperView = testFrame;
@@ -336,7 +335,7 @@ public class Arrangement : Scenario
             Width = 30;
             Height = 10;
             Arrangement = ViewArrangement.Overlapped | ViewArrangement.Resizable | ViewArrangement.Movable;
-            ViewportSettings |= Terminal.Gui.ViewportSettings.Transparent | Terminal.Gui.ViewportSettings.TransparentMouse;
+            ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent | Terminal.Gui.ViewBase.ViewportSettingsFlags.TransparentMouse;
 
             Padding!.Thickness = new Thickness (1);
 

+ 0 - 1
Examples/UICatalog/Scenarios/Bars.cs

@@ -4,7 +4,6 @@ using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Buttons.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Text;
 using JetBrains.Annotations;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/CharacterMap/CharacterMap.cs

@@ -5,7 +5,6 @@ using System.Collections.Generic;
 using System.Globalization;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/ChineseUI.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-
+
 namespace UICatalog.Scenarios;
 
 [ScenarioMetadata ("ChineseUI", "Chinese UI")]

+ 0 - 1
Examples/UICatalog/Scenarios/ClassExplorer.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Reflection;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/Clipping.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-using Timer = System.Timers.Timer;
+using Timer = System.Timers.Timer;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/CollectionNavigatorTester.cs

@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ColorPicker.cs

@@ -1,6 +1,5 @@
 using System;
 using System.Collections.Generic;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/CombiningMarks.cs

@@ -1,4 +1,3 @@
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ComboBoxIteration.cs

@@ -1,6 +1,5 @@
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ComputedLayout.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 46 - 77
Examples/UICatalog/Scenarios/ConfigurationEditor.cs

@@ -1,13 +1,9 @@
 #nullable enable
-using System;
-using System.IO;
-using System.Linq;
 using System.Reflection;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
-[ScenarioMetadata ("Configuration Editor", "Editor of Terminal.Gui Config Files")]
+[ScenarioMetadata ("Configuration Editor", "Edits of Terminal.Gui Config Files")]
 [ScenarioCategory ("TabView")]
 [ScenarioCategory ("Colors")]
 [ScenarioCategory ("Files and IO")]
@@ -15,56 +11,46 @@ namespace UICatalog.Scenarios;
 [ScenarioCategory ("Configuration")]
 public class ConfigurationEditor : Scenario
 {
-    //private static Scheme _editorScheme = SchemeManager.GetScheme (Schemes.Base);
-
-    //private static Action? _editorSchemeChanged;
     private TabView? _tabView;
     private Shortcut? _lenShortcut;
 
-    //[ConfigurationProperty (Scope = typeof (AppSettingsScope))]
-    //public static Scheme EditorScheme
-    //{
-    //    get => _editorScheme;
-    //    set
-    //    {
-    //        _editorScheme = value;
-    //        _editorSchemeChanged?.Invoke ();
-    //    }
-    //}
-
     public override void Main ()
     {
         Application.Init ();
 
         Window? win = new ();
 
-        _lenShortcut = new Shortcut ()
+        _lenShortcut = new ()
         {
             Title = "",
         };
 
-        var quitShortcut = new Shortcut ()
+        Shortcut quitShortcut = new ()
         {
             Key = Application.QuitKey,
             Title = $"Quit",
             Action = Quit
         };
 
-        var reloadShortcut = new Shortcut ()
+        Shortcut reloadShortcut = new  ()
         {
             Key = Key.F5.WithShift,
             Title = "Reload",
         };
-        reloadShortcut.Accepting += (s, e) => { Reload (); };
+        reloadShortcut.Accepting += (s, e) =>
+                                    {
+                                        Reload ();
+                                        e.Handled = true;
+                                    };
 
-        var saveShortcut = new Shortcut ()
+        Shortcut saveShortcut = new  ()
         {
             Key = Key.F4,
             Title = "Save",
             Action = Save
         };
 
-        var statusBar = new StatusBar ([quitShortcut, reloadShortcut, saveShortcut, _lenShortcut]);
+        StatusBar statusBar = new ([quitShortcut, reloadShortcut, saveShortcut, _lenShortcut]);
 
         _tabView = new ()
         {
@@ -77,43 +63,19 @@ public class ConfigurationEditor : Scenario
         win.Loaded += (s, a) =>
                       {
                           Open ();
-                          //_editorSchemeChanged?.Invoke ();
                       };
 
-
-
-        //_editorSchemeChanged += OnEditorSchemeChanged;
-
         ConfigurationManager.Applied += ConfigurationManagerOnApplied;
 
         Application.Run (win);
-        //_editorSchemeChanged -= OnEditorSchemeChanged;
         win.Dispose ();
-        win = null;
-
         Application.Shutdown ();
 
         return;
 
-        //void OnEditorSchemeChanged ()
-        //{
-        //    if (Application.Top is { })
-        //    {
-        //        return;
-        //    }
-
-        //    foreach (ConfigTextView t in _tabView.SubViews.OfType<ConfigTextView> ())
-        //    {
-        //        t.SetScheme (EditorScheme);
-        //    }
-        //}
-
         void ConfigurationManagerOnApplied (object? sender, ConfigurationManagerEventArgs e)
         {
-            if (win is { })
-            {
-                win.SetNeedsDraw ();
-            }
+            Application.Top?.SetNeedsDraw ();
         }
     }
     public void Save ()
@@ -126,7 +88,7 @@ public class ConfigurationEditor : Scenario
 
     private void Open ()
     {
-        foreach (var config in ConfigurationManager.SourcesManager!.Sources)
+        foreach (KeyValuePair<ConfigLocations, string> config in ConfigurationManager.SourcesManager!.Sources)
         {
             var homeDir = $"{Environment.GetFolderPath (Environment.SpecialFolder.UserProfile)}";
             var fileInfo = new FileInfo (config.Value.Replace ("~", homeDir));
@@ -145,7 +107,7 @@ public class ConfigurationEditor : Scenario
 
             }
 
-            Tab tab = new Tab ()
+            Tab tab = new ()
             {
                 View = editor,
                 DisplayText = config.Key.ToString ()
@@ -186,32 +148,37 @@ public class ConfigurationEditor : Scenario
                                                                     return null;
                                                                 }).Cast<ConfigTextView> ())
         {
-            if (editor.IsDirty)
+            if (!editor.IsDirty)
             {
-                int result = MessageBox.Query (
-                                               "Save Changes",
-                                               $"Save changes to {editor.FileInfo!.Name}",
-                                               "_Yes",
-                                               "_No",
-                                               "_Cancel"
-                                              );
-
-                if (result == -1 || result == 2)
-                {
-                    // user cancelled
-                }
+                continue;
+            }
 
-                if (result == 0)
-                {
+            int result = MessageBox.Query (
+                                           "Save Changes",
+                                           $"Save changes to {editor.FileInfo!.Name}",
+                                           "_Yes",
+                                           "_No",
+                                           "_Cancel"
+                                          );
+
+            switch (result)
+            {
+                case 0:
                     editor.Save ();
-                }
+
+                    break;
+
+                default:
+                case -1 or 2:
+                    // user cancelled
+                    return;
             }
         }
 
         Application.RequestStop ();
     }
 
-    private void Reload ()
+    private static void Reload ()
     {
         if (Application.Navigation?.GetFocused () is ConfigTextView editor)
         {
@@ -226,7 +193,7 @@ public class ConfigurationEditor : Scenario
             TabStop = TabBehavior.TabGroup;
         }
 
-        internal FileInfo? FileInfo { get; set; }
+        internal FileInfo? FileInfo { get; init; }
 
         internal void Read ()
         {
@@ -247,16 +214,18 @@ public class ConfigurationEditor : Scenario
                 string? name = assembly
                                .GetManifestResourceNames ()
                                .FirstOrDefault (x => x.EndsWith ("config.json"));
-                if (!string.IsNullOrEmpty (name))
-                {
 
-                    using Stream? stream = assembly.GetManifestResourceStream (name);
-                    using var reader = new StreamReader (stream!);
-                    Text = reader.ReadToEnd ();
-                    ReadOnly = true;
-                    Enabled = true;
+                if (string.IsNullOrEmpty (name))
+                {
+                    return;
                 }
 
+                using Stream? stream = assembly.GetManifestResourceStream (name);
+                using var reader = new StreamReader (stream!);
+                Text = reader.ReadToEnd ();
+                ReadOnly = true;
+                Enabled = true;
+
                 return;
             }
 

+ 0 - 1
Examples/UICatalog/Scenarios/ContextMenus.cs

@@ -1,6 +1,5 @@
 using System.Globalization;
 using JetBrains.Annotations;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/CsvEditor.cs

@@ -5,7 +5,6 @@ using System.IO;
 using System.Linq;
 using System.Text.RegularExpressions;
 using CsvHelper;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/DatePickers.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-
+
 namespace UICatalog.Scenarios;
 
 [ScenarioMetadata ("Date Picker", "Demonstrates how to use DatePicker class")]

+ 0 - 1
Examples/UICatalog/Scenarios/Dialogs.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/DimAutoDemo.cs

@@ -1,6 +1,5 @@
 using System;
 using System.Collections.Generic;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/DynamicMenuBar.cs

@@ -3,7 +3,6 @@ using System.ComponentModel;
 using System.Reflection;
 using System.Runtime.CompilerServices;
 using System.Text;
-using Terminal.Gui;
 
 #pragma warning disable CS0618 // Type or member is obsolete
 

+ 0 - 1
Examples/UICatalog/Scenarios/DynamicStatusBar.cs

@@ -5,7 +5,6 @@ using System.Linq;
 using System.Reflection;
 using System.Runtime.CompilerServices;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Editor.cs

@@ -7,7 +7,6 @@ using System.Linq;
 using System.Text;
 using System.Text.RegularExpressions;
 using System.Threading;
-using Terminal.Gui;
 using static UICatalog.Scenarios.DynamicMenuBar;
 
 namespace UICatalog.Scenarios;

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/AdornmentEditor.cs

@@ -1,6 +1,5 @@
 #nullable enable
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/AdornmentsEditor.cs

@@ -1,6 +1,5 @@
 #nullable enable
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/EditorsAndHelpers/AllViewsView.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-
+
 namespace UICatalog.Scenarios;
 
 public class AllViewsView : View

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/ArrangementEditor.cs

@@ -1,7 +1,6 @@
 #nullable enable
 using System;
 using System.Collections.Generic;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/BorderEditor.cs

@@ -2,7 +2,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/DimEditor.cs

@@ -3,7 +3,6 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/EditorBase.cs

@@ -2,7 +2,6 @@
 using System;
 using System.Diagnostics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/EventLog.cs

@@ -1,7 +1,6 @@
 #nullable enable
 using System;
 using System.Collections.ObjectModel;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 2 - 3
Examples/UICatalog/Scenarios/EditorsAndHelpers/ExpanderButton.cs

@@ -1,7 +1,6 @@
 #nullable enable
 using System;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
@@ -14,9 +13,9 @@ namespace UICatalog.Scenarios;
 ///         (F4) or mouse.
 ///     </para>
 ///     <para>
-///         If <see cref="Orientation"/> is set to <see cref="Terminal.Gui.Orientation.Vertical"/>, the button will appear
+///         If <see cref="Orientation"/> is set to <see cref="Orientation.Vertical"/>, the button will appear
 ///         at the top/right.
-///         If <see cref="Orientation"/> is set to <see cref="Terminal.Gui.Orientation.Horizontal"/>, the button will
+///         If <see cref="Orientation"/> is set to <see cref="Orientation.Horizontal"/>, the button will
 ///         appear at the
 ///         bottom/left.
 ///     </para>

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/LayoutEditor.cs

@@ -2,7 +2,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 3 - 4
Examples/UICatalog/Scenarios/EditorsAndHelpers/MarginEditor.cs

@@ -1,6 +1,5 @@
 #nullable enable
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
@@ -57,8 +56,8 @@ public class MarginEditor : AdornmentEditor
 
         var flags = new Dictionary<uint, string> ()
         {
-            { (uint)Terminal.Gui.ViewportSettings.Transparent, "Transparent" },
-            { (uint)Terminal.Gui.ViewportSettings.TransparentMouse, "TransparentMouse" }
+            { (uint)Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent, "Transparent" },
+            { (uint)Terminal.Gui.ViewBase.ViewportSettingsFlags.TransparentMouse, "TransparentMouse" }
         };
 
         _flagSelectorTransparent = new FlagSelector ()
@@ -82,7 +81,7 @@ public class MarginEditor : AdornmentEditor
 
         _flagSelectorTransparent.ValueChanged += (_, args) =>
                                                  {
-                                                     ((Margin)AdornmentToEdit!).ViewportSettings = (Terminal.Gui.ViewportSettings)args.CurrentValue!;
+                                                     ((Margin)AdornmentToEdit!).ViewportSettings = (ViewportSettingsFlags)args.CurrentValue!;
                                                  };
 
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/PosEditor.cs

@@ -3,7 +3,6 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/SchemeViewer.cs

@@ -1,5 +1,4 @@
 #nullable enable
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/ThemeViewer.cs

@@ -1,5 +1,4 @@
 #nullable enable
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/ViewPropertiesEditor.cs

@@ -1,5 +1,4 @@
 #nullable enable
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 24 - 25
Examples/UICatalog/Scenarios/EditorsAndHelpers/ViewportSettingsEditor.cs

@@ -1,6 +1,5 @@
 #nullable enable
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
@@ -32,35 +31,35 @@ public sealed class ViewportSettingsEditor : EditorBase
             _contentSizeWidth!.Value = ViewToEdit.GetContentSize ().Width;
             _contentSizeHeight!.Value = ViewToEdit.GetContentSize ().Height;
 
-            _cbAllowNegativeX!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.AllowNegativeX)
+            _cbAllowNegativeX!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.AllowNegativeX)
                                                   ? CheckState.Checked
                                                   : CheckState.UnChecked;
 
-            _cbAllowNegativeY!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.AllowNegativeY)
+            _cbAllowNegativeY!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.AllowNegativeY)
                                                   ? CheckState.Checked
                                                   : CheckState.UnChecked;
 
-            _cbAllowXGreaterThanContentWidth!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.AllowXGreaterThanContentWidth)
+            _cbAllowXGreaterThanContentWidth!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.AllowXGreaterThanContentWidth)
                                                                  ? CheckState.Checked
                                                                  : CheckState.UnChecked;
 
-            _cbAllowYGreaterThanContentHeight!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.AllowYGreaterThanContentHeight)
+            _cbAllowYGreaterThanContentHeight!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.AllowYGreaterThanContentHeight)
                                                                   ? CheckState.Checked
                                                                   : CheckState.UnChecked;
 
-            _cbClearContentOnly!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.ClearContentOnly)
+            _cbClearContentOnly!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.ClearContentOnly)
                                                     ? CheckState.Checked
                                                     : CheckState.UnChecked;
 
-            _cbClipContentOnly!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.ClipContentOnly)
+            _cbClipContentOnly!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.ClipContentOnly)
                                                    ? CheckState.Checked
                                                    : CheckState.UnChecked;
 
-            _cbTransparent!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.Transparent)
+            _cbTransparent!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.Transparent)
                                                ? CheckState.Checked
                                                : CheckState.UnChecked;
 
-            _cbTransparentMouse!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (Terminal.Gui.ViewportSettings.TransparentMouse)
+            _cbTransparentMouse!.CheckedState = ViewToEdit.ViewportSettings.HasFlag (ViewportSettingsFlags.TransparentMouse)
                                                ? CheckState.Checked
                                                : CheckState.UnChecked;
 
@@ -120,11 +119,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.AllowNegativeX;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowNegativeX;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.AllowNegativeX;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowNegativeX;
             }
         }
 
@@ -132,11 +131,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.AllowXGreaterThanContentWidth;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowXGreaterThanContentWidth;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.AllowXGreaterThanContentWidth;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowXGreaterThanContentWidth;
             }
         }
 
@@ -158,11 +157,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.AllowNegativeY;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowNegativeY;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.AllowNegativeY;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowNegativeY;
             }
         }
 
@@ -170,11 +169,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.AllowYGreaterThanContentHeight;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowYGreaterThanContentHeight;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.AllowYGreaterThanContentHeight;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowYGreaterThanContentHeight;
             }
         }
 
@@ -248,11 +247,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.ClearContentOnly;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.ClearContentOnly;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.ClearContentOnly;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.ClearContentOnly;
             }
         }
 
@@ -269,11 +268,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.ClipContentOnly;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.ClipContentOnly;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.ClipContentOnly;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.ClipContentOnly;
             }
         }
 
@@ -290,11 +289,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.Transparent;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.Transparent;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.Transparent;
             }
         }
 
@@ -311,11 +310,11 @@ public sealed class ViewportSettingsEditor : EditorBase
         {
             if (e.NewValue == CheckState.Checked)
             {
-                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewportSettings.TransparentMouse;
+                ViewToEdit!.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.TransparentMouse;
             }
             else
             {
-                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewportSettings.TransparentMouse;
+                ViewToEdit!.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.TransparentMouse;
             }
         }
 

+ 0 - 1
Examples/UICatalog/Scenarios/EditorsAndHelpers/VisualRoleViewer.cs

@@ -1,5 +1,4 @@
 #nullable enable
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/FileDialogExamples.cs

@@ -3,7 +3,6 @@ using System.IO;
 using System.IO.Abstractions;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Generic.cs

@@ -1,5 +1,4 @@
 #nullable enable
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/GraphViewExample.cs

@@ -3,8 +3,7 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
-using Application = Terminal.Gui.Application;
+using Application = Terminal.Gui.App.Application;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/HexEditor.cs

@@ -1,7 +1,6 @@
 #nullable enable
 
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/HotKeys.cs

@@ -1,4 +1,3 @@
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 7
Examples/UICatalog/Scenarios/Images.cs

@@ -1,15 +1,9 @@
-using System;
-using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
+using System.Collections.Concurrent;
 using System.Text;
 using ColorHelper;
 using SixLabors.ImageSharp;
 using SixLabors.ImageSharp.PixelFormats;
 using SixLabors.ImageSharp.Processing;
-using Terminal.Gui;
-using Color = Terminal.Gui.Color;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/InteractiveTree.cs

@@ -1,5 +1,4 @@
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/KeyBindings.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Keys.cs

@@ -1,5 +1,4 @@
 using System.Collections.ObjectModel;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/LineCanvasExperiment.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-
+
 namespace UICatalog.Scenarios;
 
 [ScenarioMetadata ("LineCanvas Experiments", "Experiments with LineCanvas")]

+ 0 - 1
Examples/UICatalog/Scenarios/LineDrawing.cs

@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/LineViewExample.cs

@@ -1,6 +1,5 @@
 using System.Globalization;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ListColumns.cs

@@ -2,7 +2,6 @@
 using System.Collections;
 using System.Collections.Generic;
 using System.Data;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 2 - 3
Examples/UICatalog/Scenarios/ListViewWithSelection.cs

@@ -6,7 +6,6 @@ using System.Collections.Specialized;
 using System.ComponentModel;
 using System.Text;
 using JetBrains.Annotations;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
@@ -156,11 +155,11 @@ public class ListViewWithSelection : Scenario
     {
         if (stateEventArgs.NewValue == CheckState.Checked)
         {
-            _listView.ViewportSettings |= Terminal.Gui.ViewportSettings.AllowYGreaterThanContentHeight;
+            _listView.ViewportSettings |= Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowYGreaterThanContentHeight;
         }
         else
         {
-            _listView.ViewportSettings &= ~Terminal.Gui.ViewportSettings.AllowYGreaterThanContentHeight;
+            _listView.ViewportSettings &= ~Terminal.Gui.ViewBase.ViewportSettingsFlags.AllowYGreaterThanContentHeight;
         }
         _appWindow.SetNeedsDraw ();
     }

+ 0 - 1
Examples/UICatalog/Scenarios/ListsAndCombos.cs

@@ -2,7 +2,6 @@
 using System.Collections.ObjectModel;
 using System.IO;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Localization.cs

@@ -2,7 +2,6 @@
 using System.Globalization;
 using System.Linq;
 using System.Threading;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Mazing.cs

@@ -1,6 +1,5 @@
 #nullable enable
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/MenuBarScenario.cs

@@ -1,5 +1,4 @@
 using System;
-using Terminal.Gui;
 using static System.Runtime.InteropServices.JavaScript.JSType;
 
 namespace UICatalog.Scenarios;

+ 0 - 1
Examples/UICatalog/Scenarios/Menus.cs

@@ -6,7 +6,6 @@ using Microsoft.Extensions.Logging;
 using Serilog;
 using Serilog.Core;
 using Serilog.Events;
-using Terminal.Gui;
 using ILogger = Microsoft.Extensions.Logging.ILogger;
 
 namespace UICatalog.Scenarios;

+ 0 - 1
Examples/UICatalog/Scenarios/MessageBoxes.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Mouse.cs

@@ -2,7 +2,6 @@
 using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/MultiColouredTable.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Data;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Navigation.cs

@@ -1,6 +1,5 @@
 using System.Text;
 using System.Timers;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Notepad.cs

@@ -1,6 +1,5 @@
 using System.IO;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/NumericUpDownDemo.cs

@@ -1,6 +1,5 @@
 #nullable enable 
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/PosAlignDemo.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ProcessTable.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Progress.cs

@@ -2,7 +2,6 @@
 using System.Diagnostics;
 using System.Linq;
 using System.Threading;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ProgressBarStyles.cs

@@ -4,7 +4,6 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Linq;
 using System.Threading;
-using Terminal.Gui;
 using static UICatalog.Scenarios.Adornments;
 
 namespace UICatalog.Scenarios;

+ 0 - 1
Examples/UICatalog/Scenarios/RegionScenario.cs

@@ -3,7 +3,6 @@ using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 using UICatalog;
 using UICatalog.Scenarios;
 

+ 1 - 2
Examples/UICatalog/Scenarios/RunTExample.cs

@@ -1,5 +1,4 @@
-using Terminal.Gui;
-
+
 namespace UICatalog.Scenarios;
 
 [ScenarioMetadata ("Run<T> Example", "Illustrates using Application.Run<T> to run a custom class")]

+ 0 - 1
Examples/UICatalog/Scenarios/RuneWidthGreaterThanOne.cs

@@ -1,5 +1,4 @@
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ScrollBarDemo.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections.ObjectModel;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Scrolling.cs

@@ -1,6 +1,5 @@
 using System;
 using Microsoft.CodeAnalysis.CSharp.Syntax;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/SendKeys.cs

@@ -1,5 +1,4 @@
 using System;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/ShadowStyles.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Diagnostics.Metrics;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Shortcuts.cs

@@ -1,7 +1,6 @@
 #nullable enable
 
 using System.Collections.ObjectModel;
-using Terminal.Gui;
 using Timer = System.Timers.Timer;
 
 namespace UICatalog.Scenarios;

+ 0 - 1
Examples/UICatalog/Scenarios/SingleBackgroundWorker.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.Threading;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Sliders.cs

@@ -1,6 +1,5 @@
 using System.Collections.ObjectModel;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/Snake.cs

@@ -1,6 +1,5 @@
 using System.Diagnostics;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/SpinnerStyles.cs

@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Linq;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/SyntaxHighlighting.cs

@@ -7,7 +7,6 @@ using System.Reflection;
 using System.Text;
 using System.Text.Json;
 using System.Text.RegularExpressions;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 0 - 1
Examples/UICatalog/Scenarios/TabViewExample.cs

@@ -1,6 +1,5 @@
 using System.Linq;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 

+ 2 - 3
Examples/UICatalog/Scenarios/TableEditor.cs

@@ -1,7 +1,6 @@
 using System.Data;
 using System.Globalization;
 using System.Text;
-using Terminal.Gui;
 
 namespace UICatalog.Scenarios;
 
@@ -61,8 +60,8 @@ public class TableEditor : Scenario
              "Cuneiform Numbers and Punctuation"
             ),
         new (
-             (uint)(Terminal.Gui.UnicodeRange.Ranges.Max (r => r.End) - 16),
-             (uint)Terminal.Gui.UnicodeRange.Ranges.Max (r => r.End),
+             (uint)(Terminal.Gui.Views.UnicodeRange.Ranges.Max (r => r.End) - 16),
+             (uint)Terminal.Gui.Views.UnicodeRange.Ranges.Max (r => r.End),
              "End"
             ),
         new (0x0020, 0x007F, "Basic Latin"),

Некоторые файлы не были показаны из-за большого количества измененных файлов