Added waterfall controls menu item
This commit is contained in:
parent
0886dc1995
commit
2620435e92
@ -2178,6 +2178,8 @@ void MainWindow::on_menuWindow_aboutToShow(){
|
||||
|
||||
auto vsizes = ui->mainSplitter->sizes();
|
||||
ui->actionShow_Waterfall->setChecked(vsizes.last() > 0);
|
||||
ui->actionShow_Waterfall_Controls->setChecked(m_wideGraph->controlsVisible());
|
||||
ui->actionShow_Waterfall_Controls->setEnabled(ui->actionShow_Waterfall->isChecked());
|
||||
|
||||
QMenu * sortBandMenu = new QMenu(ui->menuWindow);
|
||||
buildBandActivitySortByMenu(sortBandMenu);
|
||||
@ -2210,6 +2212,10 @@ void MainWindow::on_actionShow_Waterfall_triggered(bool checked){
|
||||
ui->mainSplitter->setSizes(vsizes);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionShow_Waterfall_Controls_triggered(bool checked){
|
||||
m_wideGraph->setControlsVisible(checked);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionReset_Window_Sizes_triggered(){
|
||||
auto size = this->centralWidget()->size();
|
||||
|
||||
|
@ -168,6 +168,7 @@ private slots:
|
||||
void on_actionShow_Band_Activity_triggered(bool checked);
|
||||
void on_actionShow_Call_Activity_triggered(bool checked);
|
||||
void on_actionShow_Waterfall_triggered(bool checked);
|
||||
void on_actionShow_Waterfall_Controls_triggered(bool checked);
|
||||
void on_actionReset_Window_Sizes_triggered();
|
||||
void on_actionSettings_triggered();
|
||||
void prepareSpotting();
|
||||
|
@ -4364,6 +4364,7 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<addaction name="actionShow_Band_Activity"/>
|
||||
<addaction name="actionShow_Call_Activity"/>
|
||||
<addaction name="actionShow_Waterfall"/>
|
||||
<addaction name="actionShow_Waterfall_Controls"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionReset_Window_Sizes"/>
|
||||
</widget>
|
||||
@ -5066,6 +5067,17 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<string>Sort Call Activity...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_Waterfall_Controls">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Waterfall Controls</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
@ -363,6 +363,15 @@ void WideGraph::setDialFreq(double d) //setDialFreq
|
||||
ui->widePlot->setDialFreq(d);
|
||||
}
|
||||
|
||||
void WideGraph::setControlsVisible(bool visible)
|
||||
{
|
||||
ui->cbControls->setChecked(visible);
|
||||
}
|
||||
|
||||
bool WideGraph::controlsVisible(){
|
||||
return ui->cbControls->isChecked();
|
||||
}
|
||||
|
||||
void WideGraph::setRxBand (QString const& band)
|
||||
{
|
||||
m_rxBand = band;
|
||||
|
@ -60,6 +60,8 @@ public slots:
|
||||
void wideFreezeDecode(int n);
|
||||
void setFreq2(int rxFreq, int txFreq);
|
||||
void setDialFreq(double d);
|
||||
void setControlsVisible(bool visible);
|
||||
bool controlsVisible();
|
||||
|
||||
protected:
|
||||
void keyPressEvent (QKeyEvent *e) override;
|
||||
|
@ -56,6 +56,9 @@
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QCheckBox" name="cbControls">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>5</x>
|
||||
|
Loading…
Reference in New Issue
Block a user