Commit Graph

1495 Commits

Author SHA1 Message Date
Tig
1359e43066 Fixed nested tabgroup nav! 2024-08-28 23:47:43 -07:00
Tig
cd89d5c6be Fixe pos/dim bug in AllViewsTester 2024-08-28 13:07:13 -07:00
Tig
a659e217fe Changed allviews tester to not set colorscheme 2024-08-28 12:51:25 -07:00
BDisp
9add83fc7d Remove ClearOnVisibleFalse property. 2024-08-28 20:30:46 +01:00
Tig
e3ef2e4f2b Fixed a UI Catalog shortcut bug 2024-08-28 11:45:23 -07:00
Tig
6931326686 Fixed Tabview 2024-08-28 11:23:20 -07:00
Tig
ad81e09d42 Debugging GraphView issue 2024-08-27 21:42:59 -07:00
Tig
8bdb0f64d7 Revoved defunct api 2024-08-27 20:51:32 -07:00
Tig
b51a985012 Fixed Config editor 3 2024-08-27 20:44:49 -07:00
Tig
cc627781e4 Fixed Config editor 2024-08-27 19:48:37 -07:00
Tig
20249faa10 Fixed adornment editor scenarios 2024-08-27 16:49:30 -07:00
Tig
7556892c02 Addressed feedback #1 2024-08-27 06:47:07 -07:00
Tig
4b479a60f3 Refactored subview methods 2024-08-26 13:52:33 -07:00
Tig
1b1a2524e7 Removed TabIndex etc... 2024-08-26 13:00:59 -07:00
Tig
bc9f139724 Added case to ViewExperiments that shows that nested tabgroups isn't quite right yet. 2024-08-26 07:12:16 -07:00
Tig
7f3b0eb55b AdvanceFocus works correctly for most cases 2024-08-26 07:04:11 -07:00
Tig
6667b33cf5 Fixsed colorpicker tab order 2024-08-25 07:27:43 -07:00
Tig
b55afbddfb Diagnosing bug with ASCIButytonthing 2024-08-23 11:10:38 -06:00
Tig
de4f8fd1ba Fixed keybindings 2024-08-23 11:06:58 -06:00
Tig
c39318c521 merged 2024-08-23 11:03:05 -06:00
BDisp
6498610de9 Fixes #3678. ContextMenu accesses disposed MenuBar. (#3681)
* Fixes #3678. ContextMenu accesses disposed MenuBar.

* Preserve always the last menu opened.

* Re-added MenuAllClosed event.

* Ensures call CleanUp if Application.MouseGrabView hold another MenuBar than the calling one.

* Fix unit tests.

* Passing the offending object instead of the View type.

* Add that to the dictionary to shut respeller up.

* Address a few warnings

* A question

* Just a little more cleanup

* Combine these and comment

* Slight additional cleanup

* More minor cleanup

We already know it is null. just make it the else instead of a new condition

* Nullable != true ===> is not true

* Unconditional break at the top is just a part of the while statement (inverted)

* Fixes #3687. ColorPicker isn't respecting the current UI culture.

* Fix @dodexahedron erroneous code.

* Cleanup comments.

---------

Co-authored-by: Brandon Thetford <github@snapsinazfs.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-23 09:47:09 -06:00
Tig
f7ca649b54 Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-23 09:22:47 -06:00
Thomas Nind
38f84f7424 Fixes #2800 - Color picker (supporting hsl, hsv and rgb) (#3604)
* Readonly HSL view

* Make it possible to move between bars by moving to subview

* Basically working and with mouse support

* Fix HSL to work properly with double values instead of color matching

* Fix Value on ColorPicker to match HSL values

* Fix color spectrum

* Add Swatch and better sync with text box

* Work on jitter

* ColorPicker HSL working

* More keybindings

* Add ColorModel

* Support both HSL and HSV

* Add RGB

* Better mouse handling

* WIP: AttributeView and integrate into LineDrawing
(does not currently work properly)

* Fix color picking

* Add concept of an ITool

* Add ColorPickerStyle

* Fix selected cell rendering

* Add first test for ColorPicker2

* Add more RGB tests

* Improve ColorPicker2 setup process

* Tests and fixes for keyboard changing value R

* Fix margin on bars when no textfields

* Add mouse test

* Add tests for with text field

* Add more tests and fix bug sync component text field change with hex text field

(WIP - failing tests)

* Fix tests and fix clicking in a bar label area possibly not selecting

* Move AttributeView to LineDrawing and adjust to have a 'transparent pattern' too

* Render triangle in dark gray if background is black

* Add ColorChanged event

* Resharper Cleanup

* Xml comments and public/private adjustments

* Explore replacing diagram test with fragile Subview diving

* Migrate ColorPicker_DefaultBoot to sub asserts

* Port other tests

* Replace ColorPicker with new view

* Fix ColorPicker size to match scenarios size assumptions

* Split to separate files and ignore invalid test for ColorPicker

* Ignore also in mouse version of AllViews_Enter_Leave_Events

* Remove bool _updating from ColorPicker

Now instead we are more selective about what we update when and do so deterministically

* Typo fix

* Fix ReSharper bad renames in comments for "Value"

* Refactor to single implementation of 'prompt for color' logic

- Now called PromptForColor
- Shared by LineDrawing and ProgressBarStyles scenarios

* Sum runes instead of Length

* Hide ColorBar and SetValueWithoutRaisingEvent from public API

* Move ColorEventArgs to Drawing folder

* Move ColorModel to Drawing folder

* First try at Dim.Auto for ColorPicker

* Remove explicit width/height setting in most scenarios

* Remove explicit heights

* Fixed build/test issues.
Illustrated test best practice.

* WIP: Start working on test changes and add new options to ColorPickers scenario (Color Model and show textfields).

* Fix for R indicator arrow sometimes 'falling off' the drawn area.

* Add nullable enable

* Test fixes and refactor for avoiding Begin

* Make ColorEventArgs inherit from EventArgs<Color>

* Fix Dispose not being called on bars when switching color models

* Remove 'oldColor' from test now it is not supported

* Add initial stab at ColorPickerStyle.ShowName

* Use AppendAutocomplete for color names

* Implemented resoruce based colorname resolver

* Update GetTextField to support getting the color names field
Change style setting to ShowColorName

* Color name updates when navigating away from the named color

* Restore old color picker as ColorPicker16

* Add test that shows 'Save as' is currently considered a named color ><

* Fix GetW3CColorNames

* Removed dupe colors

* Revert to old color pickers

* Nullability question marks for everyone!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2024-08-22 17:53:04 -06:00
Tig
794ad0bad7 Refactoring again... WIP broke 2024-08-19 19:30:16 -06:00
Tig
29f3550489 merged 2024-08-19 10:12:52 -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
Tig
ef7f88d3b4 OnEnter/Leave -> OnHasFocusChanging/OnHasFocusChanged 2024-08-18 16:58:26 -06:00
Tig
a03e30537c reordered params for consistency 2024-08-18 16:00:35 -06:00
BDisp
9635a434ed Fixes #3667. Null reference in v2 in FindDeepestView. 2024-08-18 15:56:34 +01:00
Tig
2375ee35a9 WIP 2024-08-17 08:49:24 -06:00
Tig
782b090643 builds and runs. But not properly. 2024-08-14 17:45:21 -06:00
Tig
aa4f5228e6 Merged and fixed issues.
Progess on thinking through new design, but not working yet.
2024-08-13 16:41:29 -06:00
Tig
a4d1990e2a Merge branch 'v2_develop' into v2_2491-Arrangement-Overlapped 2024-08-13 15:59:06 -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
1f310fdb74 Fixes #3655 - Fixes rendering issue in Dialog/MessageBox (#3656)
* Fixed rendering issue

* Removed dead code

* Removed dead code
2024-08-10 13:03:15 -06:00
Tig
0bd50c5b93 Fixes #3641. CheckBox.State -> CheckBox.CheckState (#3648)
* State->CheckState.
Toggled->CheckStateChanging.

* Code cleanup & doc fix

* Updated migration guide

* Updated migration guide
2024-08-06 08:39:55 -06:00
Tig
c0fc83bd78 Added Scenario and expanded API 2024-08-05 17:44:48 -06:00
Tig
126120b6dc Merged.
Feature complete
2024-08-05 12:36:13 -06:00
Tig
7ed969f1aa Fix typos 2024-08-05 09:40:07 -06:00
Tig
9865f72801 Merged with v2_develop.
Code cleanup
2024-08-05 09:14:33 -06:00
Tig
cebf1773af Added other types 2024-08-04 17:10:00 -06:00
Tig
4985da476e Hacked in Application.Navigation.Set/GetFocused 2024-08-03 07:21:49 -06:00
Tig
eaa5b01cc5 backported ViewExperiments 2024-08-02 14:20:16 -06:00
Tig
8cbbcd89d2 backported adornmentseditor 2024-08-02 14:19:24 -06:00
Tig
bb16e695fa merged with v2_develop 2024-08-02 11:56:45 -06:00
Tig
5768add496 Merge branch 'v2_develop' into v2-IOrientation 2024-08-02 13:22:59 -04:00
Tig
9a6e09f664 Merge branch 'v2_develop' into v2_2491-Refactor-TopLevel-Application-And-Focus 2024-08-02 13:18:39 -04:00
Tig
25018b714a Changed Shortcuts scenario to use Ctrl-F4 to exit instead of Ctrl-Z as that's used for suspend on linux/mac 2024-08-02 11:10:07 -06:00
Tig
4226d8172e Discovered serious issues with how HasFocus, OnEnter/OnLeave, etc... work in some edge cases.
This will require re-visiting the design at a deep level and fixing some long-standing but ignored issues such as how OnEnter/OnLeave don't follow proper cancelation design. Also, there's a need for keeping track of the old focus state of a tree of subviews when that tree loses focus; FocusDireciton is a hack that causes tons of confusion.
2024-08-01 06:08:48 -06:00
Tig
469b3572d5 Revamped Scenario 2024-07-31 10:33:37 -04:00