2175 Commits

Author SHA1 Message Date
Charlie Kindel
669b0645a7 v1.0.0-rc.13 v1.0.0 2021-04-28 08:45:23 -07:00
Charlie Kindel
ba9293f7cb Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.13 2021-04-28 08:42:48 -07:00
José Miguel Perricone
028e7e5bf2 TextValidateField reimplementation without generics (#1261)
* TextValidateField reimplementation without generic

* mask change in catalog
2021-04-28 08:42:33 -07:00
Charlie Kindel
debe918c63 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-28 08:39:11 -07:00
Thomas Nind
a8628e7c28 Feature/graphs (#1201)
* Empty GraphView with basic axis

* Added ISeries

* Added zoom

* Fixed zoom

* Tests and scrolling

* Refactored AxisView into abstract base

* Added atomic mass example

* Added Y axis labels

* Added Y axis labels

* comments

* Refactored axis to not be floating views

* Split axis drawing code to seperate draw line from draw labels

* Added MarginBottom and MarginLeft

* Added bar graph

* Fixes horizontal axis label generation

* Fixed axis labels changing during scrolling

* Added test for overlapping cells

* Added TestReversing_ScreenToGraphSpace

* Changed graph space from float to decimal

* Added axis labels

* Fixed issues where labels/axis overspilled bounds

* Fixed origin screen coordinates being off by 1 in y axis

* Added Orientation to BarSeries

* Added comments and standardised Name to Text

* Added prototype 'population pyramid'

* Fixed bar graphs not stopping at axis

* Added Reset and Ctrl to speed up scrolling

* Added line graph

* Fixed LineSeries implementation

* Made LineSeries Points readonly and sort on add

* Fixed RectangleD.GetHasCode()

* Improved performance of LineSeries

* Added color to graph

* Fixed colors not working on linux

* Added Visible and ColorGetter

* Added Ctrl+G Next Graph

* Added MultiBarSeries

* Fixed layout issue with population pyramid

* fixed y label overspill and origin rendering

* Fixed warnings

* Made examples prettier

* Fixed xAxis potentially drawing labels outside of control area

* Fixed multi bar example labels

* Added IAnnotation

* Added example of using GraphPosition in IAnnotation

* Fixed Annotations drawing outside of graph bounds

* Fixed Reset() not clearing Annotations and sp fixes

* Changed line drawing to Bresenham's line algorithm and deleted CohenSutherland
Testing for collisions with screen space is very slow and gives quite thick lines.  I looked at Xiaolin Wu which supports anti aliasing but this also would require more work to look good (out of the box it just looks thick).

* Fixed layout/whitespace

* Graph now renders without series if annotations are present

* Fixed ScreenToGraphSpace rect overload

* Added SeriesDrawMode for when it is easier/faster for a series to draw itself all in one go

* Added LegendAnnotation

* Added tests for correct bounds

* Added more tests

* Changed GraphView namespace to Terminal.Gui.Graphs

* Made Line2D and Horizontal/Vertical axis private classes

* Made AxisIncrementToRender.Text internal to avoid confusing user when implementing `LabelGetterDelegate`

* Changed back from decimal to float

* Refactored axis label drawing to avoid rounding errors

* Fixed over spilling bounds when drawing bars/axis increments

* Re-implemented disco colors

* Added Minimum to Axis

* Fixed tests build and render order

* Fixed test by adjusting epsilon

* tidyup, docs and warning fixes

* Standardised parameter order and added axis test

* Fixed x axis line drawing into margins and added tests

* Fixed axis increment rendering in margins, tests and tidyup examples

* Added test for BarSeries

* Added more BarSeriesTests

* Split GraphView.cs into sub files as suggested

* Fixed pointlessly passing around ConsoleDriver and Bounds

* Fixed colored bars not reseting color before drawing labels

* spelling fixes

* Replaced System.Drawing with code copied from dotnet/corefx repo

* Change to trigger CI

* Added tests for MultiBarSeries

* Added test support for Asserting exact graph contents

* Added xml doc where missing from System.Drawing Types

* Standardised unit test namespaces to Terminal.Gui

* Fixed namespace correctly this time after merging main

* Fixed test to avoid using Attribute constructor

* Reduced code duplication in test by moving InitFakeDriver to static in GraphViewTests

* Added TextAnnotationTests and improved GraphViewTests.AssertDriverContentsAre

* Added more TextAnnotation tests and fixed file indentation

* Added tests for Legend and Path
And fixed TruncateOrPad being off by 1 when truncating

* Removed unused paths in TruncateOrPad
2021-04-28 08:38:25 -07:00
Charlie Kindel
5fd8e435c3 relnotes for v1.0.0-rc.12 2021-04-27 13:22:13 -07:00
Charlie Kindel
d40b3215a9 relnotes for v1.0.0-rc.11 v1.0.0-rc.12 2021-04-27 13:00:04 -07:00
Charlie Kindel
faacb1c3a0 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.11 2021-04-27 12:41:12 -07:00
Charlie Kindel
26cb200737 Fixes #1257 - ListView's ProcessKey should return false if no OpenSelectedItem handler is defined (#1258)
* tweaked version # for v1.0.0-beta.10

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

* Updated readme and revision history for 1.0

* adjusting publish workflow

* adjusting publish workflow2

* adjusting publish workflow 3

* adjusting publish workflow 4

* adjusting publish workflow 5

* final fix to yaml

* Updated relnotes for v1.0.0-rc.9

* rel notes for v1.0.0-rc.10

* ProcessKey now retruns false if no SelectedItem handler is defined
2021-04-27 12:40:48 -07:00
Charlie Kindel
a650bdf776 rel notes for v1.0.0-rc.10 2021-04-27 11:29:03 -07:00
Charlie Kindel
80e9257172 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.10 2021-04-27 11:26:19 -07:00
BDisp
993a255477 Fixes #931. Fixed the limit 25 lines issue. (#1254)
* Fixes #931. Fixed the limit 25 lines issue.

* Added some comments in the code that explain this.
2021-04-27 11:25:34 -07:00
Charlie Kindel
851ce85cde Updated relnotes for v1.0.0-rc.9 2021-04-27 09:07:41 -07:00
Charlie Kindel
1718c3fe62 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.9 2021-04-27 08:56:58 -07:00
BDisp
761224cf77 Fixes #1251. Fixes TextValidateProvider exception on the All View Tester scenario. (#1252) 2021-04-27 08:56:46 -07:00
Charlie Kindel
734c8549fa Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-27 08:52:56 -07:00
BDisp
91d5ff41b2 Fixes #1241. Added SendKeys feature to the ConsoleDriver. (#1242)
* 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.
2021-04-27 08:52:50 -07:00
Charlie Kindel
80b841006d Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-27 08:48:49 -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
d2c95ed882 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-27 08:46:01 -07:00
BDisp
c4e744a382 Fixes #418 and #931. Unix terminal hangs after exit. (#953)
* Fixes #931. Unix terminal hangs after exit.

* Changed escape sequence as suggested by @mklement0

* Changing as documented at http://ascii-table.com/ansi-escape-sequences-vt-100.php
2021-04-27 08:43:55 -07:00
Charlie Kindel
9f8d0cf514 final fix to yaml v1.0.0-rc.8 2021-04-26 12:03:32 -07:00
Charlie Kindel
6330d1e7bd adjusting publish workflow 5 v1.0.0-rc.7 2021-04-26 12:02:22 -07:00
Charlie Kindel
a0f9569387 adjusting publish workflow 4 2021-04-26 11:48:42 -07:00
Charlie Kindel
cd31402cd0 adjusting publish workflow 3 v1.0.0-rc.6 2021-04-26 11:46:21 -07:00
Charlie Kindel
889bfcf90c adjusting publish workflow2 v1.0.0-rc.4 v1.0.0-rc.5 2021-04-26 11:42:04 -07:00
Charlie Kindel
4ee44c1695 adjusting publish workflow 2021-04-26 11:29:40 -07:00
Charlie Kindel
4c08fbefa5 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.2 v1.0.0-rc.3 2021-04-26 09:31:57 -07:00
Charlie Kindel
7f27d78cc7 Release Candiate 2 (#1248)
* tweaked version # for v1.0.0-beta.10

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

* Updated readme and revision history for 1.0

* tweaked rel notes

* Regenerated docs for v1.0.0.0

* updating build docs

* updating docs

* updated readme

* updated readme

* more docs

* more docs

* Refactored for clarity

* tweaks

* updated info on versioning

* merged with main. updated relnotes

* updated api docs

* updated README to point to new docs

* merged from future v1.0.0 branch

* regen apidocs

* add code coverage badge generation to publish

* add code coverage badge generation to publish

* tweaked badge
2021-04-26 09:31:37 -07:00
Charlie Kindel
8ac53bd3aa Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-26 08:59:46 -07:00
Thomas Nind
444a01ae46 Extracted TreeView classes (builders, delegates, event args etc) into seperate files in namespace Terminal.Gui.Trees (#1246) 2021-04-26 08:59:35 -07:00
Charlie Kindel
e763aada74 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-26 08:58:48 -07:00
Thomas Nind
6a9e27761f Nested types for TabView and TableView (#1243)
* Made TabView classes nested

* Moved TableView classes to nested
2021-04-26 08:58:40 -07:00
Charlie Kindel
14eb37f95b Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-26 08:58:08 -07:00
dependabot[bot]
8d164cd02f Bump ReportGenerator from 4.8.7 to 4.8.8 (#1247)
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.7 to 4.8.8.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.7...v4.8.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 08:54:12 -07:00
Charlie Kindel
5d25d60759 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-25 12:14:20 -07:00
José Miguel Perricone
819dc291bc Feature TextValidateField (#1230)
* Feature TextValidateField

* Fix Mouse Click

* Fix Mouse click on TextRegexProvider

* UiCatalog fields with text alginment centered

* Fix Mouse click on TextRegexProvider when right aligned

* added newline to text.cs catalog

* NetMaskedTextProvider - changing the mask, try to use current input.
NetMaskedTextProvider - Left and Right Cursor dosen't wrap around.

* Add Some TextValidateField Tests.

* Add TextRegexProvider Tests

* Remove unnecessary using

* Tests namespace to Terminal.Gui.Views

* Regex Parse exception handling

* remove textmaskprovider in favor of .net maskedtextprovider

* refactoring and cleaning
2021-04-25 12:13:55 -07:00
Charlie Kindel
21485b5a24 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-25 10:23:05 -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
Charlie Kindel
ecc35163ea Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-04-22 11:36:54 -07:00
BDisp
3418f2882a Fixes #1234. Setting Handled to true in the KeyPress event avoids ProcessKey from running. (#1237)
* 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).
2021-04-22 10:04:33 -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
Seth Peasley
db3ddab2b8 Update overview.md (#1233)
Fixed typo in last sentence, "mainlop" to "mainloop".
2021-04-20 14:17:32 -07:00
Charlie Kindel
cbc5f9cc72 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.0.0-rc.1 2021-04-18 18:39:24 -07:00
Charlie Kindel
6e1424709a Prep for Release Candidate (#1226)
* tweaked version # for v1.0.0-beta.10

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

* RC 1?
2021-04-18 18:38:16 -07:00
Charlie Kindel
c65610b8a7 Updated readme and revision history for 1.0 2021-04-18 18:35:02 -07:00
Charlie Kindel
b5fc6a4b07 Merge branch 'main' of tig:migueldeicaza/gui.cs 1.0.0-RC.1 2021-04-18 18:03:13 -07:00
dependabot[bot]
dcd12c3616 Bump ReactiveUI.Fody from 13.0.1 to 13.2.18 (#1225)
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 13.0.1 to 13.2.18.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.0.1...13.2.18)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:03:08 -07:00
dependabot[bot]
58e8de50b0 Bump Pharmacist.MsBuild from 2.0.6 to 2.0.8 (#1224)
Bumps [Pharmacist.MsBuild](https://github.com/reactiveui/Pharmacist) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/reactiveui/Pharmacist/releases)
- [Commits](https://github.com/reactiveui/Pharmacist/compare/2.0.6...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:02:59 -07:00
dependabot[bot]
412a3ce17d Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.4 (#1223)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.3 to 16.9.4.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.3...v16.9.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:02:46 -07:00