Commit Graph

367 Commits

Author SHA1 Message Date
BDisp
13948501d5 Fixes #1973. Avoid positioning Submenus off screen. (#1975)
* Fixes #1973. Avoid positioning Submenus off screen.

* Firstly avoids negative positions on the sub-menus and then avoids the bottom not exceeding the console height, as possible.
2022-09-05 07:17:58 -07:00
BDisp
2594706a69 Fixes #1967. New keys for DeleteAll on TextField and TextView. (#1968)
* Fixes #1967. New keys for DeleteAll on TextField and TextView.

* Changing unit test for the new keys.
2022-09-05 07:17:10 -07:00
Jeff Greene
bbbacf4514 Fixes #1963. Only remove one character on backspace when wordwrap is on (#1964)
* Fixed double delete when wordwrap is enabled

* Fixes #1963. Deletes multiple characters editing a TextView with WordWrap enabled.

Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-09-05 07:16:32 -07:00
dependabot[bot]
c6af956e22 Bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 (#1977)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.0 to 17.3.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.3.0...v17.3.1)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-05 06:53:07 -07:00
Thomas Nind
8a90453bb2 Fixes #1962 - Change KeyBindings to allow chaining commands (#1966)
* Change KeyBindings to allow chaining commands

* Added more asserts for repeating the keybinding till at bottom of list

* Added tests for 'no command' and multiple commands return type
2022-08-30 05:58:22 -07:00
Juan Manuel Elosegui
73846b3c32 Fixes #1959: GoToEnd should not fail on an empty TreeView (#1960)
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-08-24 19:41:50 -07:00
BDisp
c43183ff14 Fixes #1953. TextView cursor position is not updating by mouse. (#1954)
* Fixes #1953. TextView cursor position is not updating by mouse.

* Only invoking UnwrappedCursorPosition in the OnUnwrappedCursorPosition method.
2022-08-24 18:37:31 -07:00
dependabot[bot]
82c694b515 Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 (#1947)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.2.0 to 17.3.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.2.0...v17.3.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 08:22:57 -07:00
saskathex
dc99fb354f Fix: The synchronization context method Send is now blocking (#1854)
* Fix: The sychronization context method send 

The send method of the synchronization context has to block the caller thread in case it is not the main thread.

* Fix: Send has to invoke the action instantly

Send has to invoke the action instantly instead of enqueuing in case of main thread call.

* Added unit tests for synchronization post/send methods.

* Code formating

* Added unit test for MainLoopSyncContext.CreateCopy

Co-authored-by: saskathex <>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-08-12 08:22:34 -07:00
BDisp
f01132ca0e Fixes #1948. It isn't possible to get unwrapped cursor position when word wrap is enabled on TextView. (#1949) 2022-08-11 06:53:08 -07:00
BDisp
4573990b46 Ensures that the isButtonShift flag is disabled in all situations. (#1945)
* Ensures that the isButtonShift flag is disabled in all situations.

* Improving this unit test.
2022-08-05 10:01:55 -07:00
BDisp
a23c1bee19 Fixes #1925. Preserve trailing spaces on word wrap must be refactored… (#1929)
* Fixes #1925. Preserve trailing spaces on word wrap must be refactored on TextFormatter.

* Fixes a bug on Format when the preserveTrailingSpaces is enabled.

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-08-04 10:15:21 -07:00
dependabot[bot]
e0e644c263 Bump xunit from 2.4.1 to 2.4.2 (#1933)
Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/xunit/xunit/releases)
- [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2)

---
updated-dependencies:
- dependency-name: xunit
  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>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-08-03 17:11:10 -07:00
BDisp
091eb5a956 Changes unit tests to support xunit 2.4.2 upgrade. (#1936) 2022-08-03 16:58:58 -07:00
BDisp
49e2b95625 Fixes #1861. Border: Title property is preferable to Text. (#1862)
* Fixes #1861. Border Title property is preferable than the Text.

* Fixes #1866. Bug when scrolling text and type in a TextView. (#1868)

* Some fixes for the WebConsole support. (#1865)

* Invoking NotifyStopRunState for all situations.

* Added Clicked property to support web console.

* Changing to MoveDown to stay always visible.

* Fixes #1849. Wizard as non-popup is broken (#1853)

* trying to make it work

* Fixes #1849. Wizard as non-modal doesn't work

* Fixes #1855. Window and Frame content view without the margin frame.

* Fixing layout of non-modal

* WizardSTep is now a FrameView

* Now use Modal = false to set visual style automatically

* Removed Controls as an explicit construct. Now just Add to WizardStep

Co-authored-by: BDisp <bd.bdisp@gmail.com>

* Update docs with keybindings, global key event and designer (#1869)

* Added docs on keybinding and global key event

* Added TerminalGuiDesigner to showcases/examples

* Regenerated Docs (#1870)

* Fixed cancel logic. Title now shows for non-modal. (#1871)

* Fixes #1874. API docs on github are broken. (#1875)

* Fixes #1874. API docs on github are broken.

* Rebuild with docfx 2.59.3.0 version.

* Fixes Wizard cancel logic and updates docs (#1878)

* Fixed cancel logic. Title now shows for non-modal.

* trying to fix docs

* trying to fix docs

* Fixes #1867. Use Undo and Redo commands with WordWrap enabled. (#1877)

* Updated docs; regeneraged docs (#1881)

* Added a 'Read Only' to the Editor scenario Format menu. (#1882)

* Fixes #1883. Toplevel now propogates Loaded & Ready events to child Toplevel views.

* Updated API doc theme. Added Wizard Sample

* Tweaked API docs format and content. Fixed build warnings.

* Fixes #1889. Docs broken after org move.

* Regen API docs

* Fixes readme links to API docs

* Avoiding breaking change.

* Fixes typos.

* Passing string.Empty to Title from the default constructor.

* Initializes title with string.Empty instead of null.

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: Thomas Nind <31306100+tznind@users.noreply.github.com>
2022-08-01 16:06:15 -07:00
BDisp
74b91a3979 Textview readonly wrap fix (#1898)
* Fixes LoadFile when word wrap is enabled.

* Fixes an extra space in end of line and error on deleting backwards.

* Removing unit tests with loading files.

* Fixes left column being bigger than zero if word wrap is true.

* Fixes #1820. TextView: Word Wrapping is not correct

* Made fix more surgical via ReadOnly

* Fixes TextView read only wrap issue.

* Rename method.

* Fixes word wrap with toggling read only .

Co-authored-by: Charlie Kindel <charlie@kindel.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-07-27 21:45:39 -07:00
Tig Kindel
61335e8788 Fixes #1893: Fix URLs to match gui-cs Org (#1900)
* Release v1.3.0

* regen docs

* change nuget publish script to use rohit version

* Release v1.3.1

* Force fix README.md API docs links

* tweak contrib instructions

* more doc fixes

* updated most urls
2022-07-26 12:09:03 -07:00
BDisp
a7a6886b72 Proves that the ScrollTo and CursorPosition methods work as expected. 2022-07-26 12:26:07 +01:00
BDisp
ec0822401a Fixes #1867. Use Undo and Redo commands with WordWrap enabled. (#1877) 2022-07-21 17:07:08 -07:00
Tig Kindel
492966048c Fixes #1849. Wizard as non-popup is broken (#1853)
* trying to make it work

* Fixes #1849. Wizard as non-modal doesn't work

* Fixes #1855. Window and Frame content view without the margin frame.

* Fixing layout of non-modal

* WizardSTep is now a FrameView

* Now use Modal = false to set visual style automatically

* Removed Controls as an explicit construct. Now just Add to WizardStep

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2022-07-21 05:57:25 -07:00
BDisp
57fc939e22 Fixes #1866. Bug when scrolling text and type in a TextView. (#1868) 2022-07-21 05:55:51 -07:00
BDisp
bcc3034db7 Fixes #1812. AutoSize stays true with empty text. (#1824)
* Fixes #1812. AutoSize stays true with empty text.

* Added some more features and bug fixes.

* Reformat files.
2022-07-05 18:04:24 -07:00
BDisp
63bcd2b1fc Fixes unit test after git rebase. 2022-07-04 11:22:27 -04:00
BDisp
4392f450da Fixes unit tests according to the changes. 2022-07-04 11:22:27 -04:00
BDisp
658d590107 AssertDriverContentsWithFrameAre now returns a true rectangle. 2022-07-04 11:22:27 -04:00
BDisp
a506955634 Added more two unit tests for Layout Absolute. 2022-07-04 11:22:27 -04:00
BDisp
e02df8c043 Added some more features and bug fixes. 2022-07-04 11:22:27 -04:00
BDisp
ef494eecdc Fixes requested changes. 2022-07-04 11:22:27 -04:00
BDisp
38bed3fd98 Added exceptions for AutoSize. 2022-07-04 11:22:27 -04:00
BDisp
0b040a383c Prevents HotKeySpecifier being negative. 2022-07-04 11:22:27 -04:00
BDisp
5b35b0a842 Changes GetTextFormatterBoundsSize and GetBoundsTextFormatterSize as public. 2022-07-04 11:22:27 -04:00
BDisp
0d2e332c59 Fixes view test. 2022-07-04 11:22:27 -04:00
BDisp
31795d7cdb Reformulates Checkbox with alignment features. 2022-07-04 11:22:27 -04:00
BDisp
3160b4c914 Fixes some AutoSize issues with rules. 2022-07-04 11:22:27 -04:00
BDisp
0f759517e5 Fixes #1797. AutoSize is true by default on CheckBox. 2022-07-04 11:22:27 -04:00
BDisp
38100499a2 Fixes #1846. TabView now clip the draw bounds (#1847) 2022-07-04 08:15:48 -07:00
Thomas Nind
367fdd9bad Fix TableView multi selections extending to -1 indexes (#1843)
* Fix TableView multi selections extending to -1 indexes

* Add to test confirmation that the main active cell also didn't get pushed off

* Tidy up formatting

* Fixed not calling Application.Shutdown in tests and made it easier to diagnose which test is not shutting down
2022-06-27 09:09:31 -07:00
Tig Kindel
c58a6b2691 Fixed #1833 - Finishd button not working 2022-06-23 09:09:13 -04:00
Charlie Kindel
8e70756cd8 merge fix 2022-06-19 08:42:30 -07:00
Charlie Kindel
59577feecf Added oldTitle to eventargs and fixed title = null 2022-06-19 08:42:30 -07:00
BDisp
d84c4b285a Fixes #1825. Parent MenuItem stay focused if child MenuItem is empty. 2022-06-18 07:18:57 -07:00
Charlie Kindel
065d88eed5 enabled events for WizardStep.Title changing 2022-06-15 17:32:25 -07:00
Charlie Kindel
f8622ce60c Fixes #1818. Adds Title change events to Window 2022-06-15 17:32:25 -07:00
Charlie Kindel
56e78d4b92 propogated enable to Wizard 2022-06-15 17:32:25 -07:00
Charlie Kindel
1bc2c79938 Progress on refactoring nav 2022-06-15 17:32:25 -07:00
Charlie Kindel
76542360ad Fixed failing test 2022-06-14 09:45:42 -07:00
Charlie Kindel
83ab85e38c reverted test 2022-06-14 09:45:42 -07:00
Charlie Kindel
c51ec2896c Localized strings. 2022-06-14 09:45:42 -07:00
Tig Kindel
2451c19d15 Wizard fixes (#1802)
* Fixes #1791. Added Pos/Dim Function feature to automate layout.

* Added PosFunc/DimFunc class. and some more features.

* Fixes #1793. ScrollBarView is hiding if the host fit the available space.

* Fixes #1791. View not turn off AutoSize if TextFormatter.Size fit the Anchor.

* Done requested changes.

* Addressing feedback

* Added more AutoSize unit tests.

* wip

* Refactored and enhanced API

* Fixed test

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2022-06-14 08:54:33 -07:00
BDisp
3001d43006 Added Pos/Dim Function feature to automate layout. (#1792)
* Fixes #1791. Added Pos/Dim Function feature to automate layout.

* Added PosFunc/DimFunc class. and some more features.

* Done requested changes.
2022-06-13 15:40:05 -07:00