Overte C++ Documentation
TestingDialog.h
1 //
2 // TestingDialog.h
3 // interface/src/ui
4 //
5 // Created by Ryan Jones on 12/3/2016.
6 // Copyright 2016 High Fidelity, Inc.
7 // Copyright 2023 Overte e.V.
8 //
9 // Distributed under the Apache License, Version 2.0.
10 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
11 // SPDX-License-Identifier: Apache-2.0
12 //
13 
14 #ifndef hifi_TestingDialog_h
15 #define hifi_TestingDialog_h
16 
17 #include <memory>
18 
19 #include <QDialog>
20 #include "JSConsole.h"
21 
22 class ScriptManager;
23 using ScriptManagerPointer = std::shared_ptr<ScriptManager>;
24 
25 const QString windowLabel = "Client Script Tests";
26 const QString testRunnerRelativePath = "/scripts/developer/tests/unit_tests/testRunner.js";
27 const unsigned int TESTING_CONSOLE_HEIGHT = 400;
28 
29 class TestingDialog : public QDialog {
30  Q_OBJECT
31 public:
32  TestingDialog(QWidget* parent);
33 
34  void onTestingFinished(const QString& scriptPath);
35 
36 private:
37  std::unique_ptr<JSConsole> _console;
38  ScriptManagerPointer _scriptManager;
39 };
40 
41 #endif
Manages a single scripting engine.
Definition: ScriptManager.h:281