WIP: Create new Machine Settings dialog widgets

This commit is contained in:
Lipu Fei 2019-03-12 09:54:07 +01:00
parent 49233216ec
commit 6c2e80d2a1
7 changed files with 783 additions and 0 deletions

View file

@ -0,0 +1,55 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
Item
{
id: base
anchors.fill: parent
TabBar
{
id: bar
width: parent.width
TabButton
{
text: "Printer"
}
Repeater
{
id: extrudersTabsRepeater
model: ["Extruder 1", "Extruder 2", "Extruder 3"]
TabButton
{
text: modelData
}
}
}
StackLayout
{
width: parent.width
currentIndex: bar.currentIndex
Item
{
id: printerTab
}
Repeater
{
model: ["Extruder 1", "Extruder 2", "Extruder 3"]
Item
{
anchors.centerIn: parent
Label // TODO: this is a dummy
{
anchors.centerIn: parent
text: modelData
}
}
}
}
}