Commit Graph

139 Commits

Author SHA1 Message Date
Thomas Nind
5cefd5bf0b Fixes #2553 - Fix HotFocus color when FullRowSelecting being used for VLines on left/right of TableView (#2557)
* Fix HotFocus color when FullRowSelecting being used for VLines on left/right of TableView

* Add AlwaysUseNormalColorForVerticalCellLines style setting

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-04-16 09:10:24 -06:00
Nutzzz
dcdb4f9b49 Add Style.ShowHeaders to TableView (#2514)
* Add Style.HideHeaders to TableView

* Revisions to TableView HideHeaders from review

Also add to UICatalog TableEditor Scenario

* Allow ShowHorizontalHeaderUnderline to draw top border even when HideHeaders is enabled; AlwaysShowHeader will keep it there on scroll

* Add Unit Tests for TableView.Style.HideHeaders

* Rename HideHeaders to ShowHeaders and simplify logic

---------

Co-authored-by: tznind <tznind@dundee.ac.uk>
2023-04-15 18:27:05 -06:00
BDisp
62746f8037 Fixes #2539. Add feature to draw menus with or without border. (#2556) 2023-04-15 18:26:14 -06:00
BDisp
c1de5e0dc6 Fixes #2545. ListView throw exception if click on the top border. (#2547) 2023-04-15 18:20:44 -06:00
Thomas Nind
ba473ffe05 Adds ShowHorizontalBottomline (#2552) 2023-04-15 18:19:04 -06:00
BDisp
5ae8e98631 Fixes menu frame and unit test on the #2483. (#2542)
* Fixes menu frame and unit test on the #2483.

* Reverting some code. Only color on ScrollView is failing.

* Fixes for the unit test Draw_A_ContextManu_Over_A_Dialog pass.
2023-04-14 14:28:12 -06:00
Tig
b4552ee14b Fixes #2493. Move all layout code out of View (and Toplevel) into a layout helper class (#2544)
* Comment/warning clean up

* Moved Text and Drawing out

* Moved Layout out

* Removed extra lines

* Removed Mouse out

* Reorgainzed View

* API docs

* removed border.cs

* TopLevel.Resized -> TerminalResized

* Mdi -> Overlapped

* Removed confusing and un-needed WillPresent

* privates -> _

* Tweaked RunLoop API
2023-04-14 10:26:10 -06:00
Tig
8c59e8255f Partially Fixes #2483 - Removes old Border and leverages LineCanvas for Frames, etc... (#2527)
* POC

* View.DrawFrame now uses LineCanvas

* Fixes #2531. Toplevel should redraw only if it's needed.

* Fix toplevel when mdi is enabled preventing clear the screen twice.

* Massive LineCanvis updates

* Fixes #2534. Bounds isn't updating when the Frame is changed.

* Almost everything works!

* Had to disable a few tests but all unit test now pass again

* Deleted ConsoleDriver.DrawWindowFrame; hacked ProgressBar

* Deleted ConsoleDriver.DrawWindowTitle; moved to Frame.DrawTitle

* Renames BorderFrame to Border

* Removed old commented code

* Tweaked scenario

* Added auto convert \r\n to Enviornment.NewLine in TestHelpers.AssertEqual

* Fix merge errors.

* Fix AssertEqual newlines to platform-specific.

* Refactored frames drawing; view adds to its lineview, superview renders them

* New titlebar style based on Border.Top size; fixed bugs

* wzard bug

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-04-13 15:35:01 -06:00
BDisp
5317489a8b Fixes #2539. Menu should use Frame instead of DrawFrame. (#2540) 2023-04-13 14:35:56 -06:00
BDisp
91bf832ce4 Fixes #2531. Toplevel should redraw only if it's needed. (#2532)
* Fixes #2531. Toplevel should redraw only if it's needed.

* Fix toplevel when mdi is enabled preventing clear the screen twice.
2023-04-13 01:36:44 -06:00
Tigger Kindel
18e18f6a7f Cleaned up Application.cs 2023-04-10 17:50:31 -06:00
BDisp
8dbb345225 Fixes #2523. WordBackward and WordForward should be moved to the TextModel class. (#2524)
* Move WordBackward and WordForward to TextModel class.

* Improving code and changing unit tests.

* Remove commented code.

* Fix unit test.
2023-04-10 17:39:51 -06:00
Tig
a637f8a29c Fixes #2486 - Removes old Border and fixes a litany of related things (#2525)
* Added View.BorderStyle and renamed BorderStyle enum to LineStyle

* Fixed a lot of things and broke everything else

* Fixed things

* Updated DialogTests

* Updates including Rect unit tests

* Fixed Dialog & MessagBox tests

* Fixed AllviewsTester bug

* Fixed AllviewsTester bug

* Removed Border class

* Renamed View privates with _

* Removed comments in MessageBox.cs
2023-04-10 17:34:52 -06:00
BDisp
b4d5337fbb Done requested changes. 2023-04-09 08:13:22 -06:00
BDisp
22e791bff4 Fixes #2512. Scrolling numeration is broke again. We need to create a unit test for this doesn't happens again. 2023-04-09 08:13:22 -06:00
Tig
574ed8fec7 Fixes #2469 - Revamp file structure and namespace (#2471)
* initial commit

* All tests pass

* Updated readme

* Revert "All tests pass"

This reverts commit 94ac462350.

* Revert "initial commit"

This reverts commit 36d92cc4e5.

* Moved Terminal.Gui files around

* Nuked .Graphs namespace

* Nuked .Graphs namespace

* Nuked .Trees namespace

* Nuked .Configuration namespace

* Nuked .Configuration namespace

* All tests pass

* tweaked tests

* removed unneeded usings

* re-enabled scrollview tests

* move scrollview test to ScrollViewTests

* Moved view navigation related tests to separate cs file

* Moved view scrollbarview related tests ScrollBarTestse

* Refactored View tests into smaller files

* Refactored driver tests

* Fixed a ton of BUGBUGs
2023-04-06 10:09:21 -06:00
Thomas
431f60f361 Remove call to shutdown 2023-04-05 23:11:26 +01:00
Thomas
78a757df5d Fix unit tests 2023-04-05 23:00:48 +01:00
tznind
046caae157 Fix tests by adding auto init/shutdown 2023-04-05 08:57:22 +01:00
Thomas Nind
67c1217e2a Merge branch 'v2_develop' into table-cell-draw-fix 2023-04-05 08:42:54 +01:00
tznind
2b3c1429bd merge 2023-04-05 08:13:11 +01:00
tznind
39d2a71105 Add test for TableView cell style getter with empty/end columns 2023-04-05 08:11:31 +01:00
Tigger Kindel
96a97c51e9 fixed tableview unit tests 2023-04-04 16:02:11 -06:00
Tigger Kindel
7eaccbd2a7 fixed graphview unit tests 2023-04-04 15:49:36 -06:00
Tigger Kindel
a5a7f84c39 fixed all nullable issues 2023-04-04 15:36:36 -06:00
Tigger Kindel
86fc997abc initial commit 2023-04-04 12:26:14 -06:00
Tig
9ff83a71d6 Merge branch 'v2_develop' into caption 2023-04-03 22:26:53 -06:00
tznind
13bbc6a2ba Add AutoSpin test 2023-04-03 22:18:30 -06:00
tznind
b41bf86df3 Code formatting 2023-04-03 22:18:30 -06:00
tznind
82e41a928a Add SpinnerView 2023-04-03 22:18:30 -06:00
Tigger Kindel
d00b11ae5d Added and fixed ScrollBarView and ScrollView tests 2023-04-03 20:38:52 -06:00
Thomas Nind
3a64cfbdb8 Merge branch 'v2_develop' into caption 2023-04-03 17:02:04 +01:00
tznind
c052a30f47 Add AutoSpin test 2023-04-03 07:42:05 -06:00
tznind
b29839a2aa Code formatting 2023-04-03 07:42:05 -06:00
tznind
91b74a462e Add SpinnerView 2023-04-03 07:42:05 -06:00
Thomas
12372051a3 Add test for case insensitivity 2023-04-01 13:56:15 +01:00
Thomas
1c4b92ca2f Fix layout 2023-04-01 13:03:36 +01:00
Thomas Nind
4bc5a3b23a Merge branch 'v2_develop' into caption 2023-04-01 13:02:12 +01:00
Thomas
0b6856ad88 Added caption tests 2023-04-01 12:57:46 +01:00
Thomas Nind
5cbcfc3e12 Merge branch 'v2_develop' into suggest-append 2023-04-01 08:54:53 +01:00
Thomas
a3b154749a More tests 2023-04-01 08:11:12 +01:00
Thomas
86a2a2a956 Fix suggestion overspill bounds 2023-04-01 07:59:18 +01:00
Thomas
66d89c6f3e More append tests 2023-04-01 07:43:41 +01:00
Thomas
1eb6db9538 Support for CloseKey in autocomplete append 2023-03-31 20:25:46 +01:00
Thomas
dbe78d5556 Add first autocomplete append test 2023-03-31 17:13:45 +01:00
Tigger Kindel
24155ac43b Merge branch 'v2_develop' into v2_view2_experiment 2023-03-31 07:32:07 -06:00
Tigger Kindel
176e622eb6 merged v2_develop 2023-03-30 05:11:37 -06:00
tznind
3d9aac8e4c Add AutocompleteContext 2023-03-30 08:17:44 +01:00
tznind
cfb2058bc0 Fix tests 2023-03-30 02:36:53 +01:00
tznind
b30dd8e065 Added Suggestion class 2023-03-30 02:27:02 +01:00