Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
geometrize::dialog::WelcomeWindow Class Reference

The WelcomeWindow class models the UI for a quickstart tutorial/welcome page shown to users on first launch. More...

#include <welcomewindow.h>

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

Public Slots

void on_closeButton_released ()
 
void on_videoTutorialsButton_released ()
 
void on_showOnLaunchCheckbox_clicked (bool checked)
 

Public Member Functions

 WelcomeWindow ()
 
virtual ~WelcomeWindow ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event) override
 
void changeEvent (QEvent *) override
 

Private Member Functions

void populateUi ()
 

Private Attributes

Ui::WelcomeWindow * ui
 

Detailed Description

The WelcomeWindow class models the UI for a quickstart tutorial/welcome page shown to users on first launch.

Constructor & Destructor Documentation

geometrize::dialog::WelcomeWindow::WelcomeWindow ( )
explicit
31  :
32  ui(new Ui::WelcomeWindow)
33 {
34  setAttribute(Qt::WA_DeleteOnClose);
35  ui->setupUi(this);
36  populateUi();
37 
38  ui->showOnLaunchCheckbox->setChecked(shouldShowWelcomeOnLaunch());
39 }
Ui::WelcomeWindow * ui
Definition: welcomewindow.h:41
bool shouldShowWelcomeOnLaunch()
Definition: welcomewindow.cpp:19
void populateUi()
Definition: welcomewindow.cpp:77

Here is the call graph for this function:

geometrize::dialog::WelcomeWindow::~WelcomeWindow ( )
virtual
42 {
43  delete ui;
44 }
Ui::WelcomeWindow * ui
Definition: welcomewindow.h:41

Member Function Documentation

void geometrize::dialog::WelcomeWindow::changeEvent ( QEvent *  event)
overrideprotected
69 {
70  if (event->type() == QEvent::LanguageChange) {
71  ui->retranslateUi(this);
72  populateUi();
73  }
74  QMainWindow::changeEvent(event);
75 }
Ui::WelcomeWindow * ui
Definition: welcomewindow.h:41
void populateUi()
Definition: welcomewindow.cpp:77

Here is the call graph for this function:

void geometrize::dialog::WelcomeWindow::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual
62 {
64 
65  QMainWindow::closeEvent(event);
66 }
void openLaunchWindow()
Definition: uiactions.cpp:42

Here is the call graph for this function:

void geometrize::dialog::WelcomeWindow::on_closeButton_released ( )
slot
47 {
48  close();
49 }
void geometrize::dialog::WelcomeWindow::on_showOnLaunchCheckbox_clicked ( bool  checked)
slot
57 {
59 }
void setShouldShowWelcomeOnLaunch(const bool show)
Definition: welcomewindow.cpp:25

Here is the call graph for this function:

void geometrize::dialog::WelcomeWindow::on_videoTutorialsButton_released ( )
slot
52 {
53  QDesktopServices::openUrl(QUrl(constants::VIDEO_TUTORIAL_URL));
54 }
const QString VIDEO_TUTORIAL_URL
The video tutorial webpage URL for the software.
Definition: constants.h:15
void geometrize::dialog::WelcomeWindow::populateUi ( )
private
78 {
79  const QString welcomeText{tr("Welcome To %1", "A subtitle on the 'tutorial' page welcoming the user to the software").arg(geometrize::strings::Strings::getApplicationName())};
80 
81  ui->welcomeTitleLabel->setText(welcomeText);
82  setWindowTitle(welcomeText);
83 }
Ui::WelcomeWindow * ui
Definition: welcomewindow.h:41
static QString getApplicationName()
getApplicationName Gets the name of the application.
Definition: strings.cpp:9

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Ui::WelcomeWindow* geometrize::dialog::WelcomeWindow::ui
private

The documentation for this class was generated from the following files: