Commit Graph

88 Commits

Author SHA1 Message Date
Tiago Conceição 14d21f53e7 Merge pull request #45 from byancey/master
Fix inconsistencies on pixel edit apply confirm dialog
2020-09-06 21:39:24 +01:00
Tiago Conceição 40b9cb9429 Futher toolwindow implementation 2020-09-06 21:38:19 +01:00
Bryce Yancey 7a54aa3493 Fix inconsistencies on pixel edit apply confirm dialog
The same confirmation dialog in the pixel edit mode is used for both
applying operations, and exiting pixel edit mode.

As a result, the text promt feels a little out of context for the apply
case, and this also results in pixel history getting cleard if you
choose "No" on this dialog.  This makes sense if you are exiging pixel
edit mode, but not if you just hit apply and changed your mind.

Added a seperate dialog for the Apply case that only has the options
"Yes/No".  Yes applies the changes, No behaves like Cancel.

Also added a new setting in the settings dialog so that pixel editor
can be configured to exit after each apply operation.  I found I was
applying operations and then going off and doing other things without
realizing I was still in pixel edit mode, so thought this would be
a good option to have.
2020-09-06 14:22:17 -06:00
Tiago Conceição 22e4eacee6 Merge pull request #44 from byancey/master
Swap Location of Zoom out to Fit & Autozoom options
2020-09-06 18:54:19 +01:00
Tiago Conceição 57e584b066 Fixes 2020-09-06 18:52:53 +01:00
Bryce Yancey 2c9dd203d5 Swap Location of Zoom out to Fit & Autozoom options
After removal of the "Zoom out Large Issues" option in the settings
checkbox, I was just glancing at the settings and thought the
Zoom group would look bettter with the dropdowns for
Zoom In and Zoom Out at the top, and the checkbox
option to enable zoom on single click at the bottom.

Very minor adjustment, so take it or leave it, either way is fine,
but I went ahead and changed it to see how it looked, liked it,
so figured I'd submit.
2020-09-06 11:18:11 -06:00
Tiago Conceição 97733fae1c Improvements to repair tool 2020-09-06 15:49:27 +01:00
Bryce Yancey 25c9416353 Streamline Layer Repair Dialog
Detailed Descripton and warning text has been moved from main dialog into tooltips.  It's
usefull information for new users, but not needed each time repair is run.

Less frequently used settings for gap and noise removal
itterations have been moved to and advanced settings group that
is hidden by default, and can be enabled if changes in those settings is
desired.  For many users, those advanced settings can be left on default
and never adjusted.
2020-09-06 00:26:55 -06:00
Tiago Conceição ec34f48bd7 Remove auto zoom to merge with lockzoomlevel 2020-09-06 04:56:37 +01:00
Tiago Conceição e698c1e52b Corrections 2020-09-06 03:51:39 +01:00
Tiago Conceição 66df24de7f Merge pull request #41 from byancey/master
Settings Dialog Refresh
2020-09-05 23:14:32 +01:00
Tiago Conceição 2703bab0cb Create universal tool window 2020-09-05 23:10:48 +01:00
Bryce Yancey b25e6dec3a Settings Dialog Refresh
-Adjusted wording for clarity across all tabs
-Adjusted capitilzation for consistency
-Color buttons are now 24x24 instead of 32x32.
-Misc adjustments to spacing and layouts.
-Replaced ZoomToFitiPringBounds checkbox with Combobox and mapped index to existing
config item.
-Added color selection for crosshair.
2020-09-05 16:05:02 -06:00
Tiago Conceição 4bbef72acb Z Issues Tracker cleanup 2020-09-05 19:37:45 +01:00
Tiago Conceição 7a8b786f44 Cleanup fixes and import layer GUI preparation 2020-09-05 18:01:01 +01:00
Tiago Conceição ac082b2232 Fix issue selection from layer preview and remove extra showlayer calls 2020-09-05 07:16:07 +01:00
Tiago Conceição 439cf764be Merge pull request #35 from byancey/master
Fix Issue List update on Layer Preview Select
2020-09-05 07:03:54 +01:00
Tiago Conceição 5fdac82dd6 Bene4 Mono and Layer Issue Z Tracker
* (Add) Settings & Issues: Enable or disable Empty Layers
* (Add) PrusaSlicer Printer: Nova Bene4 Mono
* (Add) CWS: Support the GRAY2RGB and RBG2GRAY encoding for Bene Mono
* (Add) Layer issue Z map paired with layer navigation tracker bar
* (Change) Shortcuts: + and - to go up and down on layers were change to W and S keys. Reason: + and - are bound to zoom and can lead to problems
* (Upgrade) OpenCV from 4.2 to 4.3
* (Fix) CWS: Add missing Platform X,Y,Z size when converting from SL1
* (Fix) CWS: Invert XY resolution when converting from SL1
2020-09-05 06:56:20 +01:00
Bryce Yancey 0aacb09ca2 Fix Issue List update on Layer Preview Select
When selecting issues using SHIFT in the layer preview,
the selected issue doesn't update in the issue list until
after shift is released.  This fix forces an immediate
refresh of the issue list so that it updates as you click,
rather than after SHIFT is released.

Also fixed some commented code for for clearing crosshairs
before zoom so that it compiles when uncommented...but code
is still commented out in the commit.
2020-09-04 23:04:54 -06:00
Tiago Conceição 855aa24361 Fix touchingbounds calculation 2020-09-04 02:20:01 +01:00
Tiago Conceição def43177bb Reset settings triggers a upgrade from previous version when relaunch UVtools and bring that same values 2020-09-03 23:43:44 +01:00
Bryce Yancey fba2116712 Remove extraneouse AutoZoomBackIndex and related functions
Since we no longer autozoom by zooming out from max zoom,
we can work directly with actual ZoomLevels rather than
maintaining a backindex for the ZoomLevels array.  The
backindex and it's associated functions have been removed.
2020-09-03 15:52:13 -06:00
Tiago Conceição 448aedc089 Update FrmMutationPixelDimming.cs 2020-09-03 22:30:51 +01:00
Tiago Conceição 4b855b517d Mutator - Pixel Dimming: Dims only the borders 2020-09-03 22:18:44 +01:00
Tiago Conceição 788c03cb9b Merge pull request #32 from byancey/master
Limit mouseHoldTimer to middle mouse button
2020-09-03 21:15:36 +01:00
Tiago Conceição 6342794d5d More use of transposed function 2020-09-03 21:14:50 +01:00
Bryce Yancey ad28b925ca Limit mouseHold timer to middle button
Tooltip is also updated
2020-09-03 13:59:23 -06:00
Bryce Yancey 117c419c37 Change Zoom Level Lock to middle mouse click-hold
Locking the auto-zoom level is now tied to click-hold of the
middle mouse button for 1 seconds rather than double-click
on middle mouse button.

This helps with accidental scrolling, as the middles mouse
button can sometimes be difficult to use.  Press-hold is
less error prone in this respect than double-click.
2020-09-03 13:46:41 -06:00
Tiago Conceição c574777f08 Add auto zoom 2020-09-03 20:40:59 +01:00
Bryce Yancey f5a110c717 Dispaly hand cursor in select mode
Cursor is changed to hand on SHIFT key, and pan mode
is also temporarily disabled.  Releasing SHIFT restores
default behavior.
2020-09-03 12:21:39 -06:00
Tiago Conceição 5582b30c92 Partial island detection wasn't checking next layer as it should 2020-09-03 19:13:15 +01:00
Tiago Conceição 9fee2b34a3 Last selected tab fix 2020-09-03 18:57:25 +01:00
Tiago Conceição 1c98036ea7 Fix issue selection with SHIFT 2020-09-03 03:36:08 +01:00
Bryce Yancey 6f5850d5bb Select issue from Layer Preview
Double-clicking or Single-Clicking on an issue
in the layer preview window will select the issue
and bring it's entry in the issues list into view.
2020-09-02 19:36:45 -06:00
Tiago Conceição 3da9a68611 Update FrmMain.cs 2020-09-03 02:07:46 +01:00
Tiago Conceição 605a881645 Allow show crosshairs on every issue rather than selected only 2020-09-03 01:35:52 +01:00
Tiago Conceição 9461bc1c04 Add configurable crosshair lines 2020-09-02 23:39:45 +01:00
Tiago Conceição 739eca77fe Fix doubleclick 2020-09-02 20:44:39 +01:00
Tiago Conceição 9c4ac38999 Refactoring 2020-09-02 20:01:11 +01:00
Tiago Conceição 5e97ac4ccf Improve zoom calls 2020-09-02 18:08:00 +01:00
Bryce Yancey 67a0d7b9e7 Additional checks to limit ShowLayer during zoom
Also renamed AutoZoomLevel to AutoZoomBackIndex, and
added new helper functions to return the actual AutoZoomLevel
and CrossoverFadeZoomLevels.
2020-09-02 03:56:39 -06:00
Tiago Conceição 1d51fa26b1 Extra optimizations 2020-09-02 04:30:53 +01:00
Tiago Conceição 3e9c0f02a0 Move condition 2020-09-02 03:26:33 +01:00
Tiago Conceição d4742891e7 Fix useless ShowLayer calls 2020-09-02 03:21:44 +01:00
Tiago Conceição 1a81cc2375 Fix a zoom supression 2020-09-02 02:13:37 +01:00
Bryce Yancey 85cae2df65 Optimize showLayer call for Islands and Bounding
Select color once per issue vs. once per pixel.  On large
Islands, this reduces layer rendering time by about an
order of magnitude or more.
2020-09-01 18:58:52 -06:00
Tiago Conceição 5d77db994a Supress extra zoom events 2020-09-02 01:33:40 +01:00
Tiago Conceição cce956b426 When next layer or previous layer button got disabled while pressing it get stuck
Also for next/prev issues buttons
2020-09-02 00:29:34 +01:00
Bryce Yancey 16b8bd8a29 Issue Highlighting and Crosshair Support
This commit add support for highlighting of indidivual issues,
crosshair support, and changes to mouse based navigation
to make those added features a bit more useful.  Here's a
quick summary of what is included in this commit:

-Issue Highlighting
-Edit Pixel Operation Highlighting
-Crosshair Support
-Configurable auto-zoom level support
-Mouse-Based Navigation updates for the issue list, layer preview
 and pixel edit mode.
2020-09-01 00:20:09 -06:00
Tiago Conceição 4d8da3e8ba "Rebuild GCode" button 2020-09-01 02:39:38 +01:00