Changeset 6603 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 30, 2008 1:56:19 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r6350 r6603 38 38 ui/VBoxVMFirstRunWzd.ui \ 39 39 ui/VBoxVMLogViewer.ui \ 40 ui/VBoxRegistrationDlg.ui 40 ui/VBoxRegistrationDlg.ui \ 41 ui/VBoxVMInformationDlg.ui 41 42 42 43 IMAGES = images/tpixel.png \ -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r6482 r6603 141 141 void vmClose(); 142 142 void vmTakeSnapshot(); 143 void vmShowInfoDialog(); 143 144 void vmDisableMouseIntegr (bool); 144 145 … … 211 212 QAction *vmTakeSnapshotAction; 212 213 QAction *vmDisableMouseIntegrAction; 214 QAction *vmShowInformationDlgAction; 213 215 214 216 // Devices actions -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r5999 r6603 384 384 /* details generators */ 385 385 386 QString details (const CHardDisk &aHD, bool aPredict = false); 386 QString details (const CHardDisk &aHD, bool aPredict = false, 387 bool aDoRefresh = true); 387 388 388 389 QString details (const CUSBDevice &aDevice) const; … … 391 392 QString prepareFileNameForHTML (const QString &fn) const; 392 393 393 QString detailsReport (const CMachine &m, bool isNewVM, bool withLinks); 394 QString detailsReport (const CMachine &m, bool isNewVM, bool withLinks, 395 bool aDoRefresh = true); 394 396 395 397 /* VirtualBox helpers */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r6522 r6603 24 24 #include "VBoxVMFirstRunWzd.h" 25 25 #include "VBoxSharedFoldersSettings.h" 26 #include "VBoxVMInformationDlg.h" 26 27 #include "VBoxDownloaderWgt.h" 27 28 #include "QIStateIndicator.h" … … 207 208 "take_snapshot_16px.png", "take_snapshot_dis_16px.png")); 208 209 210 vmShowInformationDlgAction = new QAction (this, "vmShowInformationDlgAction"); 211 vmShowInformationDlgAction->setIconSet (VBoxGlobal::iconSet ( 212 "description_16px.png", "description_disabled_16px.png")); 213 209 214 vmDisableMouseIntegrAction = new QAction (this, "vmDisableMouseIntegrAction"); 210 215 vmDisableMouseIntegrAction->setIconSet (VBoxGlobal::iconSet ( … … 297 302 vmMenu->insertSeparator(); 298 303 vmTakeSnapshotAction->addTo (vmMenu); 304 vmMenu->insertSeparator(); 305 vmShowInformationDlgAction->addTo (vmMenu); 299 306 vmMenu->insertSeparator(); 300 307 vmResetAction->addTo (vmMenu); … … 485 492 486 493 connect (vmTakeSnapshotAction, SIGNAL(activated()), this, SLOT(vmTakeSnapshot())); 494 connect (vmShowInformationDlgAction, SIGNAL(activated()), this, SLOT (vmShowInfoDialog())); 487 495 488 496 connect (vmDisableMouseIntegrAction, SIGNAL(toggled (bool)), this, SLOT(vmDisableMouseIntegr (bool))); … … 1460 1468 vmTakeSnapshotAction->setStatusTip (tr ("Take a snapshot of the virtual machine")); 1461 1469 1470 vmShowInformationDlgAction->setMenuText (tr ("Session I&nformation Dialog") + 1471 "\tHost+N"); 1472 vmShowInformationDlgAction->setStatusTip (tr ("Show Session Information Dialog")); 1473 1462 1474 /* vmDisableMouseIntegrAction is set up in updateAppearanceOf() */ 1463 1475 … … 2408 2420 } 2409 2421 2422 void VBoxConsoleWnd::vmShowInfoDialog() 2423 { 2424 VBoxVMInformationDlg::createInformationDlg (csession, console); 2425 } 2426 2410 2427 void VBoxConsoleWnd::vmDisableMouseIntegr (bool aOff) 2411 2428 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r6490 r6603 1123 1123 * return an empty string. 1124 1124 */ 1125 QString VBoxGlobal::details (const CHardDisk &aHD, bool aPredict /* = false */) 1125 QString VBoxGlobal::details (const CHardDisk &aHD, bool aPredict /* = false */, 1126 bool aDoRefresh) 1126 1127 { 1127 1128 Assert (!aPredict || aHD.GetParent().isNull()); 1128 1129 1129 1130 VBoxMedia media; 1130 if (!findMedia (CUnknown (aHD), media)) 1131 if (!aDoRefresh) 1132 media = VBoxMedia (CUnknown (aHD), VBoxDefs::HD, VBoxMedia::Ok); 1133 else if (!findMedia (CUnknown (aHD), media)) 1131 1134 { 1132 1135 /* media may be new and not alredy in the media list, request refresh */ … … 1271 1274 */ 1272 1275 QString VBoxGlobal::detailsReport (const CMachine &m, bool isNewVM, 1273 bool withLinks )1276 bool withLinks, bool aDoRefresh) 1274 1277 { 1275 1278 static const char *sTableTpl = … … 1320 1323 + QString (sSectionItemTpl).arg (tr ("Boot Order", "details report"), "%5") 1321 1324 + QString (sSectionItemTpl).arg (tr ("ACPI", "details report"), "%6") 1322 + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7"); 1325 + QString (sSectionItemTpl).arg (tr ("IO APIC", "details report"), "%7") 1326 + QString (sSectionItemTpl).arg (tr ("VT-x/AMD-V", "details report"), "%8"); 1323 1327 1324 1328 sGeneralFullHrefTpl = QString (sSectionHrefTpl) 1325 .arg (2 + 7) /* rows */1329 .arg (2 + 8) /* rows */ 1326 1330 .arg ("machine_16px.png", /* icon */ 1327 1331 "#general", /* link */ … … 1329 1333 generalItems); /* items */ 1330 1334 sGeneralFullBoldTpl = QString (sSectionBoldTpl) 1331 .arg (2 + 7) /* rows */1335 .arg (2 + 8) /* rows */ 1332 1336 .arg ("machine_16px.png", /* icon */ 1333 1337 "#general", /* link */ … … 1366 1370 .arg (QString ("%1 [<nobr>%2</nobr>]") 1367 1371 .arg (prepareFileNameForHTML (src)) 1368 .arg (details (hd, isNewVM /* predict */ )));1372 .arg (details (hd, isNewVM /* predict */, aDoRefresh))); 1369 1373 ++ rows; 1370 1374 } … … 1435 1439 ? tr ("Enabled", "details report (IO APIC)") 1436 1440 : tr ("Disabled", "details report (IO APIC)"); 1441 1442 /* VT-x/AMD-V */ 1443 CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties(); 1444 QString virt = m.GetHWVirtExEnabled() == True ? 1445 tr ("Enabled", "details report (VT-x/AMD-V)") : 1446 m.GetHWVirtExEnabled() == False ? 1447 tr ("Disabled", "details report (VT-x/AMD-V)") : 1448 props.GetHWVirtExEnabled() ? 1449 tr ("Enabled", "details report (VT-x/AMD-V)") : 1450 tr ("Disabled", "details report (VT-x/AMD-V)"); 1437 1451 1438 1452 /* General + Hard Disks */ … … 1446 1460 .arg (acpi) 1447 1461 .arg (ioapic) 1462 .arg (virt) 1448 1463 + hardDisks; 1449 1464
Note:
See TracChangeset
for help on using the changeset viewer.