History

Added TabletScriptingInterface

Anthony J. Thibault committed 9 years ago

Commit d94da761 parent 99285654 files · +129 −49Browse files

Showing the changes to interface/src/scripting/TabletScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

interface/src/scripting/TabletScriptingInterface.cpp+33−0
@@ -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
16class TabletButtonProxy : public QmlWrapper {
17 Q_OBJECT
18
19public:
20 TabletButtonProxy(QObject* qmlObject, QObject* parent = nullptr) : QmlWrapper(qmlObject, parent) {
21 connect(qmlObject, SIGNAL(clicked()), this, SIGNAL(clicked()));
22 }
23
24signals:
25 void clicked();
26};
27
28QObject* 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"