Commit Graph

101 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
09252d15f0 Ctrl+Q -> Esc 2024-06-20 16:17:23 -07:00
Tig
15228be5e0 Merge branch 'v2_3037-Bar-Shortcut' of tig:tig/Terminal.Gui into v2_3037-Bar-Shortcut 2024-06-20 14:43:13 -07:00
Tig
303573bdea Fixed linux unit tests.
Backed out change that registered quitkey as application scope.
Beefed up tons of tests
2024-06-20 13:06:22 -07:00
Tig
9372cce69c Fixed Scenario tests 2024-06-19 11:35:46 -07:00
BDisp
4cf6a26333 Fixes #3545. Superview most focused view not sync with the overlapped view. 2024-06-17 18:33:09 +01:00
BDisp
37d237aad9 Removes unnecessary driver parameter. 2024-06-14 12:50:23 +01:00
BDisp
14361b1ee3 Fixes #3536. Application.Run<T> is broken by not calling Init before initializing T. 2024-06-13 19:24:52 +01:00
Tig
ab655feadc Application Keybinding tests 2024-06-08 09:19:38 -06:00
Tig
dde1fe435c Fixed unit test warnings 2024-05-30 11:46:04 -06:00
Tig
52322a3b73 Rebased.
Fixed ApplicatonTests.
2024-05-30 06:21:19 -06:00
Tig
36b9171276 Removed ContentSize setter, replaced with SetContentSize 2024-05-13 13:42:14 -06:00
Tig
3891b238ac Merge branch 'v2_develop' into v2_3460-xxxToxxx-Consistency 2024-05-11 10:40:46 -06:00
BDisp
063e58b258 Fixes #3467. Views without subviews can't show the cursor. 2024-05-10 17:36:47 +01: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
56922b4357 Merge pull request #3323 from tig/v2_3269_Bounds-ContentArea
Fixes #3169. `Bounds` -> `Viewport`: Content Scrolling in `View`
2024-04-16 06:37:37 -06:00
Tig
069089ee27 Made Arrangement = ViewArrangement.Fixed the default for Toplevels 2024-04-15 17:08:12 -06:00
Tig
50fcb19af5 Keep Force16Colors set across apps to ease debugging of flicker issue 2024-04-15 14:48:26 -06:00
BDisp
7236dd19c7 Fix unit test. 2024-04-14 23:55:18 +01:00
BDisp
d5800743ea Fixes #3394. View.Dispose doen't call UngrabMouse if MouseGrabView is the view itself. 2024-04-10 17:33:47 +01: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
e1a2793c5c Fixed fragile toplevel drag unit tests 2024-04-04 19:34:39 -04: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
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
0766ad32b0 Fix RunStateTests. 2024-03-23 17:52:36 +00:00
BDisp
2905979c45 Fix MouseTests. 2024-03-23 17:49:30 +00:00
BDisp
d35e2f449a Fix MainLoopTests. 2024-03-23 17:35:21 +00:00
BDisp
1cf7207ea1 Fix KeyboardTests. 2024-03-23 17:32:14 +00:00
BDisp
e6de9ed9dc Ensures Top disposing on the AutoInitShutdownAttribute and fix ApplicationTests. 2024-03-23 17:18:51 +00:00
BDisp
97a0595353 Ensures disposing toplevel before throwing. 2024-03-23 15:58:24 +00:00
BDisp
c471cf1aeb Add ObjectDisposedException testing for View.Title and fixes unit test. 2024-03-23 15:54:33 +00:00
BDisp
034861bba2 Standardizes the entire Application.Run to be consistent between them. 2024-03-23 10:34:05 +00:00
BDisp
c68849a314 Remove Top from the Init method. 2024-03-22 17:04:15 +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
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
Tig
3a40dec249 Reamed Bounds -> Viewport in comments 2024-03-14 07:39:12 -08: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
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