Changeset 105817 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 22, 2024 1:37:57 PM (8 months ago)
- svn:sync-xref-src-repo-rev:
- 164530
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r105266 r105817 619 619 { 620 620 CClipboardErrorEvent comEventSpecific(pEvent); 621 emit sigClipboardError(comEventSpecific.Get Id(), comEventSpecific.GetMsg(), comEventSpecific.GetRcError());621 emit sigClipboardError(comEventSpecific.GetMsg()); 622 622 break; 623 623 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r103803 r105817 210 210 void sigClipboardModeChange(KClipboardMode enmClipboardMode); 211 211 /** Notifies about a clipboard error. */ 212 void sigClipboardError( QString strId, QString strMsg, long rcError);212 void sigClipboardError(const QString &strMsg); 213 213 /** Notifies about the drag and drop mode change. */ 214 214 void sigDnDModeChange(KDnDMode enmDnDMode); -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r105804 r105817 149 149 150 150 /* static */ 151 void UINotificationMessage::showClipboardError(QString strId, QString strMsg, long rcError) 152 { 153 RT_NOREF(strId, rcError); 154 155 UINotificationMessage::createMessage( 156 QApplication::translate("UIMessageCenter", "Shared Clipboard Error"), 157 QApplication::translate("UIMessageCenter", strMsg.toUtf8().constData())); 151 void UINotificationMessage::warnAboutClipboardError(const QString &strMsg) 152 { 153 createMessage( 154 QApplication::translate("UIMessageCenter", "Shared clipboard error ..."), 155 strMsg.toUtf8().constData()); 158 156 } 159 157 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r105558 r105817 110 110 static void warnAboutInvalidEncryptionPassword(const QString &strPasswordId); 111 111 /** Notifies about a clipboard error. */ 112 static void showClipboardError(QString strId, QString strMsg, long rcError);112 static void warnAboutClipboardError(const QString &strMsg); 113 113 114 114 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r105266 r105817 97 97 void sigClipboardModeChange(KClipboardMode enmMode); 98 98 /** Notifies about a clipboard error. */ 99 void sigClipboardError( QString strId, QString strMsg, long rcError);99 void sigClipboardError(const QString &strMsg); 100 100 /** Notifies drag and drop mode change. */ 101 101 void sigDnDModeChange(KDnDMode enmMode); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.h
r103803 r105817 107 107 void sigClipboardModeChange(KClipboardMode enmMode); 108 108 /** Notifies about a clipboard error. */ 109 void sigClipboardError( QString strId, QString strMsg, long rcError);109 void sigClipboardError(const QString &strMsg); 110 110 /** Notifies drag and drop mode change. */ 111 111 void sigDnDModeChange(KDnDMode enmMode); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r105546 r105817 1105 1105 { 1106 1106 uisession()->sltMountDVDAdHoc(strSource); 1107 }1108 1109 void UIMachine::sltClipboardError(QString strId, QString strMsg, long rcError)1110 {1111 UINotificationMessage::showClipboardError(strId, strMsg, rcError);1112 1107 } 1113 1108 … … 1557 1552 connect(uisession(), &UISession::sigClipboardModeChange, 1558 1553 this, &UIMachine::sigClipboardModeChange); 1559 connect(uisession(), &UISession::sigClipboardError,1560 this, &UIMachine::sltClipboardError);1561 1554 connect(uisession(), &UISession::sigCPUExecutionCapChange, 1562 1555 this, &UIMachine::sigCPUExecutionCapChange); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r105265 r105817 98 98 /** Notifies about clipboard mode change. */ 99 99 void sigClipboardModeChange(KClipboardMode enmMode); 100 /** Notifies about a clipboard error. */101 void sigClipboardError(QString strId, QString strMsg, long rcError);102 100 /** Notifies about CPU execution cap change. */ 103 101 void sigCPUExecutionCapChange(); … … 750 748 /** @} */ 751 749 752 /** @name Clipboard stuff.753 ** @{ */754 /** Handles clipboard errors. */755 void sltClipboardError(QString strId, QString strMsg, long rcError);756 /** @} */757 758 750 /** @name Keyboard stuff. 759 751 ** @{ */ … … 809 801 /** Handles host-screen available-area change. */ 810 802 void sltHandleHostScreenAvailableAreaChange(); 803 811 804 #ifdef VBOX_WS_MAC 812 805 /** macOS X: Restarts display-reconfiguration watchdog timer from the beginning. -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r105588 r105817 2477 2477 } 2478 2478 2479 void UISession::sltClipboardError(const QString &strMsg) 2480 { 2481 UINotificationMessage::warnAboutClipboardError(strMsg); 2482 } 2483 2479 2484 void UISession::sltHandleMachineStateSaved(bool fSuccess) 2480 2485 { … … 2590 2595 this, &UISession::sigClipboardModeChange); 2591 2596 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigClipboardError, 2592 this, &UISession::s igClipboardError);2597 this, &UISession::sltClipboardError); 2593 2598 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigCPUExecutionCapChange, 2594 2599 this, &UISession::sigCPUExecutionCapChange); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r105265 r105817 95 95 /** Notifies about clipboard mode change. */ 96 96 void sigClipboardModeChange(KClipboardMode enmMode); 97 /** Notifies about a clipboard error. */98 void sigClipboardError(QString strId, QString strMsg, long rcError);99 97 /** Notifies about CPU execution cap change. */ 100 98 void sigCPUExecutionCapChange(); … … 647 645 /** @} */ 648 646 647 /** @name Clipboard stuff. 648 ** @{ */ 649 /** Handles clipboard errors. */ 650 void sltClipboardError(const QString &strMsg); 651 /** @} */ 652 649 653 /** @name Close stuff. 650 654 ** @{ */
Note:
See TracChangeset
for help on using the changeset viewer.