def __get_recv_dialog(self): receive_dialog = ReceiveDialogController(self.form.project_manager, testing_mode=True, parent=self.form) if self.SHOW: receive_dialog.show() return receive_dialog
def on_show_record_dialog_action_triggered(self): pm = self.project_manager try: r = ReceiveDialogController(pm, parent=self) except OSError as e: logger.error(repr(e)) return if r.has_empty_device_list: Errors.no_device() r.close() return r.recording_parameters.connect(pm.set_recording_parameters) r.files_recorded.connect(self.on_signals_recorded) r.show()
def __get_recv_dialog(self): logger.debug("Creating Receive Dialog") tests.utils_testing.short_wait() receive_dialog = ReceiveDialogController(self.form.project_manager, testing_mode=True, parent=self.form) return receive_dialog
def setUp(self): constants.SETTINGS.setValue("NetworkSDRInterface", True) self.form = MainController() self.form.add_signalfile(get_path_for_data_file("esaver.complex")) self.signal = self.form.signal_tab_controller.signal_frames[0].signal self.gframe = self.form.generator_tab_controller self.form.ui.tabWidget.setCurrentIndex(2) project_manager = self.form.project_manager self.receive_dialog = ReceiveDialogController( project_manager.frequency, project_manager.sample_rate, project_manager.bandwidth, project_manager.gain, project_manager.device, testing_mode=True) self.send_dialog = SendDialogController( project_manager.frequency, project_manager.sample_rate, project_manager.bandwidth, project_manager.gain, project_manager.device, modulated_data=self.signal.data, testing_mode=True) self.send_dialog.graphics_view.show_full_scene(reinitialize=True) self.spectrum_dialog = SpectrumDialogController( project_manager.frequency, project_manager.sample_rate, project_manager.bandwidth, project_manager.gain, project_manager.device, testing_mode=True) self.sniff_dialog = ProtocolSniffDialogController( project_manager.frequency, project_manager.sample_rate, project_manager.bandwidth, project_manager.gain, project_manager.device, self.signal.noise_threshold, self.signal.qad_center, self.signal.bit_len, self.signal.tolerance, self.signal.modulation_type, testing_mode=True) self.dialogs = [ self.receive_dialog, self.send_dialog, self.spectrum_dialog, self.sniff_dialog ] QTest.qWait(250)
def on_show_record_dialog_action_triggered(self): pm = self.project_manager r = ReceiveDialogController(pm.frequency, pm.sample_rate, pm.bandwidth, pm.gain, pm.device, parent=self) if r.has_empty_device_list: Errors.no_device() r.close() return r.recording_parameters.connect(pm.set_recording_parameters) r.files_recorded.connect(self.on_signals_recorded) r.show()
def setUp(self): constants.SETTINGS.setValue("NetworkSDRInterface", True) QTest.qWait(50) logger.debug("init form") self.form = MainController() logger.debug("initalized form") app.processEvents() QTest.qWait(75) logger.debug("Adding signalfile") self.form.add_signalfile(get_path_for_data_file("esaver.complex")) logger.debug("Added signalfile") app.processEvents() self.signal = self.form.signal_tab_controller.signal_frames[0].signal self.gframe = self.form.generator_tab_controller self.form.ui.tabWidget.setCurrentIndex(2) app.processEvents() QTest.qWait(100) project_manager = self.form.project_manager logger.debug("Creating Receive Dialog") self.receive_dialog = ReceiveDialogController(project_manager, testing_mode=True, parent=self.form) app.processEvents() QTest.qWait(50) logger.debug("Creating Send Dialog") self.send_dialog = SendDialogController( project_manager, modulated_data=self.signal.data, testing_mode=True, parent=self.form) self.send_dialog.graphics_view.show_full_scene(reinitialize=True) app.processEvents() QTest.qWait(50) logger.debug("Creating Spectrum Dialog") self.spectrum_dialog = SpectrumDialogController(project_manager, testing_mode=True, parent=self.form) app.processEvents() QTest.qWait(50) logger.debug("Creating Sniff Dialog") self.sniff_dialog = ProtocolSniffDialogController( project_manager, self.signal.noise_threshold, self.signal.qad_center, self.signal.bit_len, self.signal.tolerance, self.signal.modulation_type, testing_mode=True, parent=self.form) app.processEvents() QTest.qWait(50) logger.debug("Created Dialogs") self.dialogs = [ self.receive_dialog, self.send_dialog, self.spectrum_dialog, self.sniff_dialog ]