Commit Graph

38 Commits

Author SHA1 Message Date
Charlie Kindel
eb8cb4408d misc changed done before I went on holiday 2022-12-31 06:20:17 -07:00
BDisp
075141a687 Fixes #2247. Preparing for the NStack v1.0.7 which now handling properly non-BMP code points. 2022-12-05 18:08:39 +00:00
Charlie Kindel
a0b36d3457 merged develop 2022-12-04 08:09:27 -07:00
BDisp
0a208ff518 Some more explanation for this unit test. 2022-11-15 13:00:35 +00:00
BDisp
8dcf0fc73d Don't use the ustring array to get a rune, use ToRunes first. 2022-11-14 17:42:31 +00:00
Charlie Kindel
1efb051379 Refactored AutoInitShutdown attribute - scary stuff 2022-11-11 10:06:21 -07:00
BDisp
436c171478 Fixed System_Rune_ColumnWidth unit test. 2022-11-04 10:29:50 +00:00
Tig Kindel
c1d976c781 refactored AssertDriverContents out of GraphView tests 2022-10-29 19:53:08 -06:00
BDisp
28718e9c3c Fixes #2002. Added feature to fill the remaining width with spaces. (#2003)
* Added feature to fill the remaining width with spaces.

* Removing unnecessary parameter.

* Fixes a typo.

* Unit test rewritten to explain better main feature of this PR.

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-15 06:47:12 -07:00
BDisp
d70966a29c Fixes the justified text not adding the extra spaces. (#2005)
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-14 19:18:41 -07:00
BDisp
ff1eb9bea1 Fixes #1979. MessageBox.Query not wrapping since 1.7.1 (#1995)
* Added MaxWidthLine into the TextFormatter class.

* Some more test line to better verifying the mainloop idle handlers.

* Fixes #1979. MessageBox.Query not wrapping since 1.7.1

* Added MessageBox unit tests.

* States a button centered issue on a lower fixed size.

* Fixed the centered button issue 4d0a4b6.
2022-09-14 18:11:12 -07:00
BDisp
31082c001c Added SplitNewLine method to the TextFormatter. (#1982) 2022-09-05 07:23:24 -07:00
BDisp
a23c1bee19 Fixes #1925. Preserve trailing spaces on word wrap must be refactored… (#1929)
* Fixes #1925. Preserve trailing spaces on word wrap must be refactored on TextFormatter.

* Fixes a bug on Format when the preserveTrailingSpaces is enabled.

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-08-04 10:15:21 -07:00
BDisp
4392f450da Fixes unit tests according to the changes. 2022-07-04 11:22:27 -04:00
BDisp
e02df8c043 Added some more features and bug fixes. 2022-07-04 11:22:27 -04:00
BDisp
3160b4c914 Fixes some AutoSize issues with rules. 2022-07-04 11:22:27 -04:00
BDisp
b33b658f5b Fixes #1769. Supports a minimum view size for non-automatic size views. (#1771)
* Fixes #1769. Supports a minimum view size for non-automatic size views.

* Only sets the minimum view size if it has text for non-autosize views.

* Added Dim unit tests for views with text.
2022-06-08 13:05:34 -07:00
James A Sutherland
efb654e6d9 Fixes #1750. Erroneous suppression of Button Text updates. (#1752)
* - Fix upstream issue 1750
- Unexplained breakage in odd test "Update_Only_On_Or_After_Initialize"

* Add workaround in Button.cs for erroneous text width caching in TextFormatter

* - Revert earlier attempted workaround for update issue

* Fix TextFormatter erroneous width caching issue when new runecount matched previous width in columns, add regression test, revert temporary workaround from Button.cs

* Add new unit test Update_Parameterless_Only_On_Or_After_Initialize
2022-05-28 15:11:24 -07:00
BDisp
d99bc42f39 Preventing more Update execution before Initialize. 2022-05-18 13:47:04 +01:00
BDisp
c561016423 Prevents updating button before initialization. 2022-05-17 22:23:04 +01:00
BDisp
933a1bda91 Added text direction support for word-wrap and fix draw issues. 2022-04-30 01:07:04 +01:00
Thomas Nind
d60aed79e4 Autocomplete for TextView (#1406)
* Added basic autocomplete style dropdown (not working properly yet)

* Autocomplete basically working but rough around the edges

* Changed to Lists and added CloseKey

* Fixed test, made autocomplete equal length

* Added scrolling through autocomplete list

* Made Accept autocomplete do delete and replace instead of append to support caps changes

* Changed Autocomplete ColorScheme to cyan

* Fixed autocomplete render location when TextView is scrolled

* Fixed scrolling and overspill rendering

* Added wordwrap option to SyntaxHighlighting Scenario

* Moved Autocomplete to be member property of TextView

* Made Suggestions a readonly collection and enabled Autocomplete in Editor Scenario

* Added ClipOrPad tests

* Fixed bad merge

* Delayed init of ColorScheme on Autocomplete until needed

* Changed ColorScheme to match Menu bar
2021-08-24 08:19:43 -07:00
BDisp
b200763a3f Fixes #1387. Allowing the UnitTests project to test internal keywords. 2021-07-23 23:02:22 +01:00
Charlie Kindel
8d8025329e Added Attributes tests; balanced Application.Init/Shutdown 2021-05-17 18:22:46 -07:00
BDisp
c27da1b982 Fixes #1210. Added AllowsReturn, AllowsTab and Multiline into the TextView. (#1249)
* Fixes #1234. Setting Handled to true in the KeyPress event avoids ProcessKey from running.

* Using literals values in Assert.Equal.

* Can't use numbers variables on the left side of an Assert.Equal/NotEqual, it must be literal (Linux only).

* Fixes #1241. Added SendKeys feature to the ConsoleDriver.

* Fixes SendKeys unit test.

* Changed Key.Null to '\0' (null string).

* Fixes the space bar when there are another previous char.

* Now the drivers are reading up to 255 from ASCII table.

* Fixes CursesDriver and WindowsDriver SendKeys.

* Fixes NetDriver SendKeys.

* Fixed unit test.

* Fixes #1210.  Added AllowsReturn, AllowsTab and Multiline into the TextView.

* Added a Single Line and Multiline toggle to the Text.cs scenario.

* Removing comment.
2021-04-27 08:48:35 -07:00
Charlie Kindel
b29240f362 Code coverage (#1235)
* tweaked version # for v1.0.0-beta.10

* tweaked version # for v1.0.0-beta.11

* Updated readme and revision history for 1.0

* excluding test results

* Added support for viewing code coverage results with Fine Code Coverage

* add generating CC to CI/CD

* refactored unit test namespaces

* more refactoring. commented out failing test.

* Removed UnitTests and UICatalog from code coverage reporting

* made Application and test more deterministic

* disabled Multi_Thread_Toplevels because it is currently broken and don't understand why

* updated threading test per @bdisp

* testing cc badge stuff

* another test

* using coverlet.settings

* trying copy

* trying cp. duh.

* trying mv.

* wrong path

* print

* chaging badge output for testing

* yaml error

* fixed code coverage

* moved dimtests to core
2021-04-25 10:18:31 -07:00
BDisp
4948d072b0 Fixes #1231. Ignoring negative bounds. (#1232)
* Fixes #1231. Ignoring negative bounds.

* Added vertical width instead VerticalTextAlignment.

* Removing width.
2021-04-20 14:17:53 -07:00
BDisp
482f9db7da Fixes #1148. TextFormatter.Format does not keep the end spaces on wrapped text. (#1149)
* Fixes #1148. TextFormatter.Format does not keep the end spaces on wrapped text.

* Added comments.

* Changing keepEndSapces to preserveTrailingSpaces.
2021-03-23 10:53:02 -07:00
BDisp
0fb29368cd Non printable character now returns -1 on Rune.ColumnWidth and ConsoleWidth. 2020-10-31 00:09:02 +00:00
BDisp
9615769e63 Changed to \u notation. 2020-10-27 17:26:24 +00:00
BDisp
b1d0de9571 #41 and #949. Unit test to compare the difference between System.Rune and System.Text.Rune. 2020-10-27 17:26:12 +00:00
BDisp
805fdeb344 Fixing TextFormatter unit test. 2020-08-01 00:27:32 +01:00
Charlie Kindel
9d088f87ec fixed a wide-unicode bug 2020-07-13 22:03:17 -07:00
Charlie Kindel
c3395f41ab fixed word wrapping to not strip spaces; ended up fixing other ww bugs too! 2020-07-13 17:48:41 -07:00
Charlie Kindel
a0522be496 tweaks 2020-06-30 07:22:20 -07:00
Charlie Kindel
120991ec5b ready for pr 2020-06-18 01:29:25 -07:00
Charlie Kindel
8272d8aff3 feature complete 2020-06-17 15:43:26 -07:00
Charlie Kindel
49bfe6a6c2 progress...rabbit hole 2020-06-17 08:50:38 -07:00