Commit Graph

213 Commits

Author SHA1 Message Date
BDisp
58e7698f4c Fixes #1475. Selection ending with a white space error. (#1478)
* Fixes #1475. Selection ending with a white space error.

* Prevents the mouse  double click processing twice.

* Removing unnecessary variable.

* Sets ScrollViewBar CanFocus to false to ensure the host always focused.

* Only navigates through TabView if winDialog is not null and ensures TextView being focused.

* Fixes both dynamic menu and status bar broken scenarios.

* Fix a bug where the subviews oldEnabled can be overridden, even the superview Enable property hasn't changed.

* Fixes CanFocus when set to false and HasFocus is true.

* Fixes the broken TextView DesiredCursorVisibility.

* Prevents TextField being focused by mouse if CanFocus is false.

* Fixes the CanFocus on content views.

* Fixes #1470. Not all WindowsConsole.InputRecord are caught in WindowsDriver.

* Changing the input for a Queue object.

* Suppress warnings.

* Fixed yet the visibility cursor and adding more unit tests.

* Suppressing more warnings.
2021-10-25 12:40:18 -07:00
BDisp
2ef4edd08e NetDriver fixes keys modifiers not reseting and enter key on Windows Terminal. (#1484)
* Fixes keys modifiers not reseting and enter key on Windows Terminal.

* Fixes summary warnings.

* Ensures MainIteration processes  input while count greater than zero.

* Adding UseSystemConsole to the launch settings profile.

* Improves the performance with Console.Write by writing faster.
2021-10-25 12:31:49 -07:00
Thomas Nind
b5799c3ded Fixed label positions to begin at Margins not just bottom left of screen (#1488)
* Fixed label positions to begin at Margins not just bottom left of screen

* Tidied up Axis GetLabels and added margin control to GraphViewExample

* Added tests for very large margins
2021-10-25 12:30:39 -07:00
BDisp
d55ae77331 Fixes #1446. Added more features to the Border and Toplevel focus. (#1447)
* Fixes #1446. Added more features to the Border and Toplevel focus.

* Prevents throwing exception on negative effect3DOffset values

* Ensures that a view can be focused.

* Only sets focus if it isn't disposing.

* Fixes ViewToScreen and DrawChildBorder Effect3D.

* Unit test for negative coordinates with the ViewToScreen method.

* Added Tab navigation feature to the Editor scenario.

* ComboBox cursonDownKey nullref fix (#1472)

* added null guard to fix null ref when pressing keyDown inside combobox
Improved an error message when view cannot be found

* Added a unit test to ensure combobox can process all key events
Found and fixed a new nullref

* Found a new bug when source is already present and combobox is added to a top view

* searchSet is auto initialized to new List() now to make the code a little bit safer

* Fixes WindowsDriver HeightAsBuffer set to false. (#1466)

* Bump ReportGenerator from 4.8.12 to 4.8.13 (#1473)

Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.12 to 4.8.13.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.12...v4.8.13)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448)

* Fixes #1445. Fixing more the Curses and WSL clipboard.

* Fixing unit tests.

* Changing namespace.

* Fixes WSL2 clipboard unit test.

* Upgrades devcontainer with the MainLoop fix.

* Fixes pasting with no selection and with lines break.

* Prevents the event button click being fired after a button pressed with mouse move.

* Fixes the char [ not being processed.

* Added Application.QuitKey property to allow change the quitting application key. (#1450)

* Added Application.QuitKey property to allow change the quitting application key.

* Fixes QuitKey unit test by reseting his value.

* Locks timeouts until is added.

* Fixes #1467. AlternateForward/BackwardKey bypasses dialog modality (#1468)

* Changed namespace.

* Fixing merge conflicts.

* Fixes mouse click issue.

* Removing windows resizing because buffer resizing is enough.

* Fixes #1477. Mouse click and console bottom on Windows Terminal.

Co-authored-by: Igor Bagdamyan <37334640+En3Tho@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 09:22:13 -07:00
BDisp
23d4fa9016 Added Application.QuitKey property to allow change the quitting application key. (#1450)
* Added Application.QuitKey property to allow change the quitting application key.

* Fixes QuitKey unit test by reseting his value.

* Locks timeouts until is added.
2021-09-29 14:22:43 -07:00
BDisp
84f79b2326 Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448)
* Fixes #1445. Fixing more the Curses and WSL clipboard.

* Fixing unit tests.

* Changing namespace.

* Fixes WSL2 clipboard unit test.

* Upgrades devcontainer with the MainLoop fix.

* Fixes pasting with no selection and with lines break.

* Prevents the event button click being fired after a button pressed with mouse move.

* Fixes the char [ not being processed.
2021-09-29 14:22:23 -07:00
dependabot[bot]
a2cbe45d55 Bump ReportGenerator from 4.8.12 to 4.8.13 (#1473)
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.12 to 4.8.13.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.12...v4.8.13)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 14:21:51 -07:00
Igor Bagdamyan
f602d3bd1d ComboBox cursonDownKey nullref fix (#1472)
* added null guard to fix null ref when pressing keyDown inside combobox
Improved an error message when view cannot be found

* Added a unit test to ensure combobox can process all key events
Found and fixed a new nullref

* Found a new bug when source is already present and combobox is added to a top view

* searchSet is auto initialized to new List() now to make the code a little bit safer
2021-09-29 14:14:32 -07:00
BDisp
8bfa2f0425 Border feature (#1436)
* Allowing pass the view to the RootMouseEvent.

* Allowing bring the current window to front on dragging.

* Improving the ConsoleDriver to get the Attribute colors based on the value.

* Added a PanelView to deal with borders.

* Added a Border feature to all views.
2021-08-26 07:55:19 -07:00
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