mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-21 04:58:33 -05:00
Clean up program identification to pskreporter and other places
Merged from wsjtx branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4988 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
2c65e3ea30
commit
701478db26
14
about.cpp
14
about.cpp
@ -1,16 +1,24 @@
|
|||||||
#include "about.h"
|
#include "about.h"
|
||||||
|
|
||||||
#include "ui_about.h"
|
#include <QCoreApplication>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
#include "revision_utils.hpp"
|
||||||
|
|
||||||
|
#include "ui_about.h"
|
||||||
#include "moc_about.cpp"
|
#include "moc_about.cpp"
|
||||||
|
|
||||||
CAboutDlg::CAboutDlg(QString const& program_title, QWidget *parent) :
|
CAboutDlg::CAboutDlg(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::CAboutDlg)
|
ui(new Ui::CAboutDlg)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
ui->labelTxt->setText ("<html><h2>" + program_title + "</h2>\n\n"
|
ui->labelTxt->setText ("<html><h2>"
|
||||||
|
+ QString {"WSJT-X v"
|
||||||
|
+ QCoreApplication::applicationVersion ()
|
||||||
|
+ " " + revision ()}.simplified ()
|
||||||
|
+ "</h2>\n\n"
|
||||||
"WSJT-X implements digital modes JT9 and JT65 for <br>"
|
"WSJT-X implements digital modes JT9 and JT65 for <br>"
|
||||||
"Amateur Radio communication. <br><br>"
|
"Amateur Radio communication. <br><br>"
|
||||||
"© 2001-2014 by Joe Taylor, K1JT, with grateful <br>"
|
"© 2001-2014 by Joe Taylor, K1JT, with grateful <br>"
|
||||||
|
2
about.h
2
about.h
@ -14,7 +14,7 @@ class CAboutDlg : public QDialog
|
|||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CAboutDlg(QString const& program_title, QWidget *parent = nullptr);
|
explicit CAboutDlg(QWidget *parent = nullptr);
|
||||||
~CAboutDlg ();
|
~CAboutDlg ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
8
main.cpp
8
main.cpp
@ -75,7 +75,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#if WSJT_STANDARD_FILE_LOCATIONS
|
#if WSJT_STANDARD_FILE_LOCATIONS
|
||||||
// support for multiple instances running from a single installation
|
// support for multiple instances running from a single installation
|
||||||
if (parser.isSet (rig_option))
|
if (parser.isSet (rig_option) || parser.isSet (test_option))
|
||||||
{
|
{
|
||||||
auto temp_name = parser.value (rig_option);
|
auto temp_name = parser.value (rig_option);
|
||||||
if (!temp_name.isEmpty ())
|
if (!temp_name.isEmpty ())
|
||||||
@ -88,6 +88,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
a.setApplicationName (a.applicationName () + " - " + temp_name);
|
a.setApplicationName (a.applicationName () + " - " + temp_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parser.isSet (test_option))
|
||||||
|
{
|
||||||
|
a.setApplicationName (a.applicationName () + " - test");
|
||||||
|
}
|
||||||
|
|
||||||
multiple = true;
|
multiple = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -709,7 +709,7 @@ void MainWindow::monitor (bool state)
|
|||||||
|
|
||||||
void MainWindow::on_actionAbout_triggered() //Display "About"
|
void MainWindow::on_actionAbout_triggered() //Display "About"
|
||||||
{
|
{
|
||||||
CAboutDlg {program_title (m_revision), this}.exec ();
|
CAboutDlg {this}.exec ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_autoButton_clicked (bool checked)
|
void MainWindow::on_autoButton_clicked (bool checked)
|
||||||
@ -3019,7 +3019,7 @@ void MainWindow::pskSetLocal ()
|
|||||||
psk_Reporter->setLocalStation(
|
psk_Reporter->setLocalStation(
|
||||||
m_config.my_callsign ()
|
m_config.my_callsign ()
|
||||||
, m_config.my_grid ()
|
, m_config.my_grid ()
|
||||||
, antenna_description, program_title (m_revision));
|
, antenna_description, QString {"WSJT-X v" + version() + " " + m_revision}.simplified ());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::transmitDisplay (bool transmitting)
|
void MainWindow::transmitDisplay (bool transmitting)
|
||||||
|
@ -78,11 +78,6 @@ QString version ()
|
|||||||
|
|
||||||
QString program_title (QString const& revision)
|
QString program_title (QString const& revision)
|
||||||
{
|
{
|
||||||
QString id {QCoreApplication::applicationName ()};
|
QString id {QCoreApplication::applicationName () + " v" + QCoreApplication::applicationVersion ()};
|
||||||
#if defined (CMAKE_BUILD)
|
|
||||||
id += " v" + version ();
|
|
||||||
#else
|
|
||||||
id += " v1.4";
|
|
||||||
#endif
|
|
||||||
return id + " " + revision + " by K1JT";
|
return id + " " + revision + " by K1JT";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user