2014-05-18 11:52:39 -04:00
|
|
|
#include "gui/aboutdialog.h"
|
|
|
|
#include "ui_aboutdialog.h"
|
2018-01-22 17:29:09 -05:00
|
|
|
#include "dsp/dsptypes.h"
|
2019-01-17 05:17:28 -05:00
|
|
|
#include "settings/mainsettings.h"
|
2014-05-18 11:52:39 -04:00
|
|
|
|
2019-01-17 05:17:28 -05:00
|
|
|
AboutDialog::AboutDialog(const QString& apiHost, int apiPort, const MainSettings& mainSettings, QWidget* parent) :
|
2014-05-18 11:52:39 -04:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2019-02-16 22:39:18 -05:00
|
|
|
ui->version->setText(QString("Version %1 - Copyright (C) 2015-2019 Edouard Griffiths, F4EXB.").arg(qApp->applicationVersion()));
|
2018-01-06 21:36:47 -05:00
|
|
|
ui->build->setText(QString("Build info: Qt %1 %2 bits").arg(QT_VERSION_STR).arg(QT_POINTER_SIZE*8));
|
2018-01-22 17:29:09 -05:00
|
|
|
ui->dspBits->setText(QString("DSP Rx %1 bits Tx %2 bits").arg(SDR_RX_SAMP_SZ).arg(SDR_TX_SAMP_SZ));
|
|
|
|
ui->pid->setText(QString("PID: %1").arg(qApp->applicationPid()));
|
2018-01-24 12:17:13 -05:00
|
|
|
QString apiUrl = QString("http://%1:%2/").arg(apiHost).arg(apiPort);
|
|
|
|
ui->restApiUrl->setText(QString("REST API documentation: <a href=\"%1\">%2</a>").arg(apiUrl).arg(apiUrl));
|
2018-01-22 17:29:09 -05:00
|
|
|
ui->restApiUrl->setOpenExternalLinks(true);
|
2019-01-17 05:17:28 -05:00
|
|
|
ui->settingsFile->setText(QString("Settings: %1").arg(mainSettings.getFileLocation()));
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|