Commit Graph

107 Commits

Author SHA1 Message Date
Tig
cd43ee363d Revamped to further simplify and make more correct 2024-06-30 11:53:54 -07:00
Tig
d7bd938664 Renamed StateChangedEventArgs 2024-06-27 15:44:55 -07:00
Tig
7a712ad96a Accept now uses HandledEventARgs vs. Cancel 2024-06-27 12:40:26 -07:00
Tig
9f09e030ae Fixed Scenarios and unit tests 2024-06-18 22:27:57 -07:00
Tig
671fdea8a3 Fixed a slew of Dim.Auto(Content) issues preventing Pos.Align to work for MessageBox/Dialog.
Messagebox and Dialog now use Pos.Align and Dim.Auto
2024-05-23 17:56:48 -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
36b9171276 Removed ContentSize setter, replaced with SetContentSize 2024-05-13 13:42:14 -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
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
a1249198bd PositionCursor unit tests and flashing cursor fixes 2024-05-07 10:07:14 -06:00
Tig
3406d97c4c working on cursor issue 2024-05-06 09:46:51 -06:00
Tig
7dedfb83e8 Fixed AllViewsTester 2024-05-03 13:32:33 -06:00
Tig
be8f7fadc6 Progress on removing AutoSize. 2024-05-03 13:13:12 -06:00
Tig
e6da3db22d Prototype/WIP for revamping how cursor handling works.
Views should not have to do complex cursor logic just to position / show a cursor.
Application should take care of more of the heavy liftig.
Advanced cursor handling should be possible.
ProcessCursor is poorly designed and fragile.
2024-04-26 13:19:11 -06:00
Tig
eecb7dc7ef Fixed Charmap focus bug 2024-04-26 08:56:17 -06:00
Tig
88222c4dfd Fixed clipping - mostly: Still an issue w/ subviews of adornments 2024-04-14 13:22:25 -06:00
Tig
8df0ea44dc Scenario clean up 2024-04-12 14:34:51 -06:00
Tig
8bfc468794 Found and fixed double-doubleclick bug in Charmap 2024-04-12 12:32:38 -06:00
Tig
5d85242020 WIP fixing FrameToScreen 2024-04-11 06:05:19 -06:00
Tig
e8640e9d92 Found and fixed bug in non-recursive FindDeepestView; added reltaed unit test 2024-04-10 11:18:17 -04:00
Tig
50f9b3559e Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-04-05 11:48:57 -04:00
Tig
dd8fe76cab Rebased with v2_develop - broke stuff. 2024-04-03 21:27:10 -04:00
Tig
72992bd8c7 WindowsDriver - added diagnostics. Found issue. Implemented workaround 2024-04-03 13:21:36 -05:00
Tig
7cc9fb9127 merge fixes 2024-04-03 05:59:48 -06:00
Tig
1b21dd5ef1 merged 2024-04-03 05:47:35 -06:00
Tig
bbba1e407d Adds Charmap to scrolling demo 2024-04-02 21:10:56 -06:00
Tig
f3c3825f34 Init->Main in Buttons scenario 2024-04-01 12:36:20 -06:00
Tig
a7079edf77 Prototype scrollbuttons in Padding for CharMap 2024-04-01 12:15:15 -06:00
Tig
08d2716cc9 Prototype scrollbuttons in Padding for CharMap 2024-03-31 21:29:46 -06:00
Tig
0c03096b8c Enabled charmap controls after debugging 2024-03-31 10:40:50 -06:00
Tig
207c974327 Fixed WindowsDriver cursor issue with true color 2024-03-31 10:06:50 -06:00
Tig
8483e29a9d Removed ScrollView dependency from CharMap to validate new View scrolling fn 2024-03-30 17:53:03 -06:00
Tig
df5f04b645 Merged v2_develop 2024-03-26 14:36:23 -06:00
BDisp
f1fcbb91d3 Fix UICatalog. 2024-03-22 23:52:35 +00:00
Tig
bf77b3153d Fixed all instances of the bad pattern I could find 2024-03-19 14:56:55 -07:00
Tig
6b1a429e56 Rebased with v2_develop 2024-03-18 16:05:54 -07:00
Tig
40b28d2120 Fixed incorrect clip code.
Changed to draw on OnDrawContent override.
Added comments to clarify drawing code.
2024-03-17 15:32:02 -07:00
Tig
ab021bf0b0 Updated API docs 2024-03-17 08:57:01 -08:00
Tig
b187a8e70f Reamed Bounds -> Viewport - MOAR rename 2024-03-14 09:55:27 -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
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