Changeset 16256 in vbox
- Timestamp:
- Jan 27, 2009 10:23:56 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 14 added
- 5 edited
-
Makefile.kmk (modified) (1 diff)
-
VirtualBox.qrc (modified) (4 diffs)
-
images/auto_resize_on_disabled_transparent_16px.png (added)
-
images/auto_resize_on_transparent_16px.png (added)
-
images/fullscreen_disabled_transparent_16px.png (added)
-
images/fullscreen_transparent_16px.png (added)
-
images/mouse_can_seamless_disabled_transparent_16px.png (added)
-
images/mouse_can_seamless_transparent_16px.png (added)
-
images/pause_disabled_transparent_16px.png (added)
-
images/pause_transparent_16px.png (added)
-
images/seamless_16px.png (added)
-
images/seamless_disabled_16px.png (added)
-
images/seamless_disabled_transparent_16px.png (added)
-
images/seamless_transparent_16px.png (added)
-
images/vrdp_disabled_transparent_16px.png (added)
-
images/vrdp_transparent_16px.png (added)
-
include/VBoxGlobal.h (modified) (1 diff)
-
src/VBoxConsoleWnd.cpp (modified) (5 diffs)
-
src/VBoxGlobal.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r16174 r16256 149 149 endif 150 150 151 VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS 151 VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS VBOX_GUI_WITH_SYSTRAY 152 152 VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 153 153 VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP -
trunk/src/VBox/Frontends/VirtualBox/VirtualBox.qrc
r15969 r16256 116 116 <file alias="mouse_seamless_16px.png">images/mouse_seamless_16px.png</file> 117 117 <file alias="mouse_can_seamless_16px.png">images/mouse_can_seamless_16px.png</file> 118 <file alias="mouse_can_seamless_transparent_16px.png">images/mouse_can_seamless_transparent_16px.png</file> 118 119 <file alias="mouse_can_seamless_disabled_16px.png">images/mouse_can_seamless_disabled_16px.png</file> 120 <file alias="mouse_can_seamless_disabled_transparent_16px.png">images/mouse_can_seamless_disabled_transparent_16px.png</file> 119 121 <file alias="mouse_can_seamless_uncaptured_16px.png">images/mouse_can_seamless_uncaptured_16px.png</file> 120 122 <file alias="hostkey_16px.png">images/hostkey_16px.png</file> … … 140 142 <file alias="reset_disabled_16px.png">images/reset_disabled_16px.png</file> 141 143 <file alias="pause_16px.png">images/pause_16px.png</file> 144 <file alias="pause_transparent_16px.png">images/pause_transparent_16px.png</file> 142 145 <file alias="pause_disabled_16px.png">images/pause_disabled_16px.png</file> 146 <file alias="pause_disabled_transparent_16px.png">images/pause_disabled_transparent_16px.png</file> 143 147 <file alias="fullscreen_16px.png">images/fullscreen_16px.png</file> 148 <file alias="fullscreen_transparent_16px.png.png">images/fullscreen_transparent_16px.png</file> 144 149 <file alias="fullscreen_disabled_16px.png">images/fullscreen_disabled_16px.png</file> 150 <file alias="fullscreen_disabled_transparent_16px.png">images/fullscreen_disabled_transparent_16px.png</file> 151 <file alias="seamless_16px.png">images/seamless_16px.png</file> 152 <file alias="seamless_transparent_16px.png">images/seamless_transparent_16px.png</file> 153 <file alias="seamless_disabled_16px.png">images/seamless_disabled_16px.png</file> 154 <file alias="seamless_disabled_transparent_16px.png">images/seamless_disabled_transparent_16px.png</file> 145 155 <file alias="acpi_16px.png">images/acpi_16px.png</file> 146 156 <file alias="acpi_disabled_16px.png">images/acpi_disabled_16px.png</file> … … 148 158 <file alias="adjust_win_size_disabled_16px.png">images/adjust_win_size_disabled_16px.png</file> 149 159 <file alias="auto_resize_on_16px.png">images/auto_resize_on_16px.png</file> 160 <file alias="auto_resize_on_transparent_16px.png">images/auto_resize_on_transparent_16px.png</file> 150 161 <file alias="auto_resize_on_disabled_16px.png">images/auto_resize_on_disabled_16px.png</file> 162 <file alias="auto_resize_on_disabled_transparent_16px.png">images/auto_resize_on_disabled_transparent_16px.png</file> 151 163 <file alias="auto_resize_off_16px.png">images/auto_resize_off_16px.png</file> 152 164 <file alias="auto_resize_off_disabled_16px.png">images/auto_resize_off_disabled_16px.png</file> … … 282 294 <file alias="global_settings_disabled_16px.png">images/global_settings_disabled_16px.png</file> 283 295 <file alias="vrdp_16px.png">images/vrdp_16px.png</file> 296 <file alias="vrdp_transparent_16px.png">images/vrdp_transparent_16px.png</file> 284 297 <file alias="vrdp_disabled_16px.png">images/vrdp_disabled_16px.png</file> 298 <file alias="vrdp_disabled_transparent_16px.png">images/vrdp_disabled_transparent_16px.png</file> 285 299 <file alias="vrdp_32px.png">images/vrdp_32px.png</file> 286 300 <file alias="vrdp_disabled_32px.png">images/vrdp_disabled_32px.png</file> -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r16176 r16256 889 889 const char *aDisabled = NULL, 890 890 const char *aActive = NULL); 891 static QIcon iconSetOnOff (const char *aNormal, const char *aNormalOff, 892 const char *aDisabled = NULL, 893 const char *aDisabledOff = NULL, 894 const char *aActive = NULL, 895 const char *aActiveOff = NULL); 891 896 static QIcon iconSetFull (const QSize &aNormalSize, const QSize &aSmallSize, 892 897 const char *aNormal, const char *aSmallNormal, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r16176 r16256 273 273 mVmFullscreenAction = new QAction (this); 274 274 mVmFullscreenAction->setIcon ( 275 VBoxGlobal::iconSet (":/fullscreen_16px.png", ":/fullscreen_disabled_16px.png")); 275 VBoxGlobal::iconSetOnOff ( 276 ":/fullscreen_16px.png", ":/fullscreen_transparent_16px.png", 277 ":/fullscreen_disabled_16px.png", ":/fullscreen_disabled_transparent_16px.png")); 276 278 mVmFullscreenAction->setCheckable (true); 277 279 278 280 mVmSeamlessAction = new QAction (this); 279 281 mVmSeamlessAction->setIcon ( 280 VBoxGlobal::iconSet (":/nw_16px.png", ":/nw_disabled_16px.png")); 282 VBoxGlobal::iconSetOnOff ( 283 ":/seamless_16px.png", ":/seamless_transparent_16px.png", 284 ":/seamless_disabled_16px.png", ":/seamless_disabled_transparent_16px.png")); 281 285 mVmSeamlessAction->setCheckable (true); 282 286 283 287 mVmAutoresizeGuestAction = new QAction (mRunningActions); 284 288 mVmAutoresizeGuestAction->setIcon ( 285 VBoxGlobal::iconSet (":/auto_resize_on_16px.png", ":/auto_resize_on_disabled_16px.png")); 289 VBoxGlobal::iconSetOnOff ( 290 ":/auto_resize_on_16px.png", ":/auto_resize_on_transparent_16px.png", 291 ":/auto_resize_on_disabled_16px.png", ":/auto_resize_on_disabled_transparent_16px.png")); 286 292 mVmAutoresizeGuestAction->setCheckable (true); 287 293 mVmAutoresizeGuestAction->setEnabled (false); … … 307 313 308 314 mVmPauseAction = new QAction (this); 309 mVmPauseAction->setIcon (VBoxGlobal::iconSet (":/pause_16px.png")); 315 mVmPauseAction->setIcon ( 316 VBoxGlobal::iconSetOnOff ( 317 ":/pause_16px.png", ":/pause_transparent_16px.png", 318 ":/pause_disabled_16px.png", ":/pause_disabled_transparent_16px.png")); 310 319 mVmPauseAction->setCheckable (true); 311 320 … … 327 336 328 337 mVmDisableMouseIntegrAction = new QAction (this); 329 mVmDisableMouseIntegrAction->setIcon (VBoxGlobal::iconSet ( 330 ":/mouse_can_seamless_16px.png", ":/mouse_can_seamless_disabled_16px.png")); 338 mVmDisableMouseIntegrAction->setIcon ( 339 VBoxGlobal::iconSetOnOff ( 340 ":/mouse_can_seamless_16px.png", ":/mouse_can_seamless_transparent_16px.png", 341 ":/mouse_can_seamless_disabled_16px.png", ":/mouse_can_seamless_disabled_transparent_16px.png")); 331 342 mVmDisableMouseIntegrAction->setCheckable (true); 332 343 … … 350 361 351 362 mDevicesSwitchVrdpAction = new QAction (mRunningOrPausedActions); 352 mDevicesSwitchVrdpAction->setIcon (VBoxGlobal::iconSet (":/vrdp_16px.png", 353 ":/vrdp_disabled_16px.png")); 363 mDevicesSwitchVrdpAction->setIcon ( 364 VBoxGlobal::iconSetOnOff ( 365 ":/vrdp_16px.png", ":/vrdp_transparent_16px.png", 366 ":/vrdp_disabled_16px.png", ":/vrdp_disabled_transparent_16px.png")); 354 367 mDevicesSwitchVrdpAction->setCheckable (true); 355 368 … … 399 412 mVMMenu->addAction (mVmFullscreenAction); 400 413 mVMMenu->addAction (mVmSeamlessAction); 414 mVMMenu->addAction (mVmAutoresizeGuestAction); 401 415 mVMMenu->addAction (mVmAdjustWindowAction); 402 mVMMenu->addAction (mVmAutoresizeGuestAction);403 416 mVMMenu->addSeparator(); 404 417 mVMMenu->addAction (mVmDisableMouseIntegrAction); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r16179 r16256 3737 3737 QIcon iconSet; 3738 3738 3739 Assert (aNormal != NULL); 3739 3740 iconSet.addFile (aNormal, QSize(), 3740 3741 QIcon::Normal); … … 3749 3750 3750 3751 /* static */ 3752 QIcon VBoxGlobal::iconSetOnOff (const char *aNormal, const char *aNormalOff, 3753 const char *aDisabled /* = NULL */, 3754 const char *aDisabledOff /* = NULL */, 3755 const char *aActive /* = NULL */, 3756 const char *aActiveOff /* = NULL */) 3757 { 3758 QIcon iconSet; 3759 3760 Assert (aNormal != NULL); 3761 iconSet.addFile (aNormal, QSize(), QIcon::Normal, QIcon::On); 3762 if (aNormalOff != NULL) 3763 iconSet.addFile (aNormalOff, QSize(), QIcon::Normal, QIcon::Off); 3764 3765 if (aDisabled != NULL) 3766 iconSet.addFile (aDisabled, QSize(), QIcon::Disabled, QIcon::On); 3767 if (aDisabledOff != NULL) 3768 iconSet.addFile (aDisabledOff, QSize(), QIcon::Disabled, QIcon::Off); 3769 3770 if (aActive != NULL) 3771 iconSet.addFile (aActive, QSize(), QIcon::Active, QIcon::On); 3772 if (aActiveOff != NULL) 3773 iconSet.addFile (aActive, QSize(), QIcon::Active, QIcon::Off); 3774 3775 return iconSet; 3776 } 3777 3778 /* static */ 3751 3779 QIcon VBoxGlobal::iconSetFull (const QSize &aNormalSize, const QSize &aSmallSize, 3752 3780 const char *aNormal, const char *aSmallNormal, … … 3758 3786 QIcon iconSet; 3759 3787 3788 Assert (aNormal != NULL); 3789 Assert (aSmallNormal != NULL); 3760 3790 iconSet.addFile (aNormal, aNormalSize, QIcon::Normal); 3761 3791 iconSet.addFile (aSmallNormal, aSmallSize, QIcon::Normal); 3792 3762 3793 if (aSmallDisabled != NULL) 3763 3794 { … … 3765 3796 iconSet.addFile (aSmallDisabled, aSmallSize, QIcon::Disabled); 3766 3797 } 3798 3767 3799 if (aSmallActive != NULL) 3768 3800 {
Note:
See TracChangeset
for help on using the changeset viewer.

