Commit Graph

284 Commits

Author SHA1 Message Date
Tig Kindel
4e25402c8b Merge pull request #1710 from BDisp/wide-runes-render-issues
Fixes remaining wide runes render issues.
2022-05-13 13:48:47 -07:00
Tig Kindel
648a8393bd Merge pull request #1707 from BDisp/textview-wordwrap-fix
Avoid TextView throwing when WordWrap is true on constructor initialization.
2022-05-13 13:21:16 -07:00
BDisp
ad2b5a9ba2 Removed AlwaysSetPosition and fix some wide runes issue. 2022-05-13 19:27:04 +01:00
BDisp
cd5c13f388 Merge branch 'draw-clip-bounds-fix' into wide-runes-render-issues 2022-05-13 18:30:04 +01:00
BDisp
c8db4ff88b Still trying to fix the Run_All_Scenarios unit test. 2022-05-13 18:16:47 +01:00
BDisp
93123d0cfc Revert "Trying to fix the Run_All_Scenarios unit test."
This reverts commit 235b285294.
2022-05-13 18:02:01 +01:00
BDisp
235b285294 Trying to fix the Run_All_Scenarios unit test. 2022-05-13 17:51:01 +01:00
BDisp
e941169dad Fixes the draw clip bounds issue visible on ScrollView. 2022-05-13 17:37:26 +01:00
dependabot[bot]
970052012f Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.1.0 to 17.2.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.1.0...v17.2.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 14:11:31 +00:00
BDisp
4382a2c2c2 Fixes remaining wide runes render issues. 2022-05-11 00:24:57 +01:00
BDisp
205fbf4d5b Avoid throwing when WordWrap is true on constructor initialization. 2022-05-11 00:10:19 +01:00
Thomas
8e148013ec Added ColorGetter to TreeView 2022-05-08 22:48:45 +01:00
Tig Kindel
f95be41bd3 Merge pull request #1701 from BDisp/menu-close-length-fix
Fixes #1699 - Menu closes on button press and menu hot-key text renders correctly
2022-05-07 09:46:18 -07:00
BDisp
ed2c516702 Button pressed now close the menu and the menu length is the same with or without hot-keys 2022-05-07 16:14:26 +01:00
dependabot[bot]
7e6da07ba3 Bump xunit.runner.visualstudio from 2.4.4 to 2.4.5
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.4 to 2.4.5.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/commits)

---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 14:12:04 +00:00
dependabot[bot]
6d1d8fe85b Bump xunit.runner.visualstudio from 2.4.3 to 2.4.4
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.3 to 2.4.4.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/commits)

---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 14:13:55 +00:00
Tig Kindel
391591e110 Merge pull request #1685 from BDisp/wide-runes-console-fix
Wide runes console fix
2022-05-04 07:47:00 -07:00
Tig Kindel
99655253bc Merge pull request #1690 from migueldeicaza/dependabot/nuget/ReportGenerator-5.1.6
Bump ReportGenerator from 5.1.5 to 5.1.6
2022-05-02 14:41:16 -07:00
dependabot[bot]
3a93517bd4 Bump ReportGenerator from 5.1.5 to 5.1.6
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.5 to 5.1.6.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.5...v5.1.6)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 14:11:36 +00:00
BDisp
a82ac45843 Fixes AutoSize, Window Tile and added option to Border for fill or not. 2022-04-30 01:12:21 +01:00
BDisp
933a1bda91 Added text direction support for word-wrap and fix draw issues. 2022-04-30 01:07:04 +01:00
BDisp
311acc03df Fixes drivers for wide runes handling which also works on Windows Terminal. 2022-04-30 01:03:41 +01:00
Thomas Nind
550766dfca Fixed Assert to reference local variables instead of constant values 2022-04-29 10:09:59 +01:00
Thomas Nind
735996f5e1 Improved threadsafety of Application.MainLoop.AddTimeout 2022-04-29 09:50:09 +01:00
dependabot[bot]
cdff51f1de Bump ReportGenerator from 5.1.4 to 5.1.5
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.4 to 5.1.5.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.4...v5.1.5)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 14:09:17 +00:00
BDisp
9c36ec7c83 Fixes #1675. ContextMenu MenuItens typo 2022-04-19 13:24:39 +01:00
Jocelyn NATALI
c873db07f0 Fix context menus tests on culture != of "en-US" machines.
The "en-US" culture is forced.
2022-04-13 10:13:11 +02:00
Tig Kindel
1595bbb39a Merge pull request #1634 from BDisp/UseSubMenusSingleFrame-feature
Feature to display the sub-menus on a single frame instead multiple frames.
2022-04-07 09:12:31 -07:00
dependabot[bot]
4c4fa982b7 Bump ReportGenerator from 5.1.2 to 5.1.4
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.2 to 5.1.4.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.2...v5.1.4)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 14:12:07 +00:00
BDisp
04f9817023 Fixes view to screen relative on the context menu. 2022-03-17 12:52:40 +00:00
BDisp
3e3b67889d It is needed to get rid of the first and the last line ending of expectedLook. 2022-03-17 12:49:56 +00:00
BDisp
d9f52fc2f2 Changing from AssertDriverContentsWithPosAre to AssertDriverContentsWithFrameAre to return a Rect. 2022-03-17 12:49:55 +00:00
BDisp
484e98998a Feature to display the sub-menus on a single frame instead multiple frames. 2022-03-17 12:49:43 +00:00
Tig Kindel
2414fcb11f Merge pull request #1645 from migueldeicaza/dependabot/nuget/ReportGenerator-5.1.2
Bump ReportGenerator from 5.0.4 to 5.1.2
2022-03-17 03:06:57 -06:00
Thomas Nind
f96c7001e4 Fixed TableView when redrawing a System.DataTable that has no columns (#1639) 2022-03-17 02:06:17 -07:00
Thomas Nind
6374ba5b56 Rootkeyevent (#1635)
* Added RootKeyEvent

* Tests for RootKeyEvent

* Fixed warnings for Assert.Equal parameter order
2022-03-17 02:04:19 -07:00
Tig Kindel
38d5e6c2bf Merge pull request #1630 from BDisp/textfield-localization-fix
Fixes TextField context menu not showing with the current localization.
2022-03-17 02:57:45 -06:00
Thomas Nind
7e04e31953 Table scroll fix (#1627)
* TableView scroll down goes one line at a time

Fixes #1626

* Removed accidentally committed test

* Updated test comments

* Added TableStyle.SmoothHorizontalScrolling

* Add explicit break into while for when scrolled to last column.

* Added tests for SmoothHorizontalScrolling
2022-03-17 01:56:21 -07:00
dependabot[bot]
29506d12f7 Bump ReportGenerator from 5.0.4 to 5.1.2
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.0.4 to 5.1.2.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.0.4...v5.1.2)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 14:12:24 +00:00
BDisp
17ed8dbed0 Only allows an open menu bar at a time. 2022-03-07 22:46:55 +00:00
BDisp
a822e1afa9 Adds a popup ContextMenu feature. Implements ContextMenu for TextField. (#1615)
* Implementing ContextMenu feature to being popup by keyboard or mouse.

* Implements ContextMenu into TextField.

* Ensures the context menu's right and bottom frame from being greater than the container.

* Added Host property. Improving scenario and unit tests.

* Only draw the RightTee if it is at the end of the menu.

* Implements cursor visibility on TextField.

* Fixes the sub-menu not showing.

* Avoids draw the menu help and shortcut if there no available space.

* Remove reference for the MenuClosing event.

* UpdateCursor must only run after the ScreenBuffer is initialized to use the cursor visibility.

* Implements Resized event on Toplevel class.

* Prevents writing overlay on the menu.

* Covering more unit tests.

* Changing from Views to Core namespace.

* Implementing MenuClosingEventArgs and MenuAllClosed event.

* Only close the menu if it's open.

* Implementing localization for en-US and pt-PT to the FileDialog.

* Implementing localization for en-US and pt-PT on the TextField context menu.

* Fixes a bug where DeleteSelectedText is updating the Text before operation completion.

* Added a method to get all the supported cultures from the Terminal.Gui.

* Improving context menu and adding more unit tests.
2022-03-06 22:01:51 -08:00
BDisp
da0ea09bed Implementing localization for en-US and pt-PT to the FileDialog. (#1625)
* Implementing localization for en-US and pt-PT to the FileDialog.

* Added a method to get all the supported cultures from the Terminal.Gui.
2022-03-06 22:00:47 -08:00
Freddie Mercurial (Jessica M.)
62ec263b02 test for #1612 (#1623) 2022-03-04 18:13:22 -08:00
BDisp
4281030361 Changed Button Text property to use override instead of new. (#1622)
* Changed Button Text property to use override instead of new.

* Fixing HotKey behavior.
2022-03-04 18:05:27 -08:00
BDisp
a9a0d176c1 The KeyPress event must only be used by the most focused view in the ProcessHotKey event. (#1614) 2022-02-26 23:59:50 -08:00
BDisp
56c28f6d37 Fixes the CanFocus equal to false from setting HasFocus to true again. (#1612)
* Fixes the CanFocus equal to false from setting HasFocus to true again.

* Unit test also proving setting a toplevel CanFocus to false focus the next toplevel.

* Unit test proving that a view with CanFocus equal to true can be focused on the same toplevel.
2022-02-24 05:49:34 -08:00
BDisp
e3b62cff38 Implementing undo/redo to back tab key. (#1608) 2022-02-24 05:49:05 -08:00
BDisp
1557f7a71e Fixes ComboBox text and list if the height is equal to one. (#1606)
* Fixes ComboBox text and list if the height is equal to one. End and Home navigate on text.

* Trying fix the all scenarios unit test.

* Removing unnecessary code.

* Avoiding the Collection was modified after the enumerator was instantiated exception.

* Also cover the IndexOfValue inside the lock.

* Disposing the DrawContent event.

* Increasing the time to test.

* Revert "Increasing the time to test."

This reverts commit b3c2ac871c.

* CharacterMap take more time to load.
2022-02-20 13:39:22 -08:00
BDisp
0168a3c054 Fixes the auto-size text bug. (#1603)
* Fixes the auto-size text bug.

* The superview is responsible to clearing the previous frame.
2022-02-20 08:02:38 -08:00
dependabot[bot]
6210c4e45d Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0 (#1598)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.0.0 to 17.1.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.0.0...v17.1.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-18 07:37:33 -08:00