Changeset 91216 in vbox
- Timestamp:
- Sep 10, 2021 7:18:04 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
-
VBoxLicenseViewer.cpp (modified) (2 diffs)
-
globals/UICommon.cpp (modified) (1 diff)
-
globals/UIMessageCenter.cpp (modified) (2 diffs)
-
globals/UIMessageCenter.h (modified) (2 diffs)
-
notificationcenter/UINotificationObjects.cpp (modified) (1 diff)
-
notificationcenter/UINotificationObjects.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.cpp
r82968 r91216 27 27 #include "VBoxLicenseViewer.h" 28 28 #include "UIMessageCenter.h" 29 #include "UINotificationCenter.h" 29 30 30 31 … … 111 112 else 112 113 { 113 msgCenter().cannotOpenLicenseFile(strLicenseFileName, this);114 UINotificationMessage::cannotOpenLicenseFile(strLicenseFileName); 114 115 return QDialog::Rejected; 115 116 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r91132 r91216 69 69 #include "UIVisoCreator.h" 70 70 #include "UIWizardNewVD.h" 71 #include "VBoxLicenseViewer.h"72 71 #ifdef VBOX_WS_MAC 73 72 # include "UIMachineWindowFullscreen.h" -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r91180 r91216 2009 2009 } 2010 2010 2011 #ifdef VBOX_WITH_DRAG_AND_DROP 2012 void UIMessageCenter::cannotDropDataToGuest(const CDnDTarget &dndTarget, QWidget *pParent /* = 0 */) const 2013 { 2014 error(pParent, MessageType_Error, 2015 tr("Drag and drop operation from host to guest failed."), 2016 UIErrorString::formatErrorInfo(dndTarget)); 2017 } 2018 2019 void UIMessageCenter::cannotDropDataToGuest(const CProgress &progress, QWidget *pParent /* = 0 */) const 2020 { 2021 error(pParent, MessageType_Error, 2022 tr("Drag and drop operation from host to guest failed."), 2023 UIErrorString::formatErrorInfo(progress)); 2024 } 2025 2026 void UIMessageCenter::cannotDropDataToHost(const CDnDSource &dndSource, QWidget *pParent /* = 0 */) const 2027 { 2028 error(pParent, MessageType_Error, 2029 tr("Drag and drop operation from guest to host failed."), 2030 UIErrorString::formatErrorInfo(dndSource)); 2031 } 2032 2033 void UIMessageCenter::cannotDropDataToHost(const CProgress &progress, QWidget *pParent /* = 0 */) const 2034 { 2035 error(pParent, MessageType_Error, 2036 tr("Drag and drop operation from guest to host failed."), 2037 UIErrorString::formatErrorInfo(progress)); 2038 } 2039 #endif /* VBOX_WITH_DRAG_AND_DROP */ 2040 2011 2041 bool UIMessageCenter::confirmHardDisklessMachine(QWidget *pParent /* = 0*/) const 2012 2042 { … … 2278 2308 tr("An error has occured during unattended guest install setup."), 2279 2309 UIErrorString::formatErrorInfo(comErrorInfo)); 2280 }2281 2282 #ifdef VBOX_WITH_DRAG_AND_DROP2283 void UIMessageCenter::cannotDropDataToGuest(const CDnDTarget &dndTarget, QWidget *pParent /* = 0 */) const2284 {2285 error(pParent, MessageType_Error,2286 tr("Drag and drop operation from host to guest failed."),2287 UIErrorString::formatErrorInfo(dndTarget));2288 }2289 2290 void UIMessageCenter::cannotDropDataToGuest(const CProgress &progress, QWidget *pParent /* = 0 */) const2291 {2292 error(pParent, MessageType_Error,2293 tr("Drag and drop operation from host to guest failed."),2294 UIErrorString::formatErrorInfo(progress));2295 }2296 2297 void UIMessageCenter::cannotCancelDropToGuest(const CDnDTarget &dndTarget, QWidget *pParent /* = 0 */) const2298 {2299 error(pParent, MessageType_Error,2300 tr("Unable to cancel host to guest drag and drop operation."),2301 UIErrorString::formatErrorInfo(dndTarget));2302 }2303 2304 void UIMessageCenter::cannotDropDataToHost(const CDnDSource &dndSource, QWidget *pParent /* = 0 */) const2305 {2306 error(pParent, MessageType_Error,2307 tr("Drag and drop operation from guest to host failed."),2308 UIErrorString::formatErrorInfo(dndSource));2309 }2310 2311 void UIMessageCenter::cannotDropDataToHost(const CProgress &progress, QWidget *pParent /* = 0 */) const2312 {2313 error(pParent, MessageType_Error,2314 tr("Drag and drop operation from guest to host failed."),2315 UIErrorString::formatErrorInfo(progress));2316 }2317 #endif /* VBOX_WITH_DRAG_AND_DROP */2318 2319 void UIMessageCenter::cannotOpenLicenseFile(const QString &strPath, QWidget *pParent /* = 0*/) const2320 {2321 alert(pParent, MessageType_Error,2322 tr("Failed to open the license file <nobr><b>%1</b></nobr>. Check file permissions.")2323 .arg(strPath));2324 2310 } 2325 2311 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r91180 r91216 454 454 bool cannotSwitchScreenInFullscreen(quint64 uMinVRAM) const; 455 455 void cannotSwitchScreenInSeamless(quint64 uMinVRAM) const; 456 457 #ifdef VBOX_WITH_DRAG_AND_DROP 458 /// @todo move to notification-center as progress notification .. one day :) 459 void cannotDropDataToGuest(const CDnDTarget &dndTarget, QWidget *pParent = 0) const; 460 void cannotDropDataToGuest(const CProgress &progress, QWidget *pParent = 0) const; 461 void cannotDropDataToHost(const CDnDSource &dndSource, QWidget *pParent = 0) const; 462 void cannotDropDataToHost(const CProgress &progress, QWidget *pParent = 0) const; 463 #endif /* VBOX_WITH_DRAG_AND_DROP */ 456 464 /** @} */ 457 465 … … 490 498 void cannotRunUnattendedGuestInstall(const CUnattended &comUnattendedInstall, QWidget *pParent = 0); 491 499 492 #ifdef VBOX_WITH_DRAG_AND_DROP493 /* API: Drag and drop warnings: */494 void cannotDropDataToGuest(const CDnDTarget &dndTarget, QWidget *pParent = 0) const;495 void cannotDropDataToGuest(const CProgress &progress, QWidget *pParent = 0) const;496 void cannotCancelDropToGuest(const CDnDTarget &dndTarget, QWidget *pParent = 0) const;497 void cannotDropDataToHost(const CDnDSource &dndSource, QWidget *pParent = 0) const;498 void cannotDropDataToHost(const CProgress &progress, QWidget *pParent = 0) const;499 #endif /* VBOX_WITH_DRAG_AND_DROP */500 501 /* API: License-viewer warnings: */502 void cannotOpenLicenseFile(const QString &strPath, QWidget *pParent = 0) const;503 504 500 /* API: File-dialog warnings: */ 505 501 bool confirmOverridingFile(const QString &strPath, QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r91180 r91216 210 210 QApplication::translate("UIMessageCenter", "Failed to acquire cloud machine settings.") + 211 211 strErrorDetails); 212 } 213 214 /* static */ 215 void UINotificationMessage::cannotOpenLicenseFile(const QString &strPath) 216 { 217 createMessage( 218 QApplication::translate("UIMessageCenter", "Can't open license file ..."), 219 QApplication::translate("UIMessageCenter", "Failed to open the license file <nobr><b>%1</b></nobr>. Check file " 220 "permissions.").arg(strPath)); 212 221 } 213 222 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r91180 r91216 128 128 * @param strErrorDetails Brings the error details. */ 129 129 static void cannotAcquireCloudMachineSettings(const QString &strErrorDetails); 130 131 /** Notifies about inability to open license file. 132 * @param strPath Brings the license file path. */ 133 static void cannotOpenLicenseFile(const QString &strPath); 130 134 131 135 /** Notifies about public key path is empty. */
Note:
See TracChangeset
for help on using the changeset viewer.

