Mike Walters
3324216456
Move zooming to toolbar
2017-12-24 19:16:09 +00:00
Josh Blum
3f5e373ee4
replace off_t with size_t to match system pointer size
...
I was having an issue with size of off_t on a multi-gigabit file.
This may have been related to long being a signed 32 bits on MSVC.
But I think there is good reason to use size_t here in general:
https://stackoverflow.com/questions/10634629/what-are-the-usage-differences-between-size-t-and-off-t
2017-11-25 16:06:08 -06:00
Miklos Maroti
67428d921d
fixes this zooming bug: when you try to zoom in/out after the middle point
...
of the sample buffer the display jumps to the end of the buffer
2017-08-22 12:53:03 -05:00
Mike Walters
6c10aea96e
Make sure cursors/tuner interactions block canvas dragging
...
Previously this was reordered in 87d52d5274
to prevent an issue where the cursors/tuner were blocking normal scrollbar
events but this doesn't seem to be an issue in QGraphicsView so its
events can be handled last.
2017-04-14 20:36:08 +01:00
Mike Walters
f4e98a389b
Switch plotview to QGraphicsView for canvas dragging
2017-04-14 20:36:08 +01:00
Mike Walters
509c4ea320
Rename samplesPerLine -> samplesPerColumn
2017-04-14 20:36:08 +01:00
Mike Walters
5678a4cb63
Factor out calculations between samples/columns
2017-04-14 20:36:08 +01:00
Mike Walters
ca7ea61901
Rework plotview to scroll by column not by sample
2017-04-14 20:05:36 +01:00
Kevin Mehall
90d798a93b
Make scroll wheel zoom less jumpy on fractional-scroll devices like touchpads
2017-02-04 10:24:02 -08:00
Kevin Mehall
705600ef50
Make ctrl+scroll zoom in and out of cursor point, rather than center
2017-02-04 09:56:07 -08:00
Mike Walters
87d52d5274
Handle zoom events before parent to prevent normal scrolling
2017-02-03 15:21:10 +00:00
Mike Walters
ee489b5b32
Clarify current symbol extraction behaviour
2017-02-03 14:44:53 +00:00
Mike Walters
78c6e864ad
Display file-type when exporting samples
2017-02-03 14:21:14 +00:00
Mike Walters
54f951bf18
Don't export filtered samples when the filter isn't visible
2017-02-02 17:51:47 +00:00
Mike Walters
909e3ed438
Stop eventFilter stealing mouse events from scrollbars
...
Switch from eventFilter to viewportEvent and call parent viewportEvent before
processing our own events
2017-02-02 16:11:29 +00:00
Mike Walters
d512d4a5a7
Allow removing plots
2017-02-01 14:29:05 +00:00
Mike Walters
112251b585
Process cursor mouse events last
2017-01-29 01:06:47 +00:00
Mike Walters
ba791971b9
Use 'Save' dialog for exporting samples
2017-01-24 01:09:57 +00:00
Eoin Mcloughlin
b35fcd7fc7
Ability to export raw samples from other plots
2017-01-18 14:47:58 +00:00
Eoin Mcloughlin
6e83051204
Better fix for export infinite loop
2016-12-06 21:46:53 +00:00
Eoin Mcloughlin
9c0359fd40
Fix infinite loop when exporitng samples
2016-12-06 21:43:09 +00:00
Eoin Mcloughlin
b2068f5f44
Remove dead code. Fix some compiler warnings.
2016-12-06 21:43:00 +00:00
Mike
d747e9daff
Check for reasonable duration in paintTimeScale
...
Fixes #80
2016-09-17 16:48:29 +01:00
Mike
46a5d27a3e
Fix mac build
2016-09-15 19:25:46 +01:00
Mike
e054965690
Set better bounds on viewRange
...
This works towards fixing the glitchiness on small files.
Adds a cap on viewRange maximum.
Prevent horiz. scrollbar maximum going negative
ref #89
2016-09-15 19:14:19 +01:00
schneider
ed31017f2c
feat(spectrogramplot): Draw a frequency scale
2016-09-14 00:45:58 +02:00
schneider
2f5f012929
fix(plotview): check return value of getSamples for export
2016-09-01 22:45:07 +01:00
schneider
d3754785b0
feat(plotview): Recommend a decimation based on the tuner BW
2016-08-31 22:33:48 +01:00
schneider
4833c8938a
fix(plotviw): Do not crash on large full file exports
...
This approach leads to some noise when running the low-pass again. This
needs to be fixed in SampleBuffer::getSamples()
2016-08-31 22:33:45 +01:00
schneider
3b794fee7e
feat(export): Initial sample export support
2016-08-30 09:04:40 +02:00
Mike Walters
ec7c42a38c
Display drag/move mouse pointer when dragging cursors
...
Enables mouse tracking on PlotView to get mouse move events
even when not dragging.
Passes through Leave events to handle the case where the cursor
is near the edge of the widget and the mouse leaves the widget
without generating a mouse move event that isn't on the cursor.
Passes in mouse cursor shape to Cursor to define whether it should
be a horizontal resize, vertical resize or move (resize all).
Qt handles the case where the cursor is dragged off screen and
does not generate a Leave event while draggin (<3 Qt).
2016-08-12 15:42:24 +01:00
Mike Walters
172ddee5c4
Only pass mouse events to cursors if they're enabled
2016-08-12 15:41:28 +01:00
Mike
b31d6a03ad
Fix times/rates not changing when sample rate changes
2016-08-09 23:09:23 +01:00
Tobias Schneider
b19fef7585
refact(plotview): Move the time scale into PlotView
2016-08-09 23:00:43 +01:00
droelfdroelf
dd461bacb7
added time scale toggle checkbox
...
Conflicts:
mainwindow.cpp
spectrogram.cpp
spectrogram.h
spectrogramcontrols.cpp
spectrogramcontrols.h
2016-08-05 11:05:02 +01:00
Tobias Schneider
549d6fa679
feat(spectrogramplot): Draw a time axis at the top
2016-08-05 10:28:53 +01:00
Mike Walters
90833b5d43
Remove GR
2016-06-11 13:48:26 +01:00
Mike Walters
ecdc01986b
cursors: Move cursors to keep a constant symbol rate when changing symbol count
2016-05-02 01:45:28 +01:00
Mike Walters
8c2394df77
cursors: Only emit cursorsMoved after dragging (not on view updates)
...
This fixes #59 since selectedSamples will now only change when
cursors are dragged.
2016-05-02 01:45:28 +01:00
Mike
748dc33c22
plotview: Fix symbol extraction
2016-04-30 22:57:19 +01:00
Mike
f74e847950
plotview: Basic symbol extraction
...
ref #63
2016-04-23 14:08:27 +01:00
Mike
d3217a3178
plotview: Move derived plot actions to sub-menu
2016-04-20 13:39:25 +01:00
Mike Walters
d2d17ebd0c
plotview: Remove hardcoded default plots
2016-04-18 22:37:39 +01:00
Mike Walters
bdadbef3e6
plots: Add plot names
2016-04-18 22:37:39 +01:00
Mike Walters
ede1a547f4
plotview: Use selected plot when right clicking
2016-04-18 22:37:39 +01:00
Mike Walters
f51921491c
plotview: Context menu for adding plots
2016-04-18 22:37:37 +01:00
Mike Walters
18de7ff82a
plots: Push plot definition out of PlotView
2016-04-16 16:35:06 +01:00
Mike Walters
9d5bf3631d
tuner: Move Tuner intro SpectrogramPlot
2016-04-07 22:51:16 +01:00
Mike Walters
ec45e0f6da
plot: Add sample output interface
2016-04-07 22:11:34 +01:00
Mike Walters
2102e34589
plotview: Drop eventFilters and just pass mouse events to things
2016-04-04 00:04:10 +01:00