mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 23:38:53 -07:00
Implement a QtApplication and use it in PrinterApplication
This commit is contained in:
parent
797a345aa1
commit
3b9bc5a3a8
2 changed files with 89 additions and 10 deletions
79
Printer.qml
Normal file
79
Printer.qml
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.2
|
||||
import QtQuick.Layouts 1.1
|
||||
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
Cura.MainWindow {
|
||||
id: base
|
||||
title: "Cura"
|
||||
visible: true
|
||||
|
||||
backgroundColor: Qt.rgba(1.0, 0.0, 0.0, 1.0)
|
||||
application: curaApplication
|
||||
|
||||
width: 1024
|
||||
height: 768
|
||||
|
||||
Cura.FilePanel {
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Cura.Panel {
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
|
||||
title: "Camera"
|
||||
|
||||
contents: RowLayout {
|
||||
ToolButton { text: "3D" }
|
||||
ToolButton { text: "Left" }
|
||||
ToolButton { text: "Top" }
|
||||
ToolButton { text: "Front" }
|
||||
}
|
||||
}
|
||||
|
||||
Cura.ToolPanel {
|
||||
anchors.top: parent.top;
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
||||
Cura.Panel {
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
|
||||
title: "View"
|
||||
|
||||
contents: ComboBox {
|
||||
model: ListModel {
|
||||
ListElement { text: "Normal" }
|
||||
ListElement { text: "Layers" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cura.Panel {
|
||||
anchors.right: parent.right;
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
title: "Settings"
|
||||
|
||||
contents: ColumnLayout {
|
||||
Layout.preferredWidth: 200
|
||||
Layout.preferredHeight: 400
|
||||
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
color: "grey"
|
||||
}
|
||||
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
text: "Save"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue