Geometrize  1.0
An application for geometrizing images into geometric primitives
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
geometrize::dialog::AboutDialog Class Reference

The AboutDialog class models the UI for the vendor info, license details, credits etc. More...

#include <aboutdialog.h>

Inheritance diagram for geometrize::dialog::AboutDialog:
Inheritance graph
[legend]
Collaboration diagram for geometrize::dialog::AboutDialog:
Collaboration graph
[legend]

Public Slots

void on_closeButton_released ()
 
void on_licenseButton_released ()
 
void on_creditsButton_released ()
 

Public Member Functions

 AboutDialog (QWidget *parent=nullptr)
 
virtual ~AboutDialog ()
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Member Functions

void populateUi ()
 

Private Attributes

Ui::AboutDialog * ui
 

Detailed Description

The AboutDialog class models the UI for the vendor info, license details, credits etc.

Constructor & Destructor Documentation

◆ AboutDialog()

geometrize::dialog::AboutDialog::AboutDialog ( QWidget *  parent = nullptr)
explicit
16  :
17  QDialog(parent),
18  ui(new Ui::AboutDialog)
19 {
20  setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); // Remove question mark from title bar
21  ui->setupUi(this);
22  populateUi();
23 }
Here is the call graph for this function:

◆ ~AboutDialog()

geometrize::dialog::AboutDialog::~AboutDialog ( )
virtual
26 {
27  delete ui;
28 }

Member Function Documentation

◆ changeEvent()

void geometrize::dialog::AboutDialog::changeEvent ( QEvent *  event)
overrideprotected
48 {
49  if (event->type() == QEvent::LanguageChange) {
50  populateUi();
51  ui->retranslateUi(this);
52  }
53  QDialog::changeEvent(event);
54 }
Here is the call graph for this function:

◆ on_closeButton_released

void geometrize::dialog::AboutDialog::on_closeButton_released ( )
slot
31 {
32  close();
33 }

◆ on_creditsButton_released

void geometrize::dialog::AboutDialog::on_creditsButton_released ( )
slot
42 {
43  CreditsDialog dialog(this);
44  dialog.exec();
45 }

◆ on_licenseButton_released

void geometrize::dialog::AboutDialog::on_licenseButton_released ( )
slot
36 {
37  LicenseDialog dialog(this);
38  dialog.exec();
39 }

◆ populateUi()

void geometrize::dialog::AboutDialog::populateUi ( )
private
57 {
58  setWindowTitle(tr("About %1", "The title of the 'about' page with information about the application").arg(geometrize::strings::Strings::getApplicationName()));
59 
62 
63  ui->buildInfo->setText(tr("Build Info:", "Technical information about the way the software was built follows") +
65  " " + "(" + geometrize::version::getBuildDateTime() + ")");
66 
67  ui->runtimeInfo->setText(tr("Runtime Info:", "Technical information about the platform the software is running on follows") +
72 
73  ui->copyrightNotice->setText(geometrize::strings::Strings::getCopyrightNotice());
74  ui->personalWebsiteLink->setText("<a href=\"" + geometrize::constants::DEVELOPER_WEBSITE_URL + "\">" + geometrize::constants::DEVELOPER_WEBSITE_URL + "</a>");
75  ui->projectWebsiteLink->setText("<a href=\"" + geometrize::constants::PROJECT_WEBSITE_URL + "\">" + geometrize::constants::PROJECT_WEBSITE_URL + "</a>");
76 }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ui

Ui::AboutDialog* geometrize::dialog::AboutDialog::ui
private

The documentation for this class was generated from the following files:
geometrize::version::getBuildOperatingSystemName
QString getBuildOperatingSystemName()
getBuildOperatingSystemName Gets the name of the OS the application is built to run on e....
Definition: versioninfo.cpp:38
geometrize::dialog::AboutDialog::populateUi
void populateUi()
Definition: aboutdialog.cpp:56
geometrize::strings::Strings::getCopyrightNotice
static QString getCopyrightNotice()
getCopyrightNotice Gets a copyright notice for the application.
Definition: strings.cpp:19
geometrize::version::getRuntimeCpuArchitectureName
QString getRuntimeCpuArchitectureName()
getRuntimeCpuArchitectureName Gets the architecture of the CPU that the application is currently runn...
Definition: versioninfo.cpp:23
geometrize::constants::DEVELOPER_WEBSITE_URL
const QString DEVELOPER_WEBSITE_URL
The core developer's personal website URL.
Definition: constants.h:12
geometrize::strings::Strings::getShortApplicationDescription
static QString getShortApplicationDescription()
getApplicationDescription Gets a short description of the application.
Definition: strings.cpp:14
geometrize::version::getApplicationVersionString
QString getApplicationVersionString()
getApplicationVersionString Gets the application version as a string in VERSION.MAJOR....
Definition: versioninfo.cpp:13
geometrize::version::getRuntimeMachineHostName
QString getRuntimeMachineHostName()
getRuntimeMachineHostName Gets the system's runtime host name, if one is set.
Definition: versioninfo.cpp:18
geometrize::constants::PROJECT_WEBSITE_URL
const QString PROJECT_WEBSITE_URL
The project's dedicated website URL.
Definition: constants.h:11
geometrize::strings::Strings::getApplicationName
static QString getApplicationName()
getApplicationName Gets the name of the application.
Definition: strings.cpp:9
geometrize::dialog::AboutDialog::ui
Ui::AboutDialog * ui
Definition: aboutdialog.h:40
geometrize::version::getBuildAbiName
QString getBuildAbiName()
getBuildAbiName Gets the full architecture that the application was compiled for.
Definition: versioninfo.cpp:55
geometrize::version::getBuildDateTime
QString getBuildDateTime()
getBuildDateTime Gets a string that describes the date and time the application was built.
Definition: versioninfo.cpp:33
geometrize::version::getRuntimeQtVersionName
QString getRuntimeQtVersionName()
getRuntimeQtVersionName Gets the version of Qt that the application is currently running on.
Definition: versioninfo.cpp:28