This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutDialog.cpp
executable file
·58 lines (52 loc) · 1.65 KB
/
AboutDialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//********************************************
//## Commensal Radar Project ##
//
//Filename:
// AboutDialog.h
//
//Description:
// This class displays an about dialog for the ARDView app.
//
//Author:
// Craig Tong
// Radar Remote Sensing Group
// Department of Electrical Engineering
// University of Cape Town
// Copyright © 2013 Craig Tong
//********************************************
#include "AboutDialog.h"
#include <QDateTime>
cAboutDialog::cAboutDialog(QWidget *parent) : QDialog(parent, Qt::Dialog)
{
m_pADialog = new Ui_AboutDialog();
m_pADialog->setupUi(this);
m_pADialog->label_version->setText(QString("Version: %1").arg(QCoreApplication::applicationVersion()));
#ifdef _WIN32
#ifdef _WIN64
m_pADialog->label_platform->setText(QString("Platform: MSVC Win64"));
#else
m_pADialog->label_platform->setText(QString("Platform: MSVC Win32"));
#endif
#else
#ifdef __unix__
#ifdef __x86_64__
m_pADialog->label_platform->setText(QString("Platform: GCC x86_64"));
#else
m_pADialog->label_platform->setText(QString("Platform: GCC x86"));
#endif
#else
#ifdef __MAC__
m_pADialog->label_platform->setText(QString("Platform: Mac"));
#else
m_pADialog->label_platform->setText(QString("Platform: Unknown"));
#endif
#endif
#endif
m_pADialog->label_buildDate->setText(QString("Build date: %1 %2").arg(__DATE__).arg(__TIME__));
m_pADialog->label_year->setText(QString("Copyright %1 2015 SKA SA. All rights reserved").arg(QString::fromUtf8("©")));
}
cAboutDialog::~cAboutDialog()
{
delete m_pADialog;
}