Commit Graph

4218 Commits

Author SHA1 Message Date
Tigger Kindel
edf537669c Adjusting gitversion 2023-06-07 09:56:54 -06:00
Tigger Kindel
5e9cf9a999 Release v2.0.0-alpha.4 v2.0.0-alpha.4 2023-06-07 09:54:13 -06:00
Tigger Kindel
6d5b5090df Trying to get gitversion to do what I want 2023-06-07 09:53:37 -06:00
Tigger Kindel
4a52aa3d09 Release v2.0.0-alpha.3 v2.0.0-alpha.3 2023-06-07 09:52:22 -06:00
Tigger Kindel
9df14e80d9 Trying to get gitversion to do what I want 2023-06-07 09:51:52 -06:00
Tigger Kindel
570de8f110 Trying to get gitversion to do what I want 2023-06-07 09:51:11 -06:00
Tigger Kindel
d732bdfe2f Release v2.0.0-alpha.2 2023-06-07 09:43:16 -06:00
Tigger Kindel
6b25eb010a Updated yml to just publish on new tag v2.0.0-alpha.2 2023-06-07 09:42:30 -06:00
Tigger Kindel
1699a7f249 Release v2.0.0-alpha.1 2023-06-07 09:36:58 -06:00
Tigger Kindel
276d8ab5b0 Updated yml to only publish alpha tags v2.0.0-alpha.1 2023-06-07 09:31:50 -06:00
Tigger Kindel
842f48c405 Release v2.0.0-alpha.0 2023-06-07 09:24:18 -06:00
Tigger Kindel
2a3871a572 Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop v2.0.0-alpha.0 2023-06-07 09:24:18 -06:00
Tig
454f322667 Publishes v2 alpha on push to v2_develop (#2702)
* Comment/warning clean up

* Fixed ListView OnSelected bug caused by Bounds != Frame

* Updated yml to publish alpha
2023-06-07 09:24:01 -06:00
Tigger Kindel
5e5a377995 Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop 2023-06-07 08:26:18 -06:00
Tig
816eb2a183 Updates project references for v2 (#2697)
* Updates project refs
2023-06-07 08:26:01 -06:00
Tigger Kindel
e6c8d21981 Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop 2023-05-30 09:10:36 -06:00
BDisp
76b3529afe Fixes #2678. TextView stops being responsive after application is sent to the background 2023-05-28 06:39:20 +02:00
tznind
e70ce0f13b Add extra assertions to TestSpinnerView_AutoSpin 2023-05-28 06:36:51 +02:00
tznind
43c0fab462 Whitespace fix 2023-05-28 06:36:51 +02:00
tznind
94c3de473c Change AutoSpin from a method to a property 2023-05-28 06:36:51 +02:00
BDisp
fb3dde2289 Fixes #1683. The application freezes while resizing the terminal on MacOS (#2667)
* Fixes #1683. The application freezes while resizing the terminal on MacOS

* Remove unused variable.
2023-05-24 08:08:21 +02:00
Thomas Nind
e2feeefa93 Fixes #2663 - No more nested classes (#2664)
* Move all public nested classes out into own files

* Move more nested classes out

* Tidy up and treat CA1034 as an error.  Fix remaining nested classes.

* Remove partial keyword from ThemeManager as it is no longer needed

* Rename Bar to BarSeriesBar to more clearly indicate it is part of GraphView subsystem

* Fix xmldoc references

* Revert nesting changes to ConsoleDrivers

* Change to file scoped namespaces and revert renames

- LineCanvasCell back to just Cell
- ApplicationRunState back to just RunState

* Switch to file scoped namespaces
2023-05-23 13:42:47 +02:00
BDisp
24ce90812f Fixes #2659. Cursor always invisible with NetDriver on Windows. (#2660)
* Fixes #2659. Cursor always invisible with NetDriver on Windows.

* Prefix private members with underscore and rename Initialize to SetInitialProperties.

* Reset _visibility private member after validation.

* Hide cursor during screen update.
2023-05-23 00:03:51 +02:00
BDisp
59a7ff95b3 Fixes #2655. Should be avoid cast to char on a Rune ctor which always fallback for a UTF16 char. (#2656) 2023-05-22 08:14:12 +02:00
BDisp
ef6f355f50 Fixes #2653. TextField is using the UTF8 encoding to handle substring not compatible with string. (#2654) 2023-05-22 06:18:18 +02:00
Thomas Nind
0ea7a871ce Adds TreeView MaxDepth (#2651) 2023-05-21 23:26:50 +02:00
Tig
4d6781e5f9 Fixes #2649 - Unit Tests on Windows are failing (#2650)
* attempt to fix

* Removed unneeded ToString() calls

* Forced all unit tests to use FakeClipboard
2023-05-21 17:45:02 +02:00
BDisp
5eed00e8f5 Fixes #2646. CharacterMap scenario is throwing exception with surrogate code points. (#2648)
* Fixes #2646. CharacterMap scenario is throwing exception with surrogate code points.

* Add "low surrogate" in unit test.
2023-05-21 16:24:05 +02:00
Tig Kindel
6190fc6411 dotnet 7.0.x 2023-05-21 15:37:44 +02:00
Tig Kindel
f358088f91 dotnet 7.0.4 2023-05-21 15:35:55 +02:00
Tig Kindel
f6460f360d Adjust yaml for easier diagnostics 2023-05-21 15:35:15 +02:00
Tig
a6b05b83cd Fixes #2632. Updates RuneJsonConverter to deal with more formats (#2640)
* Remove NStack and replace ustring to string.

* Add unit test and improving some code.

* Adjust code and fix all unit tests errors.

* Add XML Document and move the Rune folder into the Text folder.

* Improve unit tests with byte array on DecodeRune and DecodeLastRune.

* Fix unit test.

* 😂Code review

* Reduce unit tests code.

* Change StringExtensions.Make to StringExtensions.ToString and added some more unit tests.

* Fix merge errors.

* Remove GetTextWidth and calls replaced with StringExtensions.GetColumns.

* Hack to use UseSystemConsole passed in the command line arguments.

* Revert "Hack to use UseSystemConsole passed in the command line arguments."

This reverts commit b74d11c786.

* Remove Application.UseSystemConsole from the config file.

* Fix errors related by removing UseSystemConsole from the config file.

* Fixes #2633. DecodeEscSeq throw an exception if cki is null.

* Fix an exception if SelectedItem is -1.

* Set SelectedItem to 0 and remove unnecessary ToString.

* Updated RuneJsonConverter to deal with more formats

* nonBMP apple

* Adjusted unit tests

* Added ConsoleDriver.IsRuneSupported API

* Removed debug code

* Disabled non-BMP in CursesDriver

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-05-21 12:18:48 +02:00
Thomas Nind
d0107e6026 Fixes #2643 - Make AllowedType more permissive in file matching (#2644)
* Make AllowedType more flexible

* Add test cases for passing empty/null strings to IsAllowed
2023-05-20 19:59:35 +02:00
Tig
ecf6d4f340 Revamps CharMap (#2625)
* Remove NStack and replace ustring to string.

* Add unit test and improving some code.

* Adjust code and fix all unit tests errors.

* Add XML Document and move the Rune folder into the Text folder.

* Improve unit tests with byte array on DecodeRune and DecodeLastRune.

* Fix unit test.

* Fixed bugs

* Scenario desc

* 😂Code review

* Fixed merge issue

* Reduce unit tests code.

* Change StringExtensions.Make to StringExtensions.ToString and added some more unit tests.

* Fix merge errors.

* Remove GetTextWidth and calls replaced with StringExtensions.GetColumns.

* Hack to use UseSystemConsole passed in the command line arguments.

* Revert "Hack to use UseSystemConsole passed in the command line arguments."

This reverts commit b74d11c786.

* Remove Application.UseSystemConsole from the config file.

* Fix errors related by removing UseSystemConsole from the config file.

* Fixes #2633. DecodeEscSeq throw an exception if cki is null.

* Fix an exception if SelectedItem is -1.

* Set SelectedItem to 0 and remove unnecessary ToString.

* Using a unique ToString method for Rune and other for byte.

* Fix a bug where a wider rune is added with only a width of 1.

* Force the SelectedGlyph is the one that was typed after jumpList is executed.

* Added more InlineData to RuneTests.

* Reducing significantly the code by using Theory attribute in the TextFormatterTests.

* Override PositionCursor to handle the CharMap cursor position.

* Fix merge errors.

* Fixed cursor issue?

* Switched to TableView

* Fixed select when sorted by range

* SearchNav now works with start/end

* Fixed text changed bug

* Added abilty to sort ascending/descending

* Minor tweaks to API docs

* Column width = 3

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-05-20 19:58:57 +02:00
BDisp
713b2c4725 Fixes #92. Remove dependency on ustring. (#2620)
* Remove NStack and replace ustring to string.

* Add unit test and improving some code.

* Adjust code and fix all unit tests errors.

* Add XML Document and move the Rune folder into the Text folder.

* Improve unit tests with byte array on DecodeRune and DecodeLastRune.

* Fix unit test.

* 😂Code review

* Reduce unit tests code.

* Change StringExtensions.Make to StringExtensions.ToString and added some more unit tests.

* Fix merge errors.

* Remove GetTextWidth and calls replaced with StringExtensions.GetColumns.

* Hack to use UseSystemConsole passed in the command line arguments.

* Revert "Hack to use UseSystemConsole passed in the command line arguments."

This reverts commit b74d11c786.

* Remove Application.UseSystemConsole from the config file.

* Fix errors related by removing UseSystemConsole from the config file.

* Fixes #2633. DecodeEscSeq throw an exception if cki is null.

* Fix an exception if SelectedItem is -1.

* Set SelectedItem to 0 and remove unnecessary ToString.

* Using a unique ToString method for Rune and other for byte.

* Fix a bug where a wider rune is added with only a width of 1.

* Force the SelectedGlyph is the one that was typed after jumpList is executed.

* Added more InlineData to RuneTests.

* Reducing significantly the code by using Theory attribute in the TextFormatterTests.

* Override PositionCursor to handle the CharMap cursor position.

* Fix merge errors.

* Minor tweaks to API docs

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2023-05-20 19:35:32 +02:00
BDisp
474a1968fa Fixes #2641. ContentBottomRightCorner should only draw his background with a empty. (#2642) 2023-05-20 09:23:17 +02:00
Thomas Nind
4a05df9f00 Fixes #2636 - Move unicode file/folder icons to Glyphs (#2637)
* Move unicode file/folder icons to Glyphs

* Change to DirectorySeparatorChar for folder icon when no unicode

* Fixed test expectations for linux path separator
2023-05-19 10:43:00 +02:00
Thomas Nind
c04703f5d6 Fixes #2617 - Support for Nerd icons for FileDialog (#2613)
* Add explicit file name unicode mappings

* Added nerd file extensions

* Add folder icon

* Added tests and attribution

* Fix tree view not using System.IO.Abstractions

* Make FileDialog tree use IconGetter

* Added context to IconGetter

* Make Nerd a config setting

* Fix typo in attribution

* tidy up

* Change open folder check to null or whitespace

* Update class diagram to show new classes

* Rename configuration property NerdFonts and set it to ThemeScope

* Move NerdFonts setting to ConsoleDriver

* Move NerdFonts setting to NerdFonts class and rename Enable

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-13 08:14:19 +02:00
Tig
f3ab1fb1bd Fixes #2629 - Config Manager error logging improvements (#2630)
* Fixes #2629

* Fixed broken unit tests (which were already broken but latent)

* Removed test code
2023-05-13 01:23:37 +02:00
BDisp
4bde80cfb7 Fixes #2626. ScrollView contentBottomRightCorner isn't set to false if not needed. (#2627)
* Fixes #2626. ScrollView contentBottomRightCorner isn't set to false if not needed.

* Fix unit test errors.

* Prefix private members with underscore.
2023-05-12 18:20:09 +02:00
BDisp
800ae43877 Fixes #2623. ScrollBarView contentBottomRightCorner doesn't drawn on hosted views. (#2624)
* Fixes #2623. ScrollBarView contentBottomRightCorner doesn't drawn on hosted views.

* Prefix all the private members with underscore.
2023-05-11 19:23:22 +02:00
Thomas Nind
07c4c05729 Test fixes for tv-checkboxes merge (#2619)
* Add CheckBoxTableSourceWrapper

* Fix column offsets when there are checkboxes column

* Fix index

* Add CellToggledEventArgs and handle in CheckBoxTableSourceWrapper

* Add xmldoc for CheckBoxTableSourceWrapper

* Add tests and default keybinding for toggle to CheckBoxTableSourceWrapper

* Add unit tests for TableView checkboxes

* Split CheckBoxTableSource to two subclasses, one by index the other by object

* Add more tests for CheckBoxTableSourceWrapperByObject

* Refactor for readability

* Add UseRadioButtons

* Add test for radio buttons in table view

* Fix xmldoc

* Fix regression during radio refactoring

* Fix build errors for new glyph and draw method names

* Fix tests to expect new unicode glyphs

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 07:52:45 +02:00
Thomas Nind
6cd79ada3a Fixes #2587 - Add CheckBoxTableSourceWrapper for TableView checkboxes (#2589)
* Add CheckBoxTableSourceWrapper

* Fix column offsets when there are checkboxes column

* Fix index

* Add CellToggledEventArgs and handle in CheckBoxTableSourceWrapper

* Add xmldoc for CheckBoxTableSourceWrapper

* Add tests and default keybinding for toggle to CheckBoxTableSourceWrapper

* Add unit tests for TableView checkboxes

* Split CheckBoxTableSource to two subclasses, one by index the other by object

* Add more tests for CheckBoxTableSourceWrapperByObject

* Refactor for readability

* Add UseRadioButtons

* Add test for radio buttons in table view

* Fix xmldoc

* Fix regression during radio refactoring

* Fix build errors for new glyph and draw method names

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 07:33:19 +02:00
Thomas Nind
5317950928 Fixes #2601 - Adds ability to filter TreeView branches/leaves (v2) (#2604)
* Add ITreeViewFilter

* Fix for v2

* Fix for new private variable name
2023-05-10 07:32:45 +02:00
Nutzzz
5d1fe43362 Fixes #16 - Add ListTableSource for columned lists (#2603)
* Add ListTableSource for TableView to display an IList in a columned view

Also adds a global MinCellWidth to TableView

* Code style fixes

* Include padding in MinCellWidth calculation

* Unit Tests for Min/MaxCellWidth and ListTableSource

* Rename Redraw to Draw after refactor

* Rename Redraw to Draw after refactor

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 06:03:47 +02:00
Nutzzz
b3c0e1be72 Fix typo for thin vertical line glyph (#2618) 2023-05-10 06:02:36 +02:00
Nutzzz
440c529818 Some UICatalog scenario code style fixes (#2614) 2023-05-09 16:18:45 +02:00
Tig
dea5f0fe03 Fixes #2597. Enables standard glyphs to be set via ConfigurationManager (#2595)
* initial

* basically working

* removed test settings

* removed extra usings

* Improved API docs

* Renamed glyphs to be consistent and use unicode names; use char literals

* Refactored Glyphs class & Json format to not be static (startup perf)

* Refactored Glyphs class & Json format to not be static (startup perf)

* Fixed a bunch of API doc errors

* Switched checked/selected to glyhps from box drawing range

* Switched button glyphs to nicer looking ones that seem to work on standard fonts

* Upgraded LineDrawing scenario

* CrossHair->Cross

* Fixed unit tests

* Fixed unit tests; moved Glyphs from Application to ConfigurationManager; added CM global using alias

* Found and replaced all other special glyphs; fixed more unit tests
2023-05-07 07:34:02 +02:00
Thomas Nind
16e2fc2ac1 Make DataTable public in DataTableSource (#2591) 2023-05-07 07:32:11 +02:00
BDisp
7ffd4b8ab4 Fixes #2598. Run self-contained application on Linux. (#2600)
* Fixes #2598. Run self-contained application on Linux.

* Remove directive allowing always compile for single-file if PublishSingleFile is true.
2023-05-07 07:19:06 +02:00