mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Added ids to materials for squish tests
-Added a text property to MaterialsBrandSection -Added ids to materials menu buttons
This commit is contained in:
parent
6708d9da64
commit
3b4e253e98
3 changed files with 9 additions and 1 deletions
|
@ -13,7 +13,8 @@ import Cura 1.0 as Cura
|
|||
Item
|
||||
{
|
||||
id: brand_section
|
||||
|
||||
|
||||
property var text: ""
|
||||
property var sectionName: ""
|
||||
property var elementsModel // This can be a MaterialTypesModel or GenericMaterialsModel or FavoriteMaterialsModel
|
||||
property var hasMaterialTypes: true // It indicates wheather it has material types or not
|
||||
|
|
|
@ -159,6 +159,7 @@ Item
|
|||
delegate: MaterialsBrandSection
|
||||
{
|
||||
id: brandSection
|
||||
text: model.name
|
||||
sectionName: model.name
|
||||
elementsModel: model.material_types
|
||||
hasMaterialTypes: true
|
||||
|
|
|
@ -81,6 +81,7 @@ Item
|
|||
// Activate button
|
||||
Button
|
||||
{
|
||||
id: activateMenuButton
|
||||
text: catalog.i18nc("@action:button", "Activate")
|
||||
iconName: "list-activate"
|
||||
enabled: !isCurrentItemActivated && Cura.MachineManager.hasMaterials
|
||||
|
@ -98,6 +99,7 @@ Item
|
|||
// Create button
|
||||
Button
|
||||
{
|
||||
id: createMenuButton
|
||||
text: catalog.i18nc("@action:button", "Create")
|
||||
iconName: "list-add"
|
||||
onClicked:
|
||||
|
@ -111,6 +113,7 @@ Item
|
|||
// Duplicate button
|
||||
Button
|
||||
{
|
||||
id: duplicateMenuButton
|
||||
text: catalog.i18nc("@action:button", "Duplicate");
|
||||
iconName: "list-add"
|
||||
enabled: base.hasCurrentItem
|
||||
|
@ -125,6 +128,7 @@ Item
|
|||
// Remove button
|
||||
Button
|
||||
{
|
||||
id: removeMenuButton
|
||||
text: catalog.i18nc("@action:button", "Remove")
|
||||
iconName: "list-remove"
|
||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only && !base.isCurrentItemActivated && base.materialManager.canMaterialBeRemoved(base.currentItem.container_node)
|
||||
|
@ -138,6 +142,7 @@ Item
|
|||
// Import button
|
||||
Button
|
||||
{
|
||||
id: importMenuButton
|
||||
text: catalog.i18nc("@action:button", "Import")
|
||||
iconName: "document-import"
|
||||
onClicked:
|
||||
|
@ -151,6 +156,7 @@ Item
|
|||
// Export button
|
||||
Button
|
||||
{
|
||||
id: exportMenuButton
|
||||
text: catalog.i18nc("@action:button", "Export")
|
||||
iconName: "document-export"
|
||||
onClicked:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue