Changeset 58815 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 23, 2015 11:34:02 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp
r57553 r58815 477 477 setGeometry(m_geometry); 478 478 #endif /* !Q_WS_MAC */ 479 LogRel (("GUI: UIVMInfoDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",480 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));479 LogRel2(("GUI: UIVMInfoDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 480 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 481 481 482 482 /* Maximize (if necessary): */ … … 496 496 gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid()); 497 497 #endif /* !Q_WS_MAC */ 498 LogRel (("GUI: UIVMInfoDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",499 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));498 LogRel2(("GUI: UIVMInfoDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 499 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 500 500 } 501 501 } -
trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.cpp
r58646 r58815 1056 1056 setGeometry(m_geometry); 1057 1057 #endif /* !Q_WS_MAC */ 1058 LogRel (("GUI: UIVMLogViewer: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",1059 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));1058 LogRel2(("GUI: UIVMLogViewer: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1059 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 1060 1060 1061 1061 /* Maximize (if necessary): */ … … 1076 1076 gEDataManager->setLogWindowGeometry(saveGeometry, isMaximized()); 1077 1077 #endif /* !Q_WS_MAC */ 1078 LogRel (("GUI: UIVMLogViewer: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",1079 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height()));1078 LogRel2(("GUI: UIVMLogViewer: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1079 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height())); 1080 1080 } 1081 1081 } -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r58689 r58815 1562 1562 setGeometry(m_geometry); 1563 1563 #endif /* !Q_WS_MAC */ 1564 LogRel (("GUI: UIExtraDataManagerWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",1565 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));1564 LogRel2(("GUI: UIExtraDataManagerWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1565 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 1566 1566 1567 1567 /* Maximize (if necessary): */ … … 1591 1591 gEDataManager->setExtraDataManagerGeometry(m_geometry, isMaximized()); 1592 1592 #endif /* !Q_WS_MAC */ 1593 LogRel (("GUI: UIExtraDataManagerWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",1594 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));1593 LogRel2(("GUI: UIExtraDataManagerWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1594 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 1595 1595 } 1596 1596 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r57667 r58815 167 167 void UIMediumEnumerator::sltHandleMachineUpdate(QString strMachineID) 168 168 { 169 LogRel (("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n",170 strMachineID.toAscii().constData()));169 LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n", 170 strMachineID.toAscii().constData())); 171 171 172 172 /* Gather previously used UIMedium IDs: */ 173 173 QStringList previousUIMediumIDs; 174 174 calculateCachedUsage(strMachineID, previousUIMediumIDs, true /* take into account current state only */); 175 LogRel (("GUI: UIMediumEnumerator: Old usage: %s\n",176 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));175 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 176 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData())); 177 177 178 178 /* Gather currently used CMediums and their IDs: */ … … 180 180 QStringList currentCMediumIDs; 181 181 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */); 182 LogRel (("GUI: UIMediumEnumerator: New usage: %s\n",183 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));182 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 183 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData())); 184 184 185 185 /* Determine excluded mediums: */ … … 189 189 const QStringList excludedUIMediumIDs = excludedSet.toList(); 190 190 if (!excludedUIMediumIDs.isEmpty()) 191 LogRel (("GUI: UIMediumEnumerator: Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toAscii().constData()));191 LogRel2(("GUI: UIMediumEnumerator: Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toAscii().constData())); 192 192 if (!currentCMediumIDs.isEmpty()) 193 LogRel (("GUI: UIMediumEnumerator: Items currently in usage: %s\n", currentCMediumIDs.join(", ").toAscii().constData()));193 LogRel2(("GUI: UIMediumEnumerator: Items currently in usage: %s\n", currentCMediumIDs.join(", ").toAscii().constData())); 194 194 195 195 /* Update cache for excluded UIMediums: */ … … 199 199 recacheFromActualUsage(currentCMediums, currentCMediumIDs); 200 200 201 LogRel (("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n",202 strMachineID.toAscii().constData()));201 LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n", 202 strMachineID.toAscii().constData())); 203 203 } 204 204 205 205 void UIMediumEnumerator::sltHandleMachineRegistration(QString strMachineID, bool fRegistered) 206 206 { 207 LogRel (("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n",208 fRegistered ? "registration" : "unregistration",209 strMachineID.toAscii().constData()));207 LogRel2(("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n", 208 fRegistered ? "registration" : "unregistration", 209 strMachineID.toAscii().constData())); 210 210 211 211 /* Machine was registered: */ … … 216 216 QStringList currentCMediumIDs; 217 217 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, false /* take into account current state only */); 218 LogRel (("GUI: UIMediumEnumerator: New usage: %s\n",219 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));218 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 219 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData())); 220 220 /* Update cache with currently used CMediums: */ 221 221 recacheFromActualUsage(currentCMediums, currentCMediumIDs); … … 227 227 QStringList previousUIMediumIDs; 228 228 calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */); 229 LogRel (("GUI: UIMediumEnumerator: Old usage: %s\n",230 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));229 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 230 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData())); 231 231 /* Update cache for previously used UIMediums: */ 232 232 recacheFromCachedUsage(previousUIMediumIDs); 233 233 } 234 234 235 LogRel (("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n",236 fRegistered ? "registration" : "unregistration",237 strMachineID.toAscii().constData()));235 LogRel2(("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n", 236 fRegistered ? "registration" : "unregistration", 237 strMachineID.toAscii().constData())); 238 238 } 239 239 240 240 void UIMediumEnumerator::sltHandleSnapshotDeleted(QString strMachineID, QString strSnapshotID) 241 241 { 242 LogRel (("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n",243 strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));242 LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n", 243 strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData())); 244 244 245 245 /* Gather previously used UIMedium IDs: */ 246 246 QStringList previousUIMediumIDs; 247 247 calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */); 248 LogRel (("GUI: UIMediumEnumerator: Old usage: %s\n",249 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));248 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 249 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData())); 250 250 251 251 /* Gather currently used CMediums and their IDs: */ … … 253 253 QStringList currentCMediumIDs; 254 254 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */); 255 LogRel (("GUI: UIMediumEnumerator: New usage: %s\n",256 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));255 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 256 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData())); 257 257 258 258 /* Update everything: */ … … 260 260 recacheFromActualUsage(currentCMediums, currentCMediumIDs); 261 261 262 LogRel (("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n",263 strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));262 LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n", 263 strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData())); 264 264 } 265 265 … … 289 289 /* Delete this medium: */ 290 290 m_mediums.remove(strUIMediumKey); 291 LogRel (("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toAscii().constData()));291 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toAscii().constData())); 292 292 293 293 /* And notify listener about delete: */ … … 301 301 m_mediums[strUIMediumID] = uimedium; 302 302 m_mediums[strUIMediumID].setKey(strUIMediumID); 303 LogRel (("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toAscii().constData(),303 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toAscii().constData(), 304 304 strUIMediumID.toAscii().constData())); 305 305 … … 517 517 /* Uncache corresponding UIMedium: */ 518 518 m_mediums.remove(strMediumID); 519 LogRel (("GUI: UIMediumEnumerator: Medium with key={%s} uncached\n", strMediumID.toAscii().constData()));519 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} uncached\n", strMediumID.toAscii().constData())); 520 520 521 521 /* And notify listeners: */ … … 546 546 /* Cache created UIMedium: */ 547 547 m_mediums.insert(strUIMediumKey, uimedium); 548 LogRel (("GUI: UIMediumEnumerator: Medium with key={%s} cached\n", strUIMediumKey.toAscii().constData()));548 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} cached\n", strUIMediumKey.toAscii().constData())); 549 549 550 550 /* And notify listeners: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r58142 r58815 622 622 { 623 623 /* Redirect arrived notification: */ 624 LogRel (("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n",625 strNativeNotificationName.toAscii().constData()));624 LogRel2(("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n", 625 strNativeNotificationName.toAscii().constData())); 626 626 pMachineWindow->handleNativeNotification(strNativeNotificationName); 627 627 } … … 638 638 { 639 639 /* Redirect arrived callback: */ 640 LogRel (("UIMachineWindow::handleStandardWindowButtonCallback: Redirecting callback for standard window button '%d' with option key '%d' to corresponding machine-window...\n",641 (int)enmButtonType, (int)fWithOptionKey));640 LogRel2(("UIMachineWindow::handleStandardWindowButtonCallback: Redirecting callback for standard window button '%d' with option key '%d' to corresponding machine-window...\n", 641 (int)enmButtonType, (int)fWithOptionKey)); 642 642 pMachineWindow->handleStandardWindowButtonCallback(enmButtonType, fWithOptionKey); 643 643 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r57591 r58815 453 453 void UIMachineLogicFullscreen::sltHostScreenAvailableAreaChange() 454 454 { 455 LogRel (("GUI: UIMachineLogicFullscreen: Host-screen available-area change ignored\n"));455 LogRel2(("GUI: UIMachineLogicFullscreen: Host-screen available-area change ignored\n")); 456 456 } 457 457 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r58726 r58815 470 470 setGeometry(m_geometry); 471 471 #endif /* !Q_WS_MAC */ 472 LogRel (("GUI: UIVMInformationDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",473 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));472 LogRel2(("GUI: UIVMInformationDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 473 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 474 474 475 475 /* Maximize (if necessary): */ … … 489 489 gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid()); 490 490 #endif /* !Q_WS_MAC */ 491 LogRel (("GUI: UIVMInformationDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",492 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));491 LogRel2(("GUI: UIVMInformationDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 492 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 493 493 } 494 494 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r58286 r58815 1636 1636 setGeometry(m_geometry); 1637 1637 #endif /* !Q_WS_MAC */ 1638 LogRel (("GUI: UISelectorWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n",1639 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));1638 LogRel2(("GUI: UISelectorWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1639 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 1640 1640 1641 1641 /* Maximize (if necessary): */ … … 1694 1694 gEDataManager->setSelectorWindowGeometry(m_geometry, isMaximized()); 1695 1695 #endif /* !Q_WS_MAC */ 1696 LogRel (("GUI: UISelectorWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",1697 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height()));1696 LogRel2(("GUI: UISelectorWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1697 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); 1698 1698 } 1699 1699 }
Note:
See TracChangeset
for help on using the changeset viewer.