Commit Graph

65 Commits

Author SHA1 Message Date
Tig
f3697a99f4 Fixes #3839, #3922 - CM Glyphs not working (#3923)
* fixed

* Moved Glyphs to ThemeScope

* Removed test code
2025-02-26 15:24:58 -07:00
Tig
7d4f4e4735 Tweaks 2024-12-06 10:31:49 -07:00
Tig
563d58a380 Code cleanup and refactor 2024-11-03 11:13:24 -07:00
Tig
87486b1969 Renamed Refresh. COde Cleanup 2024-10-27 15:25:27 -07:00
Tig
5dc832b6e3 Fixing unit tests 4 2024-10-18 17:06:51 -06:00
Tig
78d0a8fc3b Accepted->Accepting 2024-10-07 08:58:17 -04:00
Tig
018dbc625e Accepted now takes CommandEventArgs 2024-10-07 08:51:35 -04:00
Tig
fc34585256 Selected->Selecting 2024-10-07 07:59:17 -04:00
Tig
2a989df553 Selected->Selecting 2024-10-07 07:38:11 -04:00
Tig
f2d27a5d08 Working on ComboBox 2024-10-06 15:41:07 -06:00
Tig
af110d92d0 In the middle of another refactoroing 2024-10-05 12:43:09 -06:00
Tig
3649a047f2 Re-fixed 2024-10-05 06:23:59 -06:00
Tig
1e19e9572d Thinking through Adornments (again) 2024-10-03 14:57:24 -06:00
Tig
f860b175b2 Checkbox and RadioGroup mouse 2024-10-01 20:12:07 -06:00
Tig
40ee4c03b7 Fixed CheckBox 2024-10-01 18:18:38 -06:00
Tig
f3b93a58dd Fixed RadioGroup 2 2024-10-01 15:34:55 -06:00
Tig
0bd50c5b93 Fixes #3641. CheckBox.State -> CheckBox.CheckState (#3648)
* State->CheckState.
Toggled->CheckStateChanging.

* Code cleanup & doc fix

* Updated migration guide

* Updated migration guide
2024-08-06 08:39:55 -06:00
Tig
a935ef83df Merge remote-tracking branch 'refs/remotes/origin/v2_2491-Toplevel-Redesign' into v2_2491-Toplevel-Redesign 2024-07-25 14:50:19 -06:00
Tig
44ce74a5c0 Refactored Application into smaller files.
Made Application #nullable enable
2024-07-22 16:52:02 -06:00
Tig
0e70444e08 Renamed Width/Height/Size 2024-07-20 11:36:05 -06:00
Tig
6188127a24 Refactors CheckBox to use an enum instead of bool? for state. Cleans up naming to make more correct too (Toggle v. Toggled and State vs. Checked). 2024-07-01 10:43:16 -06:00
Tig
b55ee57371 Moved EventArgs<T> to sep file.
Toggled -> Toggle.
2024-07-01 09:23:25 -06:00
Tig
7a712ad96a Accept now uses HandledEventARgs vs. Cancel 2024-06-27 12:40:26 -07:00
Tig
94ce28012e Fixed BorderTests 2024-05-30 10:47:52 -06:00
Tig
dd99231218 Fixed CheckBoxtests 2024-05-30 07:20:00 -06:00
Tig
4ba8f04998 Rebased with v2_develop 2024-05-23 10:12:15 -06:00
Tig
c877c1844d Simplified Alignment enum 2024-05-18 10:39:14 -07:00
Tig
7bfefd27b0 Rebased with #3480 2024-05-15 07:53:15 -07:00
Tig
e28f73f175 Pos / Dim code cleanup 2024-05-14 16:01:42 -07:00
Tig
ef9ee5a2e6 Checkbox now uses DimAuto for Height 2024-05-13 12:35:43 -06:00
Tig
a59c44d258 Rebased latest 2024-05-11 11:05:32 -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
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
Tig
3e1025897b AutoSize in comments i gone too. 2024-05-03 15:00:48 -06:00
Tig
65b36a9268 Updated almosta all tests to not use AutoSize 2024-05-03 14:01:02 -06:00
Tig
cea6e54b19 Ready for review.
- All unit tests pass
- Basic usage verified.
2024-04-28 08:48:46 -07: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
2fdbce4a76 Fixed all unit tests. Doesn't mean things aren't broken tho. 2024-04-21 12:35:32 -06:00
Tig
d3dfb16597 Initial commit. Made all calls to AnchorEnd() be AnchorEnd(0) in prep 2024-04-16 09:51:22 -06:00
Tig
c5b7b084a9 Way too big a committ.... but I got carried away.
- Started MouseEventEventArgs -> MouseEvent transition - for OnMouseEvent. Partially fixes #3029.
- Refactored Appliation.OnMouseEvent and View.OnMouseEvent to match design guidelines.
- Re-impleented highlight, enabling extensibility (see Border).
- Beefed up unit tests
2024-04-04 18:50:13 -04:00
BDisp
6a6fd3b480 Fix CheckBoxTests. 2024-03-23 20:49:20 +00:00
Tig Kindel
7036f5f8f8 Cleaned up MouseClick related stuff. 2024-03-01 11:42:28 -07: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
Brandon Thetford
a638edeeaf Rename Rect to Rectangle in preparation for removal 2024-02-20 20:19:52 -07:00