VirtualBox

Ignore:
Timestamp:
Jul 21, 2008 8:59:10 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: New 32px toolbar icons.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
13 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/VirtualBox.qrc

    r9866 r10769  
    6969    <file alias="vmw_new_user.png">images/vmw_new_user.png</file>
    7070    <file alias="fd_16px.png">images/fd_16px.png</file>
     71    <file alias="fd_32px.png">images/fd_32px.png</file>
    7172    <file alias="fd_read_16px.png">images/fd_read_16px.png</file>
    7273    <file alias="fd_write_16px.png">images/fd_write_16px.png</file>
    7374    <file alias="fd_disabled_16px.png">images/fd_disabled_16px.png</file>
    7475    <file alias="cd_16px.png">images/cd_16px.png</file>
     76    <file alias="cd_32px.png">images/cd_32px.png</file>
    7577    <file alias="cd_read_16px.png">images/cd_read_16px.png</file>
    7678    <file alias="cd_write_16px.png">images/cd_write_16px.png</file>
     
    7981    <file alias="cd_unmount_dis_16px.png">images/cd_unmount_dis_16px.png</file>
    8082    <file alias="hd_16px.png">images/hd_16px.png</file>
     83    <file alias="hd_32px.png">images/hd_32px.png</file>
    8184    <file alias="hd_read_16px.png">images/hd_read_16px.png</file>
    8285    <file alias="hd_write_16px.png">images/hd_write_16px.png</file>
     
    8992    <file alias="mouse_can_seamless_uncaptured_16px.png">images/mouse_can_seamless_uncaptured_16px.png</file>
    9093    <file alias="hostkey_16px.png">images/hostkey_16px.png</file>
     94    <file alias="hostkey_32px.png">images/hostkey_32px.png</file>
    9195    <file alias="hostkey_pressed_16px.png">images/hostkey_pressed_16px.png</file>
    9296    <file alias="hostkey_captured_16px.png">images/hostkey_captured_16px.png</file>
     
    9498    <file alias="hostkey_disabled_16px.png">images/hostkey_disabled_16px.png</file>
    9599    <file alias="machine_16px.png">images/machine_16px.png</file>
     100    <file alias="machine_32px.png">images/machine_32px.png</file>
    96101    <file alias="help_16px.png">images/help_16px.png</file>
    97102    <file alias="help_button_normal_mac_22px.png">images/help_button_normal_mac_22px.png</file>
    98103    <file alias="help_button_pressed_mac_22px.png">images/help_button_pressed_mac_22px.png</file>
    99104    <file alias="site_16px.png">images/site_16px.png</file>
     105    <file alias="site_32px.png">images/site_32px.png</file>
    100106    <file alias="register_16px.png">images/register_16px.png</file>
    101107    <file alias="register_disabled_16px.png">images/register_disabled_16px.png</file>
     
    132138    <file alias="delete_dis_16px.png">images/delete_dis_16px.png</file>
    133139    <file alias="sound_16px.png">images/sound_16px.png</file>
     140    <file alias="sound_32px.png">images/sound_32px.png</file>
    134141    <file alias="nw_16px.png">images/nw_16px.png</file>
     142    <file alias="nw_32px.png">images/nw_32px.png</file>
    135143    <file alias="nw_read_16px.png">images/nw_read_16px.png</file>
    136144    <file alias="nw_write_16px.png">images/nw_write_16px.png</file>
    137145    <file alias="nw_disabled_16px.png">images/nw_disabled_16px.png</file>
    138146    <file alias="usb_16px.png">images/usb_16px.png</file>
     147    <file alias="usb_32px.png">images/usb_16px.png</file>
    139148    <file alias="usb_new_16px.png">images/usb_new_16px.png</file>
    140149    <file alias="usb_new_disabled_16px.png">images/usb_new_disabled_16px.png</file>
     
    153162    <file alias="usb_unavailable_disabled_16px.png">images/usb_unavailable_disabled_16px.png</file>
    154163    <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>
    155165    <file alias="parallel_port_disabled_16px.png">images/parallel_port_disabled_16px.png</file>
    156166    <file alias="parallel_port_read_16px.png">images/parallel_port_read_16px.png</file>
    157167    <file alias="parallel_port_write_16px.png">images/parallel_port_write_16px.png</file>
    158168    <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>
    159170    <file alias="serial_port_disabled_16px.png">images/serial_port_disabled_16px.png</file>
    160171    <file alias="serial_port_read_16px.png">images/serial_port_read_16px.png</file>
     
    197208    <file alias="revome_shared_folder_disabled_16px.png">images/revome_shared_folder_disabled_16px.png</file>
    198209    <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>
    199211    <file alias="shared_folder_disabled_16px.png">images/shared_folder_disabled_16px.png</file>
    200212    <file alias="shared_folder_read_16px.png">images/shared_folder_read_16px.png</file>
     
    221233    <file alias="global_settings_disabled_16px.png">images/global_settings_disabled_16px.png</file>
    222234    <file alias="vrdp_16px.png">images/vrdp_16px.png</file>
     235    <file alias="vrdp_32px.png">images/vrdp_32px.png</file>
    223236    <file alias="vrdp_disabled_16px.png">images/vrdp_disabled_16px.png</file>
    224237    <file alias="vdm_add_16px.png">images/vdm_add_16px.png</file>
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsDialogSpecific.h

    r10604 r10769  
    115115private:
    116116
    117     void addItem (const QIcon &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);
    118118    void updateAvailability();
    119119    VBoxSettingsPage* attachValidator (VBoxSettingsPage *aPage);
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsSelector.h

    r10604 r10769  
    5151    virtual QWidget *widget() const = 0;
    5252
    53     virtual QWidget *addItem (const QIcon &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;
    5454
    5555    virtual void setItemText (int aId, const QString &aText);
     
    100100    virtual QWidget *widget() const;
    101101
    102     virtual QWidget *addItem (const QIcon &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);
    103103    virtual void setItemText (int aId, const QString &aText);
    104104    virtual QString itemText (int aId) const;
     
    140140    virtual QWidget *widget() const;
    141141
    142     virtual QWidget *addItem (const QIcon &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);
    143143    virtual void setItemText (int aId, const QString &aText);
    144144    virtual QString itemText (int aId) const;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsDialogSpecific.cpp

    r10605 r10769  
    6262    /* General page */
    6363    prefPage = new VBoxGLSettingsGeneral();
    64     page = mSelector->addItem (VBoxGlobal::iconSet (":/machine_16px.png"),
     64    page = mSelector->addItem (":/machine_32px.png", ":/machine_16px.png",
    6565                               GeneralId, "#general",
    6666                               prefPage);
     
    7171    /* Input page */
    7272    prefPage = new VBoxGLSettingsInput();
    73     page = mSelector->addItem (VBoxGlobal::iconSet (":/hostkey_16px.png"),
     73    page = mSelector->addItem (":/hostkey_32px.png", ":/hostkey_16px.png",
    7474                               InputId, "#input",
    7575                               prefPage);
     
    8080    /* Update page */
    8181    prefPage = new VBoxGLSettingsUpdate();
    82     page = mSelector->addItem (VBoxGlobal::iconSet (":/refresh_16px.png"),
     82    page = mSelector->addItem (":/refresh_16px.png", ":/refresh_16px.png",
    8383                               UpdateId, "#update",
    8484                               prefPage);
     
    8989    /* Language page */
    9090    prefPage = new VBoxGLSettingsLanguage();
    91     page = mSelector->addItem (VBoxGlobal::iconSet (":/site_16px.png"),
     91    page = mSelector->addItem (":/site_32px.png", ":/site_16px.png",
    9292                               LanguageId, "#language",
    9393                               prefPage);
     
    9999    /* USB page */
    100100    prefPage = VBoxVMSettingsUSB (VBoxVMSettingsUSB::HostType);
    101     page = mSelector->addItem (VBoxGlobal::iconSet (":/usb_16px.png"),
     101    page = mSelector->addItem (":/usb_32px.png", ":/usb_16px.png",
    102102                               USBId, "#usb",
    103103                               prefPage);
     
    224224    prefPage = new VBoxVMSettingsGeneral();
    225225    connect (prefPage, SIGNAL (tableChanged()), this, SLOT (resetFirstRunFlag()));
    226     addItem (VBoxGlobal::iconSet (":/machine_16px.png"),
     226    addItem (":/machine_32px.png", ":/machine_16px.png",
    227227             GeneralId, "#general",
    228228             prefPage);
    229229
    230230    /* Storage page */
    231     addItem (VBoxGlobal::iconSet (":/hd_16px.png"),
     231    addItem (":/hd_32px.png", ":/hd_16px.png",
    232232             StorageId, "#storage");
    233233
     
    235235    prefPage = new VBoxVMSettingsHD();
    236236    connect (prefPage, SIGNAL (hdChanged()), this, SLOT (resetFirstRunFlag()));
    237     addItem (VBoxGlobal::iconSet (":/hd_16px.png"),
     237    addItem (":/hd_32px.png", ":/hd_16px.png",
    238238             HDId, "#hdds",
    239239             prefPage, StorageId);
     
    242242    prefPage = new VBoxVMSettingsCD();
    243243    connect (prefPage, SIGNAL (cdChanged()), this, SLOT (resetFirstRunFlag()));
    244     addItem (VBoxGlobal::iconSet (":/cd_16px.png"),
     244    addItem (":/cd_32px.png", ":/cd_16px.png",
    245245             CDId, "#dvd",
    246246             prefPage, StorageId);
     
    249249    prefPage = new VBoxVMSettingsFD();
    250250    connect (prefPage, SIGNAL (fdChanged()), this, SLOT (resetFirstRunFlag()));
    251     addItem (VBoxGlobal::iconSet (":/fd_16px.png"),
     251    addItem (":/fd_32px.png", ":/fd_16px.png",
    252252             FDId, "#floppy",
    253253             prefPage, StorageId);
     
    255255    /* Audio page */
    256256    prefPage = new VBoxVMSettingsAudio();
    257     addItem (VBoxGlobal::iconSet (":/sound_16px.png"),
     257    addItem (":/sound_32px.png", ":/sound_16px.png",
    258258             AudioId, "#audio",
    259259             prefPage);
     
    261261    /* Network page */
    262262    prefPage = new VBoxVMSettingsNetworkPage();
    263     addItem (VBoxGlobal::iconSet (":/nw_16px.png"),
     263    addItem (":/nw_32px.png", ":/nw_16px.png",
    264264             NetworkId, "#network",
    265265             prefPage);
    266266
    267267    /* Ports page */
    268     addItem (VBoxGlobal::iconSet (":/serial_port_16px.png"),
     268    addItem (":/serial_port_32px.png", ":/serial_port_16px.png",
    269269             PortsId, "#ports");
    270270
    271271    /* USB page */
    272272    prefPage = new VBoxVMSettingsUSB (VBoxVMSettingsUSB::MachineType);
    273     addItem (VBoxGlobal::iconSet (":/usb_16px.png"),
     273    addItem (":/usb_32px.png", ":/usb_16px.png",
    274274             USBId, "#usb",
    275275             prefPage, PortsId);
     
    277277    /* Serial page */
    278278    prefPage = new VBoxVMSettingsSerialPage();
    279     addItem (VBoxGlobal::iconSet (":/serial_port_16px.png"),
     279    addItem (":/serial_port_32px.png", ":/serial_port_16px.png",
    280280             SerialId, "#serialPorts",
    281281             prefPage, PortsId);
     
    283283    /* Parallel page */
    284284    prefPage = new VBoxVMSettingsParallelPage();
    285     addItem (VBoxGlobal::iconSet (":/parallel_port_16px.png"),
     285    addItem (":/parallel_port_32px.png", ":/parallel_port_16px.png",
    286286             ParallelId, "#parallelPorts",
    287287             prefPage, PortsId);
     
    289289    /* SFolders page */
    290290    prefPage = new VBoxVMSettingsSF (MachineType);
    291     addItem (VBoxGlobal::iconSet (":/shared_folder_16px.png"),
     291    addItem (":/shared_folder_32px.png", ":/shared_folder_16px.png",
    292292             SFId, "#sfolders",
    293293             prefPage);
     
    295295    /* VRDP page */
    296296    prefPage = new VBoxVMSettingsVRDP();
    297     addItem (VBoxGlobal::iconSet (":/vrdp_16px.png"),
     297    addItem (":/vrdp_32px.png", ":/vrdp_16px.png",
    298298             VRDPId, "#vrdp",
    299299             prefPage);
     
    337337}
    338338
    339 void VBoxVMSettingsDlg::addItem (const QIcon &aIcon, int aId, const QString &aLink, VBoxSettingsPage* aPrefPage /* = NULL*/, int aParentId /* = -1 */)
    340 {
    341     QWidget *page = mSelector->addItem (aIcon,
     339void 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,
    342342                                        aId, aLink,
    343343                                        aPrefPage, aParentId);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsSelector.cpp

    r10701 r10769  
    201201}
    202202
    203 QWidget *VBoxSettingsTreeViewSelector::addItem (const QIcon &aIcon,
     203QWidget *VBoxSettingsTreeViewSelector::addItem (const QString &aBigIcon,
     204                                                const QString &aSmallIcon,
    204205                                                int aId,
    205206                                                const QString &aLink,
     
    207208                                                int aParentId /* = -1 */)
    208209{
     210    NOREF (aBigIcon);
    209211    QWidget *result = NULL;
    210212    if (aPage != NULL)
    211213    {
    212         SelectorItem *item = new SelectorItem (aIcon, "", aId, aLink, aPage, aParentId);
     214        SelectorItem *item = new SelectorItem (QIcon (aSmallIcon), "", aId, aLink, aPage, aParentId);
    213215        mItemList.append (item);
    214216
     
    216218                                                                                  << idToString (aId)
    217219                                                                                  << aLink);
    218         twitem->setIcon (treeWidget_Category, aIcon);
     220        twitem->setIcon (treeWidget_Category, item->icon());
    219221        aPage->setContentsMargins (9, 2, 9, 2);
    220222        VBoxGlobal::setLayoutMargin (aPage->layout(), 0);
     
    377379}
    378380
    379 QWidget *VBoxSettingsToolBarSelector::addItem (const QIcon &aIcon,
     381QWidget *VBoxSettingsToolBarSelector::addItem (const QString &aBigIcon,
     382                                               const QString &aSmallIcon,
    380383                                               int aId,
    381384                                               const QString &aLink,
     
    384387{
    385388    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);
    387390    mItemList.append (item);
    388391
     
    416419            VBoxGlobal::setLayoutMargin (aPage->layout(), 0);
    417420            if (tabWidget)
    418                 tabWidget->addTab (aPage, aIcon, "");
     421                tabWidget->addTab (aPage, QIcon (aSmallIcon), "");
    419422        }
    420423    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette