12 Commits

Author SHA1 Message Date
Flössie
64382928c1 Fix -Wodr in GCC LTO builds
I've tested GCC 10 and 11, which exhibit the problem, and 8, which
doesn't.
2021-07-05 13:06:33 +02:00
Lawrence Lee
f17eb2b504 Merge branch 'dev' into perspective-ux 2021-05-31 11:53:50 -07:00
Lawrence Lee
e7e6dd1cb5 Clean up rtgui perspective.* and controllines.*
Change size_t to std::size_t, remove void from function parameters, use
constants to represent the minimum required number of control lines, and
change const auto & to const auto.
2021-05-31 11:20:01 -07:00
Lawrence Lee
2c1e6a8ca1 Make control lines buttons react to line counts
Set the "apply" and "delete all" button sensitivity based on the number
of control lines. Add extra tooltip text to the apply button when
editing and there is not enough lines. The text explains there must be
enough vertical or horizontal control lines.
2021-05-30 18:02:29 -07:00
Lawrence Lee
5f88cf240e Use enums for on-preview geometry 2021-05-30 11:51:49 -07:00
Lawrence Lee
56e634da81 Improve control lines dragging behavior
Fix control line not updating when dragging and allow dragging when
starting with the mouse cursor outside the preview image area.
2021-05-23 21:45:23 -07:00
Lawrence Lee
051d69331f Fix control line and spot removal spot highlight
Return the geometry color to normal (white) when exiting edit mode.
2021-05-23 12:10:40 -07:00
Lawrence Lee
3ade11c970 Leave control lines in good state on commit
When exiting perspective control line editing mode while dragging a
control line, set the geometry and control line state to the appropriate
state corresponding to when lines are not being dragged.
2021-05-22 18:17:30 -07:00
Lawrence Lee
1b7ddf2b31 Fix perspective and local adjustments cursor icons
Correctly override the getCursor virtual function.
2021-05-14 22:20:25 -07:00
Lawrence Lee
2804480585 Change cursors used in control line edit mode
Panning cursor is the open hand icon and draw cursor is the crosshair
icon.
2020-07-20 16:55:14 -07:00
Lawrence Lee
ef405eeb1d Apply astyle to rtgui/controllines.* 2020-07-12 15:44:58 -07:00
Lawrence Lee
06caf40598 Move control lines code to new files 2020-07-12 15:19:10 -07:00