VirtualBox

Changeset 42853 in vbox for trunk


Ignore:
Timestamp:
Aug 16, 2012 6:08:14 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Show Log action will now only be available for single selected VM.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

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

    r42849 r42853  
    252252    {
    253253        setText(QApplication::translate("UIActionPool", "Show &Log..."));
    254         setStatusTip(QApplication::translate("UIActionPool", "Show the log files of the selected virtual machines"));
     254        setStatusTip(QApplication::translate("UIActionPool", "Show the log files of the selected virtual machine"));
    255255    }
    256256};
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r42849 r42853  
    11481148    m_pAction_Common_Reset             = gActionPool->action(UIActionIndexSelector_Simple_Common_Reset);
    11491149    m_pAction_Common_Discard           = gActionPool->action(UIActionIndexSelector_Simple_Common_Discard);
    1150     m_pAction_Common_LogDialog         = gActionPool->action(UIActionIndex_Simple_LogDialog);
    11511150    m_pAction_Common_Refresh           = gActionPool->action(UIActionIndexSelector_Simple_Common_Refresh);
    11521151    m_pAction_Common_ShowInFileManager = gActionPool->action(UIActionIndexSelector_Simple_Common_ShowInFileManager);
     
    11711170    m_pAction_Machine_Remove     = gActionPool->action(UIActionIndexSelector_Simple_Machine_Remove);
    11721171    m_pAction_Machine_AddGroup   = gActionPool->action(UIActionIndexSelector_Simple_Machine_AddGroup);
     1172    m_pAction_Machine_LogDialog  = gActionPool->action(UIActionIndex_Simple_LogDialog);
    11731173    m_pAction_Machine_SortParent = gActionPool->action(UIActionIndexSelector_Simple_Machine_SortParent);
    11741174}
     
    11931193    pMenu->addSeparator();
    11941194    pMenu->addAction(m_pAction_Common_Discard);
    1195     pMenu->addAction(m_pAction_Common_LogDialog);
    11961195    pMenu->addAction(m_pAction_Common_Refresh);
    11971196    pMenu->addSeparator();
     
    12291228    pMenu->addSeparator();
    12301229    pMenu->addAction(m_pAction_Common_Discard);
    1231     pMenu->addAction(m_pAction_Common_LogDialog);
     1230    pMenu->addAction(m_pAction_Machine_LogDialog);
    12321231    pMenu->addAction(m_pAction_Common_Refresh);
    12331232    pMenu->addSeparator();
     
    12441243                     << m_pAction_Machine_Remove
    12451244                     << m_pAction_Machine_AddGroup
     1245                     << m_pAction_Machine_LogDialog
    12461246                     << m_pAction_Machine_SortParent;
    12471247}
     
    13991399    connect(m_pAction_Common_Reset, SIGNAL(triggered()), this, SLOT(sltPerformResetAction()));
    14001400    connect(m_pAction_Common_Discard, SIGNAL(triggered()), this, SLOT(sltPerformDiscardAction()));
    1401     connect(m_pAction_Common_LogDialog, SIGNAL(triggered()), this, SLOT(sltShowLogDialog()));
    14021401    connect(m_pAction_Common_Refresh, SIGNAL(triggered()), this, SLOT(sltPerformRefreshAction()));
    14031402    connect(m_pAction_Common_ShowInFileManager, SIGNAL(triggered()), this, SLOT(sltShowMachineInFileManager()));
     
    14111410    connect(m_pAction_Machine_Settings, SIGNAL(triggered()), this, SLOT(sltShowMachineSettingsDialog()));
    14121411    connect(m_pAction_Machine_Clone, SIGNAL(triggered()), this, SLOT(sltShowCloneMachineWizard()));
     1412    connect(m_pAction_Machine_LogDialog, SIGNAL(triggered()), this, SLOT(sltShowLogDialog()));
    14131413
    14141414    /* 'Group/Close' menu connections: */
     
    16061606    m_pAction_Machine_Remove->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Remove, items));
    16071607    m_pAction_Machine_AddGroup->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_AddGroup, items));
     1608    m_pAction_Machine_LogDialog->setEnabled(isActionEnabled(UIActionIndex_Simple_LogDialog, items));
    16081609    m_pAction_Machine_SortParent->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_SortParent, items));
    16091610
     
    16131614    m_pAction_Common_Reset->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_Reset, items));
    16141615    m_pAction_Common_Discard->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_Discard, items));
    1615     m_pAction_Common_LogDialog->setEnabled(isActionEnabled(UIActionIndex_Simple_LogDialog, items));
    16161616    m_pAction_Common_Refresh->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_Refresh, items));
    16171617    m_pAction_Common_ShowInFileManager->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_ShowInFileManager, items));
     
    17251725        }
    17261726        case UIActionIndex_Simple_LogDialog:
     1727        {
     1728            return items.size() == 1 && pItem->accessible();
     1729        }
    17271730        case UIActionIndexSelector_Simple_Common_ShowInFileManager:
    17281731        {
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r42849 r42853  
    199199    UIAction *m_pAction_Common_Reset;
    200200    UIAction *m_pAction_Common_Discard;
    201     UIAction *m_pAction_Common_LogDialog;
    202201    UIAction *m_pAction_Common_Refresh;
    203202    UIAction *m_pAction_Common_ShowInFileManager;
     
    230229    UIAction *m_pAction_Machine_Remove;
    231230    UIAction *m_pAction_Machine_AddGroup;
     231    UIAction *m_pAction_Machine_LogDialog;
    232232    UIAction *m_pAction_Machine_SortParent;
    233233    /* 'Machine / Close' menu action pointers: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r42851 r42853  
    979979    m_pContextMenuGroup->addSeparator();
    980980    m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndexSelector_Simple_Common_Discard));
    981     m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndex_Simple_LogDialog));
    982981    m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndexSelector_Simple_Common_Refresh));
    983982    m_pContextMenuGroup->addSeparator();
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