SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
aboutdialog.cpp
Go to the documentation of this file.
1 #include "gui/aboutdialog.h"
2 #include "ui_aboutdialog.h"
3 #include "dsp/dsptypes.h"
5 
6 AboutDialog::AboutDialog(const QString& apiHost, int apiPort, const MainSettings& mainSettings, QWidget* parent) :
7  QDialog(parent),
8  ui(new Ui::AboutDialog)
9 {
10  ui->setupUi(this);
11  ui->version->setText(QString("Version %1 - Copyright (C) 2015-2019 Edouard Griffiths, F4EXB.").arg(qApp->applicationVersion()));
12  ui->build->setText(QString("Build info: Qt %1 %2 bits").arg(QT_VERSION_STR).arg(QT_POINTER_SIZE*8));
13  ui->dspBits->setText(QString("DSP Rx %1 bits Tx %2 bits").arg(SDR_RX_SAMP_SZ).arg(SDR_TX_SAMP_SZ));
14  ui->pid->setText(QString("PID: %1").arg(qApp->applicationPid()));
15  QString apiUrl = QString("http://%1:%2/").arg(apiHost).arg(apiPort);
16  ui->restApiUrl->setText(QString("REST API documentation: <a href=\"%1\">%2</a>").arg(apiUrl).arg(apiUrl));
17  ui->restApiUrl->setOpenExternalLinks(true);
18  ui->settingsFile->setText(QString("Settings: %1").arg(mainSettings.getFileLocation()));
19 }
20 
22 {
23  delete ui;
24 }
QString getFileLocation() const
AboutDialog(const QString &apiHost, int apiPort, const MainSettings &mainSettings, QWidget *parent=0)
Definition: aboutdialog.cpp:6
Ui::AboutDialog * ui
Definition: aboutdialog.h:22
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
#define SDR_RX_SAMP_SZ
Definition: dsptypes.h:32
#define SDR_TX_SAMP_SZ
Definition: dsptypes.h:38