UI for file type selection, mapping to SampleAdapters.

This commit is contained in:
Jared Boone
2016-03-18 11:04:39 -07:00
parent f8d6e9cda5
commit 396330053b
2 changed files with 19 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015, Mike Walters <mike@flomp.net>
* Copyright (C) 2015, Jared Boone <jared@sharebrained.com>
*
* This file is part of inspectrum.
*
@@ -125,7 +126,7 @@ void SpectrogramControls::fftOrZoomChanged(int value)
void SpectrogramControls::fileOpenButtonClicked()
{
QString fileName = QFileDialog::getOpenFileName(
this, tr("Open File"), "", tr("Sample file (*.cfile *.bin);;All files (*)")
this, tr("Open File"), "", tr("complex<float> file (*.cfile *.cf32);;complex<int8> HackRF file (*.cs8);;complex<uint8> RTL-SDR file (*.cu8);;All files (*)")
);
if (!fileName.isEmpty())
emit openFile(fileName);