From: Uwe Stöhr Date: Mon, 11 May 2015 22:28:29 +0000 (+0200) Subject: BoxUi.ui: update tooltips and tab order X-Git-Tag: 2.2.0alpha1~860 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=34da63445181325d846d47e866637fe72b38b984;p=features.git BoxUi.ui: update tooltips and tab order - InsetBox.cpp: constify --- diff --git a/src/frontends/qt4/ui/BoxUi.ui b/src/frontends/qt4/ui/BoxUi.ui index bd530c23e3..22ae57d4c9 100644 --- a/src/frontends/qt4/ui/BoxUi.ui +++ b/src/frontends/qt4/ui/BoxUi.ui @@ -39,32 +39,55 @@ - - + + - + Inner box type - - &Width: + + + None + + + + + Parbox + + + + + Minipage + + + + + + + + Check this if the box should break across pages - - false + + Allow &page breaks - + + + + + false - - + + + + false + - Width value + Height value - - - @@ -81,53 +104,30 @@ - - - - false - - - Height value - - + + - - - - false + + + + Width value - - + + - Check this if the box should break across pages + - Allow &page breaks + &Width: - - - - - - Inner box -- needed for fixed width & line breaks + + false + + + false - - - None - - - - - Parbox - - - - - Minipage - - @@ -142,8 +142,51 @@ true - - + + + + Horizontal alignment of the content inside the box + + + Horizontal + + + + + + + Vertical alignment of the content inside the box + + + Vertical + + + + + + + Co&ntent: + + + ialignCO + + + + + + + Vertical alignment of the box (with regard to baseline) + + + &Box: + + + valignCO + + + + + true @@ -154,43 +197,28 @@ - Horizontal alignment of the content inside the box + Vertical alignment of the content inside the box - Left + Top - Center + Middle - Right + Bottom + + + + + Stretch - - - - - - Vertical alignment of the content inside the box - - - Vertical - - - - - - - Horizontal alignment of the content inside the box - - - Horizontal - @@ -218,8 +246,8 @@ - - + + true @@ -230,53 +258,25 @@ - Vertical alignment of the content inside the box + Horizontal alignment of the content inside the box - Top - - - - - Middle + Left - Bottom + Center - Stretch + Right - - - - Co&ntent: - - - ialignCO - - - - - - - Vertical alignment of the box (with regard to baseline) - - - &Box: - - - valignCO - - - @@ -289,30 +289,30 @@ true - - - - - + + - &Decoration: - - - typeCO + Line thickness: - Supported box types + Decoration box types - - + + + + + - Line thickness: + &Decoration: + + + typeCO @@ -322,7 +322,14 @@ false - Width value + Thickness value + + + + + + + Shadow size: @@ -346,7 +353,7 @@ false - Width value + Separation value @@ -357,10 +364,10 @@ - - - - Shadow size: + + + + false @@ -370,14 +377,7 @@ false - Width value - - - - - - - false + Size value @@ -394,12 +394,24 @@ - typeCO innerBoxCO + widthCB + widthED + widthUnitsLC heightCB + heightED + heightUnitsLC + pagebreakCB ialignCO halignCO valignCO + typeCO + thicknessED + thicknessUnitsLC + separationED + separationUnitsLC + shadowsizeED + shadowsizeUnitsLC qt_i18n.h diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 011df87327..0156603f76 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -274,11 +274,11 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const string width_string = params_.width.asLatexString(); string thickness_string = params_.thickness.asLatexString(); - string defaultThick = "0.4pt"; + const string defaultThick = "0.4pt"; string separation_string = params_.separation.asLatexString(); - string defaultSep = "3pt"; + const string defaultSep = "3pt"; string shadowsize_string = params_.shadowsize.asLatexString(); - string defaultShadow = "4pt"; + const string defaultShadow = "4pt"; bool stdwidth = false; // in general the overall width of some decorated boxes is wider thean the inner box // we could therefore calculate the real width for all sizes so that if the user wants