Changeset 34519 in vbox
- Timestamp:
- Nov 30, 2010 2:17:27 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.cpp
r34064 r34519 90 90 91 91 QStringList VBoxDefs::VBoxFileExts = QStringList() << "xml" << "vbox"; 92 QStringList VBoxDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack"; 92 93 QStringList VBoxDefs::OVFFileExts = QStringList() << "ovf" << "ova"; 93 94 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.h
r34064 r34519 167 167 168 168 static QStringList VBoxFileExts; 169 static QStringList VBoxExtPackFileExts; 169 170 static QStringList OVFFileExts; 170 171 }; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp
r34479 r34519 2410 2410 } 2411 2411 2412 void VBoxProblemReporter::cannotInstallExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent /* = 0 */) 2413 { 2414 message (pParent ? pParent : mainWindowShown(), 2415 Error, 2416 tr("Failed to install the Extension Pack <b>%1</b>.").arg(strFilename), 2417 formatErrorInfo(extPackManager)); 2418 } 2419 2412 2420 void VBoxProblemReporter::warnAboutIncorrectPort (QWidget *pParent) const 2413 2421 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h
r34479 r34519 383 383 void cannotUpdateGuestAdditions (const CProgress &aProgress, QWidget *aParent /* = NULL */) const; 384 384 385 void cannotInstallExtPack(const QString &strFilename, const CExtPackManager &extPackManager, QWidget *pParent = 0); 386 385 387 void warnAboutIncorrectPort(QWidget *pParent) const; 386 388 bool confirmCancelingPortForwardingDialog(QWidget *pParent) const; -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/Info.plist
r34275 r34519 20 20 <key>CFBundleTypeName</key> <string>VirtualBox Extension Pack</string> 21 21 <key>CFBundleTypeExtensions</key> <array><string>vbox-extpack</string></array> 22 <key>CFBundleTypeRole</key> <string>None</string> 22 <key>CFBundleTypeRole</key> <string>Viewer</string> 23 <key>LSHandlerRank</key> <string>Owner</string> 23 24 <key>CFBundleTypeIconFile</key> <string>virtualbox-vbox-extpack</string> 24 25 </dict> -
trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp
r34498 r34519 1009 1009 break; 1010 1010 } 1011 else if (VBoxGlobal::hasAllowedExtension(strFile, VBoxDefs::VBoxExtPackFileExts)) 1012 { 1013 CExtPackManager extPackManager = vboxGlobal().virtualBox().GetExtensionPackManager(); 1014 extPackManager.Install(strFile); 1015 if (!extPackManager.isOk()) 1016 vboxProblem().cannotInstallExtPack(strFile, extPackManager, this); 1017 } 1011 1018 } 1012 1019 }
Note:
See TracChangeset
for help on using the changeset viewer.