461 Commits

Author SHA1 Message Date
Mike Walters
7ccbbac774 Move sample rate to toolbar 2017-12-24 19:16:09 +00:00
Mike Walters
c1067c6e4f Move cursor toggling to toolbar 2017-12-24 19:16:09 +00:00
Mike Walters
3324216456 Move zooming to toolbar 2017-12-24 19:16:09 +00:00
Mike Walters
f786b12213 Move file opening to toolbar 2017-12-24 19:16:09 +00:00
Mike Walters
9c2a8e96a3 Fix OSX travis build
fftw now pulls in gcc (I think for fortran bindings).
This conflicts with oclint in the default travis image,
so uninstall it first.

https://github.com/travis-ci/travis-ci/issues/8826
2017-12-24 19:00:38 +00:00
Mike Walters
ca2a52dd53 Don't try to draw an empty traceplot
fixes #102
2017-12-24 15:32:31 +00:00
Mike Walters
0e86f24557 Merge pull request #139 from pothosware/master
MSVC tweaks, large files, non-console usage, no mman dependency
2017-11-28 18:07:07 +00:00
Josh Blum
04b989142f added QMessageBox dialog on failure to open file
This was previously an uncaught exception.
When a file cannot be opened, this presents a pop-up dialog.
Otherwise the error could be lost if there is no console,
or may not be presented when the stack unwinds due to uncaught exception.
2017-11-25 16:26:48 -06:00
Josh Blum
fd2d3e652b support win32 application (graphical no console)
By default build a non-console application,
or specify -DBUILD_WIN32=FALSE to build console.
This enables inspectrum to be opened from a shortcut without
getting both a gui window and a cmd prompt.
2017-11-25 16:18:30 -06: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
Josh Blum
40890e46ab Remove mmap dependencies with QFile
QFile implements cross platform file mapping and removes this dependency entirely.
Also simplifies the file size and error to string handling logic.
2017-11-25 15:54:13 -06:00
Mike Walters
69e8c1410c Merge pull request #137 from pothosware/master
Building under MSVC and FindFFTW fixes
2017-11-23 18:52:37 +00:00
Josh Blum
665969474b move new definitions and mman include into msvc specific if/else
The extra include MMAN_INCLUDE_DIR and the _LIBCPP_COMPLEX
seemed to be a little sensitive with clang.
Relegate these additions to MSVC only clause
2017-11-23 12:38:08 -06:00
Josh Blum
5daf134c17 changes to build under msvc and fftw find package
* define _LIBCPP_COMPLEX to typedef std::complex
* define _USE_MATH_DEFINES to enable M_PI and others
* provide MMAN_INCLUDE_DIR in sys/mman.h
  (we need to be able to set this manually)
* switch to find_package for FFTW,
  but added pkg-config support if thats needed,
  and fixed FFTW_LIBRARIES names to fftw3f
2017-11-23 01:57:29 -06:00
Josh Blum
58e9617734 added missing include for std::bind usage 2017-11-23 01:14:27 -06:00
Mike Walters
75b5bc6b77 Merge pull request #135 from argilo/cu8-like-rtl-sdr
Use a DC offset of 127.4 to match the RTL-SDR.
2017-11-05 22:04:20 +00:00
Clayton Smith
e31be08f04 Use a DC offset of 127.4 to match the RTL-SDR. 2017-10-31 08:20:53 -04:00
Mike Walters
4e6759db21 Merge pull request #131 from mmaroti/zoombug
fixes a zooming bug
2017-10-14 02:44:35 +01:00
Mike Walters
962dadb57a Merge pull request #132 from EdwardBetts/spelling
correct spelling mistake
2017-10-14 01:39:59 +01:00
Mike Walters
9f52e98357 Dirty hack to fix #89 2017-10-14 00:49:03 +01:00
Edward Betts
ad38b0756c correct spelling mistake 2017-09-01 18:50:45 +01: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
a89d1337ef Merge pull request #129 from bkchr/qt59_fix
Qt requires that all used modules are set as required in CMake
2017-05-31 15:28:44 +01:00
Bastian Köcher
94f2c06742 Qt requires that all used modules are set as required in CMake 2017-05-31 15:23:06 +02:00
Mike Walters
5f0b7c2d38 Prevent tuner deviation becoming zero 2017-04-15 12:49:24 +01:00
Mike Walters
498e7f3c3b Merge branch 'battlesnake-master' 2017-04-14 21:42:54 +01:00
Mark K Cowan
35684e4dc5 Widened FFT size range 2017-04-14 21:42:46 +01: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
Mike Walters
d8d1969a4c Merge branch 'kevinmehall-zoom' 2017-02-18 17:47:53 +00: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 v0.2 2017-02-03 15:21:10 +00:00
Mike Walters
62eb5c991d Add more pixmap cache 2017-02-03 15:21:02 +00:00
Mike Walters
8500c01b07 README tweak 2017-02-03 15:09:20 +00:00
Mike Walters
ee489b5b32 Clarify current symbol extraction behaviour 2017-02-03 14:44:53 +00:00
Mike Walters
a61683c9c9 Update README 2017-02-03 14:42:12 +00:00
Mike Walters
d42dc5737c Phase plot 2017-02-03 14:36:31 +00:00
Mike Walters
78c6e864ad Display file-type when exporting samples 2017-02-03 14:21:14 +00:00
Mike Walters
0a3630d486 Add missing file 2017-02-02 19:06:36 +00:00
Mike Walters
d37ae128ef Make all plots subscribe to their sources 2017-02-02 19:02:16 +00:00
Mike Walters
8d50ca6cb8 Move subscription stuff to AbstractSampleSource 2017-02-02 18:57:15 +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
8d48d3b867 Fix file types in open dialog 2017-02-02 17:25:39 +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
27fd4d3970 Update README for liquid version 2017-02-02 15:51:48 +00:00
Mike Walters
2a4e59fd6d Limit tuner to within plot area on move 2017-02-02 15:37:37 +00:00