* Remove NStack and replace ustring to string.
* Add unit test and improving some code.
* Adjust code and fix all unit tests errors.
* Add XML Document and move the Rune folder into the Text folder.
* Improve unit tests with byte array on DecodeRune and DecodeLastRune.
* Fix unit test.
* 😂Code review
* Reduce unit tests code.
* Change StringExtensions.Make to StringExtensions.ToString and added some more unit tests.
* Fix merge errors.
* Remove GetTextWidth and calls replaced with StringExtensions.GetColumns.
* Hack to use UseSystemConsole passed in the command line arguments.
* Revert "Hack to use UseSystemConsole passed in the command line arguments."
This reverts commit b74d11c786.
* Remove Application.UseSystemConsole from the config file.
* Fix errors related by removing UseSystemConsole from the config file.
* Fixes#2633. DecodeEscSeq throw an exception if cki is null.
* Fix an exception if SelectedItem is -1.
* Set SelectedItem to 0 and remove unnecessary ToString.
* Using a unique ToString method for Rune and other for byte.
* Fix a bug where a wider rune is added with only a width of 1.
* Force the SelectedGlyph is the one that was typed after jumpList is executed.
* Added more InlineData to RuneTests.
* Reducing significantly the code by using Theory attribute in the TextFormatterTests.
* Override PositionCursor to handle the CharMap cursor position.
* Fix merge errors.
* Minor tweaks to API docs
---------
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* Comment/warning clean up
* Moved Text and Drawing out
* Moved Layout out
* Removed extra lines
* Removed Mouse out
* Reorgainzed View
* API docs
* removed border.cs
* TopLevel.Resized -> TerminalResized
* Mdi -> Overlapped
* Removed confusing and un-needed WillPresent
* privates -> _
* Tweaked RunLoop API
* Added View.BorderStyle and renamed BorderStyle enum to LineStyle
* Fixed a lot of things and broke everything else
* Fixed things
* Updated DialogTests
* Updates including Rect unit tests
* Fixed Dialog & MessagBox tests
* Fixed AllviewsTester bug
* Fixed AllviewsTester bug
* Removed Border class
* Renamed View privates with _
* Removed comments in MessageBox.cs
* 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>
* 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>
* Initial commit for Wizard
* Fixes#1777 - Dialog button justification. Adds unit tests
* Added missing API doc
* Work in progress
* Added tests for wide chars
* Tests
* more tests
* wip
* fixed test that broke by adjusting dialog button alignment
* fixed test that broke by adjusting dialog button alignment
* Fixed Dialogs scenario crash re: Parse v TryParse
* broke tests. can't figure out how.
* Revert "broke tests. can't figure out how."
This reverts commit f3c53928ac.
* Fixed unit tests
* Reverted workaround that doesn't work
* Refactor and cleanup
* Fixes#1777 - Dialog button justification. Adds unit tests
* Added missing API doc
* Added tests for wide chars
* more tests
* fixed test that broke by adjusting dialog button alignment
* fixed test that broke by adjusting dialog button alignment
* Fixed Dialogs scenario crash re: Parse v TryParse
* Added AutoSize. CalcRect calculates vertical. Fixes Draw bug.
* Added TextDirection constructor. Ensuring set frame on Pos/Dim absolute. Improves AutoSize.
* Added a scenario for the AutoSize and TextDirection.
* Added more unit tests.
* Fixing some broken scenarios.
* Fixes others TextDirection that was not working.
* Fixes#1133. Flaw in LayoutSubviews/TopologicalSort.
* Toplevel can't be used on Pos/Dim but only his subviews. Was not caught before because the LayoutSubviews method never gone so deep before.
* Fixed the error that is triggered when the Pos/Dim is the current Application.Top.
* Application.Top is the only exception in the TopologicalSort method check.
* Fixes#1179. TextView does not copy to the clipboard on deleting.
* Added Button DoubleClick and fixed WordForward/WordBackward issues.
* Prevents a negative height.
* Fixes the enter key line feed.
* Fixes#1187. Prevents WordBackward throwing an exception if point is greater than the text length.
* Fixes#1189. Prevents negative index.
* Fixes#1193. A non auto size default Button now preserves his width and thus the text alignment now work.
* Fixing the Width and Height checks of the Dim class with AutoSize dependence.
* Fixes#1197. Prevents width negative value if added directly to the Application.Top
* Fixes#1199. Normalize views constructors and did some typo fixing.
* Fixing the Application.Top Pos/Dim settings.
* Always uses inverted color for selected text to avoid same colors.
* Prevents throw an exception if the clipboard content is null.
* Added Find and Replace (next/previous). Replace All and Select All. A non modal dialog box.
* Keeps tracking the selected replaced text.
* Fixes#1202. CheckBox now deals with a functional '_' underscore hotkey.
* The selected text should be maintained when losing focus.
* Fixes an extra line on page down.
* Fixes the WordBackward if it text has more than one whitespaces or when has only one digit or letter.
* Fixes WordForward/WordBackward on text with more than one whitespace or with only one digit or letter.
* Forgot to replace the hacking.
* Added unit tests for the TextField view. Fixed some more bugs.
* Redraw should only show the selected text if it is focused.
* Fixes cursor position on double click and ensures the setting of the selected text.
* Added match whole word checking.
* Added missing parameters documentation.
* Ensures the SelectedLength property to be always with positive value.
* Fixes the WordBackward when at the end of the text has a character between two whitespace.
* Added unit tests to the TextView, Used property and fixed some more bugs.
* Fixed Used to only show if it has focus.
* Fixed ReplaceAll and prevents Debug.Assert from showing.
This PR includes:
#586 - Fixed Clipping
#587 - LayoutComplete
#591 - Sys Console Scenario
#590 - Significantly improves MessageBox, Dialog, Frame drawning and more
See the PRs above for all the details.
Here are the issues this closes:
Closes#299 - MessageBox now auto sizes
Closes#557 - MessageBoxes on small screens
Closes#432 - MessageBox does not deal with long text; width/height params are goofy
Closes#521 - MessageBox should take ustrings (BREAKING CHANGE)
Closes#35 - Dialog should have 1 char padding around edges
Closes#570 - Dialog should use computed layout for buttons
Closes#470 - UI Catalog: Add Dialogs Scenario
Closes#569 - LayoutComplete event
Plus probably more.