Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 5239 → Rev 5240

/branches/Version13x/Scribus/scribus/mpalette.cpp
1446,8 → 1446,10
FlipH->setToggleButton((nr>=0) && (nr<5));
FlipV->setToggleButton((nr>=0) && (nr<5));
//CB Why cant we do this for lines?
FlipH->setEnabled((nr!=-1) && (nr!=5));
FlipV->setEnabled((nr!=-1) && (nr!=5));
// FlipH->setEnabled((nr!=-1) && (nr!=5));
// FlipV->setEnabled((nr!=-1) && (nr!=5));
FlipH->setEnabled(nr!=-1);
FlipV->setEnabled(nr!=-1);
switch (nr)
{
case -1:
/branches/Version13x/Scribus/scribus/scribusdoc.cpp
5314,15 → 5314,14
currItem->setRedrawBounding();
currItem->getBoundingRect(&ix2, &iy2, &iw2, &ih2);
currItem->moveBy(ix-ix2, iy-iy2, true);
currItem->setRedrawBounding();
}
if ((currItem->itemType() == PageItem::ImageFrame) || (currItem->itemType() == PageItem::TextFrame))
currItem->flipImageH();
else
if (currItem->itemType() != PageItem::Line)
MirrorPolyH(currItem);
if (currItem->itemType() != PageItem::Line)
MirrorPolyH(currItem);
currItem->moveBy(dx, 0, true);
currItem->setRedrawBounding();
emit refreshItem(m_Selection->itemAt(a));
undoManager->commit();
}
}
5333,12 → 5332,21
PageItem* currItem=m_Selection->itemAt(a);
if ((currItem->itemType() == PageItem::ImageFrame) || (currItem->itemType() == PageItem::TextFrame))
currItem->flipImageH();
if (currItem->itemType() != PageItem::Line)
MirrorPolyH(currItem);
else
if (currItem->itemType() != PageItem::Line)
MirrorPolyH(currItem);
emit refreshItem(m_Selection->itemAt(a));
{
double ix2, iy2, iw2, ih2, ix, iy, iw, ih;
currItem->getBoundingRect(&ix, &iy, &iw, &ih);
currItem->rotateBy(currItem->rotation() * -2.0);
currItem->setRedrawBounding();
currItem->getBoundingRect(&ix2, &iy2, &iw2, &ih2);
currItem->moveBy(ix-ix2, iy-iy2, true);
currItem->setRedrawBounding();
}
}
}
emit updateContents();
changed();
emit firstSelectedItemType(m_Selection->itemAt(0)->itemType());
}
5366,16 → 5374,16
currItem->setRedrawBounding();
currItem->getBoundingRect(&ix2, &iy2, &iw2, &ih2);
currItem->moveBy(ix-ix2, iy-iy2, true);
currItem->setRedrawBounding();
}
if ((currItem->itemType() == PageItem::ImageFrame) || (currItem->itemType() == PageItem::TextFrame))
currItem->flipImageV();
else
if (currItem->itemType() != PageItem::Line)
MirrorPolyV(currItem);
if (currItem->itemType() != PageItem::Line)
MirrorPolyV(currItem);
currItem->moveBy(0, dx, true);
currItem->setRedrawBounding();
emit refreshItem(m_Selection->itemAt(a));
}
emit updateContents();
undoManager->commit();
}
else
5385,11 → 5393,20
PageItem* currItem=m_Selection->itemAt(a);
if ((currItem->itemType() == PageItem::ImageFrame) || (currItem->itemType() == PageItem::TextFrame))
currItem->flipImageV();
if (currItem->itemType() != PageItem::Line)
MirrorPolyV(currItem);
else
if (currItem->itemType() != PageItem::Line)
MirrorPolyV(currItem);
emit refreshItem(m_Selection->itemAt(a));
{
double ix2, iy2, iw2, ih2, ix, iy, iw, ih;
currItem->getBoundingRect(&ix, &iy, &iw, &ih);
currItem->rotateBy(currItem->rotation() * -2.0);
currItem->setRedrawBounding();
currItem->getBoundingRect(&ix2, &iy2, &iw2, &ih2);
currItem->moveBy(ix-ix2, iy-iy2, true);
currItem->setRedrawBounding();
}
}
emit updateContents();
}
changed();
emit firstSelectedItemType(m_Selection->itemAt(0)->itemType());