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::TaskQueueWindow Class Reference

The TaskQueueWindow class encapsulates the UI for creating, configuring and executing a collection of tasks that geometrize images. More...

#include <taskqueuewindow.h>

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

Classes

class  TaskQueueWindowImpl
 

Signals

void signal_scriptChanged (const std::string &functionName, const std::string &code)
 

Public Member Functions

 TaskQueueWindow ()
 
virtual ~TaskQueueWindow ()
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
void changeEvent (QEvent *) override
 

Private Slots

void on_actionExit_triggered ()
 

Private Attributes

std::unique_ptr
< TaskQueueWindowImpl
d
 

Detailed Description

The TaskQueueWindow class encapsulates the UI for creating, configuring and executing a collection of tasks that geometrize images.

Constructor & Destructor Documentation

geometrize::dialog::TaskQueueWindow::TaskQueueWindow ( )
explicit
194  :
195  QMainWindow{nullptr},
196  d{std::make_unique<TaskQueueWindow::TaskQueueWindowImpl>(this)}
197 {
198 }
std::unique_ptr< TaskQueueWindowImpl > d
Definition: taskqueuewindow.h:39
geometrize::dialog::TaskQueueWindow::~TaskQueueWindow ( )
virtual
201 {
202 }

Member Function Documentation

void geometrize::dialog::TaskQueueWindow::changeEvent ( QEvent *  event)
overrideprotected
210 {
211  if (event->type() == QEvent::LanguageChange) {
212  d->onLanguageChange();
213  }
214  QMainWindow::changeEvent(event);
215 }
std::unique_ptr< TaskQueueWindowImpl > d
Definition: taskqueuewindow.h:39
void geometrize::dialog::TaskQueueWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual
218 {
219  event->acceptProposedAction();
220 }
void geometrize::dialog::TaskQueueWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual
223 {
224  const QList<QUrl> urls{geometrize::format::getUrls(event->mimeData())};
225  QStringList tasks;
226  for(const QUrl& url : urls) {
227  const QString urlString{url.toLocalFile()};
228  tasks.push_back(urlString);
229  }
230  d->addItems(tasks);
231 }
QList< QUrl > getUrls(const QMimeData *const data)
getUrls Gets a list of URLs from a Qt MimeData item.
Definition: formatsupport.cpp:35
std::unique_ptr< TaskQueueWindowImpl > d
Definition: taskqueuewindow.h:39

Here is the call graph for this function:

void geometrize::dialog::TaskQueueWindow::on_actionExit_triggered ( )
privateslot
205 {
206  d->close();
207 }
std::unique_ptr< TaskQueueWindowImpl > d
Definition: taskqueuewindow.h:39
void geometrize::dialog::TaskQueueWindow::signal_scriptChanged ( const std::string &  functionName,
const std::string &  code 
)
signal

Member Data Documentation

std::unique_ptr<TaskQueueWindowImpl> geometrize::dialog::TaskQueueWindow::d
private

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