templateviewergrid.h
804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __TEMPLATE_VIEWER_GRID_H
#define __TEMPLATE_VIEWER_GRID_H
#include <QGridLayout>
#include <QList>
#include <QSharedPointer>
#include <openbr_plugin.h>
#include "templateviewer.h"
namespace br
{
class BR_EXPORT_GUI TemplateViewerGrid : public QWidget
{
Q_OBJECT
QGridLayout gridLayout;
QList< QSharedPointer<TemplateViewer> > templateViewers;
public:
explicit TemplateViewerGrid(QWidget *parent = 0);
public slots:
void setFiles(const br::FileList &file);
void setFormat(const QString &format);
void setMousePoint(const QPointF &mousePoint);
signals:
void newInput(br::File input);
void newInput(QImage input);
void newMousePoint(QPointF mousePoint);
void selectedInput(br::File input);
};
} // namespace br
#endif // __TEMPLATE_VIEWER_GRID_H