Kaydet (Commit) 545a5589 authored tarafından Tomcsik Bence's avatar Tomcsik Bence Kaydeden (comit) Andras Timar

fix layout of checkboxes on Extension Manager dialog fdo#45851

I changed the sizes and the positions of the checkboxes. So there won't be
truncated checkboxes in any languages.
üst 9b3372d8
...@@ -1244,16 +1244,32 @@ void ExtMgrDialog::Resize() ...@@ -1244,16 +1244,32 @@ void ExtMgrDialog::Resize()
// checkboxes + text "type of extensions" // checkboxes + text "type of extensions"
Size aCBSize(m_aBundledCbx.GetSizePixel()); long nWidth = m_aBundledCbx.GetCtrlTextWidth( m_aBundledCbx.GetText() );
Size aBCBSize(m_aBundledCbx.GetSizePixel());
offsetX = 0.5*(aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT - 3*(aCBSize.Width() + RSC_SP_CTRL_GROUP_X) ); aBCBSize.Width() = nWidth + 30;
aBCBSize.Height() += 3;
m_aBundledCbx.SetSizePixel( aBCBSize );
nWidth = m_aSharedCbx.GetCtrlTextWidth( m_aSharedCbx.GetText() );
Size aSCBSize(m_aSharedCbx.GetSizePixel());
aSCBSize.Width() = nWidth + 30;
aSCBSize.Height() += 3;
m_aSharedCbx.SetSizePixel( aSCBSize );
nWidth = m_aUserCbx.GetCtrlTextWidth( m_aUserCbx.GetText() );
Size aUCBSize(m_aUserCbx.GetSizePixel());
aUCBSize.Width() = nWidth + 30;
aUCBSize.Height() += 3;
m_aUserCbx.SetSizePixel( aUCBSize );
offsetX = 0.5*(aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT - 3*RSC_SP_CTRL_GROUP_X - aBCBSize.Width() - aSCBSize.Width() - aUCBSize.Width() );
aPos = Point(offsetX, aPos.Y() - RSC_CD_CHECKBOX_HEIGHT - 2*RSC_SP_DLG_INNERBORDER_BOTTOM); aPos = Point(offsetX, aPos.Y() - RSC_CD_CHECKBOX_HEIGHT - 2*RSC_SP_DLG_INNERBORDER_BOTTOM);
m_aBundledCbx.SetPosSizePixel(aPos, aCBSize); m_aBundledCbx.SetPosPixel( aPos );
aPos.X() = aPos.X() + aCBSize.Width() + 2 * RSC_SP_CTRL_GROUP_X; aPos.X() += aBCBSize.Width() + 3 * RSC_SP_CTRL_GROUP_X;
m_aSharedCbx.SetPosSizePixel(aPos, aCBSize); m_aSharedCbx.SetPosPixel( aPos );
aPos.X() = aPos.X() + aCBSize.Width() + 2 * RSC_SP_CTRL_GROUP_X; aPos.X() += aSCBSize.Width() + 3 * RSC_SP_CTRL_GROUP_X;
m_aUserCbx.SetPosSizePixel(aPos, aCBSize); m_aUserCbx.SetPosPixel( aPos );
Size aFTTypeOfExtSize(m_aTypeOfExtTxt.GetSizePixel()); Size aFTTypeOfExtSize(m_aTypeOfExtTxt.GetSizePixel());
aPos = Point(RSC_SP_DLG_INNERBORDER_LEFT , aPos.Y() - RSC_CD_FIXEDTEXT_HEIGHT - 2*RSC_SP_DLG_INNERBORDER_BOTTOM); aPos = Point(RSC_SP_DLG_INNERBORDER_LEFT , aPos.Y() - RSC_CD_FIXEDTEXT_HEIGHT - 2*RSC_SP_DLG_INNERBORDER_BOTTOM);
...@@ -1269,7 +1285,7 @@ void ExtMgrDialog::Resize() ...@@ -1269,7 +1285,7 @@ void ExtMgrDialog::Resize()
Size aSize( aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT, Size aSize( aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT,
aTotalSize.Height() - aBtnSize.Height() - LINE_SIZE - aBtnSize.Height() aTotalSize.Height() - aBtnSize.Height() - LINE_SIZE - aBtnSize.Height()
- aCBSize.Height() - aFTTypeOfExtSize.Height() - aBCBSize.Height() - aFTTypeOfExtSize.Height()
- RSC_SP_DLG_INNERBORDER_TOP - 5*RSC_SP_DLG_INNERBORDER_BOTTOM ); - RSC_SP_DLG_INNERBORDER_TOP - 5*RSC_SP_DLG_INNERBORDER_BOTTOM );
m_pExtensionBox->SetSizePixel(aSize ); m_pExtensionBox->SetSizePixel(aSize );
......
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