Commit Graph

61 Commits

Author SHA1 Message Date
tznind
897b3a3eea Layout tidy up and whitespace fixes 2023-07-25 08:54:52 -06:00
Thomas
95e0d72bda Use the new DrawLine event in file system tree to color folder icons 2023-07-25 08:54:52 -06:00
Thomas Nind
a8d1a79615 Fixes #2726 - Refactor filedialog classes to be more easily reused (#2727)
* Refactor FileDialogTreeBuilder to be more generally useful outside of dialog context

* Fix comparer

* Change TreeViewFileSystem scenario to use the core builder

* Refactor icon provision for reusability

* Add IsOpenGetter implementations

* Xmldoc and tests

* xmldoc and trim icon when blank (files and no nerd)

* unit test fixes

* FixFix unit tests when running on linux

* Add option to pick which icon set to use for TreeViewFileSystem

* Add spaces when using nerd to avoid icon overaps

* Refactor the addition of space for nerd icons to reduce code duplication
2023-07-05 16:51:18 -06:00
BDisp
713b2c4725 Fixes #92. Remove dependency on ustring. (#2620)
* 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>
2023-05-20 19:35:32 +02:00
Nutzzz
440c529818 Some UICatalog scenario code style fixes (#2614) 2023-05-09 16:18:45 +02:00
Tig
b4552ee14b Fixes #2493. Move all layout code out of View (and Toplevel) into a layout helper class (#2544)
* 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
2023-04-14 10:26:10 -06:00
Tig
574ed8fec7 Fixes #2469 - Revamp file structure and namespace (#2471)
* initial commit

* All tests pass

* Updated readme

* Revert "All tests pass"

This reverts commit 94ac462350.

* Revert "initial commit"

This reverts commit 36d92cc4e5.

* Moved Terminal.Gui files around

* Nuked .Graphs namespace

* Nuked .Graphs namespace

* Nuked .Trees namespace

* Nuked .Configuration namespace

* Nuked .Configuration namespace

* All tests pass

* tweaked tests

* removed unneeded usings

* re-enabled scrollview tests

* move scrollview test to ScrollViewTests

* Moved view navigation related tests to separate cs file

* Moved view scrollbarview related tests ScrollBarTestse

* Refactored View tests into smaller files

* Refactored driver tests

* Fixed a ton of BUGBUGs
2023-04-06 10:09:21 -06:00
BDisp
d9ff0da007 Fix changed event and reformat in Scenarios. 2023-03-17 17:12:10 +00:00
BDisp
846494ea7c Resolving merge conflicts. 2023-03-17 11:24:53 +00:00
Tig
c94f9165f4 Makes UI Catalog Scenarios use Theme and top-level color scheme (#2401)
* lots of clean up

* scenarios now get themes from uicatalog
2023-03-16 07:50:09 -06:00
tznind
2ed71e284c Move all nested eventargs out of parent classes to root 2023-03-15 19:35:21 +00:00
tznind
796e15a64d Added DrawEventArgs 2023-03-12 02:39:32 +00:00
tznind
09683a2cd5 Refactor more event Action to event EventHandler 2023-03-12 02:31:22 +00:00
tznind
43f67a6387 Convert more Actions to EventHandlers in View 2023-03-11 19:55:08 +00:00
tznind
fcc75e7147 Update View Action events to EventHandler events 2023-03-11 19:46:46 +00:00
BDisp
489a802df6 Implementing nullable bool checked on Menu. 2023-01-30 21:02:14 +00:00
Charlie Kindel
7a37111319 Revamped File Explorer to enable better Focus testing 2022-11-05 17:54:22 -06:00
Charlie Kindel
1e8113ecce Revamped File Explorer to enable better Focus testing 2022-11-05 17:36:11 -06:00
Charlie Kindel
60e70f331f merge develop 2022-11-05 16:41:05 -06:00
Charlie Kindel
bf1ed31281 Refactored UI Catalog and added tons of unit tests 2022-11-03 15:58:15 -06:00
Charlie Kindel
8ce26cfb41 added more test code to File System Explorer and fixed some bugs 2022-11-02 18:40:00 -06:00
Thomas
ff3a1326ba Change TreeView default cursor to invisible and force invisible only when not MultiSelect 2022-10-22 19:30:28 +01:00
tznind
8ccfdd9311 Add menu toggle for DesiredCursorVisibility to TreeView UICatalog scenario TreeViewFileSystem 2022-10-21 09:08:46 +01:00
Thomas
7deacf3bb9 Renamed to simply GetObjectOnRow and dropped unused X component 2022-05-13 22:37:01 +01:00
Thomas
6800113ff1 Changed name to GetObjectRow 2022-05-13 22:17:42 +01:00
Thomas
7f0671e10a Renamed new methods 2022-05-13 21:42:50 +01:00
Thomas Nind
e60d7f4363 Added IndexOf method to TreeView to allow for keyboard context menus 2022-05-10 16:05:09 +01:00
Thomas Nind
5c39f6af48 Added new method HitTest to TreeView to allow for better context menus 2022-05-10 15:39:15 +01:00
Thomas
f534c2e7eb Added color tailoring into scenario 2022-05-08 23:02:47 +01:00
Charlie Kindel
32ae3cb62f Cleaned up Categories and Scenario descripitons. 2022-04-17 15:48:48 -07:00
Charlie Kindel
83f70cbf39 Revert "Revert "Reorganizing scenarios categories as per #1648""
This reverts commit 359ba385c8.
2022-04-17 14:17:40 -07:00
Charlie Kindel
359ba385c8 Revert "Reorganizing scenarios categories as per #1648"
This reverts commit 3362ca849d.
2022-04-17 14:14:44 -07:00
BDisp
3362ca849d Reorganizing scenarios categories as per #1648 2022-03-17 16:39:15 +00:00
BDisp
239191cde0 Fixes #1434. Regenerating the docs. (#1528)
* Fixes #1434. Regenerating the docs.

* Fixing warnings on docs regeneration and improving.
2021-12-18 05:33:40 -08:00
Thomas Nind
444a01ae46 Extracted TreeView classes (builders, delegates, event args etc) into seperate files in namespace Terminal.Gui.Trees (#1246) 2021-04-26 08:59:35 -07:00
tznind
57dd4a6f61 Added ObjectActivated example in TreeViewFileSystem that displays info about the selected file/dir 2021-03-08 10:31:52 +00:00
tznind
dc22a890e9 Updated to match coding guidelines (whitespace, brackets etc) 2021-03-08 09:22:17 +00:00
tznind
f2aa560470 Added menu item for toggling LeaveLastRow in Scenario 2021-01-24 19:15:29 +00:00
tznind
eb97e64830 Made 'LeaveLastRow' optional as new property in TableStyle 2021-01-24 19:08:34 +00:00
tznind
2884b8e94d Added horizontal scrollbar, fixed tests 2021-01-24 10:35:03 +00:00
tznind
a1fe75a983 Added horizontal scrolling 2021-01-24 10:13:38 +00:00
tznind
bea15c54c9 Added scroll bar to tree view example 2021-01-23 08:59:42 +00:00
tznind
518e58d90d added docs on generic treeview 2021-01-22 22:04:14 +00:00
tznind
4b6f3569ef Added basic use cases and new article 2021-01-22 19:57:39 +00:00
tznind
aef698ac1f Added unicode symbols option to UICatalog 2020-12-30 19:20:43 +00:00
tznind
dc761b2338 Swapped sizes of file tree and node tree in UICatalog Scenario 2020-12-30 18:43:26 +00:00
tznind
4795f321bf Added menu separators to UICatalog TreeViewFileSystem Scenario 2020-12-30 13:21:36 +00:00
tznind
51aefce32b changed expand color settings to use ColorScheme 2020-12-18 18:52:09 +00:00
tznind
64042132ed Fixed collapse scrolling and color for expand/collapse 2020-12-16 19:25:27 +00:00
tznind
869a6f1fd7 Changed Scenario menu items to use radio buttons 2020-12-16 14:49:40 +00:00