1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

PlutoSDR input: added UI form

This commit is contained in:
f4exb 2017-09-04 08:39:51 +02:00
parent 6c9dbb79c4
commit 3eb768c856
4 changed files with 1147 additions and 4 deletions

View File

@ -16,9 +16,9 @@ set(plutosdrinput_HEADERS
# plutosdrinputthread.h
)
#set(plutosdrinput_FORMS
# plutosdrinputgui.ui
#)
set(plutosdrinput_FORMS
plutosdrinputgui.ui
)
if (BUILD_DEBIAN)
include_directories(
@ -48,7 +48,7 @@ qt5_wrap_ui(plutosdrinput_FORMS_HEADERS ${plutosdrinput_FORMS})
add_library(inputplutosdr SHARED
${plutosdrinput_SOURCES}
${plutosdrinput_HEADERS_MOC}
# ${plutosdrinput_FORMS_HEADERS}
${plutosdrinput_FORMS_HEADERS}
)
if (BUILD_DEBIAN)

View File

@ -14,18 +14,29 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include "dsp/filerecord.h"
#include "device/devicesourceapi.h"
#include "ui_plutosdrinputgui.h"
#include "plutosdrinputgui.h"
PlutoSDRInputGui::PlutoSDRInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
QWidget(parent),
ui(new Ui::PlutoSDRInputGUI),
m_deviceAPI(deviceAPI),
m_settings()
{
char recFileNameCStr[30];
sprintf(recFileNameCStr, "test_%d.sdriq", m_deviceAPI->getDeviceUID());
m_fileSink = new FileRecord(std::string(recFileNameCStr));
m_deviceAPI->addSink(m_fileSink);
}
PlutoSDRInputGui::~PlutoSDRInputGui()
{
delete m_fileSink;
delete ui;
}
void PlutoSDRInputGui::destroy()

View File

@ -24,6 +24,11 @@
#include "plutosdrinputsettings.h"
class DeviceSourceAPI;
class FileRecord;
namespace Ui {
class PlutoSDRInputGUI;
}
class PlutoSDRInputGui : public QWidget, public PluginInstanceUI {
Q_OBJECT
@ -43,8 +48,10 @@ public:
virtual bool handleMessage(const Message& message);
private:
Ui::PlutoSDRInputGUI* ui;
DeviceSourceAPI* m_deviceAPI;
PlutoSDRInputSettings m_settings;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
};
#endif /* PLUGINS_SAMPLESOURCE_PLUTOSDRINPUT_PLUTOSDRINPUTGUI_H_ */

File diff suppressed because it is too large Load Diff