|
|
|
@ -319,7 +319,7 @@ void TextTool::applyToolAction(TQPtrList<KivioStencil>* stencils)
|
|
|
|
|
|
|
|
|
|
if(changeHAlignment && (stencil->hTextAlign() != halignment)) {
|
|
|
|
|
KivioChangeStencilHAlignmentCommand* cmd = new KivioChangeStencilHAlignmentCommand(
|
|
|
|
|
i18n("Change StencilQt::Horizontal Alignment"), view()->activePage(), stencil, stencil->hTextAlign(), halignment);
|
|
|
|
|
i18n("Change Stencil Horizontal Alignment"), view()->activePage(), stencil, stencil->hTextAlign(), halignment);
|
|
|
|
|
stencil->setHTextAlign(halignment);
|
|
|
|
|
macroCmd->addCommand(cmd);
|
|
|
|
|
changed = true;
|
|
|
|
@ -327,7 +327,7 @@ void TextTool::applyToolAction(TQPtrList<KivioStencil>* stencils)
|
|
|
|
|
|
|
|
|
|
if(changeVAlignment && (stencil->vTextAlign() != valignment)) {
|
|
|
|
|
KivioChangeStencilVAlignmentCommand* cmd = new KivioChangeStencilVAlignmentCommand(
|
|
|
|
|
i18n("Change StencilQt::Vertical Alignment"), view()->activePage(), stencil, stencil->vTextAlign(), valignment);
|
|
|
|
|
i18n("Change Stencil Vertical Alignment"), view()->activePage(), stencil, stencil->vTextAlign(), valignment);
|
|
|
|
|
stencil->setVTextAlign(valignment);
|
|
|
|
|
macroCmd->addCommand(cmd);
|
|
|
|
|
changed = true;
|
|
|
|
@ -404,7 +404,7 @@ void TextTool::applyToolAction(KivioStencil* stencil, const KoPoint& pos)
|
|
|
|
|
|
|
|
|
|
if(stencil->hTextAlign(name) != halignment) {
|
|
|
|
|
KivioChangeStencilHAlignmentCommand* cmd = new KivioChangeStencilHAlignmentCommand(
|
|
|
|
|
i18n("Change StencilQt::Horizontal Alignment"), view()->activePage(), stencil,
|
|
|
|
|
i18n("Change Stencil Horizontal Alignment"), view()->activePage(), stencil,
|
|
|
|
|
stencil->hTextAlign(name), halignment, name);
|
|
|
|
|
stencil->setHTextAlign(name, halignment);
|
|
|
|
|
macroCmd->addCommand(cmd);
|
|
|
|
@ -415,7 +415,7 @@ void TextTool::applyToolAction(KivioStencil* stencil, const KoPoint& pos)
|
|
|
|
|
|
|
|
|
|
if(stencil->vTextAlign(name) != valignment) {
|
|
|
|
|
KivioChangeStencilVAlignmentCommand* cmd = new KivioChangeStencilVAlignmentCommand(
|
|
|
|
|
i18n("Change StencilQt::Vertical Alignment"), view()->activePage(), stencil,
|
|
|
|
|
i18n("Change Stencil Vertical Alignment"), view()->activePage(), stencil,
|
|
|
|
|
stencil->vTextAlign(name), valignment, name);
|
|
|
|
|
stencil->setVTextAlign(name, valignment);
|
|
|
|
|
macroCmd->addCommand(cmd);
|
|
|
|
|