diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-11-02 15:06:27 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-11-03 18:10:29 +0100 |
commit | f34d94cca26b1d80d671da348335e8bf7228768f (patch) | |
tree | 71c654926433bdceefc51e67ab0d06cc3db4488e /cui | |
parent | c922174b1c8864495bf8245045af901807449b86 (diff) |
Fix popup menu IDs after .ui conversion
(cherry picked from commit 9fbdb3d37fab7c8e0d6507807166c4de079d272f)
Conflicts:
cui/source/customize/cfg.cxx
Change-Id: I8955bee3ac2bb7a757c1f70dd46141833a068517
Reviewed-on: https://gerrit.libreoffice.org/19739
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit 13ef923c64859f073d16790e6bf4dfbd3f6d2d39)
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 5e74b9cc53dc..e4da216faa49 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2298,9 +2298,9 @@ void SvxMenuConfigPage::UpdateButtonStates() m_pMoveUpButton->Enable( false ); m_pMoveDownButton->Enable( false ); - pPopup->EnableItem( ID_BEGIN_GROUP, true ); - pPopup->EnableItem( ID_RENAME, false ); - pPopup->EnableItem( ID_DELETE, false ); + pPopup->EnableItem( "addseparator", true ); + pPopup->EnableItem( "modrename", false ); + pPopup->EnableItem( "moddelete", false ); m_pDescriptionField->SetText(""); @@ -2318,17 +2318,17 @@ void SvxMenuConfigPage::UpdateButtonStates() if ( pEntryData->IsSeparator() ) { - pPopup->EnableItem( ID_DELETE, true ); - pPopup->EnableItem( ID_BEGIN_GROUP, false ); - pPopup->EnableItem( ID_RENAME, false ); + pPopup->EnableItem( "moddelete", true ); + pPopup->EnableItem( "addseparator", false ); + pPopup->EnableItem( "modrename", false ); m_pDescriptionField->SetText(""); } else { - pPopup->EnableItem( ID_BEGIN_GROUP, true ); - pPopup->EnableItem( ID_DELETE, true ); - pPopup->EnableItem( ID_RENAME, true ); + pPopup->EnableItem( "addseparator", true ); + pPopup->EnableItem( "moddelete", true ); + pPopup->EnableItem( "modrename", true ); m_pDescriptionField->SetText(pEntryData->GetHelpText()); } @@ -2409,9 +2409,9 @@ IMPL_LINK( SvxMenuConfigPage, SelectMenu, ListBox *, pBox ) PopupMenu* pPopup = m_pModifyTopLevelButton->GetPopupMenu(); if ( pMenuData ) { - pPopup->EnableItem( ID_DELETE, pMenuData->IsDeletable() ); - pPopup->EnableItem( ID_RENAME, pMenuData->IsRenamable() ); - pPopup->EnableItem( ID_MOVE, pMenuData->IsMovable() ); + pPopup->EnableItem( "delete", pMenuData->IsDeletable() ); + pPopup->EnableItem( "rename", pMenuData->IsRenamable() ); + pPopup->EnableItem( "move", pMenuData->IsMovable() ); SvxEntries* pEntries = pMenuData->GetEntries(); SvxEntries::const_iterator iter = pEntries->begin(); |