mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 00:35:13 +08:00
Merge pull request #5721 from Ultimaker/CURA-6334_add_id_to_profilesPage
Add the ids for the menu buttons to be used in Squish.
This commit is contained in:
commit
feb074d4b5
@ -69,6 +69,7 @@ Item
|
|||||||
// Activate button
|
// Activate button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: activateMenuButton
|
||||||
text: catalog.i18nc("@action:button", "Activate")
|
text: catalog.i18nc("@action:button", "Activate")
|
||||||
iconName: "list-activate"
|
iconName: "list-activate"
|
||||||
enabled: !isCurrentItemActivated
|
enabled: !isCurrentItemActivated
|
||||||
@ -84,6 +85,7 @@ Item
|
|||||||
// Create button
|
// Create button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: createMenuButton
|
||||||
text: catalog.i18nc("@label", "Create")
|
text: catalog.i18nc("@label", "Create")
|
||||||
iconName: "list-add"
|
iconName: "list-add"
|
||||||
enabled: base.canCreateProfile && !Cura.MachineManager.stacksHaveErrors
|
enabled: base.canCreateProfile && !Cura.MachineManager.stacksHaveErrors
|
||||||
@ -99,6 +101,7 @@ Item
|
|||||||
// Duplicate button
|
// Duplicate button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: duplicateMenuButton
|
||||||
text: catalog.i18nc("@label", "Duplicate")
|
text: catalog.i18nc("@label", "Duplicate")
|
||||||
iconName: "list-add"
|
iconName: "list-add"
|
||||||
enabled: !base.canCreateProfile
|
enabled: !base.canCreateProfile
|
||||||
@ -114,6 +117,7 @@ Item
|
|||||||
// Remove button
|
// Remove button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: removeMenuButton
|
||||||
text: catalog.i18nc("@action:button", "Remove")
|
text: catalog.i18nc("@action:button", "Remove")
|
||||||
iconName: "list-remove"
|
iconName: "list-remove"
|
||||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only && !base.isCurrentItemActivated
|
enabled: base.hasCurrentItem && !base.currentItem.is_read_only && !base.isCurrentItemActivated
|
||||||
@ -126,6 +130,7 @@ Item
|
|||||||
// Rename button
|
// Rename button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: renameMenuButton
|
||||||
text: catalog.i18nc("@action:button", "Rename")
|
text: catalog.i18nc("@action:button", "Rename")
|
||||||
iconName: "edit-rename"
|
iconName: "edit-rename"
|
||||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only
|
enabled: base.hasCurrentItem && !base.currentItem.is_read_only
|
||||||
@ -139,6 +144,7 @@ Item
|
|||||||
// Import button
|
// Import button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: importMenuButton
|
||||||
text: catalog.i18nc("@action:button", "Import")
|
text: catalog.i18nc("@action:button", "Import")
|
||||||
iconName: "document-import"
|
iconName: "document-import"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -149,6 +155,7 @@ Item
|
|||||||
// Export button
|
// Export button
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: exportMenuButton
|
||||||
text: catalog.i18nc("@action:button", "Export")
|
text: catalog.i18nc("@action:button", "Export")
|
||||||
iconName: "document-export"
|
iconName: "document-export"
|
||||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only
|
enabled: base.hasCurrentItem && !base.currentItem.is_read_only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user