123456789101112131415161718192021222324252627282930 |
- #ifndef USTFILE_H
- #define USTFILE_H
- #include "INIFile.h"
- #include <QJsonArray>
- #include <QJsonObject>
- class USTFile : public INIFile
- {
- public:
- USTFile();
- QJsonArray json(){return _ust;}
- protected:
- void handleKey(QString key,QString value);
- void handleSection(QString section);
- bool writeOutputToStream();
- private:
- bool _isSetting=false;
- bool _isNote=false;
- int _noteCounter=-1;
- int _posPulses=0;
- float _tempo=120;
- QJsonArray _ust;
- QJsonObject _note;
- void genSetup();
- };
- #endif // USTFILE_H
|