Commit Graph

56 Commits

Author SHA1 Message Date
Tig
6df071fbe1 Fixed.
Added event.md
2024-10-14 12:32:41 -06:00
Tig
78d0a8fc3b Accepted->Accepting 2024-10-07 08:58:17 -04:00
Tig
923e5d1cf3 Fixed ScreenPosition in tests 2024-10-06 08:39:05 -06:00
Tig
af110d92d0 In the middle of another refactoroing 2024-10-05 12:43:09 -06:00
Tig
bff7794495 Rebased onto v2_2491-Overlapped 2024-09-24 09:50:52 -06:00
Tig
2042951e29 Merge branch 'v2_develop' into v2_3750-MouseEnter 2024-09-24 09:12:58 -06:00
BDisp
85fcbdf24e Fixes #3754. UICatalog throws System.NullReferenceException on MenuBar in Linux. (#3755) 2024-09-24 09:11:13 -06:00
Tig
aed37f9b54 Fixed a bunch of unit test issues. Fixed color stuff I broke 2024-09-23 12:55:14 -06:00
Tig
02e75f83dc moar unit tests 2024-09-22 21:28:47 -06:00
Tig
1e6f6b8393 unit test issue 2024-09-22 18:00:58 -06:00
Tig
4445abe871 Code cleanup 2024-09-22 17:42:19 -06:00
Tig
c249e14ab6 Code cleanup 2024-09-22 17:40:52 -06:00
Tig
cdfc49ece5 unit test issue 2024-09-22 16:30:38 -06:00
Tig
5861277b65 Color schemes - unit test fixes 2024-09-22 15:33:06 -06:00
BDisp
ee13e2ca3a Fixes #3740. Disabled MenuItem triggers exception. (#3745) 2024-09-19 13:29:57 -06:00
BDisp
1e9f2f4778 Fix some more bugs. Nullable is very treacherous. 2024-09-02 12:54:25 -04:00
BDisp
552f9ed0a8 Fix some bug, clean code and more unit tests. 2024-09-02 12:54:25 -04:00
Tig
bdc60c9490 Got all unit tests passing. Some AdvanceFocus stuff still not right. 2024-08-24 07:27:10 -07:00
Tig
f65f26f846 Fighting with Menubar/contextMenu which are effing hacks. 2024-08-20 17:35:45 -06:00
Tig
d1d7ab5fa8 Done with refactor. Nav unit tests all pass. Fixing View unit tests... 2024-08-20 13:11:55 -06:00
Tig
b267e1698e V2 fix warnings (#3671)
* Fixed NumericUpDown warning

* Fixed Aot Warning

* Fixed warnings in Application.cs

* Fixed more NumericUpDown warning

* Fixed CommandImpl warning

* Fixed Thickness warnings

* Fixed Label warning

* Fixed warning

* Fixed menubar test warning

* Fixed warnings

* Fixed warnings

* Removed dead code

* Fixed warnings
2024-08-19 10:09:15 -06:00
BDisp
a661fcecf7 Fixes #3652. Setting Menus causes unexpected Exception. (#3653)
* Moving ShortcutDelimiter from MenuBar to Key.

* Rename to ShortcutKey and change type to Key.

* Improving add and remove menu items dynamically.

* Code cleanup.

* Fix status bar shortcuts issues.

* Fix build error.

* Change HotKey type to Key.

* Change HotKey.setter to private.

* Fix warnings.

* Fix some bugs.

* Rename ShortcutDelimiter to Separator.

* Add Separator property into the Configuration Manager.

* Change XML doc for Separator.

* Replace KeyEvent with Key.

* Add unit test preventing the Key.Separator is never Null ('\0).
2024-08-13 13:46:00 -06:00
Tig
9865f72801 Merged with v2_develop.
Code cleanup
2024-08-05 09:14:33 -06:00
Tig
f5b1984db7 Made unit tests more resiliant to config changes 2024-08-04 15:08:18 -06:00
Tig
022050db73 Fixed nullable warnings 7 2024-07-24 15:09:48 -06:00
Tig
73a9dc37c4 Fixed nullable warnings 2 2024-07-24 14:15:32 -06:00
Tig
44ce74a5c0 Refactored Application into smaller files.
Made Application #nullable enable
2024-07-22 16:52:02 -06:00
Tig
9ef6fcbe2b Merge branch 'v2_develop' into v2_3522-IDesignable 2024-07-03 10:12:57 -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
f8ede1283b rebuilt 2024-06-28 22:27:50 -07:00
Tig
c48a020ecb Fixed menu unit test 2024-06-20 16:39:56 -07:00
Tig
0e4d9c5b6c Menubar code cleanup 2024-06-09 07:29:29 -06:00
Tig
0b99e1d054 Removed dead code 2024-06-09 07:14:12 -06:00
Tig
86484b442c Tweaked unit tests 2024-06-09 00:08:26 -06:00
Tig
87817083c0 Fixed MenuBarTests 2024-05-30 08:03:57 -06:00
Tig
e28f73f175 Pos / Dim code cleanup 2024-05-14 16:01:42 -07:00
Tig
d391cc7ad2 MouseEvent: int X, int Y -> Point Position 2024-05-09 08:50:50 -06:00
Tig
cea6e54b19 Ready for review.
- All unit tests pass
- Basic usage verified.
2024-04-28 08:48:46 -07:00
BDisp
c42c88ccbc Ensures the menu bar grabs the mouse when removing a menu. 2024-04-10 18:16:51 +01: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
41971a6e5a Fix all tests. 2024-03-25 17:36:35 +00:00
BDisp
2b3a67c7a9 Fix typo. 2024-03-14 23:02:23 +00:00
BDisp
534ab2a631 Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse. 2024-03-14 22:42:21 +00:00
Tig Kindel
3d30b06212 Fixed Menu: Was not dealing with Border correctly 2024-03-04 12:10:52 -07:00
Tig Kindel
86a3d18f7d Removed dead code from MenuBar 2024-03-04 10:09:30 -07:00
Tig Kindel
bd8edbe201 Merged MouseEvent() and OnMouseEvent() 2024-02-29 17:29:25 -07:00
Tig Kindel
248efc2cc2 Simplified FindDeepestVieew 2024-02-27 07:43:13 -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