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

The TaskItemWidget class is a button that opens/shows a task when pressed (such as a recently opened image, when used on the recently-opened items list). More...

#include <taskitemwidget.h>

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

Classes

class  TaskItemWidgetImpl
 

Public Member Functions

 TaskItemWidget (const QString &taskItemId, const QString &taskItemDisplayName, const std::function< void(const QString &)> &openItemCb, const std::function< void(const QString &)> &removeItemCb)
 
virtual ~TaskItemWidget ()
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Member Functions

virtual void contextMenuEvent (QContextMenuEvent *e) override
 
virtual void mouseReleaseEvent (QMouseEvent *e) override
 

Private Attributes

std::unique_ptr
< TaskItemWidget::TaskItemWidgetImpl
d
 

Detailed Description

The TaskItemWidget class is a button that opens/shows a task when pressed (such as a recently opened image, when used on the recently-opened items list).

Constructor & Destructor Documentation

geometrize::dialog::TaskItemWidget::TaskItemWidget ( const QString &  taskItemId,
const QString &  taskItemDisplayName,
const std::function< void(const QString &)> &  openItemCb,
const std::function< void(const QString &)> &  removeItemCb 
)
explicit
170  :
171  d{std::make_unique<TaskItemWidget::TaskItemWidgetImpl>(this, taskItemId, taskItemDisplayName, openItemCb, removeItemCb)}
172 {
173 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
geometrize::dialog::TaskItemWidget::~TaskItemWidget ( )
virtual
176 {
177 }

Member Function Documentation

void geometrize::dialog::TaskItemWidget::changeEvent ( QEvent *  event)
overrideprotected
194 {
195  if (event->type() == QEvent::LanguageChange) {
196  d->onLanguageChange();
197  }
198  QWidget::changeEvent(event);
199 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
void geometrize::dialog::TaskItemWidget::contextMenuEvent ( QContextMenuEvent *  e)
overrideprivatevirtual
180 {
181  d->onContextMenuEvent(e);
182 
183  QWidget::contextMenuEvent(e);
184 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
void geometrize::dialog::TaskItemWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprivatevirtual
187 {
188  d->onMouseReleaseEvent(e);
189 
190  QWidget::mouseReleaseEvent(e);
191 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37

Member Data Documentation

std::unique_ptr<TaskItemWidget::TaskItemWidgetImpl> geometrize::dialog::TaskItemWidget::d
private

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