Overte C++ Documentation
StandAloneJSConsole.h
1 //
2 // StandAloneJSConsole.h
3 //
4 //
5 // Created by Clement on 1/17/15.
6 // Copyright 2015 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_StandAloneJSConsole_h
13 #define hifi_StandAloneJSConsole_h
14 
15 #include <QPointer>
16 #include <DependencyManager.h>
17 
18 #include "JSConsole.h"
19 
20 class QDialog;
21 
22 class StandAloneJSConsole : public QObject, public Dependency {
23  Q_OBJECT
24  SINGLETON_DEPENDENCY
25 
26 public slots:
27  void toggleConsole();
28 
29 private:
30  StandAloneJSConsole() {}
31 
32  QPointer<QDialog> _jsConsole;
33 };
34 
35 #endif // hifi_StandAloneJSConsole_h