diff --git a/main.py b/main.py index a21f043..7ff6292 100644 --- a/main.py +++ b/main.py @@ -269,7 +269,7 @@ class MyApp(QMainWindow, Ui_MainWindow): self.url_button.clicked.connect(self.go_to_web_page_signal) - # Set modulation TreeView + # Set mode TreeView self.set_mode_tree_widget() self.mode_tree_widget.itemSelectionChanged.connect(self.manage_mode_selections) @@ -279,6 +279,10 @@ class MyApp(QMainWindow, Ui_MainWindow): self.include_unknown_modes_btn]) self.apply_remove_mode_filter_btn.clicked.connect(self.display_signals) + # Set modulation filter screen. + + self.modulation_list.addItems(Constants.MODULATIONS) + # ########################################################################################## self.show() diff --git a/main_window.ui b/main_window.ui index 248b646..98cd6e8 100644 --- a/main_window.ui +++ b/main_window.ui @@ -233,6 +233,13 @@ border-radius: 5px; 0 + + + 9 + 50 + false + + @@ -3832,6 +3839,133 @@ QWidget#xFM_container, QWidget#xSK_container, QWidget#xSB_container{ Modulation + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + 20 + 20 + + + + + 20 + 20 + + + + + + + icons_imgs/search_icon.png + + + true + + + Qt::AlignCenter + + + + + + + + 12 + 75 + true + + + + QAbstractItemView::NoEditTriggers + + + QAbstractItemView::MultiSelection + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + 12 + 75 + true + + + + Apply + + + + + + + + 12 + 75 + true + + + + Reset + + + + diff --git a/utilities.py b/utilities.py index 178831e..94436f5 100644 --- a/utilities.py +++ b/utilities.py @@ -47,6 +47,31 @@ class Constants(object): "SC-FDMA": [],} ) UNKNOWN = "Unknown" + MODULATIONS = ["8VSB", + "AFSK", + "AM", + "BFSK", + "C4FM", + "CDMA", + "COFDM", + "CW", + "FFSK", + "FM", + "FMCW", + "FMOP", + "FSK", + "GFSK", + "GMSK", + "IFK", + "MFSK", + "MSK", + "OFDM", + "OOK", + "PAM", + "PPM", + "PSK", + "QAM", + "TDMA",] def reset_apply_remove_btn(button):