diff --git a/sdrgui/gui/glspectrumgui.cpp b/sdrgui/gui/glspectrumgui.cpp index cd7793d5e..91cc244fa 100644 --- a/sdrgui/gui/glspectrumgui.cpp +++ b/sdrgui/gui/glspectrumgui.cpp @@ -50,16 +50,18 @@ GLSpectrumGUI::GLSpectrumGUI(QWidget* parent) : // Use the custom flow layout for the 3 main horizontal layouts (lines) ui->verticalLayout->removeItem(ui->Line5Layout); + ui->verticalLayout->removeItem(ui->Line6Layout); ui->verticalLayout->removeItem(ui->Line4Layout); ui->verticalLayout->removeItem(ui->Line3Layout); ui->verticalLayout->removeItem(ui->Line2Layout); ui->verticalLayout->removeItem(ui->Line1Layout); FlowLayout *flowLayout = new FlowLayout(nullptr, 1, 1, 1); - flowLayout->addItem(ui->Line3Layout); - flowLayout->addItem(ui->Line4Layout); flowLayout->addItem(ui->Line1Layout); flowLayout->addItem(ui->Line2Layout); + flowLayout->addItem(ui->Line3Layout); + flowLayout->addItem(ui->Line4Layout); flowLayout->addItem(ui->Line5Layout); + flowLayout->addItem(ui->Line6Layout); ui->verticalLayout->addItem(flowLayout); on_linscale_toggled(false); diff --git a/sdrgui/gui/glspectrumgui.ui b/sdrgui/gui/glspectrumgui.ui index d0b6a4fc9..559a1afa1 100644 --- a/sdrgui/gui/glspectrumgui.ui +++ b/sdrgui/gui/glspectrumgui.ui @@ -7,7 +7,7 @@ 0 0 630 - 151 + 250 @@ -41,333 +41,190 @@ 1 - - - - 0 - 0 - + + + Toggle the scale grid - + + Grid + + + + :/gridrect.png:/gridrect.png + + - 70 - 0 + 16 + 16 + + true + + + + + - 60 - 16777215 + 24 + 24 + + ArrowCursor + - FFT window function + Grid intensity - - QComboBox::AdjustToContents + + 100 + + + 1 + + + 5 - - - Bart - - - - - B-H - - - - - FT - - - - - Ham - - - - - Han - - - - - Rec - - - - - Kai - - - - - Black - - - - - B-H7 - - - + - + 0 0 - + + Clear spectrum histogram + + + + + + + :/clear.png:/clear.png + + - 50 - 0 + 16 + 16 - + + + + + + Display phosphor effect spectrum + + + Histogram + + + + :/bell_phosphor.png:/bell_phosphor.png + + - 50 - 16777215 + 16 + 16 + + true + + + + + - FFT size + Display max hold - - QComboBox::AdjustToContents + + Max Hold + + + + :/bell_max.png:/bell_max.png + + + + 16 + 16 + + + + true - - - 64 - - - - - 128 - - - - - 256 - - - - - 512 - - - - - 1k - - - - - 2k - - - - - 4k - - - - - 8k - - - - - 16k - - - - - 32k - - - - + + - 60 - 0 + 24 + 24 - FFT overlap - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 0 + Decay: - 63 + 20 + + + 1 - - + + - 50 - 0 + 24 + 24 + + Decay divisor: + + + 1 + + + 20 + + + 1 + + + + + - 50 - 16777215 + 24 + 24 - Averaging type + Stroke: - - - No - - - - - Mov - - - - - Fix - - - - - Max - - - - - - - - - 55 - 0 - + + 1 - - - 45 - 16777215 - + + 60 - - Number of averaging samples + + 1 - - - 1 - - - - - 2 - - - - - 5 - - - - - 10 - - - - - 20 - - - - - 50 - - - - - 100 - - - - - 200 - - - - - 500 - - - - - 1k - - - - - 2k - - - - - 5k - - - - - 10k - - - - - 20k - - - - - 50k - - - - - 1e5 - - - - - 2e5 - - - - - 5e5 - - - - - 1M - - - + 0 @@ -389,172 +246,113 @@ - - 1 - - - - - 24 - 24 - - + - Autoscale max level and range + Display live spectrum line style - A + Max Hold - - - - - - - 50 - 24 - + + + :/bell_line.png:/bell_line.png - + - 50 - 16777215 + 16 + 16 + + true + + + + + - Reference level (dB) + Display live spectrum fill style - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + Max Hold - - -200 + + + :/bell_fill.png:/bell_fill.png - - 40 + + + 16 + 16 + + + + true - - + + + Display live spectrum gradient style + + + Max Hold + + + + :/bell_gradient.png:/bell_gradient.png + + - 45 - 24 + 16 + 16 + + true + + + + + - 45 - 16777215 + 24 + 24 - Range (dB) + Trace intensity - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + 100 - + 1 - - 100 + + 50 - + - 55 + 70 0 - 45 + 80 16777215 - Spectrum maximum FPS - - - 0 - - - - 2 - - - - - 5 - - - - - 10 - - - - - 20 - - - - - 50 - - - - - 100 - - - - - 200 - - - - - - - - Logarithmic / Linear scale selection - - - - - - - :/logarithmic.png - :/linear.png:/logarithmic.png - - - true - - - - - - - - 0 - 0 - - - - - 5 - 22 - - - - + Color Map @@ -562,20 +360,17 @@ - - 1 - - + - Toggle the scale grid + Exchange waterfall and spectrum - Grid + Inv - :/grid.png:/grid.png + :/flip_windows.png:/flip_windows.png @@ -589,47 +384,16 @@ - - - - 24 - 24 - - - - ArrowCursor - - - Grid intensity - - - 100 - - - 1 - - - 5 - - - - - - - - 0 - 0 - - + - Clear spectrum histogram + Display waterfall - + Waterfall - :/clear.png:/clear.png + :/waterfall.png:/waterfall.png @@ -637,19 +401,25 @@ 16 + + true + + + false + - + - Display phosphor effect spectrum + Display 3D spectrogram - Histogram + 3D Spectrogram - :/histogram.png:/histogram.png + :/waterfall_3d.png:/waterfall_3d.png @@ -660,96 +430,390 @@ true + + false + - + + + + 80 + 0 + + + + + 80 + 16777215 + + - Display max hold + 3D Spectrogram Style - - Max Hold + + + Points + + + + + Lines + + + + + Solid + + + + + Outline + + + + + Shaded + + + + + + + + + + 1 + + + + + + 0 + 0 + - - - :/bell_red.png:/bell_red.png + + + 70 + 0 + - + - 16 - 16 + 60 + 16777215 - - true + + FFT window function + + + QComboBox::AdjustToContents + + + Bart + + + + + B-H + + + + + FT + + + + + Ham + + + + + Han + + + + + Rec + + + + + Kai + + + + + Black + + + + + B-H7 + + - + + + + 0 + 0 + + + + + 50 + 0 + + - 24 - 24 + 50 + 16777215 - Decay: - - - 20 + FFT size - - 1 + + QComboBox::AdjustToContents + + + 64 + + + + + 128 + + + + + 256 + + + + + 512 + + + + + 1k + + + + + 2k + + + + + 4k + + + + + 8k + + + + + 16k + + + + + 32k + + - - + + - 24 - 24 + 60 + 0 - Decay divisor: + FFT overlap + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - 1 + 0 - 20 - - - 1 + 63 - + + + + 50 + 0 + + - 24 - 24 + 50 + 16777215 - Stroke: + Averaging type - - 1 + + + No + + + + + Mov + + + + + Fix + + + + + Max + + + + + + + + + 55 + 0 + - - 60 + + + 45 + 16777215 + - - 1 + + Number of averaging samples + + + 1 + + + + + 2 + + + + + 5 + + + + + 10 + + + + + 20 + + + + + 50 + + + + + 100 + + + + + 200 + + + + + 500 + + + + + 1k + + + + + 2k + + + + + 5k + + + + + 10k + + + + + 20k + + + + + 50k + + + + + 1e5 + + + + + 2e5 + + + + + 5e5 + + + + + 1M + + - + 0 @@ -770,240 +834,180 @@ - + + + 1 + - - - Display live spectrum - - - Max Hold - - - - :/bell_line.png:/bell_line.png - - + + - 16 - 16 + 24 + 24 - - true - - - - - - Display live spectrum + Autoscale max level and range - Max Hold - - - - :/bell_fill.png:/bell_fill.png - - - - 16 - 16 - - - - true + A - - - Display live spectrum - - - Max Hold - - - - :/bell_gradient.png:/bell_gradient.png - - + + - 16 - 16 + 50 + 24 - - true - - - - - - 24 - 24 + 50 + 16777215 - Trace intensity + Reference level (dB) - - 100 + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - 1 + + -200 - - 50 + + 40 - + - 70 - 0 + 45 + 24 - 80 + 45 16777215 - Color Map - - - - - - - Exchange waterfall and histogram - - - Inv - - - - :/invertspectrum.png:/invertspectrum.png - - - - 16 - 16 - - - - true - - - - - - - Display waterfall - - - Waterfall - - - - :/waterfall.png:/waterfall.png - - - - 16 - 16 - - - - true - - - false - - - - - - - Display 3D spectrogram - - - 3D Spectrogram - - - - :/3dspectrogram.png:/3dspectrogram.png + Range (dB) - - - 16 - 16 - + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - true + + 1 - - false + + 100 - + - 80 + 55 0 - 80 + 45 16777215 - 3D Spectrogram Style + Spectrum maximum FPS + + + 0 - Points + 2 - Lines + 5 - Solid + 10 - Outline + 20 - Shaded + 50 + + + 100 + + + + + 200 + + + + + + + + Logarithmic / Linear scale selection + + + + + + + :/logarithmic.png + :/linear.png:/logarithmic.png + + + true + + + + + + + + 0 + 0 + + + + + 5 + 22 + + + + + - + diff --git a/sdrgui/resources/bell_max.png b/sdrgui/resources/bell_max.png new file mode 100644 index 000000000..552c72c80 Binary files /dev/null and b/sdrgui/resources/bell_max.png differ diff --git a/sdrgui/resources/bell_phosphor.png b/sdrgui/resources/bell_phosphor.png new file mode 100644 index 000000000..0ab140f10 Binary files /dev/null and b/sdrgui/resources/bell_phosphor.png differ diff --git a/sdrgui/resources/flip_windows.png b/sdrgui/resources/flip_windows.png new file mode 100644 index 000000000..33e282451 Binary files /dev/null and b/sdrgui/resources/flip_windows.png differ diff --git a/sdrgui/resources/res.qrc b/sdrgui/resources/res.qrc index c3db0a837..c62dcd600 100644 --- a/sdrgui/resources/res.qrc +++ b/sdrgui/resources/res.qrc @@ -1,5 +1,9 @@ + flip_windows.png + waterfall_3d.png + bell_max.png + bell_phosphor.png bell_red.png bell_fill.png bell_gradient.png diff --git a/sdrgui/resources/waterfall.png b/sdrgui/resources/waterfall.png index 9e520906e..4f6d44416 100644 Binary files a/sdrgui/resources/waterfall.png and b/sdrgui/resources/waterfall.png differ diff --git a/sdrgui/resources/waterfall2.png b/sdrgui/resources/waterfall2.png new file mode 100644 index 000000000..9e520906e Binary files /dev/null and b/sdrgui/resources/waterfall2.png differ diff --git a/sdrgui/resources/waterfall_3d.png b/sdrgui/resources/waterfall_3d.png new file mode 100644 index 000000000..3592846d0 Binary files /dev/null and b/sdrgui/resources/waterfall_3d.png differ