Commit graph

174 commits

Author SHA1 Message Date
Allan Bazinet
632bb48a12 Improve dial display efficiency
Optimize drawing of dial pixmaps and dramatically reduce their memory footprint.
2024-11-07 13:10:26 -08:00
Allan Bazinet
15f385e272 Improve decode line drawing text efficiencty 2024-11-07 08:19:31 -08:00
Allan Bazinet
83ff95696e Handle high-DPI displays in plotter 2024-11-07 07:31:29 -08:00
Allan Bazinet
0265d661c4 Cover scale with filter overlay 2024-11-07 07:00:04 -08:00
Allan Bazinet
71e1c810ed Normalize dial / hover drawing 2024-11-07 06:38:20 -08:00
Allan Bazinet
70553090de Document spectrum drawing 2024-10-31 07:08:48 -07:00
Allan Bazinet
46374408bf Simplify spectrum drawing 2024-10-31 06:53:30 -07:00
Allan Bazinet
a559d511f9 Use scoped value for replot 2024-10-31 06:26:44 -07:00
Allan Bazinet
365f045979 Eliminate color table global 2024-10-26 07:02:01 -07:00
Allan Bazinet
e8fccb0dc7 fractionalPart could be constexpr if std::modf is 2024-10-26 06:35:35 -07:00
Allan Bazinet
df8deb5d0d Clean up x0 calculation 2024-10-26 06:31:47 -07:00
Allan Bazinet
c98cefc500 Precompute frequency per pixel 2024-10-26 04:30:16 -07:00
Allan Bazinet
cd4041b7c6 Use common painter variable names 2024-10-25 20:41:55 -07:00
Allan Bazinet
c0cc4464a7 Plotter refactoring and tuning 2024-10-25 13:32:16 -07:00
Allan Bazinet
01ad3ba804 Use float precision specifiers 2024-10-24 21:31:34 -07:00
Allan Bazinet
e802e27f02 Use float precision for dial frequency 2024-10-24 21:25:49 -07:00
Allan Bazinet
e24a008fb4 Break out submode overlay drawing 2024-10-24 17:42:16 -07:00
Allan Bazinet
e18ac68656 Use precomputed m_fSpan 2024-10-24 16:42:20 -07:00
Allan Bazinet
a7aaaedb97 Simplified dial frequency drawing 2024-10-24 12:43:53 -07:00
Allan Bazinet
47b7da49f6 Use consistent value in mouse click freq change 2024-10-24 12:38:58 -07:00
Allan Bazinet
85844ee67b Simplify sub-band drawing 2024-10-24 07:16:12 -07:00
Allan Bazinet
cf878ba7a1 Avoid height overdraw 2024-10-24 05:18:24 -07:00
Allan Bazinet
1113106926 Dial frequency brush fill
Bit of a visual experiment, make the dial frequency component appear a bit more above the waterfall.
2024-10-23 17:04:36 -07:00
Allan Bazinet
40f87142b9 Normalize instance variable names 2024-10-20 21:25:26 -07:00
Allan Bazinet
f4e2a330cd Tune mouse events 2024-10-20 21:20:32 -07:00
Allan Bazinet
0961695fae Eliminate changeFreq SIGNAL and SLOT macro usage 2024-10-20 14:23:10 -07:00
Allan Bazinet
41eddc6e2e Collapse TX and RX frequencies
Separate TX and RX frequencies is a vestige of WSJTX; in JS8Call, there’s really only a single frequency, which is our offset in hertz into the dial frequency. To date the two separate frequencies have had to have been kept in sync at all times; this change removes the distinction and instead uses a single frequency.
2024-10-20 13:54:14 -07:00
Allan Bazinet
4238380242 Graph mode is always FT8
Our widegraph and plotter are always going to be displaying FT8 mode; remove logic to handle multiple modes until such time as they become relevant again, if ever.
2024-10-19 15:16:30 -07:00
Allan Bazinet
466c6415c0 NSPS and FFT_BIN_WIDTH constants
The number of samples per second is fixed and unchanging at 6912, and is therefore a constant. Similarly, since FFT bin width is derived from NSPS, it’s also a constant.
2024-10-19 15:10:31 -07:00
Allan Bazinet
82fe088231 Start cleanup of size usage 2024-10-19 13:49:37 -07:00
Allan Bazinet
f139f32757 CPlotter instance variable cleanup 2024-10-19 13:44:02 -07:00
Allan Bazinet
e8fe450aec Use in-class initialization 2024-10-19 13:24:51 -07:00
Allan Bazinet
70ae21338e Use in-class initialization 2024-10-19 13:23:28 -07:00
Allan Bazinet
d8c73c5230 Rename and init scale OK instance variable 2024-10-19 13:20:53 -07:00
Allan Bazinet
c431a4e6c8 Rename and init replot instance variable 2024-10-19 13:18:33 -07:00
Allan Bazinet
6bbf589a24 Convert flatten usage to boolean
This argument was previously integer due to potential use of a reference; use of a reference is now impossible, so it’s just going to be either true or false.
2024-10-19 13:14:18 -07:00
Allan Bazinet
0bc14ecd5d Pass frequency per division as argument 2024-10-19 12:50:43 -07:00
Allan Bazinet
00ac32ffe2 Dead code removal, FMax()
Completely write-only, never referenced.
2024-10-19 11:39:21 -07:00
Allan Bazinet
7571f9e927 Dead code removal m_fMin
This instance variable is completely write-only.
2024-10-19 11:34:43 -07:00
Allan Bazinet
af7cff422c Dead code removal, graph cbRef
Widget that would drive this is always hidden and always false; can never happen.
2024-10-19 11:30:52 -07:00
Allan Bazinet
b683b86977 Dead code removal, m_Running 2024-10-19 09:39:31 -07:00
Allan Bazinet
966ab09c52 Formatting 2024-10-19 09:19:01 -07:00
Allan Bazinet
f06ec09ffc Graph / plot class cleanup
Standardize nomenclature and function names
2024-10-19 09:14:10 -07:00
Allan Bazinet
ce2fb48a60 Plotter cleanup
DRAW_FREQ_OVERALY code is now handled by a tooltip. Eliminate unused includes; use scope guard for paintEvent reentrancy exclusion.
2024-10-19 08:46:49 -07:00
Allan Bazinet
0b3fed5fb7 Use auto return type 2024-10-19 08:23:24 -07:00
Allan Bazinet
401bcde58f Dead code removal, m_set_freq_action 2024-10-18 21:15:43 -07:00
Allan Bazinet
bf18c6a974 Dead code removal, freezeDecode
Old function pertaining only to WSJTX FST4 decoding; no longer relevant.
2024-10-18 19:10:44 -07:00
Allan Bazinet
f6c4c8197f Dead code removal, graph turbo 2024-10-11 08:15:35 -07:00
Allan Bazinet
955da2cdd7 Remove unused fox-related code 2024-10-09 22:05:49 -07:00
Allan Bazinet
aac9c409a0 Move to use of common submode bandwidth function 2024-10-08 06:04:28 -07:00