kopia lustrzana https://gitlab.com/eliggett/wfview
Added dialog box to the toFixed button where an edge can be selected.
rodzic
6b44b81a2a
commit
cd3320ec9a
|
@ -15,9 +15,10 @@ aboutbox::aboutbox(QWidget *parent) :
|
||||||
ui->topText->setText("wfview version " + QString(WFVIEW_VERSION));
|
ui->topText->setText("wfview version " + QString(WFVIEW_VERSION));
|
||||||
|
|
||||||
QString head = QString("<html><head></head><body>");
|
QString head = QString("<html><head></head><body>");
|
||||||
QString copyright = QString("Copyright 2017-2022 Elliott H. Liggett, W6EL. All rights reserved. wfview source code is <a href=\"https://gitlab.com/eliggett/wfview/-/blob/master/LICENSE\">licensed</a> under the GNU GPLv3.");
|
QString copyright = QString("Copyright 2017-2022 Elliott H. Liggett, W6EL. All rights reserved.<br/>wfview source code is <a href=\"https://gitlab.com/eliggett/wfview/-/blob/master/LICENSE\">licensed</a> under the GNU GPLv3.");
|
||||||
QString nacode = QString("<br/><br/>Networking, audio, rigctl server, and much more written by Phil Taylor, M0VSE");
|
QString nacode = QString("<br/><br/>Networking, audio, rigctl server, and much more written by Phil Taylor, M0VSE");
|
||||||
QString doctest = QString("<br/><br/>Testing, documentation, bug fixes, and development mentorship from<br/>Roeland Jansen, PA3MET, and Jim Nijkamp, PA8E.");
|
QString scm = QString("<br/><br/>Source code and issues managed by Roeland Jansen, PA3MET");
|
||||||
|
QString doctest = QString("<br/><br/>Testing and development mentorship from Jim Nijkamp, PA8E.");
|
||||||
|
|
||||||
QString dedication = QString("<br/><br/>This version of wfview is dedicated to the ones we lost.");
|
QString dedication = QString("<br/><br/>This version of wfview is dedicated to the ones we lost.");
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ aboutbox::aboutbox(QWidget *parent) :
|
||||||
QString support = QString("<br/><br/>For support, please visit <a href=\"https://forum.wfview.org/\">the official wfview support forum</a>.");
|
QString support = QString("<br/><br/>For support, please visit <a href=\"https://forum.wfview.org/\">the official wfview support forum</a>.");
|
||||||
QString gitcodelink = QString("<a href=\"https://gitlab.com/eliggett/wfview/-/tree/%1\" style=\"color: cyan;\">").arg(GITSHORT);
|
QString gitcodelink = QString("<a href=\"https://gitlab.com/eliggett/wfview/-/tree/%1\" style=\"color: cyan;\">").arg(GITSHORT);
|
||||||
|
|
||||||
QString contact = QString("<br/>email W6EL: kilocharlie8@gmail.com");
|
QString contact = QString("<br/>email W6EL: kilocharlie8 at gmail.com");
|
||||||
|
|
||||||
QString buildInfo = QString("<br/><br/>Build " + gitcodelink + QString(GITSHORT) + "</a> on " + QString(__DATE__) + " at " + __TIME__ + " by " + UNAME + "@" + HOST);
|
QString buildInfo = QString("<br/><br/>Build " + gitcodelink + QString(GITSHORT) + "</a> on " + QString(__DATE__) + " at " + __TIME__ + " by " + UNAME + "@" + HOST);
|
||||||
QString end = QString("</body></html>");
|
QString end = QString("</body></html>");
|
||||||
|
@ -85,7 +86,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.");
|
||||||
|
|
||||||
// String it all together:
|
// String it all together:
|
||||||
|
|
||||||
QString aboutText = head + copyright + "\n" + nacode + "\n" + doctest + dedication + wfviewcommunityack;
|
QString aboutText = head + copyright + "\n" + nacode + "\n" + scm + "\n" + doctest + dedication + wfviewcommunityack;
|
||||||
aboutText.append(website + "\n" + donate + "\n"+ docs + support + contact +"\n");
|
aboutText.append(website + "\n" + donate + "\n"+ docs + support + contact +"\n");
|
||||||
aboutText.append("\n" + ssCredit + "\n" + rsCredit + "\n");
|
aboutText.append("\n" + ssCredit + "\n" + rsCredit + "\n");
|
||||||
|
|
||||||
|
|
25
wfmain.cpp
25
wfmain.cpp
|
@ -4915,9 +4915,28 @@ void wfmain::on_vspCombo_currentIndexChanged(int value)
|
||||||
|
|
||||||
void wfmain::on_toFixedBtn_clicked()
|
void wfmain::on_toFixedBtn_clicked()
|
||||||
{
|
{
|
||||||
emit setScopeFixedEdge(oldLowerFreq, oldUpperFreq, ui->scopeEdgeCombo->currentIndex()+1);
|
int currentEdge = ui->scopeEdgeCombo->currentIndex();
|
||||||
emit setScopeEdge(ui->scopeEdgeCombo->currentIndex()+1);
|
bool dialogOk = false;
|
||||||
issueDelayedCommand(cmdScopeFixedMode);
|
bool numOk = false;
|
||||||
|
|
||||||
|
QStringList edges;
|
||||||
|
edges << "1" << "2" << "3" << "4";
|
||||||
|
|
||||||
|
QString item = QInputDialog::getItem(this, "Select Edge", "Edge to replace:", edges, currentEdge, false, &dialogOk);
|
||||||
|
|
||||||
|
if(dialogOk)
|
||||||
|
{
|
||||||
|
int edge = QString(item).toInt(&numOk,10);
|
||||||
|
if(numOk)
|
||||||
|
{
|
||||||
|
emit setScopeFixedEdge(oldLowerFreq, oldUpperFreq, edge);
|
||||||
|
emit setScopeEdge(edge);
|
||||||
|
ui->scopeEdgeCombo->blockSignals(true);
|
||||||
|
ui->scopeEdgeCombo->setCurrentIndex(edge-1);
|
||||||
|
ui->scopeEdgeCombo->blockSignals(false);
|
||||||
|
issueDelayedCommand(cmdScopeFixedMode);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue