Showing the changes to interface/src/scripting/TabletScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -0,0 +1,33 @@ | |||
| 1 | // | ||
| 2 | // Created by Bradley Austin Davis on 2016-06-16 | ||
| 3 | // Copyright 2013-2016 High Fidelity, Inc. | ||
| 4 | // | ||
| 5 | // Distributed under the Apache License, Version 2.0. | ||
| 6 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
| 7 | // | ||
| 8 | |||
| 9 | #include "TabletScriptingInterface.h" | ||
| 10 | |||
| 11 | #include <QtCore/QThread> | ||
| 12 | |||
| 13 | #include <OffscreenUi.h> | ||
| 14 | #include "QmlWrapper.h" | ||
| 15 | |||
| 16 | class TabletButtonProxy : public QmlWrapper { | ||
| 17 | Q_OBJECT | ||
| 18 | |||
| 19 | public: | ||
| 20 | TabletButtonProxy(QObject* qmlObject, QObject* parent = nullptr) : QmlWrapper(qmlObject, parent) { | ||
| 21 | connect(qmlObject, SIGNAL(clicked()), this, SIGNAL(clicked())); | ||
| 22 | } | ||
| 23 | |||
| 24 | signals: | ||
| 25 | void clicked(); | ||
| 26 | }; | ||
| 27 | |||
| 28 | QObject* TabletScriptingInterface::getTablet(const QString& tabletId) { | ||
| 29 | // AJT TODO: how the fuck do I get access to the toolbar qml?!? from here? | ||
| 30 | return nullptr; | ||
| 31 | } | ||
| 32 | |||
| 33 | #include "TabletScriptingInterface.moc" | ||