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
168  :
169  d{std::make_unique<TaskItemWidget::TaskItemWidgetImpl>(this, taskItemId, taskItemDisplayName, openItemCb, removeItemCb)}
170 {
171 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
geometrize::dialog::TaskItemWidget::~TaskItemWidget ( )
virtual
174 {
175 }

Member Function Documentation

void geometrize::dialog::TaskItemWidget::changeEvent ( QEvent *  event)
overrideprotected
192 {
193  if (event->type() == QEvent::LanguageChange) {
194  d->onLanguageChange();
195  }
196  QWidget::changeEvent(event);
197 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
void geometrize::dialog::TaskItemWidget::contextMenuEvent ( QContextMenuEvent *  e)
overrideprivatevirtual
178 {
179  d->onContextMenuEvent(e);
180 
181  QWidget::contextMenuEvent(e);
182 }
std::unique_ptr< TaskItemWidget::TaskItemWidgetImpl > d
Definition: taskitemwidget.h:37
void geometrize::dialog::TaskItemWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprivatevirtual
185 {
186  d->onMouseReleaseEvent(e);
187 
188  QWidget::mouseReleaseEvent(e);
189 }
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: