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

The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task that geometrizes an image. More...

#include <imagetaskwindow.h>

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

Classes

class  ImageTaskWindowImpl
 

Signals

void willSwitchImageTask (task::ImageTask *lastTask, task::ImageTask *nextTask)
 willSwitchImageTask Signal dispatched immediately before an image task is set on the image task window. More...
 
void didSwitchImageTask (task::ImageTask *lastTask, task::ImageTask *currentTask)
 didSwitchImageTask Signal dispatched immediately after an image task is set on the image task window. More...
 
void didLoadSettingsTemplate ()
 didLoadSettingsTemplate Signal dispatched immediately after a settings template is applied to the image task set on the window. More...
 
void didSaveSettingsTemplate ()
 didSaveSettingsTemplate Signal dispatched immediately after a settings template based on the current image task settings is saved. More...
 

Public Member Functions

 ImageTaskWindow ()
 
virtual ~ImageTaskWindow ()
 
task::ImageTaskgetImageTask ()
 getImageTask Gets a pointer to the current image task shown by the window. More...
 
void setImageTask (task::ImageTask *task)
 setImageTask Sets the current image task shown by the window. More...
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Slots

void on_actionExit_triggered ()
 
void on_actionLoad_Settings_Template_triggered ()
 
void on_actionSave_Settings_Template_triggered ()
 
void on_actionReveal_Launch_Window_triggered ()
 

Private Attributes

std::unique_ptr
< ImageTaskWindowImpl
d
 

Detailed Description

The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task that geometrizes an image.

Constructor & Destructor Documentation

geometrize::dialog::ImageTaskWindow::ImageTaskWindow ( )
explicit
795  :
796  QMainWindow{nullptr},
797  d{std::make_unique<ImageTaskWindow::ImageTaskWindowImpl>(this)}
798 {
799 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
geometrize::dialog::ImageTaskWindow::~ImageTaskWindow ( )
virtual
802 {
803 }

Member Function Documentation

void geometrize::dialog::ImageTaskWindow::changeEvent ( QEvent *  event)
overrideprotected
836 {
837  if (event->type() == QEvent::LanguageChange) {
838  d->onLanguageChange();
839  }
840  QMainWindow::changeEvent(event);
841 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::didLoadSettingsTemplate ( )
signal

didLoadSettingsTemplate Signal dispatched immediately after a settings template is applied to the image task set on the window.

void geometrize::dialog::ImageTaskWindow::didSaveSettingsTemplate ( )
signal

didSaveSettingsTemplate Signal dispatched immediately after a settings template based on the current image task settings is saved.

void geometrize::dialog::ImageTaskWindow::didSwitchImageTask ( task::ImageTask lastTask,
task::ImageTask currentTask 
)
signal

didSwitchImageTask Signal dispatched immediately after an image task is set on the image task window.

Parameters
lastTaskThe last task (if any) set on the window, that was replaced by the nextTask.
currentTaskThe task (if any) that was set on the window.
task::ImageTask * geometrize::dialog::ImageTaskWindow::getImageTask ( )

getImageTask Gets a pointer to the current image task shown by the window.

Returns
The image task shown by the window, or nullptr if none is set.
806 {
807  return d->getImageTask();
808 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::on_actionExit_triggered ( )
privateslot
816 {
817  d->close();
818 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::on_actionLoad_Settings_Template_triggered ( )
privateslot
821 {
822  d->loadSettingsTemplate();
823 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::on_actionReveal_Launch_Window_triggered ( )
privateslot
831 {
832  d->revealLaunchWindow();
833 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::on_actionSave_Settings_Template_triggered ( )
privateslot
826 {
827  d->saveSettingsTemplate();
828 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83
void geometrize::dialog::ImageTaskWindow::setImageTask ( task::ImageTask task)

setImageTask Sets the current image task shown by the window.

Parameters
taskThe image task to set on the image task window. The window takes ownership of the image task.
811 {
812  d->setImageTask(task);
813 }
std::unique_ptr< ImageTaskWindowImpl > d
Definition: imagetaskwindow.h:83

Here is the caller graph for this function:

void geometrize::dialog::ImageTaskWindow::willSwitchImageTask ( task::ImageTask lastTask,
task::ImageTask nextTask 
)
signal

willSwitchImageTask Signal dispatched immediately before an image task is set on the image task window.

Parameters
lastTaskThe last task (if any) set on the window, that will be replaced by the nextTask.
nextTaskThe next task (if any) that will be set on the window.

Member Data Documentation

std::unique_ptr<ImageTaskWindowImpl> geometrize::dialog::ImageTaskWindow::d
private

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