mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 05:09:37 +08:00
37 lines
1.1 KiB
QML
37 lines
1.1 KiB
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
|
|
import UM 1.3 as UM
|
|
import Cura 1.0 as Cura
|
|
|
|
Cura.ExpandableComponent
|
|
{
|
|
id: printSetupSelector
|
|
|
|
dragPreferencesNamePrefix: "view/settings"
|
|
property bool preSlicedData: PrintInformation !== null && PrintInformation.preSliced
|
|
|
|
contentPadding: UM.Theme.getSize("default_lining").width
|
|
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
|
|
enabled: !preSlicedData
|
|
disabledText: catalog.i18nc("@label shown when we load a Gcode file", "Print setup disabled. G-code file can not be modified.")
|
|
|
|
UM.I18nCatalog
|
|
{
|
|
id: catalog
|
|
name: "cura"
|
|
}
|
|
|
|
headerItem: PrintSetupSelectorHeader {}
|
|
|
|
property var extrudersModel: CuraApplication.getExtrudersModel()
|
|
|
|
contentItem: PrintSetupSelectorContents {}
|
|
|
|
onExpandedChanged: UM.Preferences.setValue("view/settings_visible", expanded)
|
|
Component.onCompleted: expanded = UM.Preferences.getValue("view/settings_visible")
|
|
}
|