Commit Graph

1067 Commits

Author SHA1 Message Date
Tigger Kindel
d400a7758e Fixed JsonConverterTests 2023-10-13 23:58:49 -06:00
Tigger Kindel
a8900a0b8c Disabled invalid Task.Delay calls 2023-10-13 23:58:49 -06:00
Tigger Kindel
b8c4c792f7 Updated packages 2023-10-13 23:58:49 -06:00
Tigger Kindel
c4368e4e2a Re-enabled tests; fixed some issues 2023-10-13 23:58:49 -06:00
Tigger Kindel
859a7c12d5 Disabling test that breaks ci/cd? 2023-10-13 23:58:49 -06:00
Tigger Kindel
9529afc84b All unit tests PASS!!! 2023-10-13 23:58:49 -06:00
Tigger Kindel
760ab804f0 WIP - Everything seems to work 2023-10-13 23:58:49 -06:00
Tigger Kindel
1fa6267895 WIP - Revamped Color 2023-10-13 23:58:49 -06:00
Tig Kindel
26580aca6a inital commit - proving Color can be made a class without breaking tons of code 2023-10-13 23:58:49 -06:00
Tigger Kindel
e4f3b97da0 Fixed WindowsDriver mem leak 2023-10-05 22:21:59 -06:00
Tigger Kindel
e1e82e07a1 CheckTimersAndIdle unit tests 2023-10-05 22:21:59 -06:00
Tigger Kindel
07a91cf3c7 CheckTimersAndIdle unit tests 2023-10-05 22:21:59 -06:00
Tigger Kindel
1c133ba364 Refactored CheckTimers into MainLoop and renamed/simplified 2023-10-05 22:21:59 -06:00
Tigger Kindel
905f811f98 Added throw in CheckTimers to test if wiat param is ever used. 2023-10-05 22:21:59 -06:00
Tigger Kindel
bf606c4179 Moved CheckTimers to MainLoop 2023-10-05 22:21:59 -06:00
Tigger Kindel
8fffab0274 fixed build warnings 2023-10-04 06:42:47 -06:00
Tigger Kindel
0d925ebaf6 all tests pass 2023-10-04 06:42:47 -06:00
Tigger Kindel
05e203c7a4 lots of fixes 2023-10-04 06:42:47 -06:00
Tig
488542c869 Merge pull request #2844 from BDisp/v2_menu-can-execute-false-fix_2787
Fixes #2787. MenuItem with CanExecute returning false is select when a MenuBar is opened.
2023-09-29 11:22:56 -06:00
Tig
5e7933564c Merge pull request #2863 from tznind/2859-customize-v2-file-dialog
Fixes 2859 - Add more file dialog customization options
2023-09-29 11:22:19 -06:00
Tig
8b514dc313 Merge pull request #2845 from MaciekWin3/v2_develop
Fixes #2824. Add SearchText property to combobox in v2
2023-09-29 11:20:07 -06:00
Tig
0a0efe103a Merge pull request #2846 from BDisp/v2_alt-key-on-toplevel-with-menubar-fix_2810
Fixes #2810. Pressing Alt key on a Toplevel with only a MenuBar throws System.InvalidOperationException.
2023-09-29 11:19:52 -06:00
Tig
5ef85b6cfb Merge branch 'v2_develop' into v2_develop 2023-09-29 11:15:48 -06:00
Tig
6ffcaf46db Merge branch 'v2_develop' into v2_menu-can-execute-false-fix_2787 2023-09-29 11:15:37 -06:00
Tig
dd8ed4d0bf Merge pull request #2843 from BDisp/v2_statusitem-can-execute-fix_2789
Fixes #2789. StatusItem should have a disabled attribute if it can't execute.
2023-09-29 11:15:03 -06:00
Tig
63767a87bd Merge branch 'v2_develop' into v2_develop 2023-09-29 11:11:57 -06:00
RoxCian
e384b44d5a Fix unit test.
Fix an issue about date time formatting under non en-US culture in DateFieldTest.
2023-09-22 13:47:13 +08:00
tznind
06d006077d Fix tests 2023-09-21 06:45:40 +01:00
BDisp
0829a81249 Merge branch 'v2_develop' into v2_alt-key-on-window-with-menubar-fix_2776 2023-08-31 16:39:10 +01:00
maciekwin3
ffea15f66b Add SearchText property to combobox 2023-08-31 10:44:51 +02:00
BDisp
1f5953b8ba Fixes #2787. MenuItem with CanExecute returning false is select when a MenuBar is opened. 2023-08-30 23:06:20 +01:00
BDisp
b70a16ab28 Fixes #2789. StatusItem should have a disabled attribute if it can't execute. 2023-08-30 22:25:00 +01:00
BDisp
b9f476a26d Fixes #2836. RequestStop while a ContextMenu is open can throw an exception. 2023-08-30 19:50:01 +01:00
BDisp
c50f92bf8e Reformatting. 2023-08-15 18:52:01 +01:00
BDisp
5a11b88f52 v2 Fixes #2810. Pressing Alt key on a Toplevel with only a MenuBar throws System.InvalidOperationException. 2023-08-15 18:31:54 +01:00
Tigger Kindel
ad23a100df fixed local test issue with curses 2023-08-12 10:39:17 -06:00
Tigger Kindel
fe23b564b3 daignosing unit test fail in action 2023-08-12 10:39:17 -06:00
Tigger Kindel
3dc19c9243 Fixed netdriver running in unit tests 2023-08-12 10:39:17 -06:00
Tigger Kindel
b71d533901 Fixed netdriver running in unit tests 2023-08-12 10:39:17 -06:00
Tigger Kindel
4bf3d2141c diagnosing netdriver wsl 2023-08-12 10:39:17 -06:00
Tigger Kindel
f056914835 disabling curses test 2023-08-12 10:39:17 -06:00
Tigger Kindel
06f7a9898e fixed WindowsDriver to work in linux unit tests 2023-08-12 10:39:17 -06:00
Tigger Kindel
33befa249e Unit tests 2023-08-12 10:39:17 -06:00
Tigger Kindel
a23a33f20c Unit tests 2023-08-12 10:39:17 -06:00
Thomas Nind
52ea9507dd True Color File Icons (Requires True Color branch) (#2736)
* Added ClipRegion; cleaned up driver code

* clip region unit tests

* api docs

* Moved color stuff from ConsoleDriver to Color.cs

* Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Work around https://github.com/gui-cs/Terminal.Gui/issues/2610

* adjusted unit tests

* initial commit

* Made Rows, Cols, Top, Left virtual

* Made Clipboard non-virtual

* Made EnableConsoleScrolling  non-virtual

* Made Contents non-virtual

* Pulled Row/Col up

* Made MoveTo virtual; fixed stupid FakeDriver cursor issue

* Made CurrentAttribute non-virtual

* Made SetAttribute  non-virtual

* Moved clipboard code out

* Code cleanup

* Removes dependecy on NStack from ConsoleDrivers - WIP

* Fixed unit tests

* Fixed unit tests

* Added list of unit tests needed

* Did some perf testing; tweaked code and charmap to address

* Brough in code from PR #2264 (but commented)

* Tons of code cleanup

* Fighting with ScrollView

* Fixing bugs

* Fixed TabView tests

* Fixed View.Visible test that was not really working

* Fixed unit tests

* Cleaned up clipboard APIs in attempt to track down unit test failure

* Add Cut_Preserves_Selection test

* Removed invalid code

* Removed invalid test code; unit tests now pass

* EscSeq* - Adjusted naming, added more sequences, made code more consistent, simplified, etc...

* Added CSI_SetGraphicsRendition

* NetDriver code cleanup

* code cleanup

* Cleaned up color handling in NetDriver

* refixed tabview unit test

* WindowsDriver color code cleanup

* WindowsDriver color code cleanup

* CursesDriver color code cleanup

* CursesDriver - Adding _BOLD has no effect. Further up the stack we cast the return of ColorToCursesColor from int to short and the _BOLD values don't fit in a short.

* CursesDriver color code - make code more accurate

* CursesDriver color code - make code more accurate

* Simplified ConsoleDriver.GetColors API

* Simplified ConsoleDriver.GetColors API further

* Improved encapslation of Attribute; prep for TrueColor & other attributes like blink

* Fixes #2249. CharacterMap isn't refreshing well non-BMP code points on scroll.

* Use GetRange to take some of the runes before convert to string.

* Attempting to fix unit tests not being cleaned up

* Fixes #2658 - ConsoleDriver.IsRuneSupported

* Fixes #2658 - ConsoleDriver.IsRuneSupported (for WindowsDriver)

* Check all the range values and not only the max value.

* Reducing code.

* Fixes #2674 - Unit test process doesn't exit

* Changed Cell to support IsDirty and list of Runes

* add support for rendering TrueColor output on Windows merging veeman & tznind code

* add colorconverter changes

* fixed merged v2_develop

* Fixing merge bugs

* Fixed merge bugs

* Add outline for FileSystemColorProvider

* Add other known folders

* Added remaining cases and test for file colors

* Use color provider in FileDialog

* Fix default color when UseColors to white

* Remove `TestDirectoryContents_Windows_Colors`

* Remove unused helper method

* Fix formatting

* Fixed merge bugs - all unit tests pass

* Debugging netdriver

* More netdriver diag

* API docs for escutils

* Update unicode scenario to stress more stuff

* Contents: Now a 2D array of Cells; WIP

* AddRune and ClearContents no longer virtual/abstract

* WindowsDriver renders correctly again

* Progress on Curses

* Progress on Curses

* broke windowsdriver

* Cleaned up FakeMainLoop

* Cleaned up some build warnings

* Removed _init from AutoInitShutdown as it's not needed anymore

* Removed unused var

* Removed unused var

* Fixed nullabiltiy warning in LineCanvas

* Fixed charmap crash

* Fixes #2758 in v2

* Remove accidentally re-added test

* Removed unit test xml file

* Remove redundant test

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: adstep <stephensonadamj@gmail.com>
2023-08-11 06:58:55 -06:00
Tig
0df485a890 Fixes #666. Refactor ConsoleDrivers to simplify and remove duplicated code (#2612)
* Added ClipRegion; cleaned up driver code

* clip region unit tests

* api docs

* Moved color stuff from ConsoleDriver to Color.cs

* Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Work around https://github.com/gui-cs/Terminal.Gui/issues/2610

* adjusted unit tests

* initial commit

* Made Rows, Cols, Top, Left virtual

* Made Clipboard non-virtual

* Made EnableConsoleScrolling  non-virtual

* Made Contents non-virtual

* Pulled Row/Col up

* Made MoveTo virtual; fixed stupid FakeDriver cursor issue

* Made CurrentAttribute non-virtual

* Made SetAttribute  non-virtual

* Moved clipboard code out

* Code cleanup

* Removes dependecy on NStack from ConsoleDrivers - WIP

* Fixed unit tests

* Fixed unit tests

* Added list of unit tests needed

* Did some perf testing; tweaked code and charmap to address

* Brough in code from PR #2264 (but commented)

* Tons of code cleanup

* Fighting with ScrollView

* Fixing bugs

* Fixed TabView tests

* Fixed View.Visible test that was not really working

* Fixed unit tests

* Cleaned up clipboard APIs in attempt to track down unit test failure

* Add Cut_Preserves_Selection test

* Removed invalid code

* Removed invalid test code; unit tests now pass

* EscSeq* - Adjusted naming, added more sequences, made code more consistent, simplified, etc...

* Added CSI_SetGraphicsRendition

* NetDriver code cleanup

* code cleanup

* Cleaned up color handling in NetDriver

* refixed tabview unit test

* WindowsDriver color code cleanup

* WindowsDriver color code cleanup

* CursesDriver color code cleanup

* CursesDriver - Adding _BOLD has no effect. Further up the stack we cast the return of ColorToCursesColor from int to short and the _BOLD values don't fit in a short.

* CursesDriver color code - make code more accurate

* CursesDriver color code - make code more accurate

* Simplified ConsoleDriver.GetColors API

* Simplified ConsoleDriver.GetColors API further

* Improved encapslation of Attribute; prep for TrueColor & other attributes like blink

* Fixes #2249. CharacterMap isn't refreshing well non-BMP code points on scroll.

* Use GetRange to take some of the runes before convert to string.

* Attempting to fix unit tests not being cleaned up

* Fixes #2658 - ConsoleDriver.IsRuneSupported

* Fixes #2658 - ConsoleDriver.IsRuneSupported (for WindowsDriver)

* Check all the range values and not only the max value.

* Reducing code.

* Fixes #2674 - Unit test process doesn't exit

* Changed Cell to support IsDirty and list of Runes

* add support for rendering TrueColor output on Windows merging veeman & tznind code

* add colorconverter changes

* fixed merged v2_develop

* Fixing merge bugs

* Fixed merge bugs

* Fixed merge bugs - all unit tests pass

* Debugging netdriver

* More netdriver diag

* API docs for escutils

* Update unicode scenario to stress more stuff

* Contents: Now a 2D array of Cells; WIP

* AddRune and ClearContents no longer virtual/abstract

* WindowsDriver renders correctly again

* Progress on Curses

* Progress on Curses

* broke windowsdriver

* Cleaned up FakeMainLoop

* Cleaned up some build warnings

* Removed _init from AutoInitShutdown as it's not needed anymore

* Removed unused var

* Removed unused var

* Fixed nullabiltiy warning in LineCanvas

* Fixed charmap crash

* Fixes #2758 in v2

* Port testonfail fix to v2

* Remove EnableConsoleScrolling

* Backport #2764 from develop (clear last line)

* Remove uneeded usings

* Progress on unicode

* Merged in changes from PR #2786, Fixes #2784

* revamp charmap rendering

* Charmap option to show glyph widths

* Fixed issue with wide glpyhs being overwritten

* Fixed charmap startcodepoint change issue

* Added abiltiy to see ncurses verison/lib

* Fought with CursesDriver; giving up for now. See notes.

* Leverage Wcwidth nuget library instaed of our own tables

* enhanced charmap Details dialog

* Final attempt at fixing curses

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: adstep <stephensonadamj@gmail.com>
2023-08-09 14:28:36 -06:00
tznind
4dbf2f4cfd Add test for marking event Handled and demo how to do custom drawing 2023-07-25 08:54:52 -06:00
tznind
101db86bfa Add TestTreeView_DrawLineEvent_WithScrolling test 2023-07-25 08:54:52 -06:00
tznind
78eebd1ce7 Add test TestTreeView_DrawLineEvent 2023-07-25 08:54:52 -06:00
Tigger Kindel
7ee021cd6c Fixed textformattertests warning 2023-07-19 09:08:49 -06:00