Commit Graph

204 Commits

Author SHA1 Message Date
Thomas Nind
7cba2c9cf5 Fixed bug setting ColorScheme on Autocomplete 2021-08-25 09:19:46 +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
dependabot[bot]
ee8a8cc2db Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0 (#1418)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.10.0 to 16.11.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/commits)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-24 08:18:30 -07:00
BDisp
52f48b2044 Fixes #1384. Added a VisibleChanged event on the View class. (#1385)
* Fixes #1384. Added a VisibleChanged event on the View class.

* Getting the last char.

* Fixes #871. Added Enable property to Responder and added Disabled color for all ColorSchemes.

* Added GetNormalColor method to the View being more readable.

* Fixes the contentBottomRightCorner Enable and Visible.

* Fixes #643. Added AddItemAt and RemoveItem to StatusBar and fixed more bugs.

* Typo fixes.

* Fixes #1387. Allowing the UnitTests project to test internal keywords.

* Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar.

* Fixes #1394. Added ReflectedType to check for overridden.

* Fixes #1396. Using the Loaded event instead the Ready event.

* Fixes #1402. Only WindowsDriver supports horizontal scroll. (#1403)

* Fixes #1402. Only WindowsDriver supports horizontal scroll.

* Fixes ProcessContinuousButtonPressedAsync on all drivers.

* Fixed internal unit test.

* Fixing warning.

* Fixing Editor scenario error.

* Fixes double and triple click on a touchpad.

* Ensuring reset the counting.

* Allowing touchpad double and triple click with one finger on CursesDriver.

* Allowing touchpad double and triple click with one finger on WindowsDriver.

* Fixes #1414. Fixed multi toplevels and mdi container issues.

* Improving EnsureVisibleBounds and PositionToplevel.

* Added mouseGrabView to the ResetState method.

* Changing namespace.

* Allowing file type on the SaveDialog.

* Fixes SaveDialogs writing the extension twice.
2021-08-11 02:56:30 -07:00
Charlie Kindel
de5d38f7c4 Merge pull request #1390 from BDisp/progressbar-bidirection
Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar.
2021-08-04 22:52:34 -06:00
BDisp
bb4bbcba1e Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar. 2021-07-24 13:23:20 +01:00
BDisp
b200763a3f Fixes #1387. Allowing the UnitTests project to test internal keywords. 2021-07-23 23:02:22 +01:00
Charlie Kindel
52a5fccdc4 Merge pull request #1383 from BDisp/key-unit-tests
Fixes #1381. Unit tests to demonstrate the Key enum ambiguity check.
2021-07-21 09:15:07 -07:00
dependabot[bot]
3b752794c5 Bump coverlet.collector from 3.0.3 to 3.1.0 (#1382)
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits/v3.1.0)

---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-21 09:13:16 -07:00
BDisp
e2d53d2d92 Fixes #546. Enhancement ProgressBar. (#1379)
* Fixes #546. Enhancement ProgressBar.

* Allows set the Text only on Marquee style.
2021-07-21 09:08:43 -07:00
Thomas Nind
02dfb2be2a Adds Lineview (#1374)
* Added LineView

* Added tests for LineView constructor

* Fixed tests

* fix typo
2021-07-21 09:02:48 -07:00
Charlie Kindel
f29d3897eb Merge pull request #1365 from migueldeicaza/dependabot/nuget/ReportGenerator-4.8.12
Bump ReportGenerator from 4.8.11 to 4.8.12
2021-07-21 08:55:39 -07:00
Charlie Kindel
dcc126942a Merge pull request #1364 from BDisp/textview-load-file
Fixes #1314. TextView now exposes file exceptions from callers.
2021-07-21 08:55:05 -07:00
Charlie Kindel
1026f2145b Merge pull request #1357 from tznind/table-colors
Added support for coloring cells in TableView
2021-07-21 08:49:27 -07:00
Charlie Kindel
14186f0858 Merge pull request #1355 from BDisp/showbothscrollindicator-false-test
More unit test for issue #1344, testing IsVertical as False.
2021-07-21 08:43:52 -07:00
Charlie Kindel
5f03261806 Merge pull request #1331 from BDisp/toplevel-improvement
Toplevel improvement as a subviews container without frame borders.
2021-07-21 08:39:47 -07:00
BDisp
d092fc694d Small change to re-run the test in Github. 2021-07-21 12:23:03 +01:00
BDisp
46aa017ff1 Fixes #1381. Unit tests to demonstrate the Key enum ambiguity check. 2021-07-20 15:17:51 +01:00
BDisp
49e71b45af Fixes #1380. Setting AllowsTab in TextView keeps Multiline. 2021-07-19 14:21:05 +01:00
BDisp
138a14746d Using LayoutSubviews to fix the size height hiding first character. 2021-07-16 15:17:20 +01:00
BDisp
1aa1161163 Asserting type names. 2021-07-16 13:04:25 +01:00
BDisp
57a3a5d9f1 Fixes #1260. Added unit test to emulate the "All Views Tester" scenario. 2021-07-16 11:46:50 +01:00
BDisp
5851d0e6f1 Adding more unit tests. 2021-07-15 19:29:35 +01:00
BDisp
dc3c016199 Added more unit tests as requested in https://github.com/migueldeicaza/gui.cs/pull/1249#issuecomment-827787161 2021-07-13 15:50:16 +01:00
BDisp
e78bba0cc2 Fixes TextView to deal with CRLF format. 2021-07-12 21:59:16 +01:00
dependabot[bot]
788dce45fe Bump ReportGenerator from 4.8.11 to 4.8.12
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.11 to 4.8.12.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.11...v4.8.12)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 14:08:21 +00:00
BDisp
3da689ff31 Fixes #1314. TextView now exposes file exceptions from callers. 2021-07-11 19:10:44 +01:00
BDisp
c707d1351d Some changes and adding much more unit tests. 2021-07-11 00:19:11 +01:00
Thomas Nind
29c14876c0 Changed CellColorGetterDelegate to use its own class for args CellColorGetterArgs to future proof the API against breaking changes 2021-07-07 12:15:35 +01:00
Thomas Nind
f536d906d4 Made selected cell invert first character optional as a TableStyle 2021-06-29 09:27:28 +01:00
Thomas Nind
fe464b0b94 Added test helper method AssertDriverColorsAre 2021-06-29 08:03:35 +01:00
BDisp
c4232e9a3a More unit test for issue #1344, testing IsVertical as False. 2021-06-27 19:12:29 +01:00
dependabot[bot]
e5080e2882 Bump ReportGenerator from 4.8.10 to 4.8.11
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.10 to 4.8.11.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.10...v4.8.11)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 14:08:33 +00:00
Charlie Kindel
ca38f60430 Merge pull request #1343 from BDisp/view-text-update-fix
Fixes #1341. Now if AutoSize is true the Bounds size is always updated by  using the Dim.Fill or the Dim.Absolute.
2021-06-22 08:20:40 -07:00
Charlie Kindel
a533d83313 Merge pull request #1339 from migueldeicaza/dependabot/nuget/ReportGenerator-4.8.10
Bump ReportGenerator from 4.8.9 to 4.8.10
2021-06-22 08:19:49 -07:00
BDisp
a9d8ff19d8 Fixes #1344. Setting showBothScrollIndicator to false on the constructor don't throws NullReferenceException anymore. 2021-06-19 00:26:57 +01:00
BDisp
21714b64b8 Fixes #1341. Now if AutoSize is true the Bounds size is always updated by using the Dim.Fill or the Dim.Absolute. 2021-06-18 18:34:16 +01:00
dependabot[bot]
565e58880a Bump ReportGenerator from 4.8.9 to 4.8.10
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.9 to 4.8.10.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.9...v4.8.10)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 14:07:54 +00:00
Charlie Kindel
f13ee4a1b8 Merge pull request #1334 from BDisp/window-initialize
Added a Initialize method to the Window to simplify the constructors.
2021-06-11 13:02:12 -07:00
BDisp
4d09d4522e Added a AllViewsTests unit test to test all Views derived class constructors. 2021-06-10 20:31:57 +01:00
BDisp
ee75af620d Fixes the restriction of the AutoSize = true of only being true if both the width and the height are true. 2021-06-08 21:35:27 +01:00
BDisp
432e9cb801 Fixes GetCurrentWidth and GetCurrentHeight providing the correct current values. 2021-06-04 16:48:09 +01:00
BDisp
66b46851cb Fixes #1327. Fixes TextField backspace and canceling TextChanging. 2021-05-31 15:51:20 +01:00
Charlie Kindel
0413a93bf3 Merge pull request #1319 from BDisp/clipboard-linux-fix
Fixes #1318. Ensures that the OS clipboard is always sets.
2021-05-30 07:32:45 -06:00
BDisp
ce04eeda86 Added -noprofile option to PowerShell and the clip.exe. 2021-05-27 17:13:12 +01:00
dependabot[bot]
f19636ed33 Bump ReportGenerator from 4.8.8 to 4.8.9
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.8 to 4.8.9.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.8...v4.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 18:11:39 +00:00
dependabot[bot]
b866dfa196 Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.4 to 16.10.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.9.4...v16.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 06:19:34 +00:00
BDisp
30748df0da Trying even more to fix permissions issue and removed try catch. 2021-05-25 19:43:19 +01:00
BDisp
a5915cd190 Trying fixing more permissions issue. 2021-05-25 19:33:37 +01:00
BDisp
1b7ead0e71 Fixes more permissions issues. 2021-05-25 19:19:14 +01:00