VirtualBox

Changeset 39188 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 3, 2011 2:19:00 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: different update message for the non-PUEL package

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_de.ts

    r38973 r39188  
    45754575    </message>
    45764576    <message>
     4577        <source>&lt;p&gt;You have version %1 of the &lt;b&gt;&lt;nobr&gt;%2&lt;/nobr&gt;&lt;/b&gt; installed.&lt;/p&gt;&lt;p&gt;You should download and install version %3 of this extension pack from Oracle!&lt;/p&gt;</source>
     4578        <translation>&lt;p&gt;Sie haben Version %1 des &lt;b&gt;&lt;nobr&gt;%2&lt;/nobr&gt;&lt;/b&gt; installiert.&lt;/p&gt;&lt;p&gt;Sie sollten Version %3 dieses Zusatzpaketes von Oracle herunterladen und installieren!&lt;/p&gt;</translation>
     4579    </message>
     4580    <message>
    45774581        <source>&lt;p&gt;Are you sure you want to download the &lt;b&gt;&lt;nobr&gt;%1&lt;/nobr&gt;&lt;/b&gt; from &lt;nobr&gt;&lt;a href=&quot;%2&quot;&gt;%2&lt;/a&gt;&lt;/nobr&gt; (size %3 bytes)?&lt;/p&gt;</source>
    45784582        <translation>&lt;p&gt;Möchten Sie wirklich das &lt;b&gt;&lt;nobr&gt;%1&lt;/nobr&gt;&lt;/b&gt; von &lt;nobr&gt;&lt;a href=&quot;%2&quot;&gt;%2&lt;/a&gt;&lt;/nobr&gt; (Größe %3 Byte) herunterladen?&lt;/p&gt;</translation>
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r39096 r39188  
    18321832}
    18331833
     1834bool UIMessageCenter::requestUserDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion)
     1835{
     1836    return message(mainWindowShown(), Info,
     1837                   tr("<p>You have version %1 of the <b><nobr>%2</nobr></b> installed.</p>"
     1838                      "<p>You should download and install version %3 of this extension pack from Oracle!</p>")
     1839                      .arg(strExtPackVersion).arg(strExtPackName).arg(strVBoxVersion),
     1840                      0, /* Auto-confirm Id */
     1841                      QIMessageBox::Ok | QIMessageBox::Default,
     1842                      0,
     1843                      0,
     1844                      tr("Ok", "extension pack"));
     1845}
     1846
    18341847bool UIMessageCenter::confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize)
    18351848{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r39096 r39188  
    311311
    312312    bool proposeDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion);
     313    bool requestUserDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion);
    313314    bool confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize);
    314315    bool proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo);
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp

    r38582 r39188  
    136136
    137137    /* Get VirtualBox version: */
    138     VBoxVersion vboxVersion(vboxGlobal().vboxVersionStringNormalized());
     138    QString strVBoxVersion(vboxGlobal().vboxVersionStringNormalized());
     139    VBoxVersion vboxVersion(strVBoxVersion);
    139140    /* Get extension pack version: */
    140141    QString strExtPackVersion(extPack.GetVersion().remove(VBOX_BUILD_PUBLISHER));
     
    145146        return;
    146147
    147     /* Ask the user about extension pack downloading: */
    148     if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName, strExtPackVersion))
    149         return;
     148    if (strExtPackVersion.contains("ENTERPRISE"))
     149    {
     150        /* Inform the user that he should update the extension pack: */
     151        msgCenter().requestUserDownloadExtensionPack(UI_ExtPackName, strExtPackVersion, strVBoxVersion);
     152    }
     153    else
     154    {
     155        /* Ask the user about extension pack downloading: */
     156        if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName, strExtPackVersion))
     157            return;
     158    }
    150159
    151160    /* Run downloader for VirtualBox extension pack: */
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