Allan Bazinet
3925440507
Ensure bins per pixel sanity in manipulator
...
Clamp the low bound of the bins per pixel value to 1 in the manipulator, not later on, by which time it’s already too late.
2024-09-12 13:12:44 -07:00
Allan Bazinet
91cf199083
Consolidate paint code
2024-09-12 13:04:50 -07:00
Allan Bazinet
b6ca511090
Fill pixmap before allocating painter
...
The Qt docs indicate that filling a pixmap is UB while a painter is active; do the fill before attaching the painter.
2024-09-12 12:40:59 -07:00
Allan Bazinet
5fc481d719
Draw major ticks and labels in same pass
2024-09-12 12:37:10 -07:00
Allan Bazinet
bfc3e07789
Use general form of round up equation
2024-09-12 11:55:13 -07:00
Allan Bazinet
17b1809d02
Eliminate unused static ktop variable
2024-09-10 23:25:45 -07:00
Allan Bazinet
3becd07fdc
Eliminate LineBuf2 static array
...
Never written do, and read only for a mode we don’t ever use. Buh-bye.
2024-09-10 06:55:06 -07:00
Allan Bazinet
e18b48597d
Lint
2024-09-10 06:36:41 -07:00
Allan Bazinet
121e380220
Simplify scale drawing
2024-09-10 06:26:15 -07:00
Allan Bazinet
f54ff437ec
Lose unused pen color
2024-09-09 21:40:57 -07:00
Allan Bazinet
0f577a572f
Simplify band plan color drawing
2024-09-09 21:40:04 -07:00
Allan Bazinet
ffe02563cc
Add dial bottom
2024-09-09 14:29:22 -07:00
Allan Bazinet
66d7487b59
Further simplify dial overlay drawing
2024-09-09 11:58:06 -07:00
Allan Bazinet
19b443bce9
Set grid drawing pen only once
2024-09-09 11:40:50 -07:00
Allan Bazinet
e35f43a39e
Simplify dial overlay drawing
2024-09-09 11:34:32 -07:00
Allan Bazinet
a90c70f881
Dont create strings that we’re not going to use
2024-09-09 10:43:49 -07:00
Allan Bazinet
5222916bb8
Lose m_xOffset
...
This is only used as a scratch value in scale drawing, and should not be an instance variable.
2024-09-09 10:34:34 -07:00
Allan Bazinet
37d6afcb6d
Lose m_HDivText
...
This was pretty much just utter madness, and I think that losing 483 default-constructed strings is just a heck of a good idea. Kinda dying to know where ‘483’ came from….
2024-09-09 10:29:04 -07:00
Allan Bazinet
61dab15843
Remove m_hdivs usage; it was weird, just weird
2024-09-09 10:11:31 -07:00
Allan Bazinet
69980a3885
Extract overlay scale drawing function
2024-09-09 07:50:19 -07:00
Allan Bazinet
53f2f544ea
Extract dial and hover overlay drawing functions
2024-09-09 07:35:27 -07:00
Allan Bazinet
0998f831f9
Extract filter overlay drawing function
2024-09-09 07:10:00 -07:00
Allan Bazinet
14c2c2378d
Make DrawOverlay() private
...
Drawing the overlay is an implementation detail of the plotter; remove access and move manipulator logic from wide graph. Remove write-only instance variables in wide graph class.
2024-09-09 06:12:37 -07:00
Allan Bazinet
c94b3c2118
Add TODO
2024-09-09 05:43:55 -07:00
Allan Bazinet
39e8d1ccbf
Convert translators to switch tables
2024-09-09 05:34:41 -07:00
Allan Bazinet
7aa33ae066
Revert premature commit of waterfall high-dpi fix
2024-09-08 22:53:41 -07:00
Allan Bazinet
1b53b41ff3
Eliminate unused pens
2024-09-08 21:45:55 -07:00
Allan Bazinet
a21b8919a7
Use string view for WSPR check
2024-09-08 21:37:27 -07:00
Allan Bazinet
95fd843cb4
Extract bw function
2024-09-08 21:28:23 -07:00
Allan Bazinet
224276697b
Lint
2024-09-08 20:13:33 -07:00
Allan Bazinet
b11dc17042
Address variable shadowing issues
2024-09-08 20:09:29 -07:00
Allan Bazinet
89a7c294dc
Move y usage to local scope
2024-09-08 20:01:56 -07:00
Allan Bazinet
c9c5ee1a37
Ongoing lint fixes
2024-09-08 19:54:14 -07:00
Allan Bazinet
7c6d89e048
Simplify pen usage, const values
2024-09-08 17:53:35 -07:00
Allan Bazinet
29befcb6ee
Move rect to point of use
2024-09-08 17:05:02 -07:00
Allan Bazinet
e5c4743850
Extract conversion functions to namespace
2024-09-08 17:00:48 -07:00
Allan Bazinet
703a1743db
Normalize breadth / plotwidth
2024-09-08 15:27:12 -07:00
Allan Bazinet
d181934bd9
Use m_w, not waterfall width
2024-09-08 14:37:43 -07:00
Allan Bazinet
11caf5c170
Move constant variables to point of use
2024-09-08 14:32:15 -07:00
Allan Bazinet
02fa5ea8cd
Simplfy geometry calculations
2024-09-08 14:17:32 -07:00
Allan Bazinet
5846b5290e
Lint
2024-09-08 12:47:20 -07:00
Allan Bazinet
b129fb0f47
Lint
2024-09-08 12:43:19 -07:00
Allan Bazinet
ecf1a40136
Use default destructor
2024-09-08 12:43:10 -07:00
Allan Bazinet
b5e621b2f5
Simplify geometric calculations
2024-09-08 12:40:08 -07:00
Allan Bazinet
3db1b9c16e
Lint
2024-09-08 12:08:52 -07:00
Allan Bazinet
1b30ab85db
Lint
2024-09-08 11:50:59 -07:00
Allan Bazinet
f8caea0c4e
Lint
2024-09-08 10:22:03 -07:00
Allan Bazinet
6b3641aaea
Lint
2024-09-08 10:19:55 -07:00
Allan Bazinet
241edb63dd
Lint
2024-09-08 10:00:57 -07:00
Allan Bazinet
2a47243219
Plotter cleanup pass
...
Extract inline functions to header-only; remove dead code and dead data members
2024-09-08 09:45:56 -07:00