Commit Graph

68 Commits

Author SHA1 Message Date
Tig
f536945df5 Application.Keyboard Code cleanup 2024-10-14 14:19:48 -06:00
Tig
dc4ce1e418 Fixed Dialogs 2024-10-08 01:03:23 -04:00
Tig
78d0a8fc3b Accepted->Accepting 2024-10-07 08:58:17 -04:00
Tig
af110d92d0 In the middle of another refactoroing 2024-10-05 12:43:09 -06:00
Tig
1cfe81a28a Fixed Dialog/MessageBox tests 2024-10-02 13:32:32 -06:00
Tig
bff7794495 Rebased onto v2_2491-Overlapped 2024-09-24 09:50:52 -06:00
Tig
21abe095a6 Attempting to figure out unit test fails and why tests are now slow. 2024-09-23 10:11:10 -06:00
Tig
21e2187d88 moar unit tests 2024-09-22 20:36:57 -06:00
Tig
5861277b65 Color schemes - unit test fixes 2024-09-22 15:33:06 -06:00
Tig
b717892235 Removed OverlappedTop.
Updated unit tess.
Fixed bad code paths.
2024-09-17 17:20:19 -06:00
Tig
9865f72801 Merged with v2_develop.
Code cleanup
2024-08-05 09:14:33 -06:00
Tig
271a73cba1 Made unit tests more resiliant to config changes 2024-08-04 12:14:13 -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
0073156415 added message box unit test for UI Catalog about box 2024-07-20 16:43:47 -06:00
Tig
31ef0fc152 Revamped Messagebox tests 2024-07-20 13:06:33 -06:00
Tig
cd43ee363d Revamped to further simplify and make more correct 2024-06-30 11:53:54 -07:00
Tig
dde1fe435c Fixed unit test warnings 2024-05-30 11:46:04 -06:00
Tig
c39c67a693 Fixed WizardTests 2024-05-30 06:33:27 -06:00
Tig
486ca8f1a7 Fixed DialogTests 2024-05-30 06:27:43 -06:00
Tig
bbb317433e Adjusted unit tests 2024-05-23 10:20:34 -06:00
Tig
c877c1844d Simplified Alignment enum 2024-05-18 10:39:14 -07:00
Tig
ddd7e279c4 Merge/rebase with #3480 2024-05-17 16:10:51 -07:00
Tig
5cebe967dd WIP: Fixing MessagBox to use Dim.Auto - Disabled some tests 2024-05-16 22:56:50 -07: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
37073d29b5 Alignment->Justification 2024-05-10 09:56:14 -06:00
Tig
831eecbd28 Default button just is now Right 2024-05-10 08:19:30 -06:00
Tig
cd104e9163 Dialog/MessageBox use new Justifier 2024-05-10 07:47:03 -06:00
Tig
7cb9d3e60d Odd dlg thing 2024-04-21 12:02:48 -06:00
Tig
44cc57b9f8 Rebased onto dim.auto 2024-04-21 00:10:48 -06:00
Tig
13134df595 Prototype Pos.Justify 2024-04-21 00:02:26 -06:00
Tig
0aef9d14db Removed notion of View.Autosize from Pos and Dim classes 2024-04-18 18:24:45 -06:00
Tig
a4d3bc7e58 Fixed more tests 2024-04-18 18:18:30 -06:00
Tig
4ed5ed8bb6 Initial commit. Just a prototype 2024-04-17 12:51:19 -06:00
Tig
8da54ad41d Rebased onto bounds-contentarea and merged -broke 2024-04-14 21:52:45 -06:00
Tig
1bb90abb52 Merged v2_develop 2024-03-29 09:25:21 -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
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
325eb1aaac Fix MessageBoxTests. 2024-03-23 19:29:19 +00:00
BDisp
221fef3e7f Fix DialogTests. 2024-03-23 19:08:40 +00:00
BDisp
163c0384a5 Delegate the disposable handling to the caller. 2024-03-22 18:49:46 +00:00
Tig
0a6193a7a3 Moved Canceled from FileDialog to Dialog (because that's just a good idea and it provides a good case for having a property test for Disposal on get/set).
Tweaked `Run_Dispose_Dialog` to illustrate how broken it is to have `Run/End` dispose `Top`.
2024-03-21 08:46:55 -07:00
BDisp
c8890628e9 Fixes #3338. Application.Run/End -> Callers must dispose Toplevel 2024-03-20 17:34:20 +00:00
Tig Kindel
7036f5f8f8 Cleaned up MouseClick related stuff. 2024-03-01 11:42:28 -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
ac0b655b1a Add explicit casts to a few tests to ensure the correct type is tested. 2024-02-22 19:56:09 -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