VirtualBox

Ignore:
Timestamp:
Dec 4, 2019 11:31:05 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9390: UIActionPoolManager: We decided to have action similar to Export to OCI for local export as well, this is required NLS template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp

    r80887 r82375  
    742742        setName(QApplication::translate("UIActionPool", "&Move..."));
    743743        setStatusTip(QApplication::translate("UIActionPool", "Move selected virtual machine"));
     744    }
     745};
     746
     747/** Simple action extension, used as 'Perform Export Machine locally' action class. */
     748class UIActionSimpleSelectorMachinePerformExportLocally : public UIActionSimple
     749{
     750    Q_OBJECT;
     751
     752public:
     753
     754    /** Constructs action passing @a pParent to the base-class. */
     755    UIActionSimpleSelectorMachinePerformExportLocally(UIActionPool *pParent)
     756        : UIActionSimple(pParent, ":/export_16px.png", ":/export_disabled_16px.png")
     757    {}
     758
     759protected:
     760
     761    /** Returns shortcut extra-data ID. */
     762    virtual QString shortcutExtraDataID() const /* override */
     763    {
     764        return QString("ExportLocally");
     765    }
     766
     767    /** Handles translation event. */
     768    virtual void retranslateUi() /* override */
     769    {
     770        setName(QApplication::translate("UIActionPool", "E&xport Locally..."));
     771        setStatusTip(QApplication::translate("UIActionPool", "Export selected virtual machine locally"));
    744772    }
    745773};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette