Commit Graph

121 Commits

Author SHA1 Message Date
Tig
6dd349fdf3 Doc improvements 2024-04-12 12:57:41 -06:00
Tig
4a06074cdc Updated conceptual API documentation; added mouse.md 2024-04-09 23:25:00 -04:00
Tig
62f015645a Updated conceptual API documentation; added mouse.md 2024-04-09 22:44:45 -04:00
Tig
6b80b23340 Updated conceptual API documentation; added mouse.md 2024-04-09 21:38:14 -04:00
Tig
33070ec8a6 Fixes API doc TOC tree expansion (#3200)
* Removed resharper settings from editorconfig

* Fixed API doc TOC tree expansion
2024-01-20 11:22:51 -07:00
Tig
49ec9b7342 Updates V2 API docs (#3060)
* Updated overview docs

* Updated toc

* Updated docs more
2023-12-17 21:52:59 -07:00
Tig
dcb3b359ad Fixes #2926 - Refactor KeyEvent and KeyEventEventArgs to simplify (#2927)
* Adds basic MainLoop unit tests

* Remove WinChange action from Curses

* Remove WinChange action from Curses

* Remove ProcessInput action from Windows MainLoop

* Simplified MainLoop/ConsoleDriver by making MainLoop internal and moving impt fns to Application

* Modernized Terminal resize events

* Modernized Terminal resize events

* Removed un used property

* for _isWindowsTerminal devenv->wininit; not sure what changed

* Modernized mouse/keyboard events (Action->EventHandler)

* Updated OnMouseEvent API docs

* Using WT_SESSION to detect WT

* removes hacky GetParentProcess

* Updates to fix #2634 (clear last line)

* removes hacky GetParentProcess2

* Addressed mac resize issue

* Addressed mac resize issue

* Removes ConsoleDriver.PrepareToRun, has Init return MainLoop

* Removes unneeded Attribute methods

* Removed GetProcesssName

* Removed GetProcesssName

* Refactored KeyEvent and KeyEventEventArgs into a single class

* Revert "Refactored KeyEvent and KeyEventEventArgs into a single class"

This reverts commit 88a00658db.

* Fixed key repeat issue; reverted stupidity on 1049/1047 confusion

* Updated CSI API Docs

* merge

* Rearranged Event.cs to Keyboard.cs and Mouse.cs

* Renamed KeyEventEventArgs KeyEventArgs

* temp renamed KeyEvent OldKeyEvent

* Merged KeyEvent into KeyEventArgs

* Renamed Application.ProcessKey members

* Renamed Application.ProcessKey members

* Renamed Application.ProcessKey members

* Added Responder.KeyPressed

* Removed unused references

* Fixed arg naming

* InvokeKeybindings->InvokeKeyBindings

* InvokeKeybindings->InvokeKeyBindings

* Fixed unit tests fail

* More progress on refactoring key input; still broken and probably wrong

* Moved OnKeyPressed out of Responder and made ProcessKeyPrssed non-virtual

* Updated API docs

* Moved key handling from Responder to View

* Updated API docs

* Updated HotKey API docs

* Updated shortcut API docs

* Fixed responder unit tests

* Removed Shortcut from View as it is not used

* Removed unneeded OnHotKey override from Button

* Fixed BackTab logic

* Button now uses Key Bindings exclusively

* Button now uses Key Bindings exclusively

* Updated keyboard.md docs

* Fixed unit tests to account for Toplevel handling default button

* Added View.InvokeCommand API

* Modernized RadioGroup

* Removed ColdKey

* Modernized (partially) StatusBar

* Worked around FileDialog issue with Ctrl-F

* Fixed driver unit test; view must be focused to reciev key pressed

* Application code cleanup

* Start on updaing menu

* Menu now mostly works

* Menu Select refinement

* Fixed known menu bugs!

* Enabled HotKey to cause focus- experimental

* Fixes #3022 & adds unit test to prove it

* Actually Fixes #3022 & adds unit test to prove it

* Working through hotkey issues

* Misc fixes

* removed hot/cold key stuff from Keys scenario

* Fixed scenarios

* Simplified shortcut string handling

* Modernized Checkbox

* Modernized TileView

* Updated API docs

* Updated API docs

* attempting to publish v2 docs

* Revert "attempting to publish v2 docs"

This reverts commit 59dcec111b.

* Playing with api docs

* Removed Key.BackTab

* Removed Caps/Scroll/Numlock

* Partial removal of keymodifiers - unit tests pass

* Partial removal of keymodifiers - broke netdriver somewhere

* WindowsDriver & added KeyEventArgsTests

* Fixing menu shortcut/hotkeys - broke Menu.cs into separate files

* Fixed MenuBar!

* Finished modernizing Menu/MenuBar

* Removed Key.a-z. Broke lots of stuff

* checkout@v4

* progress on key mapping and formatting

* VK tests are still failing

* Fixed some unit tests

* Added Hotkey and Keybinding unit tests

* fixed unit test

* All unit tests pass again...

* Fixed broken unit tests

* KeyEventArgs.KeyValue -> AsRune

* Fixed bugs. Still some broken

* Added KeyEventArgs.IsAlpha. Added KeyEventArgs.cast ops. Fixed bugs. Unit tests pass

* Fixed WindowsDriver

* Oops.

* Refactoring based on bdisp's help. Not complete!

* removed calling into subviews from OnKeyBindings

* removed calling into subviews from OnKeyBindings

* Improved View KeyEvent unit tests

* More hotkey unit tests

* BIg change - Got rid of KeyPress w/in Application/Drivers

* Unit tests now pass again

* Refreshed API docs

* Better HotKey logic. More progress. Getting close.

* Fixed handling of shifted chars like ö

* Minor code cleanup

* Minor code cleanup2

* Why is build Action failing?

* Why is build Action failing??

* upgraded to .net8 to try to fix weird CI/CD build errors

* upgraded to .net8 to try to fix weird CI/CD build errors2

* Disabling TextViewTests to diagnose build errors

* reenable TextViewTests to diagnose build errors

* Arrrrrrg

* Merged v2_develop

* Fixed uppercase accented keys in WindowsDriver

* Fixed key binding api docs

* Experimental impl of CommandScope.SubViews for MenuBar

* Removed dead code from application.cs

* Removed dead code from application.cs

* Removed dead code from ConsoleDriver.cs

* Cleaned up some key binding stuff

* Disabled Alt to activate menu for now

* Updated label commands

* Fixed menu bugs. Upgraded menu unit tests

* Fixed unit tests

* Working on NetDriver

* fixed netdriver

* Fixed issues called out by @bdisp CR

* fixed CursesDriver

* added todo to netdriver

* Cherry picked treeview test fix 1b415e5

* Fix NetDriver.

* CommandScope->KeyBindingScope

* Address some tznind feedback

* Refactored KeyBindings big time!

* Added key consts to KeyEventArgs and renamed Key to ConsoleDriverKey

* Fixed some API docs

* Moved ConsoleDriverKey to ConsoleDriver.cs

* Renamed Key->ConsoleDriverKey

* Renamed Key->ConsoleDriverKey

* Renamed Key->ConsoleDriverKey

* renamed file I forgot to rename before

* Updated name and API docs of KeyEventArgs.isAlpha

* Fixed issues with OnKeyUp not doing the right thing.

* Fixed MainLoop.Running never being used

* Fixed MainLoop.Running never being used - unit tests

* Claned up BUGBUG comments

* Disabled a unit test to see why ci/cd tests are failing

* Removed defunct commented code

* Removed more defunct commented code

* Re-eanbled unit test; jsut removing one test case...

* Disabled more...

* Renambed Global->Applicaton and updated scope API docs

* Disabled more unit tests...

* Removed dead code

* Disabled more unit tests...2

* Disabled more unit tests...3

* Renambed Global->Applicaton and updated scope API docs 2

* Added more KeyBinding scope tests

* Added more KeyBinding scope tests2

* ConsoleDriverKey too long. Key too ambiguous. Settled on KeyCode. (Partialy because eventually I want to intro a class named Key).

* KeyEventArgs improvements. cast to Rune must be explicit as it's lossy

* Fixed warnings

* Renamed KeyEventArgs to Key... progress on fixing broken stuff that resulted

* Fix ConsoleKeyMapping bugs.

* Fix NetDriver issue from converting a lower case to a upper case.

* Started migration to Key from KeyCode - e.g. made HotKeys all consistent.

* Fixed build warnings

* Added key defns to Key

* KeyBindings now uses Key vs. KeyCode

* Verified by tweaking UICatalog

* Fixed treeview test ... again

* Renamed ProcessKeyDown/Up to NewKeyDown/Up and OnKeyPressed to OnProcessKeyDown to make things more clear

* Added test AllViews_KeyDown_All_EventsFire unit tests and fixed a few Views that were wrong

* fixed stupid KeyUp event bug

* If key not handled, return false for datefield

* dotnet test --no-restore --verbosity diag

* dotnet test --blame

* run tests on windows

* Fix TestVKPacket unit test and move it to ConsoleKeyMappingTests.cs file.

* Remove unnecessary commented code.

* Tweaked unit tests and removed Key.BareKey

* Fixed little details and updated api docs

* updated api docs

* AddKeyBindingsForHotKey: KeyCode->Key

* Cleaned up more old KeyCode usages. Added TODOs

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-12-16 12:04:23 -07:00
Tigger Kindel
a96c2588d5 Tweaks to api docs 2023-12-03 12:16:46 -07:00
Tigger Kindel
df37fa6841 No longer publish api docs from v2_develop; v2 is published via the Terminal.GuiV2Docs repo 2023-12-03 08:38:50 -07:00
Tig Kindel
ab5848902a new docfx! 2023-12-02 19:09:37 -07:00
Tig Kindel
b643e48104 more docfx stuff 2023-12-02 10:07:58 -07:00
Tig Kindel
c708b5a065 tweaking api doc theme 2023-12-02 09:43:38 -07:00
Tig Kindel
cc7cfc43f2 Testing new api doc theme 2023-12-02 09:40:39 -07:00
Tig Kindel
875b94688e potential v2 icon 2023-12-02 08:41:12 -07:00
Tigger Kindel
3b104b85f0 Updated API docs to clearly show v2 2023-12-01 20:23:33 -07:00
Tigger Kindel
6395d29c8c Attempt to Publish v2 API docs 2 2023-12-01 15:52:12 -07:00
Tigger Kindel
561efb1a73 Attempt to Publish v2 API docs 2023-12-01 15:40:10 -07:00
Tigger Kindel
a6f6cf90f0 Attempt to Publish v2 API docs with new workflow 3 2023-12-01 15:37:27 -07:00
Tigger Kindel
e767707e21 Attempt to Publish v2 API docs with new workflow 3 2023-12-01 15:27:46 -07:00
Tigger Kindel
d1c19dc25e Attempt to Publish v2 API docs with new workflow 2 2023-12-01 15:10:45 -07:00
Tig
dea5f0fe03 Fixes #2597. Enables standard glyphs to be set via ConfigurationManager (#2595)
* initial

* basically working

* removed test settings

* removed extra usings

* Improved API docs

* Renamed glyphs to be consistent and use unicode names; use char literals

* Refactored Glyphs class & Json format to not be static (startup perf)

* Refactored Glyphs class & Json format to not be static (startup perf)

* Fixed a bunch of API doc errors

* Switched checked/selected to glyhps from box drawing range

* Switched button glyphs to nicer looking ones that seem to work on standard fonts

* Upgraded LineDrawing scenario

* CrossHair->Cross

* Fixed unit tests

* Fixed unit tests; moved Glyphs from Application to ConfigurationManager; added CM global using alias

* Found and replaced all other special glyphs; fixed more unit tests
2023-05-07 07:34:02 +02:00
Thomas Nind
038cf8aa45 Fixes #2575 - TableView to use interface instead of System.Data.DataTable (#2576)
* WIP: Add ITableDataSource

* WIP: Refactor TableView

* WIP: Port CSVEditor

* WIP: Port TableEditor

* WIP: Port MultiColouredTable scenario

* Fix bug of adding duplicate column styles

* Update tests to use DataTableSource

* Tidy up

* Add EnumerableTableDataSource<T>

* Add test for EnumerableTableDataSource

* Add test for EnumerableTableDataSource

* Add code example to xmldoc

* Add ProcessTable scenario

* Rename ITableDataSource to ITableSource and update docs

* Rename EnumerableTableDataSource to EnumerableTableSource

* Fixed Frame != Bounds; changed UICat Scenarios list to use tableview!

* Fix scroll resetting in ProcessTable scenario

* Fix unit tests by setting Frame to same as Bounds

* Document why we have to measure our data for use with TableView

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2023-04-28 14:21:06 -06:00
Tigger Kindel
584dc27ee1 Fixed layouttests including textdirection 2023-03-26 18:22:51 -06:00
Tigger Kindel
625295652c Tweaked view2 spec 2023-03-26 09:28:50 -06:00
Tigger Kindel
b6ea0e1b4e Updated spec more 2023-03-20 09:37:42 -06:00
Tigger Kindel
292d24ce93 Updated spec 2023-03-20 09:27:21 -06:00
Tigger Kindel
1de683c13a still broken - documenting weird behavior 2023-03-11 09:40:48 -07:00
Tig Kindel
d7b1192ca5 Merge branch 'v2' into v2_view2_experiment 2023-02-24 17:32:06 -07:00
Tig Kindel
ed177303c7 View spec update 2023-02-24 17:05:12 -07:00
Tig Kindel
674dc9304c Updated view spec. Still a WIP and WRONG in a few ways 2023-02-22 08:52:13 +13:00
Tig Kindel
6613c3977a Merge branch 'v2' into v2_view2_experiment 2023-02-21 14:30:47 +13:00
Tig
9425b2a720 Fixes #2181 - (Really) Adds configuration manager (#2365) 2023-02-21 00:34:18 +13:00
Tig Kindel
d006d021dd view2 WIP mostly working 2023-02-20 21:58:45 +13:00
Tig Kindel
585857b1de more expiermnets 2023-02-15 16:00:21 +07:00
Tig
b3a5b78d64 Merge pull request #2111 from tznind/simple-example
Update 'Sample Usage' README.md section
2022-10-31 08:45:06 -07:00
Tig
a69ceb2a29 testing improve this doc... 2022-10-21 09:31:41 -07:00
tznind
121d0a0cc8 Update 'Sample Usage' README.md section 2022-10-20 16:18:29 +01:00
Charlie Kindel
d06dd3f599 fixes doc script 2022-09-17 10:03:25 -06:00
Charlie Kindel
18c86032d0 Puts API doc overrides in ./docfx/overrides folder 2022-09-16 11:08:51 -06:00
Tig Kindel
c6001c794b Fixes #2025 - API Docs are now generated via Github Action - View Source Works (#2027)
* Fixes #1991 - Broken link in README

* Force push to main to update api docs after fixing #1874

* Fixes #1745 - Github action to generate API docs

* Try 2 - Fixes #1745 - Github action to generate API docs

* Try 3 - Fixes #1745 - Github action to generate API docs

* Try 4 - Fixes #1745 - Github action to generate API docs

* Try 4 - Fixes #1745 - Github action to generate API docs

* Try 6 - Fixes #1745 - Github action to generate API docs

* Removed docs folder because gh-pages branch is now used

* Ignore ./docs folder

* Fix readme for docfx

* Revert "merge"

This reverts commit 870a241d5d, reversing
changes made to 48089bb31c.
2022-09-16 09:30:14 -07:00
Tig Kindel
7a48424924 Docfx - revert hack for 1874 (#1955)
* Fixes #1874 (again)

* Fixes #1874 - Requires use docfx >= v2.59.4
2022-09-16 05:52:26 -07:00
Tig Kindel
7e2e7b9d2d Updates v1.7 docs (#1919)
* updated readmes

* Updated doc visual style & regenerated

* updated relnotes
2022-07-28 06:31:26 -07:00
Tig Kindel
26d2353e40 Prep for Release v1.7.0 (#1910)
* prepping for v1.7 release

* Updated release notes for v1.7

* updated rel notes

* regen docs

* trying to fix view source

* reactive ui update
2022-07-28 05:39:06 -07:00
Tig Kindel
3a7efd0cdf Fixes #1889. Docs broken after org move. 2022-07-25 18:27:01 -04:00
Tig Kindel
0dcbdb847c Tweaked API docs format and content. Fixed build warnings. 2022-07-23 15:59:52 -06:00
Tig Kindel
94f36cef2e Updated API doc theme. Added Wizard Sample 2022-07-23 14:03:43 -06:00
Tig Kindel
fc9e84a429 Updated docs; regeneraged docs (#1881) 2022-07-22 17:07:29 -07:00
Tig Kindel
99890b18dc 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
2022-07-21 15:41:05 -07:00
Thomas Nind
b5cf92d5df Update docs with keybindings, global key event and designer (#1869)
* Added docs on keybinding and global key event

* Added TerminalGuiDesigner to showcases/examples
2022-07-21 05:59:34 -07:00
Thomas Nind
13af2b1662 Support for flexible column widths in TableView (#1760)
* Support for flexible column widths in TableView

* Fixed not respecting min width of MinAcceptableWidth an added UICatalog support

* Added menu options for SmoothHorizontalScrolling and setting all MinAcceptableWidth to 1

* spelling fix
2022-06-01 13:33:20 -07:00