mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 13:47:51 -06:00
Add the ids for the menu buttons to be used in Squish.
This commit is contained in:
parent
f0ccb2504f
commit
d5de401dfa
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue