Commit Graph

296 Commits

Author SHA1 Message Date
Tig
8483e29a9d Removed ScrollView dependency from CharMap to validate new View scrolling fn 2024-03-30 17:53:03 -06:00
Tig
17efda9926 Fixed ScrollViwe 2024-03-29 14:26:07 -06:00
Tig
d25f98f8e3 Everything appears to work (except ScrollView which I broke but will fix). 2024-03-28 23:57:36 -06:00
Tig
df5f04b645 Merged v2_develop 2024-03-26 14:36:23 -06:00
Tig
6ebee8d42b Fixed more bad code 2024-03-25 16:54:08 -06:00
BDisp
41971a6e5a Fix all tests. 2024-03-25 17:36:35 +00:00
BDisp
a551b977bb Invoke Activate and Deactivate on Begin method and fix ContextMenu to use it. 2024-03-25 15:35:02 +00:00
BDisp
408ae43e74 Fix ColorPickerTests. 2024-03-23 20:51:33 +00:00
BDisp
6a6fd3b480 Fix CheckBoxTests. 2024-03-23 20:49:20 +00:00
BDisp
11383402dd Fix ButtonTests. 2024-03-23 20:41:29 +00:00
BDisp
1f8ea90991 Fix AllViewsTests. 2024-03-23 20:00:47 +00:00
BDisp
88f8cf9015 Fix AppendAutocompleteTests. 2024-03-23 19:53:03 +00:00
BDisp
c8890628e9 Fixes #3338. Application.Run/End -> Callers must dispose Toplevel 2024-03-20 17:34:20 +00:00
Tig
6b1a429e56 Rebased with v2_develop 2024-03-18 16:05:54 -07:00
BDisp
d8c1a0c118 Merge branch 'v2_develop' into v2_mousegrabview-fix_3333 2024-03-17 22:47:20 +00:00
Tig
9aec5b1c6d Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-03-17 15:38:30 -07:00
BDisp
0120a3648f Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit. 2024-03-17 20:06:03 +00:00
Tig
1549d0de1d Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-03-17 11:20:43 -07:00
Tig
bd4eeb9fab Merge branch 'v2_develop' into v2_3313-Application-End-Top 2024-03-17 07:50:56 -08:00
Tig
ab07ec665b Removed erroneous Disosal and fixed poorly coded unit test: A toplevel manually creatged must be disposed by creator 2024-03-17 07:41:37 -08:00
Tig
73a6e66139 Tweaked unit tests 2024-03-16 08:46:29 -08: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
ebc47de514 Reamed Bounds -> Viewport test rename 2024-03-14 10:24:31 -08:00
Tig
0900333e12 Reamed Bounds -> Viewport - more rename 2024-03-14 08:12:50 -08:00
Tig
3a40dec249 Reamed Bounds -> Viewport in comments 2024-03-14 07:39:12 -08:00
Tig
f6ff36968e Reamed Bounds -> ViewPort to see how it feels 2024-03-14 07:30:27 -08:00
Tig
52b464f305 Simplified and renamed GetLocationThatFits 2024-03-11 11:39:22 -08:00
Tig
591434054c Simplified and renamed GetLocationThatFits 2024-03-11 11:38:44 -08:00
Tig
919f8e5991 Merge branch 'v2_develop' into v2_3273_FOUND_finddeepestview 2024-03-10 10:56:14 -06:00
Tig
7d6d5280f1 Adds CanFocus/SetFocus test 2024-03-10 07:30:42 -08:00
Tig
dabb8df0ac Adds Label mouse click test 2024-03-10 07:16:41 -08:00
Tig
667912a610 Fixed a buinch of bugs. Updated unit tests including some that test all views to utilize TheoryData 2024-03-09 09:00:13 -09:00
Tig Kindel
d6e4a5b0bc Fixed fragile unit test 2024-03-05 14:07:33 -07:00
Tig Kindel
3d30b06212 Fixed Menu: Was not dealing with Border correctly 2024-03-04 12:10:52 -07:00
Tig Kindel
efaaec41c2 Added simple Arragement unit test 2024-03-04 11:09:39 -07:00
Tig Kindel
86a3d18f7d Removed dead code from MenuBar 2024-03-04 10:09:30 -07:00
Tig Kindel
cba58caac8 Toplevel drag via Adornment finished 2024-03-01 17:30:44 -07:00
Tig Kindel
4398ccade7 Moved Toplevel drag out of Toplevel into Adornment (but still only works for Toplevel) 2024-03-01 16:19:24 -07:00
Tig Kindel
1eaf8a713d Simplified test 2024-03-01 13:01:25 -07: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
Tig Kindel
248efc2cc2 Simplified FindDeepestVieew 2024-02-27 07:43:13 -07:00
Brandon Thetford
736eea1469 Fix this test for release builds 2024-02-25 20:52:15 -07:00
Brandon Thetford
13b6d754ff A couple more Rectangles simplified 2024-02-25 20:49:56 -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
17d028432e Re-apply Rect->Rectangle name changes in these files 2024-02-22 16:03:06 -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
93f21b8edd Slightly de-couple these as well 2024-02-20 20:19:52 -07:00