Commit Graph

132 Commits

Author SHA1 Message Date
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
Thomas
e62e2382de WIP:Start refactoring Autocomplete
- Seperate out suggestion generation from popup/append UI
- Reduce coupling and subclassing
2023-03-29 22:58:09 +01:00
Tigger Kindel
8e88682bb0 Adding absolute layout tests 2023-03-29 11:39:21 -06:00
Tigger Kindel
44e371afe4 Disabled graphview tests 2023-03-29 09:48:27 -06:00
BDisp
a0c0d18a5a Prevents OnEnter throw exception if IsInitialized is false. 2023-03-29 12:08:58 +01:00
BDisp
3e504ca8e8 Run EnsureSelectedItemVisible on OnSelectedChanged. 2023-03-29 12:06:44 +01:00
BDisp
0656662b12 lastSelectedItem must be equal to selected no matter has focus or not. 2023-03-29 01:08:50 +01:00
Tigger Kindel
fb09d94121 Fixed TextAnnotationsTests 2023-03-28 17:39:36 -06:00