| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  | ///////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | // Copyright (C) 2021 Jon Beniston, M7RCE                                        //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // This program is free software; you can redistribute it and/or modify          //
 | 
					
						
							|  |  |  | // it under the terms of the GNU General Public License as published by          //
 | 
					
						
							|  |  |  | // the Free Software Foundation as version 3 of the License, or                  //
 | 
					
						
							|  |  |  | // (at your option) any later version.                                           //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // This program is distributed in the hope that it will be useful,               //
 | 
					
						
							|  |  |  | // but WITHOUT ANY WARRANTY; without even the implied warranty of                //
 | 
					
						
							|  |  |  | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                  //
 | 
					
						
							|  |  |  | // GNU General Public License V3 for more details.                               //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // You should have received a copy of the GNU General Public License             //
 | 
					
						
							|  |  |  | // along with this program. If not, see <http://www.gnu.org/licenses/>.          //
 | 
					
						
							|  |  |  | ///////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef INCLUDE_FEATURE_SATELLITEDEVICESETTINGSGUI_H
 | 
					
						
							|  |  |  | #define INCLUDE_FEATURE_SATELLITEDEVICESETTINGSGUI_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QComboBox>
 | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  | #include <QListView>
 | 
					
						
							|  |  |  | #include <QLineEdit>
 | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  | #include <QCheckBox>
 | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  | #include <QTabWidget>
 | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  | #include <QTableWidget>
 | 
					
						
							|  |  |  | #include <QTableWidgetItem>
 | 
					
						
							|  |  |  | #include <QStandardItemModel>
 | 
					
						
							|  |  |  | #include <QList>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "settings/preset.h"
 | 
					
						
							|  |  |  | #include "satellitetrackersettings.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SatelliteRadioControlDialog; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  | class SatelliteDeviceSettingsGUI : public QWidget | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  |     explicit SatelliteDeviceSettingsGUI(SatelliteTrackerSettings::SatelliteDeviceSettings *devSettings, | 
					
						
							|  |  |  |                                QTabWidget *tab, QWidget *parent = nullptr); | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  |     void accept(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     void addDeviceSets(); | 
					
						
							|  |  |  |     void addPresets(const QString& deviceSet); | 
					
						
							|  |  |  |     void addChannels(); | 
					
						
							|  |  |  |     const Preset *getSelectedPreset(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private slots: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     void on_m_deviceSetWidget_currentTextChanged(const QString &text); | 
					
						
							|  |  |  |     void on_m_presetWidget_currentIndexChanged(int index); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     friend SatelliteRadioControlDialog; | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  |     QTabWidget *m_tab; | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  |     QComboBox *m_deviceSetWidget; | 
					
						
							|  |  |  |     QComboBox *m_presetWidget; | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  |     QListView *m_dopplerWidget; | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  |     QCheckBox *m_startOnAOSWidget; | 
					
						
							|  |  |  |     QCheckBox *m_stopOnLOSWidget; | 
					
						
							|  |  |  |     QCheckBox *m_startStopFileSinkWidget; | 
					
						
							| 
									
										
										
										
											2021-07-04 11:43:11 +01:00
										 |  |  |     QLineEdit *m_frequencyWidget; | 
					
						
							|  |  |  |     QLineEdit *m_aosCommandWidget; | 
					
						
							|  |  |  |     QLineEdit *m_losCommandWidget; | 
					
						
							| 
									
										
										
										
											2021-10-03 12:12:39 +02:00
										 |  |  |     QChar m_currentPresetType; | 
					
						
							| 
									
										
										
										
											2021-02-26 20:25:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     QStandardItemModel m_dopplerModel; | 
					
						
							|  |  |  |     QList<QStandardItem *> m_dopplerItems; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     SatelliteTrackerSettings::SatelliteDeviceSettings *m_devSettings; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // INCLUDE_FEATURE_SATELLITEDEVICESETTINGSGUI_H
 |