Changeset 10769 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 21, 2008 8:59:10 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 13 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/VirtualBox.qrc
r9866 r10769 69 69 <file alias="vmw_new_user.png">images/vmw_new_user.png</file> 70 70 <file alias="fd_16px.png">images/fd_16px.png</file> 71 <file alias="fd_32px.png">images/fd_32px.png</file> 71 72 <file alias="fd_read_16px.png">images/fd_read_16px.png</file> 72 73 <file alias="fd_write_16px.png">images/fd_write_16px.png</file> 73 74 <file alias="fd_disabled_16px.png">images/fd_disabled_16px.png</file> 74 75 <file alias="cd_16px.png">images/cd_16px.png</file> 76 <file alias="cd_32px.png">images/cd_32px.png</file> 75 77 <file alias="cd_read_16px.png">images/cd_read_16px.png</file> 76 78 <file alias="cd_write_16px.png">images/cd_write_16px.png</file> … … 79 81 <file alias="cd_unmount_dis_16px.png">images/cd_unmount_dis_16px.png</file> 80 82 <file alias="hd_16px.png">images/hd_16px.png</file> 83 <file alias="hd_32px.png">images/hd_32px.png</file> 81 84 <file alias="hd_read_16px.png">images/hd_read_16px.png</file> 82 85 <file alias="hd_write_16px.png">images/hd_write_16px.png</file> … … 89 92 <file alias="mouse_can_seamless_uncaptured_16px.png">images/mouse_can_seamless_uncaptured_16px.png</file> 90 93 <file alias="hostkey_16px.png">images/hostkey_16px.png</file> 94 <file alias="hostkey_32px.png">images/hostkey_32px.png</file> 91 95 <file alias="hostkey_pressed_16px.png">images/hostkey_pressed_16px.png</file> 92 96 <file alias="hostkey_captured_16px.png">images/hostkey_captured_16px.png</file> … … 94 98 <file alias="hostkey_disabled_16px.png">images/hostkey_disabled_16px.png</file> 95 99 <file alias="machine_16px.png">images/machine_16px.png</file> 100 <file alias="machine_32px.png">images/machine_32px.png</file> 96 101 <file alias="help_16px.png">images/help_16px.png</file> 97 102 <file alias="help_button_normal_mac_22px.png">images/help_button_normal_mac_22px.png</file> 98 103 <file alias="help_button_pressed_mac_22px.png">images/help_button_pressed_mac_22px.png</file> 99 104 <file alias="site_16px.png">images/site_16px.png</file> 105 <file alias="site_32px.png">images/site_32px.png</file> 100 106 <file alias="register_16px.png">images/register_16px.png</file> 101 107 <file alias="register_disabled_16px.png">images/register_disabled_16px.png</file> … … 132 138 <file alias="delete_dis_16px.png">images/delete_dis_16px.png</file> 133 139 <file alias="sound_16px.png">images/sound_16px.png</file> 140 <file alias="sound_32px.png">images/sound_32px.png</file> 134 141 <file alias="nw_16px.png">images/nw_16px.png</file> 142 <file alias="nw_32px.png">images/nw_32px.png</file> 135 143 <file alias="nw_read_16px.png">images/nw_read_16px.png</file> 136 144 <file alias="nw_write_16px.png">images/nw_write_16px.png</file> 137 145 <file alias="nw_disabled_16px.png">images/nw_disabled_16px.png</file> 138 146 <file alias="usb_16px.png">images/usb_16px.png</file> 147 <file alias="usb_32px.png">images/usb_16px.png</file> 139 148 <file alias="usb_new_16px.png">images/usb_new_16px.png</file> 140 149 <file alias="usb_new_disabled_16px.png">images/usb_new_disabled_16px.png</file> … … 153 162 <file alias="usb_unavailable_disabled_16px.png">images/usb_unavailable_disabled_16px.png</file> 154 163 <file alias="parallel_port_16px.png">images/parallel_port_16px.png</file> 164 <file alias="parallel_port_32px.png">images/parallel_port_32px.png</file> 155 165 <file alias="parallel_port_disabled_16px.png">images/parallel_port_disabled_16px.png</file> 156 166 <file alias="parallel_port_read_16px.png">images/parallel_port_read_16px.png</file> 157 167 <file alias="parallel_port_write_16px.png">images/parallel_port_write_16px.png</file> 158 168 <file alias="serial_port_16px.png">images/serial_port_16px.png</file> 169 <file alias="serial_port_32px.png">images/serial_port_32px.png</file> 159 170 <file alias="serial_port_disabled_16px.png">images/serial_port_disabled_16px.png</file> 160 171 <file alias="serial_port_read_16px.png">images/serial_port_read_16px.png</file> … … 197 208 <file alias="revome_shared_folder_disabled_16px.png">images/revome_shared_folder_disabled_16px.png</file> 198 209 <file alias="shared_folder_16px.png">images/shared_folder_16px.png</file> 210 <file alias="shared_folder_32px.png">images/shared_folder_32px.png</file> 199 211 <file alias="shared_folder_disabled_16px.png">images/shared_folder_disabled_16px.png</file> 200 212 <file alias="shared_folder_read_16px.png">images/shared_folder_read_16px.png</file> … … 221 233 <file alias="global_settings_disabled_16px.png">images/global_settings_disabled_16px.png</file> 222 234 <file alias="vrdp_16px.png">images/vrdp_16px.png</file> 235 <file alias="vrdp_32px.png">images/vrdp_32px.png</file> 223 236 <file alias="vrdp_disabled_16px.png">images/vrdp_disabled_16px.png</file> 224 237 <file alias="vdm_add_16px.png">images/vdm_add_16px.png</file> -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsDialogSpecific.h
r10604 r10769 115 115 private: 116 116 117 void addItem (const Q Icon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage = NULL, int aParentId = -1);117 void addItem (const QString &aBigIcon, const QString &aSmallIcon, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage = NULL, int aParentId = -1); 118 118 void updateAvailability(); 119 119 VBoxSettingsPage* attachValidator (VBoxSettingsPage *aPage); -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsSelector.h
r10604 r10769 51 51 virtual QWidget *widget() const = 0; 52 52 53 virtual QWidget *addItem (const Q Icon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1) = 0;53 virtual QWidget *addItem (const QString &aBigIcon, const QString &aSmallIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1) = 0; 54 54 55 55 virtual void setItemText (int aId, const QString &aText); … … 100 100 virtual QWidget *widget() const; 101 101 102 virtual QWidget *addItem (const Q Icon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1);102 virtual QWidget *addItem (const QString &aBigIcon, const QString &aSmallIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1); 103 103 virtual void setItemText (int aId, const QString &aText); 104 104 virtual QString itemText (int aId) const; … … 140 140 virtual QWidget *widget() const; 141 141 142 virtual QWidget *addItem (const Q Icon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1);142 virtual QWidget *addItem (const QString &aBigIcon, const QString &aSmallIcon, int aId, const QString &aLink, VBoxSettingsPage* aPage = NULL, int aParentId = -1); 143 143 virtual void setItemText (int aId, const QString &aText); 144 144 virtual QString itemText (int aId) const; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsDialogSpecific.cpp
r10605 r10769 62 62 /* General page */ 63 63 prefPage = new VBoxGLSettingsGeneral(); 64 page = mSelector->addItem ( VBoxGlobal::iconSet (":/machine_16px.png"),64 page = mSelector->addItem (":/machine_32px.png", ":/machine_16px.png", 65 65 GeneralId, "#general", 66 66 prefPage); … … 71 71 /* Input page */ 72 72 prefPage = new VBoxGLSettingsInput(); 73 page = mSelector->addItem ( VBoxGlobal::iconSet (":/hostkey_16px.png"),73 page = mSelector->addItem (":/hostkey_32px.png", ":/hostkey_16px.png", 74 74 InputId, "#input", 75 75 prefPage); … … 80 80 /* Update page */ 81 81 prefPage = new VBoxGLSettingsUpdate(); 82 page = mSelector->addItem ( VBoxGlobal::iconSet (":/refresh_16px.png"),82 page = mSelector->addItem (":/refresh_16px.png", ":/refresh_16px.png", 83 83 UpdateId, "#update", 84 84 prefPage); … … 89 89 /* Language page */ 90 90 prefPage = new VBoxGLSettingsLanguage(); 91 page = mSelector->addItem ( VBoxGlobal::iconSet (":/site_16px.png"),91 page = mSelector->addItem (":/site_32px.png", ":/site_16px.png", 92 92 LanguageId, "#language", 93 93 prefPage); … … 99 99 /* USB page */ 100 100 prefPage = VBoxVMSettingsUSB (VBoxVMSettingsUSB::HostType); 101 page = mSelector->addItem ( VBoxGlobal::iconSet (":/usb_16px.png"),101 page = mSelector->addItem (":/usb_32px.png", ":/usb_16px.png", 102 102 USBId, "#usb", 103 103 prefPage); … … 224 224 prefPage = new VBoxVMSettingsGeneral(); 225 225 connect (prefPage, SIGNAL (tableChanged()), this, SLOT (resetFirstRunFlag())); 226 addItem ( VBoxGlobal::iconSet (":/machine_16px.png"),226 addItem (":/machine_32px.png", ":/machine_16px.png", 227 227 GeneralId, "#general", 228 228 prefPage); 229 229 230 230 /* Storage page */ 231 addItem ( VBoxGlobal::iconSet (":/hd_16px.png"),231 addItem (":/hd_32px.png", ":/hd_16px.png", 232 232 StorageId, "#storage"); 233 233 … … 235 235 prefPage = new VBoxVMSettingsHD(); 236 236 connect (prefPage, SIGNAL (hdChanged()), this, SLOT (resetFirstRunFlag())); 237 addItem ( VBoxGlobal::iconSet (":/hd_16px.png"),237 addItem (":/hd_32px.png", ":/hd_16px.png", 238 238 HDId, "#hdds", 239 239 prefPage, StorageId); … … 242 242 prefPage = new VBoxVMSettingsCD(); 243 243 connect (prefPage, SIGNAL (cdChanged()), this, SLOT (resetFirstRunFlag())); 244 addItem ( VBoxGlobal::iconSet (":/cd_16px.png"),244 addItem (":/cd_32px.png", ":/cd_16px.png", 245 245 CDId, "#dvd", 246 246 prefPage, StorageId); … … 249 249 prefPage = new VBoxVMSettingsFD(); 250 250 connect (prefPage, SIGNAL (fdChanged()), this, SLOT (resetFirstRunFlag())); 251 addItem ( VBoxGlobal::iconSet (":/fd_16px.png"),251 addItem (":/fd_32px.png", ":/fd_16px.png", 252 252 FDId, "#floppy", 253 253 prefPage, StorageId); … … 255 255 /* Audio page */ 256 256 prefPage = new VBoxVMSettingsAudio(); 257 addItem ( VBoxGlobal::iconSet (":/sound_16px.png"),257 addItem (":/sound_32px.png", ":/sound_16px.png", 258 258 AudioId, "#audio", 259 259 prefPage); … … 261 261 /* Network page */ 262 262 prefPage = new VBoxVMSettingsNetworkPage(); 263 addItem ( VBoxGlobal::iconSet (":/nw_16px.png"),263 addItem (":/nw_32px.png", ":/nw_16px.png", 264 264 NetworkId, "#network", 265 265 prefPage); 266 266 267 267 /* Ports page */ 268 addItem ( VBoxGlobal::iconSet (":/serial_port_16px.png"),268 addItem (":/serial_port_32px.png", ":/serial_port_16px.png", 269 269 PortsId, "#ports"); 270 270 271 271 /* USB page */ 272 272 prefPage = new VBoxVMSettingsUSB (VBoxVMSettingsUSB::MachineType); 273 addItem ( VBoxGlobal::iconSet (":/usb_16px.png"),273 addItem (":/usb_32px.png", ":/usb_16px.png", 274 274 USBId, "#usb", 275 275 prefPage, PortsId); … … 277 277 /* Serial page */ 278 278 prefPage = new VBoxVMSettingsSerialPage(); 279 addItem ( VBoxGlobal::iconSet (":/serial_port_16px.png"),279 addItem (":/serial_port_32px.png", ":/serial_port_16px.png", 280 280 SerialId, "#serialPorts", 281 281 prefPage, PortsId); … … 283 283 /* Parallel page */ 284 284 prefPage = new VBoxVMSettingsParallelPage(); 285 addItem ( VBoxGlobal::iconSet (":/parallel_port_16px.png"),285 addItem (":/parallel_port_32px.png", ":/parallel_port_16px.png", 286 286 ParallelId, "#parallelPorts", 287 287 prefPage, PortsId); … … 289 289 /* SFolders page */ 290 290 prefPage = new VBoxVMSettingsSF (MachineType); 291 addItem ( VBoxGlobal::iconSet (":/shared_folder_16px.png"),291 addItem (":/shared_folder_32px.png", ":/shared_folder_16px.png", 292 292 SFId, "#sfolders", 293 293 prefPage); … … 295 295 /* VRDP page */ 296 296 prefPage = new VBoxVMSettingsVRDP(); 297 addItem ( VBoxGlobal::iconSet (":/vrdp_16px.png"),297 addItem (":/vrdp_32px.png", ":/vrdp_16px.png", 298 298 VRDPId, "#vrdp", 299 299 prefPage); … … 337 337 } 338 338 339 void VBoxVMSettingsDlg::addItem (const Q Icon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage /* = NULL*/, int aParentId /* = -1 */)340 { 341 QWidget *page = mSelector->addItem (a Icon,339 void VBoxVMSettingsDlg::addItem (const QString &aBigIcon, const QString &aSmallIcon, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage /* = NULL*/, int aParentId /* = -1 */) 340 { 341 QWidget *page = mSelector->addItem (aBigIcon, aSmallIcon, 342 342 aId, aLink, 343 343 aPrefPage, aParentId); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsSelector.cpp
r10701 r10769 201 201 } 202 202 203 QWidget *VBoxSettingsTreeViewSelector::addItem (const QIcon &aIcon, 203 QWidget *VBoxSettingsTreeViewSelector::addItem (const QString &aBigIcon, 204 const QString &aSmallIcon, 204 205 int aId, 205 206 const QString &aLink, … … 207 208 int aParentId /* = -1 */) 208 209 { 210 NOREF (aBigIcon); 209 211 QWidget *result = NULL; 210 212 if (aPage != NULL) 211 213 { 212 SelectorItem *item = new SelectorItem ( aIcon, "", aId, aLink, aPage, aParentId);214 SelectorItem *item = new SelectorItem (QIcon (aSmallIcon), "", aId, aLink, aPage, aParentId); 213 215 mItemList.append (item); 214 216 … … 216 218 << idToString (aId) 217 219 << aLink); 218 twitem->setIcon (treeWidget_Category, aIcon);220 twitem->setIcon (treeWidget_Category, item->icon()); 219 221 aPage->setContentsMargins (9, 2, 9, 2); 220 222 VBoxGlobal::setLayoutMargin (aPage->layout(), 0); … … 377 379 } 378 380 379 QWidget *VBoxSettingsToolBarSelector::addItem (const QIcon &aIcon, 381 QWidget *VBoxSettingsToolBarSelector::addItem (const QString &aBigIcon, 382 const QString &aSmallIcon, 380 383 int aId, 381 384 const QString &aLink, … … 384 387 { 385 388 QWidget *result = NULL; 386 SelectorActionItem *item = new SelectorActionItem ( aIcon, "", aId, aLink, aPage, aParentId, this);389 SelectorActionItem *item = new SelectorActionItem (QIcon (aBigIcon), "", aId, aLink, aPage, aParentId, this); 387 390 mItemList.append (item); 388 391 … … 416 419 VBoxGlobal::setLayoutMargin (aPage->layout(), 0); 417 420 if (tabWidget) 418 tabWidget->addTab (aPage, aIcon, "");421 tabWidget->addTab (aPage, QIcon (aSmallIcon), ""); 419 422 } 420 423 }
Note:
See TracChangeset
for help on using the changeset viewer.