Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
templategrid.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QString>
6 #include <QWidget>
7 
8 class QEvent;
9 
10 namespace geometrize
11 {
12 
13 namespace dialog
14 {
15 
19 class TemplateGrid : public QWidget
20 {
21  Q_OBJECT
22 
23 public:
24  explicit TemplateGrid(QWidget* parent = nullptr);
25  virtual ~TemplateGrid();
26 
30  void loadTemplates();
31 
36  void setItemFilter(const QString& filter);
37 
38 protected:
39  void changeEvent(QEvent*) override;
40 
41 signals:
42  void signal_templateLoaded(QString, bool);
43 
44 private:
46  std::unique_ptr<TemplateGridImpl> d;
47 };
48 
49 }
50 
51 }
void signal_templateLoaded(QString, bool)
void loadTemplates()
loadTemplates Loads all of the available templates, creating buttons for each one in the grid...
Definition: templategrid.cpp:120
virtual ~TemplateGrid()
Definition: templategrid.cpp:116
void changeEvent(QEvent *) override
Definition: templategrid.cpp:130
TemplateGrid(QWidget *parent=nullptr)
Definition: templategrid.cpp:110
void setItemFilter(const QString &filter)
setItemFilter Filters the visible items in the template item grid.
Definition: templategrid.cpp:125
std::unique_ptr< TemplateGridImpl > d
Definition: templategrid.h:45
The TemplateGrid class models the UI for a dynamic grid of project templates.
Definition: templategrid.h:19