Commit Graph

2218 Commits

Author SHA1 Message Date
BDisp
8bdbb12c8a Check if xclip is installed. 2021-05-23 00:47:28 +01:00
BDisp
67d75725cc Fixes #1318. Ensures that the OS clipboard is always sets. 2021-05-22 22:37:04 +01:00
Charlie Kindel
4eab436aeb Merge pull request #1315 from BDisp/clipboard-improvement
Fixes #983. Improving clipboard with interaction with the OS.
2021-05-20 08:24:29 -07:00
BDisp
f60458cc6b Fixes #983. Improving clipboard with interaction with the OS. 2021-05-20 01:27:42 +01:00
Charlie Kindel
62c1854815 Merge pull request #1313 from tig/unit_tests_add_attribute
Added Attributes tests; balanced Application.Init/Shutdown
2021-05-18 07:19:30 -07:00
Charlie Kindel
4f0049dde8 refactored AutoInitShutdown attribute 2021-05-17 18:30:55 -07:00
Charlie Kindel
8d8025329e Added Attributes tests; balanced Application.Init/Shutdown 2021-05-17 18:22:46 -07:00
Charlie Kindel
0fad21607b Merge pull request #1312 from migueldeicaza/dependabot/nuget/Terminal.Gui-1.1.1.star
Update Terminal.Gui requirement from 1.0.0.* to 1.1.1.*
2021-05-17 15:19:39 -07:00
dependabot[bot]
08db0230fb Update Terminal.Gui requirement from 1.0.0.* to 1.1.1.*
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...v1.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 07:42:57 +00:00
Charlie Kindel
b803c3add8 Merge pull request #1310 from tig/v_1_1_2
v1.1.2 test release
2021-05-16 17:22:04 -07:00
Charlie Kindel
e353ca399a testing branch stuff 2021-05-16 17:13:50 -07:00
Charlie Kindel
482fd59a11 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.1.2 2021-05-16 17:06:17 -07:00
Charlie Kindel
cb060f6614 Release v1.1.1 (#1309)
* Release v1.0.1
2021-05-16 17:06:06 -07:00
Charlie Kindel
cbd29f4028 Merge branch 'main' of tig:migueldeicaza/gui.cs v1.1.1 2021-05-16 17:01:19 -07:00
BDisp
c2d0a28c86 Fixes #1307 MainLoop timeouts duplicate keys error. (#1308)
* Fixes #1307 MainLoop timeouts duplicate keys error.

* Fixes key not exist in collection on parallel.
2021-05-16 17:01:03 -07:00
Charlie Kindel
4a09631b63 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-16 07:33:41 -07:00
Charlie Kindel
c2d0d28907 Version 1.1.0 Release (#1306)
* 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

* Releasing 1.1.0

* removed WiP
2021-05-16 07:33:23 -07:00
Charlie Kindel
1777e5b6cc Merge branch 'main' of tig:migueldeicaza/gui.cs v1.1.0 2021-05-16 07:21:45 -07:00
Thomas Nind
fe9c984d5c Changed Console.WriteLine to ITestOutputHelper in tests (#1305)
* Changed Console.WriteLine to ITestOutputHelper in tests

* Added ITestOutputHelper
2021-05-16 07:21:21 -07:00
Charlie Kindel
2b62b3ba33 Merge branch 'main' of tig:migueldeicaza/gui.cs 2021-05-13 11:31:12 -07:00
dependabot[bot]
e9b3289643 Bump ReactiveUI from 13.3.1 to 13.3.2 (#1301)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 13.3.1 to 13.3.2.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.3.1...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:31:01 -07:00
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