Changeset 7250 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 3, 2008 6:15:46 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h
r7235 r7250 480 480 static void loadLanguage (const QString &aLangId = QString::null); 481 481 482 static QIcon iconSet (const QString &aNormal, 483 const QString &aDisabled = "", 484 const QString &aActive = ""); 485 static QIcon iconSetEx (const QString &aNormal, const QString &aSmallNormal, 486 const QString &aDisabled = "", const QString &aSmallDisabled = "", 487 const QString &aActive = "", const QString &aSmallActive = ""); 482 static QIcon iconSet (const char *aNormal, 483 const char *aDisabled = NULL, 484 const char *aActive = NULL); 485 static QIcon iconSetEx (const char *aNormal, const char *aSmallNormal, 486 const char *aDisabled = NULL, 487 const char *aSmallDisabled = NULL, 488 const char *aActive = NULL, 489 const char *aSmallActive = NULL); 488 490 489 491 static void setTextLabel (QToolButton *aToolButton, const QString &aTextLabel); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r7235 r7250 179 179 vmFullscreenAction = new QAction (this, "vmFullscreenAction"); 180 180 vmFullscreenAction->setIconSet ( 181 VBoxGlobal::iconSet (" fullscreen_16px.png", "fullscreen_disabled_16px.png"));181 VBoxGlobal::iconSet (":/fullscreen_16px.png", ":/fullscreen_disabled_16px.png")); 182 182 vmFullscreenAction->setToggleAction (true); 183 183 184 184 vmSeamlessAction = new QAction (this, "vmSeamlessAction"); 185 185 vmSeamlessAction->setIconSet ( 186 VBoxGlobal::iconSet (" nw_16px.png", "nw_disabled_16px.png"));186 VBoxGlobal::iconSet (":/nw_16px.png", ":/nw_disabled_16px.png")); 187 187 vmSeamlessAction->setToggleAction (true); 188 188 189 189 vmAutoresizeGuestAction = new QAction (mRunningActions, "vmAutoresizeGuestAction"); 190 190 vmAutoresizeGuestAction->setIconSet ( 191 VBoxGlobal::iconSet (" auto_resize_on_16px.png", "auto_resize_on_disabled_16px.png"));191 VBoxGlobal::iconSet (":/auto_resize_on_16px.png", ":/auto_resize_on_disabled_16px.png")); 192 192 vmAutoresizeGuestAction->setToggleAction (true); 193 193 vmAutoresizeGuestAction->setEnabled (false); … … 195 195 vmAdjustWindowAction = new QAction (this, "vmAdjustWindowAction"); 196 196 vmAdjustWindowAction->setIconSet ( 197 VBoxGlobal::iconSet (" adjust_win_size_16px.png",198 " adjust_win_size_disabled_16px.png"));197 VBoxGlobal::iconSet (":/adjust_win_size_16px.png", 198 ":/adjust_win_size_disabled_16px.png")); 199 199 200 200 vmTypeCADAction = new QAction (mRunningActions, "vmTypeCADAction"); 201 vmTypeCADAction->setIconSet (VBoxGlobal::iconSet (" hostkey_16px.png",202 " hostkey_disabled_16px.png"));201 vmTypeCADAction->setIconSet (VBoxGlobal::iconSet (":/hostkey_16px.png", 202 ":/hostkey_disabled_16px.png")); 203 203 204 204 #if defined(Q_WS_X11) 205 205 vmTypeCABSAction = new QAction (mRunningActions, "vmTypeCABSAction"); 206 vmTypeCABSAction->setIconSet (VBoxGlobal::iconSet (" hostkey_16px.png",207 " hostkey_disabled_16px.png"));206 vmTypeCABSAction->setIconSet (VBoxGlobal::iconSet (":/hostkey_16px.png", 207 ":/hostkey_disabled_16px.png")); 208 208 #endif 209 209 210 210 vmResetAction = new QAction (mRunningActions, "vmResetAction"); 211 vmResetAction->setIconSet (VBoxGlobal::iconSet (" reset_16px.png",212 " reset_disabled_16px.png"));211 vmResetAction->setIconSet (VBoxGlobal::iconSet (":/reset_16px.png", 212 ":/reset_disabled_16px.png")); 213 213 214 214 vmPauseAction = new QAction (this, "vmPauseAction"); 215 vmPauseAction->setIconSet (VBoxGlobal::iconSet (" pause_16px.png"));215 vmPauseAction->setIconSet (VBoxGlobal::iconSet (":/pause_16px.png")); 216 216 vmPauseAction->setToggleAction (true); 217 217 218 218 vmACPIShutdownAction = new QAction (mRunningActions, "vmACPIShutdownAction"); 219 219 vmACPIShutdownAction->setIconSet ( 220 VBoxGlobal::iconSet (" acpi_16px.png", "acpi_disabled_16px.png"));220 VBoxGlobal::iconSet (":/acpi_16px.png", ":/acpi_disabled_16px.png")); 221 221 222 222 vmCloseAction = new QAction (this, "vmCloseAction"); 223 vmCloseAction->setIconSet (VBoxGlobal::iconSet (" exit_16px.png"));223 vmCloseAction->setIconSet (VBoxGlobal::iconSet (":/exit_16px.png")); 224 224 225 225 vmTakeSnapshotAction = new QAction (mRunningOrPausedActions, "vmTakeSnapshotAction"); 226 226 vmTakeSnapshotAction->setIconSet (VBoxGlobal::iconSet ( 227 " take_snapshot_16px.png", "take_snapshot_dis_16px.png"));227 ":/take_snapshot_16px.png", ":/take_snapshot_dis_16px.png")); 228 228 229 229 vmShowInformationDlgAction = new QAction (this, "vmShowInformationDlgAction"); 230 230 vmShowInformationDlgAction->setIconSet (VBoxGlobal::iconSet ( 231 " description_16px.png", "description_disabled_16px.png"));231 ":/description_16px.png", ":/description_disabled_16px.png")); 232 232 233 233 vmDisableMouseIntegrAction = new QAction (this, "vmDisableMouseIntegrAction"); 234 234 vmDisableMouseIntegrAction->setIconSet (VBoxGlobal::iconSet ( 235 " mouse_can_seamless_16px.png", "mouse_can_seamless_disabled_16px.png"));235 ":/mouse_can_seamless_16px.png", ":/mouse_can_seamless_disabled_16px.png")); 236 236 vmDisableMouseIntegrAction->setToggleAction (true); 237 237 … … 242 242 243 243 devicesUnmountFloppyAction = new QAction (this, "devicesUnmountFloppyAction"); 244 devicesUnmountFloppyAction->setIconSet (VBoxGlobal::iconSet (" fd_unmount_16px.png",245 " fd_unmount_dis_16px.png"));244 devicesUnmountFloppyAction->setIconSet (VBoxGlobal::iconSet (":/fd_unmount_16px.png", 245 ":/fd_unmount_dis_16px.png")); 246 246 247 247 devicesMountDVDImageAction = new QAction (mRunningOrPausedActions, … … 249 249 250 250 devicesUnmountDVDAction = new QAction (this, "devicesUnmountDVDAction"); 251 devicesUnmountDVDAction->setIconSet (VBoxGlobal::iconSet (" cd_unmount_16px.png",252 "cd_unmount_dis_16px.png"));251 devicesUnmountDVDAction->setIconSet (VBoxGlobal::iconSet (":/cd_unmount_16px.png", 252 ":/cd_unmount_dis_16px.png")); 253 253 254 254 devicesSFDialogAction = new QAction (mRunningOrPausedActions, 255 255 "devicesSFDialogAction"); 256 devicesSFDialogAction->setIconSet (VBoxGlobal::iconSet (" shared_folder_16px.png",257 " shared_folder_disabled_16px.png"));256 devicesSFDialogAction->setIconSet (VBoxGlobal::iconSet (":/shared_folder_16px.png", 257 ":/shared_folder_disabled_16px.png")); 258 258 259 259 devicesSwitchVrdpAction = new QAction (mRunningOrPausedActions, 260 260 "devicesSwitchVrdpAction"); 261 devicesSwitchVrdpAction->setIconSet (VBoxGlobal::iconSet (" vrdp_16px.png",262 " vrdp_disabled_16px.png"));261 devicesSwitchVrdpAction->setIconSet (VBoxGlobal::iconSet (":/vrdp_16px.png", 262 ":/vrdp_disabled_16px.png")); 263 263 devicesSwitchVrdpAction->setToggleAction (true); 264 264 265 265 devicesInstallGuestToolsAction = new QAction (mRunningActions, 266 266 "devicesInstallGuestToolsAction"); 267 devicesInstallGuestToolsAction->setIconSet (VBoxGlobal::iconSet (" guesttools_16px.png",268 " guesttools_disabled_16px.png"));267 devicesInstallGuestToolsAction->setIconSet (VBoxGlobal::iconSet (":/guesttools_16px.png", 268 ":/guesttools_disabled_16px.png")); 269 269 270 270 #ifdef VBOX_WITH_DEBUGGER_GUI … … 284 284 285 285 helpContentsAction = new QAction (this, "helpContentsAction"); 286 helpContentsAction->setIconSet (VBoxGlobal::iconSet (" help_16px.png"));286 helpContentsAction->setIconSet (VBoxGlobal::iconSet (":/help_16px.png")); 287 287 helpWebAction = new QAction (this, "helpWebAction"); 288 helpWebAction->setIconSet (VBoxGlobal::iconSet (" site_16px.png"));288 helpWebAction->setIconSet (VBoxGlobal::iconSet (":/site_16px.png")); 289 289 helpRegisterAction = new QAction (this, "helpRegisterAction"); 290 helpRegisterAction->setIconSet (VBoxGlobal::iconSet (" register_16px.png",291 " register_disabled_16px.png"));290 helpRegisterAction->setIconSet (VBoxGlobal::iconSet (":/register_16px.png", 291 ":/register_disabled_16px.png")); 292 292 helpAboutAction = new QAction (this, "helpAboutAction"); 293 helpAboutAction->setIconSet (VBoxGlobal::iconSet (" about_16px.png"));293 helpAboutAction->setIconSet (VBoxGlobal::iconSet (":/about_16px.png")); 294 294 helpResetMessagesAction = new QAction (this, "helpResetMessagesAction"); 295 helpResetMessagesAction->setIconSet (VBoxGlobal::iconSet (" reset_16px.png"));295 helpResetMessagesAction->setIconSet (VBoxGlobal::iconSet (":/reset_16px.png")); 296 296 297 297 ///// Menubar /////////////////////////////////////////////////////////// … … 345 345 devicesVRDPMenu = new VBoxSwitchMenu (devicesMenu, devicesSwitchVrdpAction); 346 346 347 devicesMenu->insertItem (VBoxGlobal::iconSet (" cd_16px.png", "cd_disabled_16px.png"),347 devicesMenu->insertItem (VBoxGlobal::iconSet (":/cd_16px.png", ":/cd_disabled_16px.png"), 348 348 QString::null, devicesMountDVDMenu, devicesMountDVDMenuId); 349 349 devicesUnmountDVDAction->addTo (devicesMenu); 350 350 devicesMenu->insertSeparator(); 351 351 352 devicesMenu->insertItem (VBoxGlobal::iconSet (" fd_16px.png", "fd_disabled_16px.png"),352 devicesMenu->insertItem (VBoxGlobal::iconSet (":/fd_16px.png", ":/fd_disabled_16px.png"), 353 353 QString::null, devicesMountFloppyMenu, devicesMountFloppyMenuId); 354 354 devicesUnmountFloppyAction->addTo (devicesMenu); 355 355 devicesMenu->insertSeparator(); 356 356 357 devicesMenu->insertItem (VBoxGlobal::iconSet (" nw_16px.png", "nw_disabled_16px.png"),357 devicesMenu->insertItem (VBoxGlobal::iconSet (":/nw_16px.png", ":/nw_disabled_16px.png"), 358 358 QString::null, devicesNetworkMenu, devicesNetworkMenuId); 359 359 devicesMenu->insertSeparator(); 360 360 361 devicesMenu->insertItem (VBoxGlobal::iconSet (" usb_16px.png", "usb_disabled_16px.png"),361 devicesMenu->insertItem (VBoxGlobal::iconSet (":/usb_16px.png", ":/usb_disabled_16px.png"), 362 362 QString::null, devicesUSBMenu, devicesUSBMenuId); 363 363 devicesUSBMenuSeparatorId = devicesMenu->insertSeparator(); … … 1589 1589 menuBar()->changeItem (vmMenuId, tr ("&Machine")); 1590 1590 mMainMenu->changeItem (vmMenuId, 1591 VBoxGlobal::iconSet (" machine_16px.png"), tr ("&Machine"));1591 VBoxGlobal::iconSet (":/machine_16px.png"), tr ("&Machine")); 1592 1592 menuBar()->changeItem (devicesMenuId, tr ("&Devices")); 1593 1593 mMainMenu->changeItem (devicesMenuId, 1594 VBoxGlobal::iconSet (" settings_16px.png"), tr ("&Devices"));1594 VBoxGlobal::iconSet (":/settings_16px.png"), tr ("&Devices")); 1595 1595 #ifdef VBOX_WITH_DEBUGGER_GUI 1596 1596 if (vboxGlobal().isDebuggerEnabled()) … … 1602 1602 menuBar()->changeItem (helpMenuId, tr ("&Help")); 1603 1603 mMainMenu->changeItem (helpMenuId, 1604 VBoxGlobal::iconSet (" help_16px.png"), tr ("&Help"));1604 VBoxGlobal::iconSet (":/help_16px.png"), tr ("&Help")); 1605 1605 1606 1606 /* status bar widgets */ -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r7239 r7250 2547 2547 2548 2548 /* static */ 2549 QIcon VBoxGlobal::iconSet (const QString &aNormal,2550 const QString &aDisabled,2551 const QString &aActive)2549 QIcon VBoxGlobal::iconSet (const char *aNormal, 2550 const char *aDisabled /* = NULL */, 2551 const char *aActive /* = NULL */) 2552 2552 { 2553 2553 QIcon iconSet; 2554 2554 2555 iconSet.setPixmap (QPixmap ( ":/" +aNormal),2555 iconSet.setPixmap (QPixmap (aNormal), 2556 2556 QIcon::Automatic, QIcon::Normal); 2557 if ( !aDisabled.isEmpty())2558 iconSet.setPixmap (QPixmap ( ":/" +aDisabled),2557 if (aDisabled != NULL) 2558 iconSet.setPixmap (QPixmap (aDisabled), 2559 2559 QIcon::Automatic, QIcon::Disabled); 2560 if ( !aActive.isEmpty())2561 iconSet.setPixmap (QPixmap ( ":/" +aActive),2560 if (aActive != NULL) 2561 iconSet.setPixmap (QPixmap (aActive), 2562 2562 QIcon::Automatic, QIcon::Active); 2563 2563 return iconSet; … … 2566 2566 /* static */ 2567 2567 QIcon VBoxGlobal:: 2568 iconSetEx (const QString &aNormal, const QString &aSmallNormal, 2569 const QString &aDisabled, const QString &aSmallDisabled, 2570 const QString &aActive, const QString &aSmallActive) 2568 iconSetEx (const char *aNormal, const char *aSmallNormal, 2569 const char *aDisabled /* = NULL */, 2570 const char *aSmallDisabled /* = NULL */, 2571 const char *aActive /* = NULL */, 2572 const char *aSmallActive /* = NULL */) 2571 2573 { 2572 2574 QIcon iconSet; 2573 2575 2574 iconSet.setPixmap (QPixmap ( ":/" +aNormal),2576 iconSet.setPixmap (QPixmap (aNormal), 2575 2577 QIcon::Large, QIcon::Normal); 2576 iconSet.setPixmap (QPixmap ( ":/" +aSmallNormal),2578 iconSet.setPixmap (QPixmap (aSmallNormal), 2577 2579 QIcon::Small, QIcon::Normal); 2578 if ( !aSmallDisabled.isEmpty())2579 { 2580 iconSet.setPixmap (QPixmap ( ":/" +aDisabled),2580 if (aSmallDisabled != NULL) 2581 { 2582 iconSet.setPixmap (QPixmap (aDisabled), 2581 2583 QIcon::Large, QIcon::Disabled); 2582 iconSet.setPixmap (QPixmap ( ":/" +aSmallDisabled),2584 iconSet.setPixmap (QPixmap (aSmallDisabled), 2583 2585 QIcon::Small, QIcon::Disabled); 2584 2586 } 2585 if ( !aSmallActive.isEmpty())2586 { 2587 iconSet.setPixmap (QPixmap ( ":/" +aActive),2587 if (aSmallActive != NULL) 2588 { 2589 iconSet.setPixmap (QPixmap (aActive), 2588 2590 QIcon::Large, QIcon::Active); 2589 iconSet.setPixmap (QPixmap ( ":/" +aSmallActive),2591 iconSet.setPixmap (QPixmap (aSmallActive), 2590 2592 QIcon::Small, QIcon::Active); 2591 2593 } -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp
r7246 r7250 289 289 mBtnEdit->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Fixed); 290 290 mBtnEdit->setFocusPolicy (Qt::StrongFocus); 291 mBtnEdit->setIconSet (VBoxGlobal::iconSet (" edit_description_16px.png",292 " edit_description_disabled_16px.png"));291 mBtnEdit->setIconSet (VBoxGlobal::iconSet (":/edit_description_16px.png", 292 ":/edit_description_disabled_16px.png")); 293 293 mBtnEdit->setTextPosition (QToolButton::BesideIcon); 294 294 mBtnEdit->setUsesTextLabel (true); … … 408 408 409 409 fileDiskMgrAction = new QAction( this, "fileDiskMgrAction" ); 410 fileDiskMgrAction->setIconSet (VBoxGlobal::iconSet (" diskim_16px.png"));410 fileDiskMgrAction->setIconSet (VBoxGlobal::iconSet (":/diskim_16px.png")); 411 411 fileSettingsAction = new QAction(this, "fileSettingsAction"); 412 fileSettingsAction->setIconSet (VBoxGlobal::iconSet (" global_settings_16px.png"));412 fileSettingsAction->setIconSet (VBoxGlobal::iconSet (":/global_settings_16px.png")); 413 413 fileExitAction = new QAction (this, "fileExitAction"); 414 fileExitAction->setIconSet (VBoxGlobal::iconSet (" exit_16px.png"));414 fileExitAction->setIconSet (VBoxGlobal::iconSet (":/exit_16px.png")); 415 415 416 416 vmNewAction = new QAction (this, "vmNewAction"); 417 417 vmNewAction->setIconSet (VBoxGlobal::iconSetEx ( 418 " vm_new_32px.png", "new_16px.png"));418 ":/vm_new_32px.png", ":/new_16px.png")); 419 419 vmConfigAction = new QAction (this, "vmConfigAction"); 420 420 vmConfigAction->setIconSet (VBoxGlobal::iconSetEx ( 421 " vm_settings_32px.png", "settings_16px.png",422 " vm_settings_disabled_32px.png", "settings_dis_16px.png"));421 ":/vm_settings_32px.png", ":/settings_16px.png", 422 ":/vm_settings_disabled_32px.png", ":/settings_dis_16px.png")); 423 423 vmDeleteAction = new QAction( this, "vmDeleteAction" ); 424 424 vmDeleteAction->setIconSet (VBoxGlobal::iconSetEx ( 425 " vm_delete_32px.png", "delete_16px.png",426 " vm_delete_disabled_32px.png", "delete_dis_16px.png"));425 ":/vm_delete_32px.png", ":/delete_16px.png", 426 ":/vm_delete_disabled_32px.png", ":/delete_dis_16px.png")); 427 427 vmStartAction = new QAction( this, "vmStartAction" ); 428 428 vmStartAction->setIconSet (VBoxGlobal::iconSetEx ( 429 " vm_start_32px.png", "start_16px.png",430 " vm_start_disabled_32px.png", "start_dis_16px.png"));429 ":/vm_start_32px.png", ":/start_16px.png", 430 ":/vm_start_disabled_32px.png", ":/start_dis_16px.png")); 431 431 vmDiscardAction = new QAction (this, "vmDiscardAction"); 432 432 vmDiscardAction->setIconSet (VBoxGlobal::iconSetEx ( 433 " vm_discard_32px.png", "discard_16px.png",434 " vm_discard_disabled_32px.png", "discard_dis_16px.png"));433 ":/vm_discard_32px.png", ":/discard_16px.png", 434 ":/vm_discard_disabled_32px.png", ":/discard_dis_16px.png")); 435 435 vmPauseAction = new QAction (this, "vmPauseAction"); 436 436 vmPauseAction->setToggleAction (true); 437 437 vmPauseAction->setIconSet (VBoxGlobal::iconSetEx ( 438 " vm_pause_32px.png", "pause_16px.png",439 " vm_pause_disabled_32px.png", "pause_disabled_16px.png"));438 ":/vm_pause_32px.png", "pause_16px.png", 439 ":/vm_pause_disabled_32px.png", "pause_disabled_16px.png")); 440 440 vmRefreshAction = new QAction (this, "vmRefreshAction"); 441 441 vmRefreshAction->setIconSet (VBoxGlobal::iconSetEx ( 442 " vm_refresh_32px.png", "refresh_16px.png",443 " vm_refresh_disabled_32px.png", "refresh_disabled_16px.png"));442 ":/vm_refresh_32px.png", "refresh_16px.png", 443 ":/vm_refresh_disabled_32px.png", "refresh_disabled_16px.png")); 444 444 vmShowLogsAction = new QAction (this, "vmShowLogsAction"); 445 445 vmShowLogsAction->setIconSet (VBoxGlobal::iconSetEx ( 446 " vm_show_logs_32px.png", "show_logs_16px.png",447 " vm_show_logs_disabled_32px.png", "show_logs_disabled_16px.png"));446 ":/vm_show_logs_32px.png", "show_logs_16px.png", 447 ":/vm_show_logs_disabled_32px.png", "show_logs_disabled_16px.png")); 448 448 449 449 helpContentsAction = new QAction (this, "helpContentsAction"); 450 helpContentsAction->setIconSet (VBoxGlobal::iconSet (" help_16px.png"));450 helpContentsAction->setIconSet (VBoxGlobal::iconSet (":/help_16px.png")); 451 451 helpWebAction = new QAction (this, "helpWebAction"); 452 helpWebAction->setIconSet (VBoxGlobal::iconSet (" site_16px.png"));452 helpWebAction->setIconSet (VBoxGlobal::iconSet (":/site_16px.png")); 453 453 helpRegisterAction = new QAction (this, "helpRegisterAction"); 454 helpRegisterAction->setIconSet (VBoxGlobal::iconSet (" register_16px.png",455 " register_disabled_16px.png"));454 helpRegisterAction->setIconSet (VBoxGlobal::iconSet (":/register_16px.png", 455 ":/register_disabled_16px.png")); 456 456 helpAboutAction = new QAction (this, "helpAboutAction"); 457 helpAboutAction->setIconSet (VBoxGlobal::iconSet (" about_16px.png"));457 helpAboutAction->setIconSet (VBoxGlobal::iconSet (":/about_16px.png")); 458 458 helpResetMessagesAction = new QAction( this, "helpResetMessagesAction" ); 459 helpResetMessagesAction->setIconSet (VBoxGlobal::iconSet (" reset_16px.png"));459 helpResetMessagesAction->setIconSet (VBoxGlobal::iconSet (":/reset_16px.png")); 460 460 461 461 /* subwidgets */ … … 489 489 vmRefreshAction); 490 490 vmTabWidget->addTab (vmDetailsView, 491 VBoxGlobal::iconSet (" settings_16px.png"),491 VBoxGlobal::iconSet (":/settings_16px.png"), 492 492 QString::null); 493 493 … … 495 495 vmSnapshotsWgt = new VBoxSnapshotsWgt (NULL, "vmSnapshotsWgt"); 496 496 vmTabWidget->addTab (vmSnapshotsWgt, 497 VBoxGlobal::iconSet (" take_snapshot_16px.png",498 " take_snapshot_dis_16px.png"),497 VBoxGlobal::iconSet (":/take_snapshot_16px.png", 498 ":/take_snapshot_dis_16px.png"), 499 499 QString::null); 500 500 … … 502 502 vmDescriptionPage = new VBoxVMDescriptionPage (this, "vmDescriptionPage"); 503 503 vmTabWidget->addTab (vmDescriptionPage, 504 VBoxGlobal::iconSet (" description_16px.png",505 " description_disabled_16px.png"),504 VBoxGlobal::iconSet (":/description_16px.png", 505 ":/description_disabled_16px.png"), 506 506 QString::null); 507 507 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxDiskImageManagerDlg.ui.h
r7246 r7250 268 268 Assert (!pxErroneous.isNull()); 269 269 270 pxHD = VBoxGlobal::iconSet (" hd_16px.png", "hd_disabled_16px.png");271 pxCD = VBoxGlobal::iconSet (" cd_16px.png", "cd_disabled_16px.png");272 pxFD = VBoxGlobal::iconSet (" fd_16px.png", "fd_disabled_16px.png");270 pxHD = VBoxGlobal::iconSet (":/hd_16px.png", ":/hd_disabled_16px.png"); 271 pxCD = VBoxGlobal::iconSet (":/cd_16px.png", ":/cd_disabled_16px.png"); 272 pxFD = VBoxGlobal::iconSet (":/fd_16px.png", ":/fd_disabled_16px.png"); 273 273 274 274 /* setup tab widget icons */ … … 334 334 335 335 imNewAction->setIconSet (VBoxGlobal::iconSetEx ( 336 " vdm_new_22px.png", "vdm_new_16px.png",337 " vdm_new_disabled_22px.png", "vdm_new_disabled_16px.png"));336 ":/vdm_new_22px.png", ":/vdm_new_16px.png", 337 ":/vdm_new_disabled_22px.png", ":/vdm_new_disabled_16px.png")); 338 338 imAddAction->setIconSet (VBoxGlobal::iconSetEx ( 339 " vdm_add_22px.png", "vdm_add_16px.png",340 " vdm_add_disabled_22px.png", "vdm_add_disabled_16px.png"));341 // imEditAction->setIconSet (VBoxGlobal::iconSet (" guesttools_16px.png", "guesttools_disabled_16px.png"));339 ":/vdm_add_22px.png", ":/vdm_add_16px.png", 340 ":/vdm_add_disabled_22px.png", ":/vdm_add_disabled_16px.png")); 341 // imEditAction->setIconSet (VBoxGlobal::iconSet (":/guesttools_16px.png", ":/guesttools_disabled_16px.png")); 342 342 imRemoveAction->setIconSet (VBoxGlobal::iconSetEx ( 343 " vdm_remove_22px.png", "vdm_remove_16px.png",344 " vdm_remove_disabled_22px.png", "vdm_remove_disabled_16px.png"));343 ":/vdm_remove_22px.png", ":/vdm_remove_16px.png", 344 ":/vdm_remove_disabled_22px.png", ":/vdm_remove_disabled_16px.png")); 345 345 imReleaseAction->setIconSet (VBoxGlobal::iconSetEx ( 346 " vdm_release_22px.png", "vdm_release_16px.png",347 " vdm_release_disabled_22px.png", "vdm_release_disabled_16px.png"));346 ":/vdm_release_22px.png", ":/vdm_release_16px.png", 347 ":/vdm_release_disabled_22px.png", ":/vdm_release_disabled_16px.png")); 348 348 imRefreshAction->setIconSet (VBoxGlobal::iconSetEx ( 349 " refresh_22px.png", "refresh_16px.png",350 " refresh_disabled_22px.png", "refresh_disabled_16px.png"));349 ":/refresh_22px.png", ":/refresh_16px.png", 350 ":/refresh_disabled_22px.png", ":/refresh_disabled_16px.png")); 351 351 352 352 // imEditAction->addTo (itemMenu); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsDlg.ui.h
r7235 r7250 381 381 lvUSBFilters_currentChanged (NULL); 382 382 /* setup toolbutton icons */ 383 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet (" usb_new_16px.png",384 " usb_new_disabled_16px.png"));385 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet (" usb_add_16px.png",386 " usb_add_disabled_16px.png"));387 tbRemoveUSBFilter->setIconSet (VBoxGlobal::iconSet (" usb_remove_16px.png",388 " usb_remove_disabled_16px.png"));389 tbUSBFilterUp->setIconSet (VBoxGlobal::iconSet (" usb_moveup_16px.png",390 " usb_moveup_disabled_16px.png"));391 tbUSBFilterDown->setIconSet (VBoxGlobal::iconSet (" usb_movedown_16px.png",392 " usb_movedown_disabled_16px.png"));383 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet (":/usb_new_16px.png", 384 ":/usb_new_disabled_16px.png")); 385 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet (":/usb_add_16px.png", 386 ":/usb_add_disabled_16px.png")); 387 tbRemoveUSBFilter->setIconSet (VBoxGlobal::iconSet (":/usb_remove_16px.png", 388 ":/usb_remove_disabled_16px.png")); 389 tbUSBFilterUp->setIconSet (VBoxGlobal::iconSet (":/usb_moveup_16px.png", 390 ":/usb_moveup_disabled_16px.png")); 391 tbUSBFilterDown->setIconSet (VBoxGlobal::iconSet (":/usb_movedown_16px.png", 392 ":/usb_movedown_disabled_16px.png")); 393 393 /* create menu of existing usb-devices */ 394 394 usbDevicesMenu = new VBoxUSBMenu (this); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxSharedFoldersSettings.ui.h
r7220 r7250 248 248 QLabel *lbName = new QLabel (tr ("Folder Name"), this); 249 249 mLeName = new QLineEdit (this); 250 tbPath->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",251 " select_file_dis_16px.png"));250 tbPath->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 251 ":/select_file_dis_16px.png")); 252 252 tbPath->setFocusPolicy (Qt::TabFocus); 253 253 connect (mLePath, SIGNAL (textChanged (const QString &)), … … 398 398 listView->setRootIsDecorated (true); 399 399 listView->header()->setMovingEnabled (false); 400 tbAdd->setIconSet (VBoxGlobal::iconSet (" add_shared_folder_16px.png",401 " add_shared_folder_disabled_16px.png"));402 tbEdit->setIconSet (VBoxGlobal::iconSet (" edit_shared_folder_16px.png",403 " edit_shared_folder_disabled_16px.png"));404 tbRemove->setIconSet (VBoxGlobal::iconSet (" revome_shared_folder_16px.png",405 " revome_shared_folder_disabled_16px.png"));400 tbAdd->setIconSet (VBoxGlobal::iconSet (":/add_shared_folder_16px.png", 401 ":/add_shared_folder_disabled_16px.png")); 402 tbEdit->setIconSet (VBoxGlobal::iconSet (":/edit_shared_folder_16px.png", 403 ":/edit_shared_folder_disabled_16px.png")); 404 tbRemove->setIconSet (VBoxGlobal::iconSet (":/revome_shared_folder_16px.png", 405 ":/revome_shared_folder_disabled_16px.png")); 406 406 connect (tbAdd, SIGNAL (clicked()), this, SLOT (tbAddPressed())); 407 407 connect (tbEdit, SIGNAL (clicked()), this, SLOT (tbEditPressed())); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxSnapshotsWgt.ui.h
r7246 r7250 314 314 /* icons */ 315 315 discardSnapshotAction->setIconSet (VBoxGlobal::iconSetEx ( 316 " discard_snapshot_22px.png", "discard_snapshot_16px.png",317 " discard_snapshot_dis_22px.png", "discard_snapshot_dis_16px.png"));316 ":/discard_snapshot_22px.png", ":/discard_snapshot_16px.png", 317 ":/discard_snapshot_dis_22px.png", ":/discard_snapshot_dis_16px.png")); 318 318 takeSnapshotAction->setIconSet (VBoxGlobal::iconSetEx ( 319 " take_snapshot_22px.png", "take_snapshot_16px.png",320 " take_snapshot_dis_22px.png", "take_snapshot_dis_16px.png"));319 ":/take_snapshot_22px.png", ":/take_snapshot_16px.png", 320 ":/take_snapshot_dis_22px.png", ":/take_snapshot_dis_16px.png")); 321 321 revertToCurSnapAction->setIconSet (VBoxGlobal::iconSetEx ( 322 " discard_cur_state_22px.png", "discard_cur_state_16px.png",323 " discard_cur_state_dis_22px.png", "discard_cur_state_dis_16px.png"));322 ":/discard_cur_state_22px.png", ":/discard_cur_state_16px.png", 323 ":/discard_cur_state_dis_22px.png", ":/discard_cur_state_dis_16px.png")); 324 324 discardCurSnapAndStateAction->setIconSet (VBoxGlobal::iconSetEx ( 325 " discard_cur_state_snapshot_22px.png", "discard_cur_state_snapshot_16px.png",326 " discard_cur_state_snapshot_dis_22px.png", "discard_cur_state_snapshot_dis_16px.png"));325 ":/discard_cur_state_snapshot_22px.png", ":/discard_cur_state_snapshot_16px.png", 326 ":/discard_cur_state_snapshot_dis_22px.png", ":/discard_cur_state_snapshot_dis_16px.png")); 327 327 showSnapshotDetailsAction->setIconSet (VBoxGlobal::iconSetEx ( 328 " show_snapshot_details_22px.png", "show_snapshot_details_16px.png",329 " show_snapshot_details_dis_22px.png", "show_snapshot_details_dis_16px.png"));328 ":/show_snapshot_details_22px.png", ":/show_snapshot_details_16px.png", 329 ":/show_snapshot_details_dis_22px.png", ":/show_snapshot_details_dis_16px.png")); 330 330 331 331 /* tooltip */ -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMFirstRunWzd.ui.h
r7220 r7250 54 54 #warning port me 55 55 // ltVdm->insertWidget (0, cbImage); 56 tbVdm->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",57 " select_file_dis_16px.png"));56 tbVdm->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 57 ":/select_file_dis_16px.png")); 58 58 setTabOrder (cbImage, tbVdm); 59 59 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui.h
r7235 r7250 90 90 mDetailsText->setPaper (backgroundBrush()); 91 91 mInfoStack->addTab (mDetailsText, 92 VBoxGlobal::iconSet (" settings_16px.png"),92 VBoxGlobal::iconSet (":/settings_16px.png"), 93 93 QString::null); 94 94 … … 98 98 mStatisticText->setPaper (backgroundBrush()); 99 99 mInfoStack->addTab (mStatisticText, 100 VBoxGlobal::iconSet (" state_running_16px.png"),100 VBoxGlobal::iconSet (":/state_running_16px.png"), 101 101 QString::null); 102 102 … … 106 106 // mDefStatText->setPaper (backgroundBrush()); 107 107 // mInfoStack->addTab (mDefStatText, 108 // VBoxGlobal::iconSet (" show_logs_16px.png"),108 // VBoxGlobal::iconSet (":/show_logs_16px.png"), 109 109 // QString::null); 110 110 … … 478 478 tr ("Enabled") : tr ("Disabled"); 479 479 480 result += hdrRow.arg (" state_running_16px.png").arg (tr ("Runtime Attributes"));480 result += hdrRow.arg (":/state_running_16px.png").arg (tr ("Runtime Attributes")); 481 481 result += bdyRow.arg (tr ("Screen Resolution")).arg (resolution) + 482 482 bdyRow.arg (tr ("Hardware Virtualization")).arg (virt); … … 485 485 486 486 /* Hard Disk Statistics. */ 487 result += hdrRow.arg (" hd_16px.png").arg (tr ("IDE Hard Disk Statistics"));487 result += hdrRow.arg (":/hd_16px.png").arg (tr ("IDE Hard Disk Statistics")); 488 488 result += formatHardDisk (tr ("Primary Master"), KDiskControllerType_IDE0, 0, 0, 1); 489 489 result += interline; … … 494 494 495 495 /* CD/DVD-ROM Statistics. */ 496 result += hdrRow.arg (" cd_16px.png").arg (tr ("CD/DVD-ROM Statistics"));496 result += hdrRow.arg (":/cd_16px.png").arg (tr ("CD/DVD-ROM Statistics")); 497 497 result += formatHardDisk (QString::null /* tr ("Secondary Master") */, 498 498 KDiskControllerType_IDE1, 0, 8, 9); … … 500 500 501 501 /* Network Adapters Statistics. */ 502 result += hdrRow.arg (" nw_16px.png").arg (tr ("Network Adapter Statistics"));502 result += hdrRow.arg (":/nw_16px.png").arg (tr ("Network Adapter Statistics")); 503 503 result += formatAdapter (tr ("Adapter 1"), 0, 16, 17); 504 504 result += interline; … … 612 612 tr ("Enabled") : tr ("Disabled"); 613 613 614 result += hdrRow.arg (" state_running_16px.png").arg (tr ("Runtime Attributes"));614 result += hdrRow.arg (":/state_running_16px.png").arg (tr ("Runtime Attributes")); 615 615 result += bdyRow.arg (tr ("Screen Resolution")) .arg (resolution) 616 616 .arg (tr ("Hardware Virtualization")).arg (virt); … … 619 619 620 620 /* Hard Disk Statistics. */ 621 result += hdrRow.arg (" hd_16px.png").arg (tr ("Hard Disks Statistics"));621 result += hdrRow.arg (":/hd_16px.png").arg (tr ("Hard Disks Statistics")); 622 622 623 623 result += subRow.arg (tr ("Primary Master")).arg (tr ("Primary Slave")); … … 632 632 633 633 /* Network Adapters Statistics. Counters are currently missed. */ 634 result += hdrRow.arg (" nw_16px.png").arg (tr ("Network Adapter Statistics"));634 result += hdrRow.arg (":/nw_16px.png").arg (tr ("Network Adapter Statistics")); 635 635 result += subRow.arg (tr ("Adapter 1")).arg (tr ("Adapter 2")); 636 636 result += composeArticle ("B", 16, 17, 18, 19); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMLogViewer.ui.h
r7235 r7250 60 60 mButtonClose->setAccel (QKeySequence (Qt::Key_Escape)); 61 61 connect (mButtonClose, SIGNAL (clicked()), this, SLOT (hide())); 62 mButtonClose->setIconSet (VBoxGlobal::iconSet (" delete_16px.png",63 "delete_dis_16px.png"));62 mButtonClose->setIconSet (VBoxGlobal::iconSet (":/delete_16px.png", 63 ":/delete_dis_16px.png")); 64 64 65 65 mSearchName = new QLabel (this); … … 77 77 mButtonNext->setTextPosition (QToolButton::BesideIcon); 78 78 connect (mButtonNext, SIGNAL (clicked()), this, SLOT (findNext())); 79 mButtonNext->setIconSet (VBoxGlobal::iconSet (" list_movedown_16px.png",80 "list_movedown_disabled_16px.png"));79 mButtonNext->setIconSet (VBoxGlobal::iconSet (":/list_movedown_16px.png", 80 ":/list_movedown_disabled_16px.png")); 81 81 82 82 mButtonPrev = new QToolButton (this); … … 87 87 mButtonPrev->setTextPosition (QToolButton::BesideIcon); 88 88 connect (mButtonPrev, SIGNAL (clicked()), this, SLOT (findBack())); 89 mButtonPrev->setIconSet (VBoxGlobal::iconSet (" list_moveup_16px.png",90 "list_moveup_disabled_16px.png"));89 mButtonPrev->setIconSet (VBoxGlobal::iconSet (":/list_moveup_16px.png", 90 ":/list_moveup_disabled_16px.png")); 91 91 92 92 mCaseSensitive = new QCheckBox (this); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMNetworkSettings.ui.h
r7220 r7250 61 61 cbHostInterfaceName->setHidden (true); 62 62 /* setup iconsets */ 63 pbTAPSetup->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",64 " select_file_dis_16px.png"));65 pbTAPTerminate->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",66 " select_file_dis_16px.png"));63 pbTAPSetup->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 64 ":/select_file_dis_16px.png")); 65 pbTAPTerminate->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 66 ":/select_file_dis_16px.png")); 67 67 #endif 68 68 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui.h
r7235 r7250 261 261 mBtnUp->setFocusPolicy (Qt::StrongFocus); 262 262 mBtnDown->setFocusPolicy (Qt::StrongFocus); 263 mBtnUp->setIconSet (VBoxGlobal::iconSet (" list_moveup_16px.png",264 " list_moveup_disabled_16px.png"));265 mBtnDown->setIconSet (VBoxGlobal::iconSet (" list_movedown_16px.png",266 " list_movedown_disabled_16px.png"));263 mBtnUp->setIconSet (VBoxGlobal::iconSet (":/list_moveup_16px.png", 264 ":/list_moveup_disabled_16px.png")); 265 mBtnDown->setIconSet (VBoxGlobal::iconSet (":/list_movedown_16px.png", 266 ":/list_movedown_disabled_16px.png")); 267 267 QSpacerItem *spacer = new QSpacerItem (0, 0, QSizePolicy::Minimum, 268 268 QSizePolicy::Minimum); … … 586 586 this, SLOT(enableOk (const QIWidgetValidator *))); 587 587 588 tbSelectSavedStateFolder->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",589 " select_file_dis_16px.png"));590 tbResetSavedStateFolder->setIconSet (VBoxGlobal::iconSet (" eraser_16px.png",591 " eraser_disabled_16px.png"));588 tbSelectSavedStateFolder->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 589 ":/select_file_dis_16px.png")); 590 tbResetSavedStateFolder->setIconSet (VBoxGlobal::iconSet (":/eraser_16px.png", 591 ":/eraser_disabled_16px.png")); 592 592 593 593 teDescription->setTextFormat (Qt::PlainText); … … 647 647 648 648 /* setup iconsets -- qdesigner is not capable... */ 649 tbHDA->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",650 " select_file_dis_16px.png"));651 tbHDB->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",652 " select_file_dis_16px.png"));653 tbHDD->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",654 " select_file_dis_16px.png"));649 tbHDA->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 650 ":/select_file_dis_16px.png")); 651 tbHDB->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 652 ":/select_file_dis_16px.png")); 653 tbHDD->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 654 ":/select_file_dis_16px.png")); 655 655 656 656 /* CD/DVD-ROM Drive Page */ … … 679 679 680 680 /* setup iconsets -- qdesigner is not capable... */ 681 tbISODVD->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",682 " select_file_dis_16px.png"));681 tbISODVD->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 682 ":/select_file_dis_16px.png")); 683 683 684 684 /* Floppy Drive Page */ … … 706 706 707 707 /* setup iconsets -- qdesigner is not capable... */ 708 tbISOFloppy->setIconSet (VBoxGlobal::iconSet (" select_file_16px.png",709 " select_file_dis_16px.png"));708 tbISOFloppy->setIconSet (VBoxGlobal::iconSet (":/select_file_16px.png", 709 ":/select_file_dis_16px.png")); 710 710 711 711 /* Audio Page */ … … 724 724 mNoInterfaces = tr ("<No suitable interfaces>"); 725 725 /* setup iconsets */ 726 pbHostAdd->setIconSet (VBoxGlobal::iconSet (" add_host_iface_16px.png",727 " add_host_iface_disabled_16px.png"));728 pbHostRemove->setIconSet (VBoxGlobal::iconSet (" remove_host_iface_16px.png",729 " remove_host_iface_disabled_16px.png"));726 pbHostAdd->setIconSet (VBoxGlobal::iconSet (":/add_host_iface_16px.png", 727 ":/add_host_iface_disabled_16px.png")); 728 pbHostRemove->setIconSet (VBoxGlobal::iconSet (":/remove_host_iface_16px.png", 729 ":/remove_host_iface_disabled_16px.png")); 730 730 /* setup languages */ 731 731 QToolTip::add (pbHostAdd, tr ("Add")); … … 765 765 766 766 /* setup iconsets -- qdesigner is not capable... */ 767 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet (" usb_new_16px.png",768 " usb_new_disabled_16px.png"));769 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet (" usb_add_16px.png",770 " usb_add_disabled_16px.png"));771 tbRemoveUSBFilter->setIconSet (VBoxGlobal::iconSet (" usb_remove_16px.png",772 " usb_remove_disabled_16px.png"));773 tbUSBFilterUp->setIconSet (VBoxGlobal::iconSet (" usb_moveup_16px.png",774 " usb_moveup_disabled_16px.png"));775 tbUSBFilterDown->setIconSet (VBoxGlobal::iconSet (" usb_movedown_16px.png",776 " usb_movedown_disabled_16px.png"));767 tbAddUSBFilter->setIconSet (VBoxGlobal::iconSet (":/usb_new_16px.png", 768 ":/usb_new_disabled_16px.png")); 769 tbAddUSBFilterFrom->setIconSet (VBoxGlobal::iconSet (":/usb_add_16px.png", 770 ":/usb_add_disabled_16px.png")); 771 tbRemoveUSBFilter->setIconSet (VBoxGlobal::iconSet (":/usb_remove_16px.png", 772 ":/usb_remove_disabled_16px.png")); 773 tbUSBFilterUp->setIconSet (VBoxGlobal::iconSet (":/usb_moveup_16px.png", 774 ":/usb_moveup_disabled_16px.png")); 775 tbUSBFilterDown->setIconSet (VBoxGlobal::iconSet (":/usb_movedown_16px.png", 776 ":/usb_movedown_disabled_16px.png")); 777 777 usbDevicesMenu = new VBoxUSBMenu (this); 778 778 connect (usbDevicesMenu, SIGNAL(activated(int)), this, SLOT(menuAddUSBFilterFrom_activated(int)));
Note:
See TracChangeset
for help on using the changeset viewer.