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 Member Functions | Private Attributes | List of all members
geometrize::dialog::TemplateButton Class Reference

The TemplateButton class is a button that opens a task template when clicked. More...

#include <templatebutton.h>

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

Classes

class  TemplateButtonImpl
 

Signals

void signal_templateLoaded (QString, bool)
 

Public Member Functions

 TemplateButton (chaiscript::ChaiScript *const templateLoader, const QString &templateFolder)
 
virtual ~TemplateButton ()
 
TemplateManifest getTemplateManifest () const
 getTemplateManifest Get the manifest data of the template this item corresponds to. More...
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Member Functions

virtual void contextMenuEvent (QContextMenuEvent *e) override
 

Private Attributes

std::unique_ptr
< TemplateButtonImpl
d
 

Detailed Description

The TemplateButton class is a button that opens a task template when clicked.

Constructor & Destructor Documentation

geometrize::dialog::TemplateButton::TemplateButton ( chaiscript::ChaiScript *const  templateLoader,
const QString &  templateFolder 
)
explicit
145  :
146  QPushButton(nullptr),
147  d{std::make_unique<TemplateButton::TemplateButtonImpl>(this, templateLoader, templateFolder)}
148 {
149 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
geometrize::dialog::TemplateButton::~TemplateButton ( )
virtual
152 {
153 }

Member Function Documentation

void geometrize::dialog::TemplateButton::changeEvent ( QEvent *  event)
overrideprotected
166 {
167  if (event->type() == QEvent::LanguageChange) {
168  d->onLanguageChange();
169  }
170  QPushButton::changeEvent(event);
171 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
void geometrize::dialog::TemplateButton::contextMenuEvent ( QContextMenuEvent *  e)
overrideprivatevirtual
156 {
157  d->showContextMenu(e);
158 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
TemplateManifest geometrize::dialog::TemplateButton::getTemplateManifest ( ) const

getTemplateManifest Get the manifest data of the template this item corresponds to.

Returns
The template manifest data this item corresponds to.
161 {
162  return d->getTemplateManifest();
163 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
void geometrize::dialog::TemplateButton::signal_templateLoaded ( QString  ,
bool   
)
signal

Member Data Documentation

std::unique_ptr<TemplateButtonImpl> geometrize::dialog::TemplateButton::d
private

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