- Timestamp:
- Sep 6, 2017 1:42:56 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r68600 r68679 2033 2033 "least <b>%1</b> of video memory.</p>") 2034 2034 .arg(VBoxGlobal::formatSize(uMinVRAM))); 2035 }2036 2037 void UIMessageCenter::cannotMountGuestAdditions(const QString &strMachineName) const2038 {2039 alert(0, MessageType_Error,2040 tr("<p>Could not insert the <b>VirtualBox Guest Additions</b> disk image file into the virtual machine <b>%1</b>, "2041 "as the machine has no optical drives. Please add a drive using the storage page of the "2042 "virtual machine settings window.</p>")2043 .arg(strMachineName));2044 2035 } 2045 2036 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r68600 r68679 312 312 bool cannotSwitchScreenInFullscreen(quint64 uMinVRAM) const; 313 313 void cannotSwitchScreenInSeamless(quint64 uMinVRAM) const; 314 void cannotMountGuestAdditions(const QString &strMachineName) const;315 314 void cannotAddDiskEncryptionPassword(const CConsole &console); 316 315 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r68600 r68679 629 629 } 630 630 631 void UIPopupCenter::cannotMountImage(QWidget *pParent, const QString &strMachineName, const QString &strMediumName) 632 { 633 alert(pParent, "cannotMountImage", 634 QApplication::translate("UIMessageCenter", 635 "<p>Could not insert the <b>%1</b> disk image file into the virtual machine <b>%2</b>, " 636 "as the machine has no optical drives. Please add a drive using the storage page of the " 637 "virtual machine settings window.</p>") 638 .arg(strMediumName, strMachineName)); 639 } 640 641 void UIPopupCenter::cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumType /* enmType */, const QString &strLocation) 642 { 643 alertWithDetails(pParent, "cannotOpenMedium", 644 QApplication::translate("UIMessageCenter", 645 "Failed to open the disk image file <nobr><b>%1</b></nobr>.") 646 .arg(strLocation), 647 UIErrorString::formatErrorInfo(comVBox)); 648 } 649 650 void UIPopupCenter::cannotSaveMachineSettings(QWidget *pParent, const CMachine &comMachine) 651 { 652 alertWithDetails(pParent, "cannotSaveMachineSettings", 653 QApplication::translate("UIMessageCenter", 654 "Failed to save the settings of the virtual machine <b>%1</b> to <b><nobr>%2</nobr></b>.") 655 .arg(CMachine(comMachine).GetName(), CMachine(comMachine).GetSettingsFilePath()), 656 UIErrorString::formatErrorInfo(comMachine)); 657 } 658 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h
r68600 r68679 24 24 #include <QPointer> 25 25 26 /* GUI includes: */ 27 #include "UIMediumDefs.h" 28 26 29 /* Forward declaration: */ 27 30 class QWidget; … … 32 35 class CMachine; 33 36 class CNetworkAdapter; 37 class CVirtualBox; 34 38 class CVirtualBoxErrorInfo; 35 39 class CVRDEServer; … … 138 142 void cannotToggleAudioInput(QWidget *pParent, const CAudioAdapter &comAdapter, 139 143 const QString &strMachineName, bool fEnable); 144 void cannotMountImage(QWidget *pParent, const QString &strMachineName, const QString &strMediumName); 145 void cannotOpenMedium(QWidget *pParent, const CVirtualBox &comVBox, UIMediumType enmType, const QString &strLocation); 146 void cannotSaveMachineSettings(QWidget *pParent, const CMachine &comMachine); 140 147 141 148 private slots: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r68663 r68679 1892 1892 if (!comVBox.isOk() || comMedium.isNull()) 1893 1893 { 1894 msgCenter().cannotOpenMedium(comVBox, enmMediumType, strMediumName);1894 popupCenter().cannotOpenMedium(machineLogic()->activeMachineWindow(), comVBox, enmMediumType, strMediumName); 1895 1895 return false; 1896 1896 } … … 1935 1935 if (sStorageSlots.isEmpty()) 1936 1936 { 1937 msgCenter().cannotMountGuestAdditions(machineName());1937 popupCenter().cannotMountImage(machineLogic()->activeMachineWindow(), machineName(), strMediumName); 1938 1938 return false; 1939 1939 } … … 1961 1961 if (!machine().isOk()) 1962 1962 { 1963 msgCenter().cannotSaveMachineSettings(machine(), mainMachineWindow());1963 popupCenter().cannotSaveMachineSettings(machineLogic()->activeMachineWindow(), machine()); 1964 1964 return false; 1965 1965 }
Note:
See TracChangeset
for help on using the changeset viewer.