mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Organize Toolbox (marketplace) qml files according to type
CURA-6569
This commit is contained in:
parent
7af5f132e0
commit
ed7134ded8
@ -7,7 +7,7 @@
|
|||||||
DEFAULT_CURA_APP_NAME = "cura"
|
DEFAULT_CURA_APP_NAME = "cura"
|
||||||
DEFAULT_CURA_DISPLAY_NAME = "Ultimaker Cura"
|
DEFAULT_CURA_DISPLAY_NAME = "Ultimaker Cura"
|
||||||
DEFAULT_CURA_VERSION = "master"
|
DEFAULT_CURA_VERSION = "master"
|
||||||
DEFAULT_CURA_BUILD_TYPE = ""
|
DEFAULT_CURA_BUILD_TYPE = "essentials"
|
||||||
DEFAULT_CURA_DEBUG_MODE = False
|
DEFAULT_CURA_DEBUG_MODE = False
|
||||||
DEFAULT_CURA_SDK_VERSION = "7.0.0"
|
DEFAULT_CURA_SDK_VERSION = "7.0.0"
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ import QtQuick.Dialogs 1.1
|
|||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
|
import "./pages"
|
||||||
|
import "./dialogs"
|
||||||
|
import "./components"
|
||||||
|
|
||||||
Window
|
Window
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
|
@ -67,7 +67,7 @@ Item
|
|||||||
width: UM.Theme.getSize("toolbox_thumbnail_small").width - UM.Theme.getSize("wide_margin").width
|
width: UM.Theme.getSize("toolbox_thumbnail_small").width - UM.Theme.getSize("wide_margin").width
|
||||||
height: UM.Theme.getSize("toolbox_thumbnail_small").height - UM.Theme.getSize("wide_margin").width
|
height: UM.Theme.getSize("toolbox_thumbnail_small").height - UM.Theme.getSize("wide_margin").width
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: model.icon_url || "../images/logobot.svg"
|
source: model.icon_url || "../../images/logobot.svg"
|
||||||
mipmap: true
|
mipmap: true
|
||||||
}
|
}
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
@ -82,7 +82,7 @@ Item
|
|||||||
sourceSize.height: height
|
sourceSize.height: height
|
||||||
visible: installedPackages != 0
|
visible: installedPackages != 0
|
||||||
color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border")
|
color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border")
|
||||||
source: "../images/installed_check.svg"
|
source: "../../images/installed_check.svg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item
|
Item
|
@ -23,7 +23,7 @@ Rectangle
|
|||||||
height: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
|
height: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
|
||||||
width: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
|
width: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: model.icon_url || "../images/logobot.svg"
|
source: model.icon_url || "../../images/logobot.svg"
|
||||||
mipmap: true
|
mipmap: true
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ Rectangle
|
|||||||
}
|
}
|
||||||
visible: installedPackages != 0
|
visible: installedPackages != 0
|
||||||
color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border")
|
color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border")
|
||||||
source: "../images/installed_check.svg"
|
source: "../../images/installed_check.svg"
|
||||||
}
|
}
|
||||||
|
|
||||||
SmallRatingWidget
|
SmallRatingWidget
|
@ -14,7 +14,7 @@ import Cura 1.0 as Cura
|
|||||||
|
|
||||||
UM.Dialog
|
UM.Dialog
|
||||||
{
|
{
|
||||||
// This dialog asks the user whether he/she wants to open a project file as a project or import models.
|
// This dialog asks the user to confirm he/she wants to uninstall materials/pprofiles which are currently in use
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
title: catalog.i18nc("@title:window", "Confirm uninstall") + toolbox.pluginToUninstall
|
title: catalog.i18nc("@title:window", "Confirm uninstall") + toolbox.pluginToUninstall
|
@ -6,6 +6,8 @@ import QtQuick.Controls 1.4
|
|||||||
import QtQuick.Controls.Styles 1.4
|
import QtQuick.Controls.Styles 1.4
|
||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
|
import "../components"
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: page
|
id: page
|
||||||
@ -31,7 +33,7 @@ Item
|
|||||||
width: UM.Theme.getSize("toolbox_thumbnail_medium").width
|
width: UM.Theme.getSize("toolbox_thumbnail_medium").width
|
||||||
height: UM.Theme.getSize("toolbox_thumbnail_medium").height
|
height: UM.Theme.getSize("toolbox_thumbnail_medium").height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: details.icon_url || "../images/logobot.svg"
|
source: details.icon_url || "../../images/logobot.svg"
|
||||||
mipmap: true
|
mipmap: true
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
@ -8,6 +8,8 @@ import UM 1.1 as UM
|
|||||||
|
|
||||||
import Cura 1.1 as Cura
|
import Cura 1.1 as Cura
|
||||||
|
|
||||||
|
import "../components"
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: page
|
id: page
|
||||||
@ -44,7 +46,7 @@ Item
|
|||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: details === null ? "" : (details.icon_url || "../images/logobot.svg")
|
source: details === null ? "" : (details.icon_url || "../../images/logobot.svg")
|
||||||
mipmap: true
|
mipmap: true
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,6 +5,8 @@ import QtQuick 2.10
|
|||||||
import QtQuick.Controls 2.3
|
import QtQuick.Controls 2.3
|
||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
|
import "../components"
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
clip: true
|
clip: true
|
@ -6,6 +6,8 @@ import QtQuick.Controls 2.3
|
|||||||
|
|
||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
|
import "../components"
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
id: page
|
id: page
|
@ -20,7 +20,7 @@ Column
|
|||||||
{
|
{
|
||||||
id: profileImage
|
id: profileImage
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: "../images/logobot.svg"
|
source: "../../images/logobot.svg"
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: Math.round(parent.width / 4)
|
width: Math.round(parent.width / 4)
|
||||||
}
|
}
|
@ -342,7 +342,7 @@ class Toolbox(QObject, Extension):
|
|||||||
self._package_used_qualities = package_used_qualities
|
self._package_used_qualities = package_used_qualities
|
||||||
# Ask change to default material / profile
|
# Ask change to default material / profile
|
||||||
if self._confirm_reset_dialog is None:
|
if self._confirm_reset_dialog is None:
|
||||||
self._confirm_reset_dialog = self._createDialog("ToolboxConfirmUninstallResetDialog.qml")
|
self._confirm_reset_dialog = self._createDialog("dialogs/ToolboxConfirmUninstallResetDialog.qml")
|
||||||
self.uninstallVariablesChanged.emit()
|
self.uninstallVariablesChanged.emit()
|
||||||
if self._confirm_reset_dialog is None:
|
if self._confirm_reset_dialog is None:
|
||||||
Logger.log("e", "ToolboxConfirmUninstallResetDialog should have been initialized, but it is not. Not showing dialog and not uninstalling package.")
|
Logger.log("e", "ToolboxConfirmUninstallResetDialog should have been initialized, but it is not. Not showing dialog and not uninstalling package.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user