Commit Graph

44 Commits

Author SHA1 Message Date
BDisp
8ab01b0847 Renaming DimView to View. 2023-03-03 19:14:52 +00:00
BDisp
c99b35578d Revert "Fixes unit tests to support Pos/Dim changes."
This reverts commit ad426ff261.
2023-03-03 18:35:10 +00:00
BDisp
487e03a0a1 Resolving merge conflicts. 2023-03-02 18:11:58 +00:00
Thomas Nind
0bd32c282e Fixes #505. Finishes merge of TileView (previously SplitContainer) (#2258)
* Add tests for proper disposing

* Make Ctrl+F10 toggle split line focusability

* Fix layout bug in first tile when orientation is horizontal

* Switch to GenerateImage

* Fix not calling base constructor

* Revert "Merges latest LineCanvas into TileView"

* Fix keyboard tab navigation problems

* Workaround for changing CanFocus throwing Exceptions sometimes

* Fix bad merges

* Fix bad merging

* Fix disposing in TileViewNesting scenario

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-03-02 09:39:00 -07:00
Thomas Nind
705d4307e3 Fixes #1842 - Add support for toggling selected cells e.g. with space (#2386)
* Add support for toggling selected cells e.g. with space

* Make toggle cell selection work better with FullRowSelect

* Test for toggle cell selection

* Test and fix for full row select toggling

* Make toggle work with shift selected blocks

* Make extend selection ignore toggled regions when considering pushing a new head to selection stack
2023-03-02 09:35:54 -07:00
BDisp
ecd82465f7 ToString must return the Pos/Dim class names. 2023-02-28 21:23:44 +00:00
BDisp
ebae3a8560 Fixes Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)" committed twice on 6bb90edcbf and 28d7be721c 2023-02-28 21:18:09 +00:00
Tig Kindel
5c659110bf Merge branch 'v1_setrelativelayout_improvement' into v2 2023-02-24 17:11:54 -07:00
Tig Kindel
fafb68be06 Merge branch 'develop' into v2 2023-02-24 15:54:07 -08:00
Tig Kindel
eb3af67027 fixing bugs caused by Pos.Combine bugfix 2023-02-25 07:15:41 +13:00
Tig Kindel
d04bf94c74 merged from develop after accident 2023-02-25 05:42:43 +13:00
Tig Kindel
b5de3e6916 Merge branch 'develop' of tig:gui-cs/Terminal.Gui into develop 2023-02-21 14:25:10 +13: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
cacfe0d772 Fixes #2371. V2 needs be merged with develop and be fixed from errors. (#2372)
* 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>

* Fixes ASCIICustomButton scenario.

* Adds Snake Scenario (#2353)

* Add empty snake scenario

* Move snake head around

* Snake now has a tail

* Rest of logic implementation

* Ctrl K D layout fixes

* Game gets faster as you collect more apples

* Adjust speed increase rate down

* Use white on black for snake and border and red for apple

* Fix ScenarioTests not Disposing Scenario

* Add disposes and fix to use LineCanvas.GenerateImage

* Fix stack overflow, doh!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>

* Fixes 2368. Nested views with height of 1 not rendering correctly.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
Co-authored-by: Thomas Nind <31306100+tznind@users.noreply.github.com>
2023-02-21 14:06:30 +13:00
Tig Kindel
2b0adf072d Merge branch 'visual_style_manager' into v2_config_manager 2023-02-21 13:58:58 +13:00
BDisp
47eb43fd6e Fixes 2368. Nested views with height of 1 not rendering correctly. (#2370) 2023-02-21 13:55:07 +13:00
Tig Kindel
6bb90edcbf Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)"
This reverts commit c85ff954aa.
2023-02-21 11:53:10 +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
Tig
9425b2a720 Fixes #2181 - (Really) Adds configuration manager (#2365) 2023-02-21 00:34:18 +13:00
Tig Kindel
29ccbe36b7 attempting to merge 2023-02-20 23:40:42 +13:00
Tig Kindel
32c9c80a10 Merge branch 'tznind-splitcontainer' into v2 2023-02-15 16:11:47 +07:00
Tig Kindel
6558af1c7c Revert "Merge branch 'splitcontainer' of tig:tznind/gui.cs into tznind-splitcontainer"
This reverts commit dc4fe69626, reversing
changes made to ccadf81b4d.
2023-02-12 11:10:11 +07:00
Tig Kindel
dc4fe69626 Merge branch 'splitcontainer' of tig:tznind/gui.cs into tznind-splitcontainer 2023-02-12 10:57:21 +07:00
Tig Kindel
56eeadf934 Merge branch 'develop' into tznind-splitcontainer 2023-02-11 10:54:34 +07:00
BDisp
29b92a3610 Add unit test deleting a word with accented char. 2023-02-09 14:12:51 +00:00
Tig Kindel
00d46ee3f1 udpated unit tests 2023-02-09 05:55:51 -08:00
Tig Kindel
040bbc41cb merging tigs changes 2023-02-09 05:23:33 -08:00
Tig Kindel
9cb5e8c658 merging tigs changes 2023-02-09 05:23:06 -08: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
886d650ed6 Rename CheckboxTests.cs to CheckBoxTests.cs 2023-01-30 15:48:35 +00:00
BDisp
9d1a429676 Implementing nullable bool checked on CheckBox. 2023-01-30 14:32:18 +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
Tig Kindel
fa048da358 Merge branch 'develop' into unittest_reorg 2023-01-15 18:34:14 -07:00
Tig Kindel
7454dac942 Reorg of unit tests 2023-01-15 18:33:38 -07:00