Commit Graph

52 Commits

Author SHA1 Message Date
BDisp
d5bf412d37 Adjust the top considering the selected item and the frame height. 2024-05-29 12:34:59 +01:00
BDisp
9646c101b0 Fix a conflict with this unit test and the TestVKPacket unit test. 2024-04-22 00:05:07 +01:00
BDisp
bf07d24d9b Add unit test that proof setting TabIndex before all views are added, will have unexpected result. 2024-03-27 15:25:41 +00:00
BDisp
58fa801917 Fixes #3351. TabIndex with the same setter value but with wrong index return without set the correct value. 2024-03-26 23:54:40 +00:00
Tig
214ff12c9f Merge pull request #3321 from BDisp/v1_listview-selecteditemchanged-marks-click.fix_3317
Fixes #3317. v1-Listvew mouse event doesn't cause a SelectedItemChanged event to fire
2024-03-16 07:39:16 -08:00
BDisp
1724e71601 Using mask check instead of HasFlag method. 2024-03-14 11:57:51 +00:00
BDisp
e08e873139 Rename to Raised. 2024-03-14 11:47:49 +00:00
BDisp
b1218d7436 Rename to Raised. 2024-03-14 11:29:16 +00:00
BDisp
157a32312b Fixes #3317. Listvew mouse event doesn't cause a SelectedItemChanged event to fire 2024-03-13 21:17:35 +00:00
BDisp
37e76d174d Fixes #3318. v1-MouseClick should be invoked only once on a mouse click. 2024-03-13 21:09:32 +00:00
Tig
54bcaa8c73 V1 Updates nuget packages and fixes a unit test issue (#3259)
* Updated to use Nstack v1.1.1

* Updated nuget refs and fixed unit test namespace error

* readme fix

* Lame change to .sln to try to force build action

* Try to fix test action

* Try to fix test action 2

* Try to fix test action 3
2024-02-22 06:50:50 -07:00
BDisp
1d44f2e046 Fixes #2571. Wizards background shifts to gray when focusing, looks bad. (#3194)
* Fixes #2571. Wizards background shifts to gray when focusing, looks bad.

* Update nuget packages.

* Trying to fix the CodeQL failing.
2024-01-20 09:19:13 -07:00
BDisp
ce7ecb51d8 Fixes #2252. Pressing the ENTER key in a TextField should not move the focus (#3195)
* Fixes #2252. Pressing the ENTER key in a TextField should not move the focus

* Update xml doc.

* Tested on WSL-Ubuntu-20.04
2024-01-20 09:16:59 -07:00
Andrey Akinshin
b4975f4747 Fixes #3090. Introduce StatusItem.HotTextSpecifier (#3093) 2024-01-04 07:17:20 -07:00
BDisp
577fae1ac7 Fixes #3034. Text remains "invisible" in the TextView when WordWrap is activated. (#3035) 2023-12-06 09:43:25 -07:00
BDisp
85c92f4b0d Fixes #2959. Some of the scroll features on v1 are broken. (#2960)
* Add GrabMouseEventArgs for GrabbingMouse and UnGrabbingMouse events.

* Implementing GrabbingMouse and UnGrabbingMouse in Toplevel class.

* Fix contentBottomRightCorner to draw with the right color.

* Fix a typo.

* Fix ListView to allow scrolling.

* Add a comment to explain an extra column for the cursor at the end of line.

* Add unit tests for GrabbingMouse and UnGrabbingMouse events.

* Add unit test for a Window inside a non Toplevel.

* Removes GrabMouseEventArgs.

* Prevents throwing an exception if not subscribed.

* GrabMouse must be first called before set the dragPosition.

* Add unit test to test null on GrabbingMouse and UnGrabbingMouse.

* Fix event name.

* Prevents a toplevel to overflows his bounds to allow it can be drag.

* Fix unit test.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:14:55 -07:00
usr
c7942ae3bb Fix issue where the TestViewsDisposeCorrectly was not doing what it was supposed to do (#2964)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

* Fix ViewDisposalTests (Wasn't working the way it was supposed to)

* update test

* update test

* update test

* try to fix as many conflicts as possible

* make test output prettier

* fix formatting

* Fix Subviews not being empty after disposing on all views.

* The fail cause was Application.Top not being disposed.

* Fix others containers that weren't being removed.

* Revert "The fail cause was Application.Top not being disposed."

This reverts commit 0c2183ed9e.

* Application.Top isn't null and need disposing.

* Fixes #2985. Application.RunState must be responsible for dispose the Toplevel property.

* Change the unit test with ans without Application.Shutdown method.

* Update ViewDisposeTests to actually check wether ALL views have been disposed (not just container)

* small additional check just to be safe

* Update ViewDisposalTest.cs: Formatting

* Update ViewDisposalTest.cs: Minor change to re-trigger Action

TestVKPacket is acting up again. Maybe the test is running async and is receiving scan codes from other instances?

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-15 09:22:22 -07:00
BDisp
91865eed22 Fixes #2970. ScrollView doesn't remove a view that was previously added on both versions. (#2971) 2023-11-15 08:30:39 -07:00
Tig Kindel
20837733a7 Release v1.14.1 (2) 2023-10-30 15:04:43 -06:00
usr
34c6b6ebcc Add Disposal Test and fix an issue where the CopyClipboard test was failing (#2936)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
2023-10-30 14:33:34 -06:00
BDisp
1c633efbad Fix unit test because OnLeave is now invoked on toplevel removing, preventing two views having focus. 2023-08-11 13:21:21 -06:00
BDisp
74aedd25bf Fixes #2789. StatusItem should have a disabled attribute if it can't execute. 2023-08-11 12:02:35 -06:00
BDisp
b40d2a65a9 Added hosted scroll bar unit test. 2023-08-11 07:00:07 -06:00
BDisp
20650213c2 Fix paste not working and invoke ContentsChanged where is needed. Add unit test. 2023-08-11 07:00:07 -06:00
Tigger Kindel
462459bc14 Revert - Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
cc58771d6e Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
BDisp
9f6fcbab79 Rename to CheckBoxTests class. 2023-07-20 10:01:15 -06:00
BDisp
c5e32e102f Rename Checkbox to CheckBox. 2023-07-20 10:01:15 -06:00
Tigger Kindel
155e5337a9 got rid of compile warnings in tests 2023-07-19 08:37:33 -06:00
BDisp
db78fe28bc Fixes #2717. Label not display fully when resizing terminal. (#2718)
* Fixes #2717. Label not display fully when resizing terminal.

* Fixes #2719. View Move and ViewToScreen shouldn't use Clipped parameter as true by default but only for cursor.

* Fixes #2720. TextFormatter.Draw shouldn't set the Driver.Clip.

* Add braces.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-07-05 16:53:27 -06:00
BDisp
ffb135c0fe Fixes #2705. ListView does not render correctly before focus. (#2707) 2023-07-05 16:47:18 -06:00
Thomas Nind
f5ca5b0781 Adds TreeView MaxDepth (#2652) 2023-05-21 23:27:01 +02:00
Thomas Nind
8f199cd765 Add ITreeViewFilter (#2599)
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 06:37:24 +02:00
BDisp
1525c5021e Fixes #2429. Error when replacing a word in textView. 2023-03-22 19:37:16 +00:00
BDisp
9cfa78a033 Fixes #2354. View.Redraw doesn't clear itself and PositionCursor doesn't ensure focus when a prior view was disabled. (#2355)
* Fixes #2354. View should have a IgnoreHasFocusPropertyOnRedraw property to prevent unnecessary derived class.

* Removed IgnoreHasFocusPropertyOnRedraw property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 14:23:40 +13:00
BDisp
47eb43fd6e Fixes 2368. Nested views with height of 1 not rendering correctly. (#2370) 2023-02-21 13:55:07 +13:00
BDisp
c85ff954aa Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)
* Proves that the issue #2331 don't have reason to happen.

* fixes #2336

* Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside

* More appropriate solution for the issue #2331.

* Start refactoring LineCanvas for mixing line style support (e.g. double into single)

* Add remaining resolvers

* Implement corner border style mixing in LineCanvas

* Refactor and simplify resolvers

* Move tests to Core folder and namespace to Terminal.Gui.CoreTests

* Fixes #2333. TextField is selecting badly a word on double click.

* Add unit test deleting a word with accented char.

* Fixes 2331. ScrollView may not be honoring clip region.

* Add a custom button scenario.

* Fixes #2350. Clipping broke (see Clipping scenario).

* Is preferable use NeedDisplay instead of Bounds.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
2023-02-21 00:53:38 +13:00
BDisp
29b92a3610 Add unit test deleting a word with accented char. 2023-02-09 14:12:51 +00:00
BDisp
03b20371f6 Fixes #2333. TextField is selecting badly a word on double click. 2023-02-08 19:17:15 +00:00
BDisp
5da7665e92 Fixes #2328. TextView Autocomplete triggered by cursor move. 2023-02-08 00:12:52 +00:00
Tig
ff2869c9bf Merge branch 'develop' into fixes_2296_attribute_make 2023-02-07 16:34:44 +09:00
Tig
57eab6767d Merge branch 'develop' into normalize-drivers-fix_2317 2023-02-06 07:11:27 +09:00
Tig
c18d153b76 Merge branch 'develop' into fixes_2296_attribute_make 2023-02-06 07:08:44 +09:00
BDisp
788eed4a4d Fixes #2317. Drivers do not normalize accented letters. 2023-02-05 00:25:14 +00:00
BDisp
b7791992cc Added unit test for move down/right. 2023-01-30 13:13:11 +00:00
BDisp
cd5655fc95 Fixes #2308. Redraw passed bounds bigger than its client area. 2023-01-29 22:24:01 +00:00
tznind
ab398b93cb Make OnTabClicked fire for clicks in empty space and fix Notepad to only show context menu on right click. 2023-01-21 08:31:17 +00:00
Charlie Kindel
7f563244eb Made Attribute Make more robust 2023-01-20 15:50:11 -07:00
Thomas
8b8bb2ab60 Test for TabClicked event 2023-01-20 20:05:53 +00:00
Tig Kindel
9232a2bd59 Merge branch 'develop' into unittest_reorg 2023-01-15 19:00:22 -07:00