Kaydet (Commit) e970395c authored tarafından Muhammet Kara's avatar Muhammet Kara Kaydeden (comit) Heiko Tietze

tdf#112241: Improve column width behaviour in Customize dialog

Also:
 * Remove unnecessary frame "contents"
 * Remove unnecessary alignment
 * Remove extra column from the left grid (grid4)
 * Move all into a new grid for better sizing

Change-Id: I4d805a800ca6e487bf788cd9401e5f77303ddd1d
Reviewed-on: https://gerrit.libreoffice.org/42186Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@googlemail.com>
üst 9659efe3
......@@ -1158,7 +1158,6 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const SfxItemSet& rSet)
get(m_pTopLevelListBox, "toplevellist");
get(m_pPlusBtn, "plusbtn");
get(m_pMinusBtn, "minusbtn");
get(m_pContents, "contents");
get(m_pMoveUpButton, "up");
get(m_pMoveDownButton, "down");
get(m_pSaveInListBox, "savein");
......@@ -1173,7 +1172,10 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const SfxItemSet& rSet)
m_pEntries->set_height_request(aSize.Height());
m_pEntries->set_width_request(aSize.Width());
m_pFunctions->set_height_request(aSize.Height());
m_pFunctions->set_width_request(aSize.Width());
//TODO: Add SvxMenuEntriesListBox into the glade catalog, and use it on the
// .ui file to get rid of the extra VCLContainer, and all these manual
// sizing and widget creation tricks.
m_pFunctions->set_width_request(aSize.Width() * 1.4);
// Make the middle buttons bigger
m_pAddCommandButton->set_height_request( m_pAddCommandButton->GetOptimalSize().Height() * 1.5 );
......@@ -1203,7 +1205,6 @@ void SvxConfigPage::dispose()
m_pMinusBtn.clear();
m_pSearchEdit.clear();
m_pCommandCategoryListBox.clear();
m_pContents.clear();
m_pEntries.clear();
m_pFunctions.clear();
m_pAddCommandButton.clear();
......
......@@ -399,7 +399,6 @@ protected:
// Used to add and remove toolbars/menus
VclPtr<PushButton> m_pPlusBtn;
VclPtr<PushButton> m_pMinusBtn;
VclPtr<VclFrame> m_pContents;
VclPtr<VclContainer> m_pEntries;
VclPtr<SvTreeListBox> m_pContentsListBox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment