Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -22,6 +22,13 @@ · 21 unmodified lines | |||
| 22 | #include <DependencyManager.h> | 22 | #include <DependencyManager.h> |
| 23 | #include <OffscreenUi.h> | 23 | #include <OffscreenUi.h> |
| 24 | 24 | ||
| 25 | static const QVariantMap DOCK_AREA { | ||
| 26 | { "TOP", DockArea::TOP }, | ||
| 27 | { "BOTTOM", DockArea::BOTTOM }, | ||
| 28 | { "LEFT", DockArea::LEFT }, | ||
| 29 | { "RIGHT", DockArea::RIGHT } | ||
| 30 | }; | ||
| 31 | |||
| 25 | int DesktopScriptingInterface::getWidth() { | 32 | int DesktopScriptingInterface::getWidth() { |
| 26 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); | 33 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); |
| 27 | return size.width(); | 34 | return size.width(); |
| @@ -39,6 +46,10 @@ QVariantMap DesktopScriptingInterface::getPresentationMode() { · 11 unmodified lines | |||
| 39 | return presentationModes; | 46 | return presentationModes; |
| 40 | } | 47 | } |
| 41 | 48 | ||
| 49 | QVariantMap DesktopScriptingInterface::getDockArea() { | ||
| 50 | return DOCK_AREA; | ||
| 51 | } | ||
| 52 | |||
| 42 | void DesktopScriptingInterface::setHUDAlpha(float alpha) { | 53 | void DesktopScriptingInterface::setHUDAlpha(float alpha) { |
| 43 | qApp->getApplicationCompositor().setAlpha(alpha); | 54 | qApp->getApplicationCompositor().setAlpha(alpha); |
| 44 | } | 55 | } |