Commit Graph

3871 Commits

Author SHA1 Message Date
John Züchler
e75aae2e23 update test 2023-11-09 10:32:52 +01:00
John Züchler
4c1285b1de fix conflicts 2023-11-09 10:23:58 +01:00
John Züchler
c409ff7afd Fix ViewDisposalTests (Wasn't working the way it was supposed to) 2023-11-09 10:07:13 +01:00
usr
c74bbb9bec Merge branch 'develop' into DisposeTests 2023-10-30 18:38:45 +01:00
usr
bb798373b5 Update ViewDisposalTest.cs: Some Formatting, and adding code comments. 2023-10-30 18:34:27 +01:00
Brian Juul Andersen
6f53aa480e Update keyboard.md (#2937)
FIX minor grammatical error
2023-10-30 09:00:20 -06:00
usr
99e33feae4 Update ViewDisposalTest.cs 2023-10-26 17:06:39 +02:00
John Züchler
6f808887ea add Disposal Test and fix an ssue where the CopyClipboard test was failing 2023-10-26 16:57:21 +02: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
BDisp
760aca61ab Merge branch 'develop' into v1_cursesdriver-threading-fix_2847 2023-09-22 14:05:12 +01:00
BDisp
c90366a03d Fixes #2860. Application views do not refresh when the cursor is moved with CursesDriver. 2023-09-22 14:00:09 +01:00
Tig
bfd8b4e457 Merge pull request #2853 from gui-cs/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-09-06 08:17:35 -06:00
dependabot[bot]
244af2b7e6 Bump actions/checkout from 3 to 4
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>
2023-09-04 14:07:34 +00:00
BDisp
a45d65bbdd Fixes #2847. CursesDriver doesn't processing response from task threading. 2023-08-31 19:03:05 +01:00
maciekwin3
cc88e33ffe Fix order of parameters 2023-08-30 19:59:14 +02:00
Tig
7a56de926c Merge pull request #2840 from tig/v1_release_readme
Updates v1 release readme
2023-08-30 08:48:17 -06:00
Tigger Kindel
1eedf46596 Updated release readme 2023-08-30 08:46:59 -06:00
Tigger Kindel
3eb585d839 Merge branch 'develop' v1.14.0 2023-08-30 08:12:54 -06:00
Tig
3cf45d4135 Merge pull request #2839 from tig/v1_14_0
Release v1.14
2023-08-30 07:22:59 -06:00
Tigger Kindel
568c251ed7 Merge branch 'develop' into v1_14_0 2023-08-30 07:11:58 -06:00
Tig
a7f53b6bae Merge pull request #2838 from gui-cs/dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2
Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2
2023-08-30 07:05:37 -06:00
Tig
06ef44bd5a Merge pull request #2837 from BDisp/v1_request-stop-context-menu-fix_2836
Fixes #2836. v1 RequestStop while a ContextMenu is open can throw an exception.
2023-08-30 07:02:33 -06:00
Tig
67b8523317 Merge pull request #2835 from BDisp/v1_border-borderBrush-background-fix_2834
Fixes #2834. v1 Border BorderBrush and Background wrongly sets to an invalid Color enum.
2023-08-30 07:02:21 -06:00
Tig
d4a25492c5 Merge pull request #2831 from BDisp/v1_lang-version-9.0_2830
Fixes #2830. v1 Allow use LangVersion 9.0 on the UICatalog project.
2023-08-30 07:02:09 -06:00
Tig
4e9b9fc206 Merge pull request #2807 from BDisp/v1_border-shrinking-fix_2806
Fixes #2806. Border bug when a row is less than zero on shrinking on v1.
2023-08-30 07:01:47 -06:00
Tig
0d27fcce8a Merge pull request #2811 from BDisp/v1_alt-key-on-toplevel-with-menubar-fix_2810
Fixes #2810. Pressing Alt key on a Toplevel with only a MenuBar throws System.InvalidOperationException.
2023-08-30 07:01:31 -06:00
Tig
677e84a3c3 Merge branch 'develop' into dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2 2023-08-30 06:59:31 -06:00
Tig
b283ca3642 Merge branch 'develop' into v1_request-stop-context-menu-fix_2836 2023-08-30 06:58:59 -06:00
Tig
ee9948a2a6 Merge branch 'develop' into v1_border-borderBrush-background-fix_2834 2023-08-30 06:58:48 -06:00
Tig
1856d0652f Merge branch 'develop' into v1_lang-version-9.0_2830 2023-08-30 06:58:22 -06:00
Tig
e5e55e65e9 Merge branch 'develop' into combobox-search-text 2023-08-30 06:55:43 -06:00
Tig
d6a9b2d26e Merge branch 'develop' into v1_showcase 2023-08-30 06:54:29 -06:00
Tig
1c6295efa5 Merge branch 'develop' into v1_alt-key-on-toplevel-with-menubar-fix_2810 2023-08-30 06:54:16 -06:00
Tig
4f2d5ec30f Merge branch 'develop' into v1_border-shrinking-fix_2806 2023-08-30 06:53:57 -06:00
Tigger Kindel
7763704c50 Updated nuget deps 2023-08-30 06:51:12 -06:00
Tigger Kindel
17b4e3d56b cleaned out version info from csproj 2023-08-30 06:49:34 -06:00
Tigger Kindel
4014b679fd develop now publishes 2023-08-30 06:47:51 -06:00