Commit Graph

787 Commits

Author SHA1 Message Date
Tigger Kindel
c07dfd17a1 merged again 2023-03-03 10:30:52 -07:00
Tigger Kindel
4424974185 merged 2023-03-03 10:22:50 -07:00
Tigger Kindel
6f16af878b Fixed unit tests: DimFactor changes broke - DOUBLE CHECK 2023-03-03 09:48:31 -07:00
Tigger Kindel
3ed927f867 Fixed unit tests: Clipboard flakyness 2023-03-03 09:23:07 -07:00
Tigger Kindel
ec57f590b0 Fixed unit tests: Clipboard flakyness 2023-03-03 09:22:17 -07:00
Tigger Kindel
64e19ae562 Fixed unit tests: marginframe background 2023-03-03 09:06:25 -07:00
Tigger Kindel
084c49da37 Fixed unit tests HeightAsBuffer->EnableConsoleScrolling 2023-03-03 09:00:34 -07:00
Tigger Kindel
35fc1411e7 Merge branch 'v2' of tig:gui-cs/Terminal.Gui into v2 2023-03-03 08:03:40 -07: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
5840ad25e8 Added IsLoaded property to allow control if a change was done before or after the toplevel was loaded. 2023-03-02 03:24:21 +00:00
BDisp
a7c13b5d48 Fixes merge conflicts errors. 2023-03-01 23:10:05 +00:00
BDisp
eac93a7973 Resolving merge conflicts. 2023-03-01 22:31:51 +00:00
BDisp
ff1773dab3 Sets borders position later. 2023-03-01 01:05:01 +00:00
BDisp
379d7a8492 Fixes 2342. Border: can't change border color in window by Border.BorderBrush. (#2345)
* Fixes 2342. Border: can't change border color in window by Border.BorderBrush.

* Fixes border initialization.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-28 22:41:09 +00:00
BDisp
82bafda5fe Added some more PosCenter unit tests. 2023-02-28 21:25:45 +00: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
BDisp
ab0ad0adc6 Added some more PosCenter unit tests. 2023-02-27 19:14:40 +00:00
BDisp
ad426ff261 Fixes unit tests to support Pos/Dim changes. 2023-02-27 15:12:00 +00:00
BDisp
534d4ea390 Fixes Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)" committed twice on 6bb90edcbf and 28d7be721c 2023-02-27 13:37:01 +00:00
BDisp
932aca89eb Merge #2382 into #2379. 2023-02-27 12:09:10 +00:00
BDisp
c6183c7658 Added one more condition to be consistent with others. 2023-02-27 12:09:10 +00:00
BDisp
288d81b781 Allows a subview reference the superview of the subview superview. 2023-02-27 12:09:09 +00:00
Tig Kindel
012100680e Pos.Combine unit tests 2023-02-27 12:09:07 +00:00
Tig Kindel
93b8dfdad1 fixing bugs caused by Pos.Combine bugfix 2023-02-27 12:09:05 +00:00
Tig Kindel
feae3b675d merged from develop after accident 2023-02-27 12:09:04 +00:00
Tig Kindel
43221327ee fixed da bug; also fixed pwsh clipboard tests 2023-02-27 12:09:03 +00:00
Tig Kindel
28d7be721c Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)"
This reverts commit c85ff954aa.
2023-02-27 12:08:49 +00:00
Tigger Kindel
8c319ee189 merged develop - mostly 2023-02-26 16:15:39 -07:00
BDisp
1d2dc40c8a Fixes #2305. Improves the handling of escape sequence. (#2375)
* Changed ansi esc sequence used on exit.

* Changed ansi esc sequence used on exit.

* Improves HeightAsBuffer although currently only works on Windows.

* Fixes #2267. Toplevel.EnsureVisibleBounds throws an exception if border is null.

* Changing comment as requested.

* Fixes indentation.

* Seems not needed for now, maybe some update, comment for now.

* Renamed HeightAsBuffer to EnableConsoleScrolling and made it obsolete.

* Add comment on remarks for EnableConsoleScrolling.

* merged @bdisp's EnableConsoleScrolling PR

* Fixes buffer for Windows Terminal.

* Fixes issue in Windows Terminal on resizing causing some lines not be drawing after exceptions.

* merge #9

* merged #9

* use ESC [ ? 1047

* Tweaks with new esc codes

* Fixed curses driver to not nuke scroll buffer and to resize properly

* merge

* Cleand up netdriver escape codes

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed merge issue and  spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed  build error

* removed old comments

* Resolving merge conflicts.

* Ensuring reset the EnableConsoleScrolling.

* Changing from HeightAsBuffer to EnableConsoleScrolling.

* Done requested changes.

* Reformatting.

* Rename to EscSeqReqStatus.

* Removing Console.Out.Flush ();

---------

Co-authored-by: Charlie Kindel <tig@users.noreply.github.com>
Co-authored-by: Tig Kindel <tig@kindel.com>
2023-02-25 15:30:44 -07:00
BDisp
ed27696b9e Fixes 2342. Border: can't change border color in window by Border.BorderBrush. (#2345)
* Fixes 2342. Border: can't change border color in window by Border.BorderBrush.

* Fixes border initialization.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-25 15:26:04 -07:00
Tig Kindel
517ec9e988 fixed merge issues 2023-02-24 17:16:08 -07: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
7fbece9dc4 Pos.Combine unit tests 2023-02-24 12:52:43 -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
7d36a8490e Merge branch 'develop' into v1_setrelativelayout_improvments 2023-02-25 05:39:02 +13:00
Tig Kindel
121941497e fixed da bug; also fixed pwsh clipboard tests 2023-02-24 20:31:04 +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
Thomas Nind
40af5ed98a 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>
2023-02-21 11:59:46 +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