-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpectusviewer.h
More file actions
49 lines (39 loc) · 1.5 KB
/
pectusviewer.h
File metadata and controls
49 lines (39 loc) · 1.5 KB
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
39
40
41
42
43
44
45
46
47
48
49
#ifndef PECTUSVIEWER_H
#define PECTUSVIEWER_H
#include <QObject>
#include <QDebug>
class PectusViewer : public QObject
{
Q_OBJECT
Q_PROPERTY(QString visibleFileName READ getVisibleFileName NOTIFY visibleFileNameChanged)
Q_PROPERTY(QString scanFileName READ getScanFileName NOTIFY scanFileNameChanged)
Q_PROPERTY(bool renderStatus READ getRenderStatus NOTIFY renderStatusChanged)
Q_PROPERTY(bool notesActive READ getNotesActive NOTIFY notesActiveChanged)
Q_PROPERTY(QString notes READ getNotes NOTIFY notesChanged)
public:
explicit PectusViewer(QObject *parent = nullptr);
QString getVisibleFileName();
QString getScanFileName();
bool getRenderStatus();
bool getNotesActive();
QString getNotes();
Q_INVOKABLE void setVisibleFileName(const QString & arg);
Q_INVOKABLE void setScanFileName(const QString & arg);
Q_INVOKABLE void renderScan();
Q_INVOKABLE void toggleNotesActive();
Q_INVOKABLE void updateNotes(const QString & arg);
private:
QString m_visibleFileName; // Filename shown in "filename" box
QString m_scanFileName; // True filename processed. Not set until "Render 3D Scan" is selected
bool m_renderStatus;
bool m_notesActive;
QString m_notes;
signals:
void visibleFileNameChanged(const QString & arg);
void scanFileNameChanged(const QString & arg);
void renderStatusChanged(bool arg);
void notesActiveChanged(bool arg);
void notesChanged(const QString & arg);
public slots:
};
#endif // PECTUSVIEWER_H