Commit Graph

2497 Commits

Author SHA1 Message Date
dependabot[bot]
d062d0cc2a Bump ReactiveUI.Fody from 13.2.18 to 13.3.2 (#1300)
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 13.2.18 to 13.3.2.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.2.18...13.3.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 11:30:05 -07:00
Charlie Kindel
b71f7d2c3c Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-13 11:27:56 -07:00
dependabot[bot]
4059c7eb39 Bump ReactiveUI from 13.2.18 to 13.3.1 (#1298)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 13.2.18 to 13.3.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.2.18...13.3.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 14:38:36 -07:00
Thomas Nind
0dd0f2e5c4 TableView - adds last column dividing line (#1289)
* Adds a final vertical column line at the end of the last header in TableView

* Added clear line as first step in RenderRow

* Added TableStyle.EnforceMaxWidthOnLastColumn

* Added Scenario toggle setting and tests

* Fixed EnforceMaxWidthOnLastColumn when Bounds match exactly the last column width

* Fixed whitespace and comment on ColumntoRender.Width

* Renamed EnforceMaxWidthOnLastColumn to ExpandLastColumn
2021-05-10 20:58:15 -07:00
dependabot[bot]
93d76b1a64 Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.1 to 1.0.2 (#1293)
Bumps [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/Microsoft/dotnet/releases)
- [Commits](https://github.com/Microsoft/dotnet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 20:55:54 -07:00
Charlie Kindel
15823105f2 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-09 19:29:12 -07:00
BDisp
a492a52d79 Fixes #1291. Combining two PosAbsolute or two DimAbsolute result on a PosAbsolute or DimAbsolute. (#1292) 2021-05-09 19:28:31 -07:00
BDisp
5b490a8c8f Fixes #1266. Using Ctrl+PageUp/PageDown to allowing navigate through windows. (#1283)
* Fixes #1266. Using Ctrl+PageUp/PageDown to allowing navigate through windows.

* No need to change TextView.

* Added configurable navigations keys.
2021-05-07 14:38:05 -07:00
Charlie Kindel
d3d0790589 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-06 10:30:38 -07:00
BDisp
4af48392cc Fixes #1281. Fixed CursesDriver colors. Added BasicColors scenario. (#1282)
* Fixes #1281. Fixed CursesDriver colors. Added BasicColors scenario.

* Normalizing NetDriver too.

* Fixing others colors.
2021-05-06 10:29:50 -07:00
Charlie Kindel
0784bc27dc Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-06 10:24:41 -07:00
dependabot[bot]
41bd2052db Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.0 to 1.0.1 (#1284)
Bumps [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/Microsoft/dotnet/releases)
- [Commits](https://github.com/Microsoft/dotnet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 10:24:18 -07:00
BDisp
274b4327a9 Fixxes #1272. Using ioctl to get winsize, resizeterm to resize and added the WinChanged action. (#1278) 2021-05-03 14:47:25 -07:00
Thomas Nind
71e719fb2b Made CursorLeft/CursorRight change focus when cursor position is at start/end of a TextView (#1271) 2021-05-02 11:22:04 -07:00
BDisp
8dabd16975 Fixes #1276. Added TextDirection constructor to View and Label and improving AutoSize. (#1277)
* Added AutoSize. CalcRect calculates vertical. Fixes Draw bug.

* Added TextDirection constructor. Ensuring set frame on Pos/Dim absolute. Improves AutoSize.

* Added a scenario for the AutoSize and TextDirection.

* Added more unit tests.

* Fixing some broken scenarios.

* Fixes others TextDirection that was not working.
2021-05-02 11:21:08 -07:00
José Miguel Perricone
dbd36d9d27 add direction summaries (#1274) 2021-04-29 18:56:05 -07:00
dependabot[bot]
74098ea8f6 Update Terminal.Gui requirement from 1.0.0-pre.* to 1.0.0.* (#1270)
Updates the requirements on [Terminal.Gui](https://github.com/migueldeicaza/gui.cs) to permit the latest version.
- [Release notes](https://github.com/migueldeicaza/gui.cs/releases)
- [Commits](https://github.com/migueldeicaza/gui.cs/compare/v1.0.0-pre.1...v1.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:34:15 -07:00
BDisp
013bf80fb2 Fixes #1267. Allows NetDriver run Terminal.Gui. (#1268)
* Fixes #1267. Allows NetDriver run Terminal.Gui.

* Removing instead of commenting.
2021-04-28 16:17:03 -07:00
Charlie Kindel
947e139ade v1.0.0 2021-04-28 15:40:47 -07:00
Charlie Kindel
642e18efa8 Final v1 tweaks (#1262)
* 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

* relnotes for v1.0.0-rc.11

* relnotes for v1.0.0-rc.12

* v1.0.0-rc.13

* merge

* fixed graphview api doc link
2021-04-28 15:39:21 -07:00
Tim Heuer
280f47374c Updating to supported target of .NET (#1263) 2021-04-28 10:53:10 -07:00
Charlie Kindel
19b438ca74 Version 1.0 (#1227)
* 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

* adjusting publish workflow

* adjusting publish workflow2

* adjusting publish workflow 3

* adjusting publish workflow 4

* adjusting publish workflow 5

* final fix to yaml

* code coverage docs

* regenerated api docs

* Updated relnotes for v1.0.0-rc.9

* fixed spelling and grammar

* rel notes for v1.0.0-rc.10

* relnotes for v1.0.0-rc.11

* relnotes for v1.0.0-rc.12

* v1.0.0-rc.13

* relnotes, readme, api doc regen

* updated sample.gif
2021-04-28 09:09:51 -07:00
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