Get default settings view to work as sidebar component

This commit is contained in:
ChrisTerBeke 2017-12-04 16:28:35 +01:00
parent 5eeb98bbcf
commit 3c863fc388
8 changed files with 138 additions and 49 deletions

View file

@ -366,19 +366,24 @@ UM.MainWindow
onStopMonitoringPrint: base.showPrintMonitor = false
}
Sidebar
Loader
{
id: sidebar;
id: sidebar
anchors
{
top: topbar.bottom;
bottom: parent.bottom;
right: parent.right;
top: topbar.bottom
bottom: parent.bottom
right: parent.right
}
z: 1
width: UM.Theme.getSize("sidebar").width;
monitoringPrint: base.showPrintMonitor
width: UM.Theme.getSize("sidebar").width
// all sidebar components will have access to the show print monitor flag
property bool showPrintMonitor: base.showPrintMonitor
// dynamically get the component from the sidebar controller
source: Cura.SidebarController.activeComponentPath
}
Rectangle

View file

@ -0,0 +1,21 @@
// Copyright (c) 2017 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.2
Sidebar
{
id: sidebarSettings
property bool showPrintMonitor: false
anchors {
top: parent.top
bottom: parent.bottom
left: parent.left
right: parent.right
}
width: parent.width
monitoringPrint: showPrintMonitor
}