Commit Graph

3899 Commits

Author SHA1 Message Date
BDisp
b57b1f32ab Fixes #2865. Unknown character sequence while resizing terminal. (#2951)
* Fixes #2865. Unknown character sequence while resizing terminal.

* Added USE_IOCTL definition for toggle.

* Explaining that is a CSI (Esc[) = 27;91.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-12-19 16:44:44 -07:00
Tig
5eafea063b Create codeql.yml (#3032) 2023-12-19 16:34:34 -07:00
dependabot[bot]
b7e16bc7cd Bump github/codeql-action from 2 to 3 (#3063)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 16:34:02 -07:00
dependabot[bot]
cea2f5a971 Bump actions/setup-dotnet from 3 to 4 (#3046)
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3 to 4.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-12-17 21:58:48 -07:00
dependabot[bot]
6dc2114999 Bump actions/configure-pages from 3 to 4 (#3047)
Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 3 to 4.
- [Release notes](https://github.com/actions/configure-pages/releases)
- [Commits](https://github.com/actions/configure-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/configure-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-17 21:55:07 -07:00
dependabot[bot]
f67d523f8d Bump actions/deploy-pages from 2 to 3 (#3048)
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 2 to 3.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-17 21:54:18 -07:00
Tig
3d4613710b V1: Fixes #3050 - API Doc link in Readme (#3058)
* Updated nuget refs

* Fixes #3050
2023-12-17 14:33:47 -07:00
BDisp
577fae1ac7 Fixes #3034. Text remains "invisible" in the TextView when WordWrap is activated. (#3035) 2023-12-06 09:43:25 -07:00
dependabot[bot]
9bcfd609eb Bump SixLabors.ImageSharp from 3.0.2 to 3.1.0 (#3025)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v3.0.2...v3.1.0)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  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>
2023-12-05 07:38:36 -07:00
dependabot[bot]
afc0cee606 Bump actions/checkout from 3 to 4 (#3030)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 07:38:23 -07:00
Tigger Kindel
1111c82595 Fixed api link prob 2023-12-03 11:48:17 -07:00
Tigger Kindel
beefc61d84 Republish v1 docs using new docfx 2023-12-03 11:03:28 -07:00
Tigger Kindel
2a679e01bd Republish v1 docs using new docfx 2023-12-03 11:02:22 -07:00
Tig Kindel
cd3bc82084 Added overview/v1.md as a marker to test publishing two versions of docs 2023-12-02 08:24:23 -07:00
Tigger Kindel
7ef0b59165 Publish v1 API docs with new workflow 2023-12-01 14:57:50 -07:00
Tigger Kindel
57588fc4e4 attempting to publish v1 AND v2 docs 7 2023-12-01 14:50:57 -07:00
Tigger Kindel
f00efc5da3 attempting to publish v1 AND v2 docs 6 2023-12-01 14:47:47 -07:00
Tigger Kindel
c2ca2b77cd attempting to publish v1 AND v2 docs 5 2023-12-01 14:37:29 -07:00
Tigger Kindel
ad1597837d attempting to publish v1 AND v2 docs 4 2023-12-01 14:29:02 -07:00
Tigger Kindel
7b6f9ab989 attempting to publish v1 AND v2 docs 3 2023-12-01 14:19:47 -07:00
Tigger Kindel
a86426c632 attempting to publish v1 AND v2 docs 2 2023-12-01 14:10:06 -07:00
Tigger Kindel
ce2d40b088 attempting to publish v1 AND v2 docs 2023-12-01 14:05:26 -07:00
Tig
0788dedb32 Create static.yml (#3026) 2023-12-01 14:02:03 -07:00
Riley Carlson
b8de6f3212 Update Toplevel.cs - capitalization fix (#3015) 2023-11-26 22:10:46 -07:00
dependabot[bot]
3a502cae3c Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 (#2966)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.2 to 17.8.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.7.2...v17.8.0)

---
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>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:23:38 -07:00
BDisp
720ba93a8a Fixes #2985. Application.RunState must be responsible for dispose the Toplevel property. (#2986)
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:15:24 -07:00
BDisp
85c92f4b0d Fixes #2959. Some of the scroll features on v1 are broken. (#2960)
* Add GrabMouseEventArgs for GrabbingMouse and UnGrabbingMouse events.

* Implementing GrabbingMouse and UnGrabbingMouse in Toplevel class.

* Fix contentBottomRightCorner to draw with the right color.

* Fix a typo.

* Fix ListView to allow scrolling.

* Add a comment to explain an extra column for the cursor at the end of line.

* Add unit tests for GrabbingMouse and UnGrabbingMouse events.

* Add unit test for a Window inside a non Toplevel.

* Removes GrabMouseEventArgs.

* Prevents throwing an exception if not subscribed.

* GrabMouse must be first called before set the dragPosition.

* Add unit test to test null on GrabbingMouse and UnGrabbingMouse.

* Fix event name.

* Prevents a toplevel to overflows his bounds to allow it can be drag.

* Fix unit test.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:14:55 -07:00
usr
c7942ae3bb Fix issue where the TestViewsDisposeCorrectly was not doing what it was supposed to do (#2964)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

* Fix ViewDisposalTests (Wasn't working the way it was supposed to)

* update test

* update test

* update test

* try to fix as many conflicts as possible

* make test output prettier

* fix formatting

* Fix Subviews not being empty after disposing on all views.

* The fail cause was Application.Top not being disposed.

* Fix others containers that weren't being removed.

* Revert "The fail cause was Application.Top not being disposed."

This reverts commit 0c2183ed9e.

* Application.Top isn't null and need disposing.

* Fixes #2985. Application.RunState must be responsible for dispose the Toplevel property.

* Change the unit test with ans without Application.Shutdown method.

* Update ViewDisposeTests to actually check wether ALL views have been disposed (not just container)

* small additional check just to be safe

* Update ViewDisposalTest.cs: Formatting

* Update ViewDisposalTest.cs: Minor change to re-trigger Action

TestVKPacket is acting up again. Maybe the test is running async and is receiving scan codes from other instances?

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-15 09:22:22 -07:00
BDisp
91865eed22 Fixes #2970. ScrollView doesn't remove a view that was previously added on both versions. (#2971) 2023-11-15 08:30:39 -07:00
BDisp
c348cda317 Fixes #2987. Set a MdiChild visible to false still processes keystrokes. (#2988) 2023-11-15 08:29:26 -07:00
dependabot[bot]
2001a8937e Bump xunit from 2.5.3 to 2.6.1 (#2953)
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.3 to 2.6.1.
- [Commits](https://github.com/xunit/xunit/compare/2.5.3...2.6.1)

---
updated-dependencies:
- dependency-name: xunit
  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>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-06 14:42:15 -07:00
BDisp
d51322ad17 Fixes #2892 for v1 - Null reference pressing menu shortcuts when menus have separators (#2955) 2023-11-06 14:38:37 -07:00
Tig Kindel
20837733a7 Release v1.14.1 (2) v1.14.1 2023-10-30 15:04:43 -06:00
Tig
e740664cec Release v1.14.1 (#2947) 2023-10-30 14:54:34 -06:00
usr
34c6b6ebcc Add Disposal Test and fix an issue where the CopyClipboard test was failing (#2936)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
2023-10-30 14:33:34 -06:00
Brian Juul Andersen
6f53aa480e Update keyboard.md (#2937)
FIX minor grammatical error
2023-10-30 09:00:20 -06:00
usr
a8d2f8d733 Fixes #2913 - remove Disposed views from Responder.instances when Debugging (#2914)
* fix issue #2913

* remove disposed instances from responder.instances (optional)

* Ensures only clear Instances if they really was disposed.

* Fix unit tests.

* Update RunStateTests.cs

Minor format change to trigger new Unittest execution

* Fixes Pos/Dim static fields not being disposing.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-10-25 07:02:46 -06:00
BDisp
3e1637aac8 Fixes #2775. Something in 1.13 broke centering child windows. (#2778)
* Fixes #2776. Pressing Alt key on a Window with only a MenuBar throws System.InvalidOperationException.

* Add unit test.

* Fix extra bracket.

* Prevents throw exception if Application.Current is null.

* Fix unit test because OnLeave is now invoked on toplevel removing, preventing two views having focus.

* Fix unit test method name.

* Fix Window by not layout on his subviews when adding a new view after the Application.Begin was already running.

* FindAndOpenMenuByHotkey now search inside Menus and inside his Children.

* Add unit test for Window LayoutSubviews and FindAndOpenChildrenMenuByHotkey menu method.

* Prevents button to be clear when it's invisible.

* Fixes 2780. Moving a Window that is Application.Top shouldn't be allowed.

* Fix condition if Window and Application.Top.

* Always LayoutSubviews and PositionToplevels after Clear.

* Fixes #2787. MenuItem with CanExecute returning false is select when a MenuBar is opened.

* Leveraging the power of CanExecute feature.

* Fixes #2789. StatusItem should have a disabled attribute if it can't execute.

* Allows positioning a child window outside the limits of the menu and the status bar.

* Change to a more appropriate name.

* Simplifies all the run actions.

* Prevents open menu bar if it's invisible and close all opened menus.

* Fix mdi run loop.

* Fix hot key on mdi toplevels.

* Fix position on mdi toplevels.

* Fix Top.Redraw by set state.Toplevel.SetNeedsDisplay if it's needed to redraw.

* Fix MdiTop by repainted when a keystroke is generated by keyboard.

* Rename local fields.

* Force redraw if application.Top needs display.

* Added more features to the scenario.

* Change the scenarios to run as Application.Top instead of sub-views.

* Add a new scenario similar but as Mdi Container.

* Add a bunch of new unit tests to prove all this PR.

* Only it's need to redraw Application.Top if it's a Mdi Container.

* Remove unnecessary code.

* Unit test that proves that a MDI child leaves no trace when the location is changed.

* Removes unnecessary Application.Init because theses uses Run<T> which already call it.

* Ensures a menu bar been closed after run an action.

* Ensures that another view can be focused if not IsMenuOpen and LastFocused is null, instead of focused the menu itself.

* Ensures a focused contentview subview being focused if MostFocused is null.

* Ensures a MdiTop subview to have priority if it's focused and thus  make it Current.

* Allow a MdiChild be closed when pressing Application.QuitKey.

* More unit tests proving the changes.

* Ensures the top.MostFocused is focused.

* Ensures MdiChild on the front if MdiTop.MostFocused isn't valid, like ContentView.

* Add unit test showing MdiChild on the front.

* Fix an issue where NullReferenceException can be throws everywhere while get the Application.MdiChildes property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-10-17 13:34:28 -04:00
dependabot[bot]
9a47180bb4 Bump xunit from 2.5.0 to 2.5.3
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.0 to 2.5.3.
- [Commits](https://github.com/xunit/xunit/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 12:25:39 -04:00
Tig
6f57b25919 Merge pull request #2829 from En3Tho/v1_showcase
Moved showcase and examples out of Readme, created showcase.md
2023-10-03 10:39:06 -06:00
En3Tho-
c6eb6d044b Merge branch 'v1_showcase' of https://github.com/En3Tho/gui.cs into v1_showcase 2023-10-02 09:56:28 +03:00
En3Tho-
f18727cd6d Restored Showcase & Examples section with a link pointing to showcase.md.
Moved documentation related sentence to documentation section.

Not sure if my wording is good though.
2023-10-02 09:55:51 +03:00
Tig
fc9ddc2ee8 Merge branch 'develop' into v1_showcase 2023-09-29 11:18:18 -06:00
Tig
2b471627f7 Merge pull request #2825 from MaciekWin3/combobox-search-text
Fixes #2824. Add SearchText property to ComboBox
2023-09-29 11:18:02 -06:00
Tig
b37bdcd860 Merge pull request #2848 from BDisp/v1_cursesdriver-threading-fix_2847
Fixes #2847. CursesDriver doesn't processing response from task threading.
2023-09-29 11:16:40 -06:00
Tig
7a0e0d78d7 Merge branch 'develop' into v1_showcase 2023-09-29 11:12:27 -06:00
Tig
8eab0d873f Merge branch 'develop' into combobox-search-text 2023-09-29 11:11:36 -06:00
BDisp
8a779505b3 Fixes freezing on resizing when read function is executed and many Wakeup calls are done. 2023-09-23 21:44:51 +01:00
BDisp
e86687ee0b Ensures always resizing if needed on macOS. 2023-09-23 21:38:45 +01:00
BDisp
1262d236e5 The pollTimeout must be set to zero if less than zero. 2023-09-22 20:08:46 +01:00