Commit Graph

86 Commits

Author SHA1 Message Date
Tig
4bdaef7ad6 Nuked TextFormatter.CalcRect and unit tests 2024-07-20 11:45:55 -06:00
Tig
0e70444e08 Renamed Width/Height/Size 2024-07-20 11:36:05 -06:00
Tig
6550cde7b5 Nuked Textformatter.AutoSize.
Removed references to AutoSize throughout.
Updated unit tests.
2024-07-20 11:17:46 -06:00
Tig
2cecc7762a WIP - Trying to make TextFormatter have indepdentent width/height 2024-07-17 16:18:58 -06:00
Tig
f6064be449 Fixed SetTextFormatterSize 2024-07-17 08:14:09 -06:00
Tig
e93eebb708 Fixed little things. 2024-07-16 18:40:51 -06:00
Tig
3b8319b802 Added low-level TextFormatter.FormatAndGetSize tests 2024-07-16 11:08:22 -06:00
Tig
059d8f4563 Fixed AutoCompleteTests 2024-05-30 07:17:25 -06:00
Tig
c877c1844d Simplified Alignment enum 2024-05-18 10:39:14 -07:00
Tig
a59c44d258 Rebased latest 2024-05-11 11:05:32 -06:00
Tig
cd2df54c97 Fix warnings 2024-05-11 09:28:58 -06:00
Tig
ce1e243df2 Justification->Alignment 2024-05-10 11:27:02 -06:00
Tig
c5a6c907a4 Justifier->Aligner 2024-05-10 10:35:49 -06:00
Tig
40f72db0bd Alignment->Justification 2024-05-10 10:05:16 -06:00
Tig
37073d29b5 Alignment->Justification 2024-05-10 09:56:14 -06:00
Tig
c84dade64d WIP -> Getting rid of old TextAlignment enums 2024-05-10 08:52:47 -06:00
Tig
d391cc7ad2 MouseEvent: int X, int Y -> Point Position 2024-05-09 08:50:50 -06:00
BDisp
c7bc7f86b8 Adding all possible text directions variants and improving scenario. 2024-05-05 00:03:21 +01:00
Tig
ccaf1cf89b Merged bdisp test improvemnts 2024-05-03 11:24:36 -06:00
Tig
c79d2a95b4 Working on Dim.Absoulte 2024-05-03 11:16:02 -06:00
BDisp
37bad48b4a Adding more horizontal and vertical text unit tests variants. 2024-05-02 19:21:52 +01:00
BDisp
5031faaa50 Change TODO to FIXED. 2024-04-30 22:23:33 +01:00
BDisp
d1189648da Add vertical unit tests to the Draw_Text_Alignment method. 2024-04-30 22:17:49 +01:00
BDisp
96af356428 Fix unit test. 2024-04-30 21:02:50 +01:00
BDisp
1d86d65428 Resolving merge conflicts. 2024-04-30 20:53:34 +01:00
Tig
6e951882e0 Updated Draw_Text_Alignment 2024-04-30 11:35:41 -06:00
BDisp
b7293e0470 Performing text reverse during formatting instead during drawing. 2024-04-29 23:21:32 +01:00
BDisp
d66a28e9e6 Add more unit tests. 2024-04-29 13:22:45 +01:00
Tig
cea6e54b19 Ready for review.
- All unit tests pass
- Basic usage verified.
2024-04-28 08:48:46 -07:00
Tig
214ffb1633 TextFormater.AutoSize fixes 2024-04-27 13:48:23 -07:00
Tig
3e87d5e786 TextFormatter Unit tests pass again 2024-04-27 08:09:48 -07:00
Tig
71c0d379f8 Merged and attempted to apply @bdisp's fixes 2024-04-27 07:17:29 -07:00
Tig
acc924b7b5 Unit test update 2024-04-26 22:10:23 -06:00
Tig
09565a0ef1 Tons of changes - mostly experiments, but some goodness.
There's a huge issue that TextFormatter is confused about AutoSize.
a) It behaves 'automatically' even when AutoSize == false (e.g. in Text_set).
b) It doesn't support auto sizing only one dimension.
2024-04-25 13:29:18 -06:00
Tig
f134d1a113 Started to add more primitve unit tests for vertical text 2024-04-21 11:22:27 -06:00
Tig
c65596b2d0 Sorta fixed vertical. Broke wide runes 2024-04-21 11:05:27 -06:00
Tig
91e3e75dc0 Sorta fixed vertical. Broke wide runes 2024-04-21 09:18:57 -06:00
Tig
7b5df8386e Fixed all TextFormatterTests 2024-04-18 17:54:54 -06:00
Tig
69cb2719b5 Fixed TextFormatterTests 2024-04-18 17:52:21 -06:00
Tig
83bc6aa632 Added more TextFormatter tests 2024-04-18 16:15:59 -06:00
Tig
785215d957 Added TextFormatter unit tests that show Right has bug 2024-04-18 16:07:50 -06:00
Tig
6c117e0f0a More unit tests 2024-04-18 15:51:19 -06:00
Tig
00ac1bbf7a Renamed API to simplify and make more clear. Fixed Text formatting vertical/right aligned text. Fixed crash in scenario 2024-04-18 14:16:55 -06:00
Tig
f3b5ed7afc Fixing tests... 2024-04-18 13:14:22 -06:00
Tig
dceed59a5f Fixed more unit tests 2024-04-05 12:27:04 -04:00
BDisp
d209a171fe Fix AutocompleteTests. 2024-03-23 19:55:45 +00:00
Tig Kindel
bd8edbe201 Merged MouseEvent() and OnMouseEvent() 2024-02-29 17:29:25 -07:00
Brandon Thetford
bfedfee9ee Simplify construction of new Rectangle, Size, Point, and *F instances
Use *.Empty when possible.
Use `with` in a few cases.
Also add some TODO commentary
2024-02-25 20:05:00 -07:00
Brandon Thetford
3d807c3833 Merge branch 'v2_develop' into v2_3256_prepare_for_Rect_removal
* v2_develop:
  Fixes #3039. Fix View.HotKey (#3249)
2024-02-22 15:51:04 -07:00
Tig
16055c53b0 Fixes #3039. Fix View.HotKey (#3249)
* Added View.DefaultCommand etc... Started on dedicated scenario

* Fixed un-shifted hotkeys -> Fixed Key Equals. Fixed WindowsDriver passing wrong key. Etc.

* Fixed Key Bindings and HotKeys

* Fixed Key Bindings and HotKeys

* Label now correctly supports hotkey

* Disabled unix hot keys because they are annoying and get in the way

* Updated nuget. fixed warnings

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Trying to fix ci/ci issue

* Changed TextChangingEventArgs to inherit from CancelEventArgs

* TextChangingEventArgs -> TextEventArgs

* Simplified Text events by having only on args class

* Fixed unit tests fail

* Simplified by removing TitleEventArgs

* POC of Title being primary for hotkey. Label and Button hacked to work

* POC of Title being primary for hotkey. Label and Button hacked to work - all unit tests pass

* Dropped Microsoft.NETFramework.ReferenceAssemblies

* Fixed Dialogs scenario hotkeys

* Fixed build warnings

* Fixed Border Title render bug

* Regiggering default command handling

* Regiggering default command handling

* Checkbox clean up

* Added StateEventArgs POC

* Command.Default -> Command.HotKey

* Command.Default -> Command.HotKey - fixed TableView

* Command.Default -> Command.HotKey - fixed TableView

* Updated reactive example

* Fixed Toplevel.BringOverlappedTopToFront - was reordering SubViews when it shouldn't

* WIP - broke

* Finished impl of StateEventArgs

* Deleted ToggleEventArgs.cs. Added StateEventArgs.cs

* XML doc fix

* Removed old code

* Removed commented out code

* Label.Clicked -> Label.Accept (missed this before)

* Removed Labels as Buttons scenario as it's not really  useful

* Moved SubView tests to own file

* Moved SubView tests to own file

* Simplified Text test

* Added OnAccept test

* Deleted DefaultCommand

* Modernized CheckBox

* New button test

* Cleaned up RadioGroup; added tests

* KeyCode->Key in ListView

* Added ListView unit tests

* ListView now does Accept correctly

* TreeView now does Accept correctly

* Cleaned up some TextField tests

* TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Fixed ComboBox to deal with TextView now handles Accept properly; updated CharMap and Adornments scenarios to test

* Removed un-needed using statement
2024-02-22 15:11:26 -07:00