mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Add About dialog to cura main QML file
This commit is contained in:
parent
e0e33aa029
commit
28ac931629
1 changed files with 26 additions and 18 deletions
|
@ -73,33 +73,32 @@ UM.MainWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu {
|
Menu {
|
||||||
id:extension_menu
|
id: extension_menu
|
||||||
//: Extensions menu
|
//: Extensions menu
|
||||||
title: qsTr("E&xtensions");
|
title: qsTr("E&xtensions");
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
model: UM.Models.extensionModel
|
model: UM.Models.extensionModel
|
||||||
id: blub
|
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
{
|
{
|
||||||
title: model.name;
|
|
||||||
id: sub_menu
|
id: sub_menu
|
||||||
|
title: model.name;
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
model: actions
|
model: actions
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
text:model.text
|
text: model.text
|
||||||
onTriggered: UM.Models.extensionModel.subMenuTriggered(name,model.text)
|
onTriggered: UM.Models.extensionModel.subMenuTriggered(name, model.text)
|
||||||
}
|
}
|
||||||
onObjectAdded: sub_menu.insertItem(index, object)
|
onObjectAdded: sub_menu.insertItem(index, object)
|
||||||
onObjectRemoved: sub_menu.removeItem(object)
|
onObjectRemoved: sub_menu.removeItem(object)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onObjectAdded: extension_menu.insertItem(index, object)
|
onObjectAdded: extension_menu.insertItem(index, object)
|
||||||
onObjectRemoved: extension_menu.removeItem(object)
|
onObjectRemoved: extension_menu.removeItem(object)
|
||||||
}
|
}
|
||||||
|
@ -162,13 +161,17 @@ UM.MainWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.MessageStack {
|
UM.MessageStack {
|
||||||
anchors.bottom: parent.bottom;
|
anchors {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter;
|
left: toolbar.right;
|
||||||
width: parent.width * 0.333;
|
leftMargin: UM.Theme.sizes.window_margin.width;
|
||||||
height: 250;
|
right: sidebar.left;
|
||||||
|
rightMargin: UM.Theme.sizes.window_margin.width;
|
||||||
|
top: parent.verticalCenter;
|
||||||
|
bottom: parent.bottom;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
id: view_panel
|
id: view_panel
|
||||||
|
|
||||||
|
@ -254,6 +257,8 @@ UM.MainWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
PrinterToolbar {
|
PrinterToolbar {
|
||||||
|
id: toolbar;
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left;
|
left: parent.left;
|
||||||
leftMargin: UM.Theme.sizes.window_margin.width;
|
leftMargin: UM.Theme.sizes.window_margin.width;
|
||||||
|
@ -268,7 +273,7 @@ UM.MainWindow {
|
||||||
id: preferences
|
id: preferences
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
insertPage(1, qsTr('View'), Qt.resolvedUrl('./ViewPage.qml'));
|
insertPage(1, qsTr('View'), 'view-preview', Qt.resolvedUrl('./ViewPage.qml'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,6 +326,7 @@ UM.MainWindow {
|
||||||
documentation.onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/support");
|
documentation.onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/support");
|
||||||
reportBug.onTriggered: Qt.openUrlExternally("https://github.com/Ultimaker/PluggableCura/issues");
|
reportBug.onTriggered: Qt.openUrlExternally("https://github.com/Ultimaker/PluggableCura/issues");
|
||||||
showEngineLog.onTriggered: engineLog.visible = true;
|
showEngineLog.onTriggered: engineLog.visible = true;
|
||||||
|
about.onTriggered: aboutDialog.visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu {
|
Menu {
|
||||||
|
@ -392,8 +398,6 @@ UM.MainWindow {
|
||||||
UM.MeshFileHandler.writeLocalFile(fileUrl);
|
UM.MeshFileHandler.writeLocalFile(fileUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EngineLog {
|
EngineLog {
|
||||||
id: engineLog;
|
id: engineLog;
|
||||||
|
@ -403,6 +407,10 @@ UM.MainWindow {
|
||||||
id: addMachine;
|
id: addMachine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AboutDialog {
|
||||||
|
id: aboutDialog
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: Printer
|
target: Printer
|
||||||
onRequestAddPrinter: addMachine.visible = true;
|
onRequestAddPrinter: addMachine.visible = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue