VirtualBox

Changeset 3927 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 30, 2007 6:24:59 PM (18 years ago)
Author:
vboxsync
Message:

2130: Improve Shared Folders UI:

  1. Assigned "Ins to Add", "Del to Remove", "Space to Edit" actions (the way it is done for the USB UI).
  2. Assigned F1 as an accelerator for the Help button and Alt-O as accelerator for the OK button.
Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r3925 r3927  
    31543154    QPushButton *pbHelp = new QPushButton (tr ("Help"), this, "pbHelp");
    31553155    QSpacerItem *spacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
    3156     QPushButton *pbOk = new QPushButton (tr ("OK"), this, "pbOk");
     3156    QPushButton *pbOk = new QPushButton (tr ("&OK"), this, "pbOk");
    31573157    QPushButton *pbCancel = new QPushButton (tr ("Cancel"), this, "pbCancel");
    31583158    connect (pbHelp, SIGNAL (clicked()), &vboxProblem(), SLOT (showHelpHelpDialog()));
    31593159    connect (pbOk, SIGNAL (clicked()), this, SLOT (accept()));
    31603160    connect (pbCancel, SIGNAL (clicked()), this, SLOT (reject()));
     3161    pbHelp->setAccel (Qt::Key_F1);
    31613162    buttonLayout->addWidget (pbHelp);
    31623163    buttonLayout->addItem (spacer);
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui

    r3802 r3927  
    124124                            </property>
    125125                            <property name="text">
    126                                 <string>Add</string>
     126                                <string></string>
     127                            </property>
     128                            <property name="accel">
     129                                <string>Ins</string>
     130                            </property>
     131                            <property name="textLabel">
     132                                <string>Add a new shared folder (Ins)</string>
    127133                            </property>
    128134                            <property name="autoRaise">
     
    141147                            </property>
    142148                            <property name="text">
    143                                 <string>Edit</string>
     149                                <string></string>
     150                            </property>
     151                            <property name="accel">
     152                                <string>Space</string>
     153                            </property>
     154                            <property name="textLabel">
     155                                <string>Edit the selected shared folder (Space)</string>
    144156                            </property>
    145157                            <property name="autoRaise">
     
    158170                            </property>
    159171                            <property name="text">
    160                                 <string>Remove</string>
     172                                <string></string>
     173                            </property>
     174                            <property name="accel">
     175                                <string>Del</string>
     176                            </property>
     177                            <property name="textLabel">
     178                                <string>Remove the selected shared folder (Del)</string>
    161179                            </property>
    162180                            <property name="autoRaise">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h

    r3920 r3927  
    308308    tbRemove->setIconSet (VBoxGlobal::iconSet ("revome_shared_folder_16px.png",
    309309                                               "revome_shared_folder_disabled_16px.png"));
    310     QToolTip::add (tbAdd, tr ("Add a new shared folder"));
    311     QToolTip::add (tbEdit, tr ("Edit the selected shared folder"));
    312     QToolTip::add (tbRemove, tr ("Remove the selected shared folder"));
    313310    connect (tbAdd, SIGNAL (clicked()), this, SLOT (tbAddPressed()));
    314311    connect (tbEdit, SIGNAL (clicked()), this, SLOT (tbEditPressed()));
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