VirtualBox

Changeset 6924 in vbox


Ignore:
Timestamp:
Feb 12, 2008 2:56:58 PM (17 years ago)
Author:
vboxsync
Message:

2669: Create VM context menu in the Selector window:

1) "New..." action separated from the rest using a separator line (in menu and on the toolbar).
2) "New..." action removed from the context menu.

File:
1 edited

Legend:

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

    r6917 r6924  
    495495
    496496    vmNewAction->addTo (vmTools);
     497    vmTools->addSeparator();
    497498    vmConfigAction->addTo (vmTools);
    498499    vmDeleteAction->addTo (vmTools);
     
    515516    menuBar()->insertItem( QString::null, fileMenu, 1);
    516517
     518    QPopupMenu *vmMenu = new QPopupMenu (this, "vmMenu");
     519    vmNewAction->addTo (vmMenu);
     520    vmMenu->insertSeparator();
     521    vmConfigAction->addTo (vmMenu);
     522    vmDeleteAction->addTo (vmMenu);
     523    vmMenu->insertSeparator();
     524    vmStartAction->addTo (vmMenu);
     525    vmDiscardAction->addTo (vmMenu);
     526    vmMenu->insertSeparator();
     527    vmPauseAction->addTo (vmMenu);
     528    vmMenu->insertSeparator();
     529    vmRefreshAction->addTo (vmMenu);
     530    vmMenu->insertSeparator();
     531    vmShowLogsAction->addTo (vmMenu);
     532
     533    menuBar()->insertItem (QString::null, vmMenu, 2);
     534
    517535    mVmMenu = new QPopupMenu (this, "mVmMenu");
    518     vmNewAction->addTo (mVmMenu);
    519536    vmConfigAction->addTo (mVmMenu);
    520537    vmDeleteAction->addTo (mVmMenu);
     
    528545    mVmMenu->insertSeparator();
    529546    vmShowLogsAction->addTo (mVmMenu);
    530 
    531     menuBar()->insertItem (QString::null, mVmMenu, 2);
    532547
    533548    QPopupMenu *helpMenu = new QPopupMenu( this, "helpMenu" );
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