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
|
#pragma once
#include <QString>
#include <QObject>
#include <QProgressDialog>
#include <QScriptable>
#include "../../SyntopiaCore/Math/Vector3.h"
#include "../../SyntopiaCore/GLEngine/EngineWidget.h"
#include "../GUI/MainWindow.h"
namespace StructureSynth {
namespace JavaScriptSupport {
/// Write info to console (available as a Global object field in the JavaScript environment).
class Debug : public QObject {
Q_OBJECT
public:
Debug(QStatusBar* statusBar);
~Debug();
public slots:
void Info(QString input);
void Message(QString input);
void ShowProgress(QString caption);
void SetProgress(double percentage); // between 0 and 1
void HideProgress();
void Sleep(int ms);
void waitForMouseButton();
private:
QProgressDialog* progress;
QStatusBar* statusBar;
};
}
}
|