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
147  :
148  QPushButton(nullptr),
149  d{std::make_unique<TemplateButton::TemplateButtonImpl>(this, templateLoader, templateFolder)}
150 {
151 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
geometrize::dialog::TemplateButton::~TemplateButton ( )
virtual
154 {
155 }

Member Function Documentation

void geometrize::dialog::TemplateButton::changeEvent ( QEvent *  event)
overrideprotected
168 {
169  if (event->type() == QEvent::LanguageChange) {
170  d->onLanguageChange();
171  }
172  QPushButton::changeEvent(event);
173 }
std::unique_ptr< TemplateButtonImpl > d
Definition: templatebutton.h:49
void geometrize::dialog::TemplateButton::contextMenuEvent ( QContextMenuEvent *  e)
overrideprivatevirtual
158 {
159  d->showContextMenu(e);
160 }
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.
163 {
164  return d->getTemplateManifest();
165 }
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: