Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/fileloader.h
Show All 28 Lines | |||||
29 | class QVector4D; | 29 | class QVector4D; | ||
30 | 30 | | |||
31 | class FileLoader : public QObject | 31 | class FileLoader : public QObject | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | FileLoader(QString &fileName, QObject *parent = nullptr); | 36 | FileLoader(QString &fileName, QObject *parent = nullptr); | ||
37 | ~FileLoader(); | 37 | ~FileLoader() = default; | ||
38 | 38 | | |||
39 | private: | 39 | private: | ||
40 | QFile _file; | 40 | QFile _file; | ||
41 | const static QString _commentChar; | ||||
42 | const static QStringList _moveCommands; | ||||
43 | const static QString _space; | ||||
44 | const static QString _E; | ||||
45 | const static QString _X; | ||||
46 | const static QString _Y; | ||||
47 | const static QString _Z; | ||||
41 | 48 | | |||
42 | signals: | 49 | signals: | ||
43 | void percentUpdate(QVariant var); | 50 | void percentUpdate(QVariant var); | ||
44 | void posFinished(const QVector<QVector4D> &pos); | 51 | void posFinished(const QVector<QVector4D> &pos); | ||
45 | 52 | | |||
46 | public slots: | 53 | public slots: | ||
47 | void run(); | 54 | void run(); | ||
55 | | ||||
48 | }; | 56 | }; |