History

dockable window

danteruiz committed 7 years ago

Commit 38066311 parent 4821e749 files · +239 −47Browse files

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

Unified · Split

interface/src/scripting/DesktopScriptingInterface.cpp+11−0
@@ -22,6 +22,13 @@ · 21 unmodified lines
2222 #include <DependencyManager.h>
2323 #include <OffscreenUi.h>
2424
25+static const QVariantMap DOCK_AREA {
26+ { "TOP", DockArea::TOP },
27+ { "BOTTOM", DockArea::BOTTOM },
28+ { "LEFT", DockArea::LEFT },
29+ { "RIGHT", DockArea::RIGHT }
30+};
31+
2532 int DesktopScriptingInterface::getWidth() {
2633 QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize();
2734 return size.width();
@@ -39,6 +46,10 @@ QVariantMap DesktopScriptingInterface::getPresentationMode() { · 11 unmodified lines
3946 return presentationModes;
4047 }
4148
49+QVariantMap DesktopScriptingInterface::getDockArea() {
50+ return DOCK_AREA;
51+}
52+
4253 void DesktopScriptingInterface::setHUDAlpha(float alpha) {
4354 qApp->getApplicationCompositor().setAlpha(alpha);
4455 }