- Timestamp:
- Feb 10, 2009 9:37:20 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r16610 r16617 283 283 include/VBoxSettingsDialogSpecific.h \ 284 284 include/VBoxSettingsPage.h \ 285 include/VBoxSettingsSelector.h 285 include/VBoxSettingsSelector.h \ 286 include/VBoxImportAppliance.h 286 287 287 288 # Sources containing local definitions of classes that use the Q_OBJECT macro. … … 358 359 src/VBoxSettingsDialogSpecific.cpp \ 359 360 src/VBoxSettingsSelector.cpp \ 360 src/VBoxMediaManagerDlg.cpp 361 src/VBoxMediaManagerDlg.cpp \ 362 src/VBoxImportAppliance.cpp 361 363 362 364 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 -
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r13978 r16617 55 55 ui/VBoxGLSettingsInput.ui \ 56 56 ui/VBoxGLSettingsUpdate.ui \ 57 ui/VBoxGLSettingsLanguage.ui 57 ui/VBoxGLSettingsLanguage.ui \ 58 ui/VBoxImportApplianceDlg.ui 58 59 59 60 TRANSLATIONS = \ -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r16589 r16617 372 372 void cannotRunInSelectorMode(); 373 373 374 void cannotImportAppliance (const CAppliance &aAppliance); 375 void cannotImportAppliance (const CProgress &aProgress, const CAppliance &aAppliance); 376 374 377 void showRuntimeError (const CConsole &console, bool fatal, 375 378 const QString &errorID, -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxSelectorWnd.h
r14908 r16617 68 68 69 69 void fileMediaMgr(); 70 void fileImportAppliance(); 70 71 void fileSettings(); 71 72 void fileExit(); … … 149 150 /* Actions */ 150 151 QAction *mFileMediaMgrAction; 152 QAction *mFileApplianceImportAction; 151 153 QAction *mFileSettingsAction; 152 154 QAction *mFileExitAction; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r16589 r16617 2088 2088 } 2089 2089 2090 void VBoxProblemReporter::cannotImportAppliance (const CAppliance &aAppliance) 2091 { 2092 message (mainWindowShown(), 2093 Error, 2094 tr ("Failed to open/interpret appliance <b>%1</b>.").arg (aAppliance.GetPath()), 2095 formatErrorInfo (aAppliance)); 2096 } 2097 2098 void VBoxProblemReporter::cannotImportAppliance (const CProgress &aProgress, const CAppliance& aAppliance) 2099 { 2100 AssertWrapperOk (aProgress); 2101 2102 message (mainWindowShown(), 2103 Error, 2104 tr ("Failed to import appliance <b>%1</b>.").arg (aAppliance.GetPath()), 2105 formatErrorInfo (aProgress.GetErrorInfo())); 2106 } 2107 2090 2108 void VBoxProblemReporter::showRuntimeError (const CConsole &aConsole, bool fatal, 2091 2109 const QString &errorID, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r16490 r16617 30 30 #include "VBoxNewVMWzd.h" 31 31 #include "VBoxMediaManagerDlg.h" 32 #include "VBoxImportAppliance.h" 32 33 #include "VBoxSettingsDialogSpecific.h" 33 34 #include "VBoxVMLogViewer.h" … … 404 405 mFileMediaMgrAction = new QAction (this); 405 406 mFileMediaMgrAction->setIcon (VBoxGlobal::iconSet (":/diskimage_16px.png")); 407 408 mFileApplianceImportAction = new QAction (this); 409 mFileApplianceImportAction->setIcon (VBoxGlobal::iconSet (":/diskimage_16px.png")); 410 406 411 mFileSettingsAction = new QAction(this); 407 412 mFileSettingsAction->setMenuRole (QAction::PreferencesRole); … … 540 545 mFileMenu = menuBar()->addMenu (QString::null); 541 546 mFileMenu->addAction (mFileMediaMgrAction); 547 mFileMenu->addAction (mFileApplianceImportAction); 542 548 mFileMenu->addSeparator(); 543 549 mFileMenu->addAction (mFileSettingsAction); … … 640 646 /* signals and slots connections */ 641 647 connect (mFileMediaMgrAction, SIGNAL (triggered()), this, SLOT (fileMediaMgr())); 648 connect (mFileApplianceImportAction, SIGNAL (triggered()), this, SLOT (fileImportAppliance())); 642 649 connect (mFileSettingsAction, SIGNAL (triggered()), this, SLOT (fileSettings())); 643 650 connect (mFileExitAction, SIGNAL (triggered()), this, SLOT (fileExit())); … … 735 742 { 736 743 VBoxMediaManagerDlg::showModeless (this); 744 } 745 746 void VBoxSelectorWnd::fileImportAppliance() 747 { 748 VBoxImportAppliance::import (this); 737 749 } 738 750 … … 1251 1263 mFileMediaMgrAction->setStatusTip (tr ("Display the Virtual Media Manager dialog")); 1252 1264 1265 mFileApplianceImportAction->setText (tr ("&Import Appliance...")); 1266 mFileApplianceImportAction->setShortcut (QKeySequence ("Ctrl+K")); 1267 mFileApplianceImportAction->setStatusTip (tr ("Import an appliance into VirtualBox")); 1268 1253 1269 #ifdef Q_WS_MAC 1254 1270 /*
Note:
See TracChangeset
for help on using the changeset viewer.