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 Attributes | List of all members
geometrize::dialog::TemplateGrid Class Reference

The TemplateGrid class models the UI for a dynamic grid of project templates. More...

#include <templategrid.h>

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

Classes

class  TemplateGridImpl
 

Signals

void signal_templateLoaded (QString, bool)
 

Public Member Functions

 TemplateGrid (QWidget *parent=nullptr)
 
virtual ~TemplateGrid ()
 
void loadTemplates ()
 loadTemplates Loads all of the available templates, creating buttons for each one in the grid. More...
 
void setItemFilter (const QString &filter)
 setItemFilter Filters the visible items in the template item grid. More...
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Attributes

std::unique_ptr< TemplateGridImpld
 

Detailed Description

The TemplateGrid class models the UI for a dynamic grid of project templates.

Constructor & Destructor Documentation

geometrize::dialog::TemplateGrid::TemplateGrid ( QWidget *  parent = nullptr)
explicit
110  :
111  QWidget(parent),
112  d{std::make_unique<TemplateGrid::TemplateGridImpl>(this)}
113 {
114 }
std::unique_ptr< TemplateGridImpl > d
Definition: templategrid.h:45
geometrize::dialog::TemplateGrid::~TemplateGrid ( )
virtual
117 {
118 }

Member Function Documentation

void geometrize::dialog::TemplateGrid::changeEvent ( QEvent *  event)
overrideprotected
131 {
132  if (event->type() == QEvent::LanguageChange) {
133  d->onLanguageChange();
134  }
135  QWidget::changeEvent(event);
136 }
std::unique_ptr< TemplateGridImpl > d
Definition: templategrid.h:45
void geometrize::dialog::TemplateGrid::loadTemplates ( )

loadTemplates Loads all of the available templates, creating buttons for each one in the grid.

121 {
122  d->loadTemplates();
123 }
std::unique_ptr< TemplateGridImpl > d
Definition: templategrid.h:45
void geometrize::dialog::TemplateGrid::setItemFilter ( const QString &  filter)

setItemFilter Filters the visible items in the template item grid.

Parameters
filterThe filter string.
126 {
127  d->setItemFilter(filter);
128 }
std::unique_ptr< TemplateGridImpl > d
Definition: templategrid.h:45
void geometrize::dialog::TemplateGrid::signal_templateLoaded ( QString  ,
bool   
)
signal

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<TemplateGridImpl> geometrize::dialog::TemplateGrid::d
private

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