diff --git a/scribus/canvasgesture_resize.cpp b/scribus/canvasgesture_resize.cpp index 35b940627c..f5e7ba35de 100644 --- a/scribus/canvasgesture_resize.cpp +++ b/scribus/canvasgesture_resize.cpp @@ -225,7 +225,7 @@ void ResizeGesture::mouseReleaseEvent(QMouseEvent *m) doResize(m->modifiers() & Qt::AltModifier); m_doc->setRedrawBounding(currItem); if (currItem->asImageFrame()) - currItem->AdjustPictScale(); + currItem->adjustPictScale(); } //add action itemResizeToMargin for right click on item`s handlers else if (m->button() == Qt::RightButton) diff --git a/scribus/pageitem.cpp b/scribus/pageitem.cpp index bf9d4ba211..74aa708dc1 100644 --- a/scribus/pageitem.cpp +++ b/scribus/pageitem.cpp @@ -4256,7 +4256,7 @@ void PageItem::setImageScalingMode(bool freeScale, bool keepRatio) } ScaleType = freeScale; AspectRatio = keepRatio; - AdjustPictScale(); + adjustPictScale(); update(); } @@ -9423,7 +9423,7 @@ bool PageItem::loadImage(const QString& filename, const bool reload, const int g else IProfile = pixm.imgInfo.profileName; - AdjustPictScale(); + adjustPictScale(); // #12408 : we set the old* variables to avoid creation of unwanted undo states // when user perform actions such as double clicking image. We might want to @@ -9726,7 +9726,7 @@ void PageItem::drawArrow(ScPainter *p, QTransform &arrowTrans, int arrowIndex) } } -void PageItem::AdjustPictScale() +void PageItem::adjustPictScale() { if (itemType() != PageItem::ImageFrame) return; diff --git a/scribus/pageitem.h b/scribus/pageitem.h index deecbc8340..fb2212b83a 100644 --- a/scribus/pageitem.h +++ b/scribus/pageitem.h @@ -358,7 +358,7 @@ class SCRIBUS_API PageItem : public QObject, public UndoObject, public SaxIO, pu * @brief Adjust the picture scale, moved from the view, no view code here * FIXME: Move to PageItem_TextFrame */ - void AdjustPictScale(); + void adjustPictScale(); diff --git a/scribus/plugins/fileloader/scribus12format/scribus12format.cpp b/scribus/plugins/fileloader/scribus12format/scribus12format.cpp index 4f3231a0fe..35579c7f95 100644 --- a/scribus/plugins/fileloader/scribus12format/scribus12format.cpp +++ b/scribus/plugins/fileloader/scribus12format/scribus12format.cpp @@ -569,7 +569,7 @@ void Scribus12Format::PasteItem(struct CopyPasteBuffer *Buffer, bool drag, bool currItem->ClipEdited = true; } if (currItem->asImageFrame()) - currItem->AdjustPictScale(); + currItem->adjustPictScale(); if (currItem->asPathText()) { currItem->ClipEdited = true; diff --git a/scribus/plugins/fileloader/scribus13format/scribus13format.cpp b/scribus/plugins/fileloader/scribus13format/scribus13format.cpp index b2a8c034f7..5c04093baf 100644 --- a/scribus/plugins/fileloader/scribus13format/scribus13format.cpp +++ b/scribus/plugins/fileloader/scribus13format/scribus13format.cpp @@ -1946,7 +1946,7 @@ PageItem* Scribus13Format::PasteItem(QDomElement *obj, ScribusDoc *doc, const QS currItem->setHeight(1.0); } if (currItem->asImageFrame()) - currItem->AdjustPictScale(); + currItem->adjustPictScale(); if (currItem->asPathText()) currItem->updatePolyClip(); currItem->GrType = obj->attribute("GRTYP", "0").toInt(); diff --git a/scribus/plugins/import/cgm/importcgm.cpp b/scribus/plugins/import/cgm/importcgm.cpp index 34b0832368..739c16cdbd 100644 --- a/scribus/plugins/import/cgm/importcgm.cpp +++ b/scribus/plugins/import/cgm/importcgm.cpp @@ -1579,7 +1579,7 @@ void CgmPlug::decodeClass4(QDataStream &ts, quint16 elemID, quint16 paramLen) ite->setImageFlippedH(flipX); ite->setImageFlippedV(flipY); ite->setImageScalingMode(false, false); - ite->AdjustPictScale(); + ite->adjustPictScale(); colorPrecision = t_colorPrecision; colorIndexPrecision = t_colorIndexPrecision; } diff --git a/scribus/plugins/import/emf/importemf.cpp b/scribus/plugins/import/emf/importemf.cpp index c60c43a82c..a88425cb77 100644 --- a/scribus/plugins/import/emf/importemf.cpp +++ b/scribus/plugins/import/emf/importemf.cpp @@ -2976,7 +2976,7 @@ void EmfPlug::handleImage(qint32 dstX, qint32 dstY, qint32 dstW, qint32 dstH, co ite->updateClip(); } m_Doc->loadPict(fileName, ite); - ite->AdjustPictScale(); + ite->adjustPictScale(); } } delete tempFile; diff --git a/scribus/plugins/import/idml/importidml.cpp b/scribus/plugins/import/idml/importidml.cpp index c84e8f973f..a00e724a31 100644 --- a/scribus/plugins/import/idml/importidml.cpp +++ b/scribus/plugins/import/idml/importidml.cpp @@ -2614,7 +2614,7 @@ QList IdmlPlug::parseItemXML(const QDomElement& itElem, const QTransf item->setImageXYScale(scXi / item->pixm.imgInfo.xres * 72, scYi / item->pixm.imgInfo.xres * 72); item->setImageXYOffset(-imageDX * scXi / item->imageXScale(), -imageDY * scXi / item->imageYScale()); item->setImageRotation(-roti); - item->AdjustPictScale(); + item->adjustPictScale(); } } delete tempFile; @@ -2650,7 +2650,7 @@ QList IdmlPlug::parseItemXML(const QDomElement& itElem, const QTransf item->setImageXYOffset(-imageDX * scXi / item->imageXScale(), -imageDY * scXi / item->imageYScale()); item->setImageRotation(-roti); if (imageFit != "None") - item->AdjustPictScale(); + item->adjustPictScale(); } } GElements.append(m_Doc->Items->takeAt(z)); diff --git a/scribus/plugins/import/odg/importodg.cpp b/scribus/plugins/import/odg/importodg.cpp index 6167a58edd..c4d3288f1f 100644 --- a/scribus/plugins/import/odg/importodg.cpp +++ b/scribus/plugins/import/odg/importodg.cpp @@ -1568,7 +1568,7 @@ PageItem* OdgPlug::parseFrame(QDomElement &e) retObj->AspectRatio = false; retObj->ScaleType = false; m_Doc->loadPict(fileName, retObj); - retObj->AdjustPictScale(); + retObj->adjustPictScale(); } } delete tempFile; @@ -1658,7 +1658,7 @@ PageItem* OdgPlug::parseFrame(QDomElement &e) retObj->AspectRatio = false; retObj->ScaleType = false; m_Doc->loadPict(fileName, retObj); - retObj->AdjustPictScale(); + retObj->adjustPictScale(); } } delete tempFile; diff --git a/scribus/plugins/import/pages/importpages.cpp b/scribus/plugins/import/pages/importpages.cpp index d80cb9f5fc..272ae39085 100644 --- a/scribus/plugins/import/pages/importpages.cpp +++ b/scribus/plugins/import/pages/importpages.cpp @@ -1889,7 +1889,7 @@ PageItem* PagesPlug::parseObjReference(QDomElement &draw) retObj->AspectRatio = false; retObj->ScaleType = false; m_Doc->loadPict(fileName, retObj); - retObj->AdjustPictScale(); + retObj->adjustPictScale(); } } delete tempFile; diff --git a/scribus/plugins/import/revenge/rawpainter.cpp b/scribus/plugins/import/revenge/rawpainter.cpp index 9ede6fbe36..976fa50ca6 100644 --- a/scribus/plugins/import/revenge/rawpainter.cpp +++ b/scribus/plugins/import/revenge/rawpainter.cpp @@ -3605,14 +3605,14 @@ void RawPainter::insertImage(PageItem* ite, const QString& imgExt, QByteArray &i { int rot = QString(m_style["librevenge:rotate"]->getStr().cstr()).toInt(); ite->setImageRotation(rot); - ite->AdjustPictScale(); + ite->adjustPictScale(); } #else if (m_style["libwpg:rotate"]) { int rot = QString(m_style["libwpg:rotate"]->getStr().cstr()).toInt(); ite->setImageRotation(rot); - ite->AdjustPictScale(); + ite->adjustPictScale(); } #endif } diff --git a/scribus/plugins/import/svm/importsvm.cpp b/scribus/plugins/import/svm/importsvm.cpp index 960365024c..6b91b4b43c 100644 --- a/scribus/plugins/import/svm/importsvm.cpp +++ b/scribus/plugins/import/svm/importsvm.cpp @@ -2057,7 +2057,7 @@ void SvmPlug::handleImage(QDataStream &ds, qint64 posi, quint32 totalSize) ite->AspectRatio = false; ite->ScaleType = false; m_Doc->loadPict(fileName, ite); - ite->AdjustPictScale(); + ite->adjustPictScale(); } } delete tempFile; @@ -2113,7 +2113,7 @@ void SvmPlug::handleImageEX(QDataStream &ds, qint64 posi, quint32 totalSize) ite->AspectRatio = false; ite->ScaleType = false; m_Doc->loadPict(fileName, ite); - ite->AdjustPictScale(); + ite->adjustPictScale(); } } delete tempFile; diff --git a/scribus/plugins/import/xps/importxps.cpp b/scribus/plugins/import/xps/importxps.cpp index 4b3a6879bd..37cb184127 100644 --- a/scribus/plugins/import/xps/importxps.cpp +++ b/scribus/plugins/import/xps/importxps.cpp @@ -1718,7 +1718,7 @@ PageItem* XpsPlug::createItem(QDomElement &dpg, ObjState &obState) retObj->AspectRatio = false; retObj->ScaleType = false; m_Doc->loadPict(fileName, retObj); - retObj->AdjustPictScale(); + retObj->adjustPictScale(); } } delete tempFile; diff --git a/scribus/plugins/scripter/api_imageitem.cpp b/scribus/plugins/scripter/api_imageitem.cpp index eaa06f1f80..8d5be1a653 100644 --- a/scribus/plugins/scripter/api_imageitem.cpp +++ b/scribus/plugins/scripter/api_imageitem.cpp @@ -206,8 +206,8 @@ void ImageAPI::scaleToFrame(bool scaleToFrame, bool proportional) //FIXME emit or something so we dont need this ScCore->primaryMainWindow()->propertiesPalette->imagePal->showScaleAndOffset(item->imageXScale(), item->imageYScale(), item->imageXOffset(), item->imageYOffset()); - item->AdjustPictScale(); - //ScCore->primaryMainWindow()->view->AdjustPictScale(item); + item->adjustPictScale(); + //ScCore->primaryMainWindow()->view->adjustPictScale(item); item->update(); } diff --git a/scribus/plugins/scriptplugin/cmdmani.cpp b/scribus/plugins/scriptplugin/cmdmani.cpp index 06bab39730..03b7b3e0f2 100644 --- a/scribus/plugins/scriptplugin/cmdmani.cpp +++ b/scribus/plugins/scriptplugin/cmdmani.cpp @@ -578,7 +578,7 @@ PyObject *scribus_setscaleimagetoframe(PyObject* /* self */, PyObject* args, PyO if (proportional != -1) item->AspectRatio = proportional > 0; - item->AdjustPictScale(); + item->adjustPictScale(); item->update(); Py_RETURN_NONE; diff --git a/scribus/scribus.cpp b/scribus/scribus.cpp index 4142d9b38c..88ee08354d 100644 --- a/scribus/scribus.cpp +++ b/scribus/scribus.cpp @@ -3087,7 +3087,7 @@ void ScribusMainWindow::doPasteRecent(const QString& data) b->OldB2 = b->width(); b->OldH2 = b->height(); b->updateClip(); - b->AdjustPictScale(); + b->adjustPictScale(); } else { diff --git a/scribus/scribusdoc.cpp b/scribus/scribusdoc.cpp index 0506421b67..745b982934 100644 --- a/scribus/scribusdoc.cpp +++ b/scribus/scribusdoc.cpp @@ -10192,7 +10192,7 @@ void ScribusDoc::recalcPicturesRes(bool applyNewRes) currItem->setImageFlippedV(fvo); currItem->setImageXOffset(imgX); currItem->setImageYOffset(imgY); - currItem->AdjustPictScale(); + currItem->adjustPictScale(); ca++; m_ScMW->mainWindowProgressBar->setValue(ca); qApp->processEvents(QEventLoop::ExcludeUserInputEvents); @@ -10226,7 +10226,7 @@ void ScribusDoc::recalcPicturesRes(bool applyNewRes) currItem->setImageFlippedV(fvo); currItem->setImageXOffset(imgX); currItem->setImageYOffset(imgY); - currItem->AdjustPictScale(); + currItem->adjustPictScale(); ca++; m_ScMW->mainWindowProgressBar->setValue(ca); qApp->processEvents(QEventLoop::ExcludeUserInputEvents); @@ -10261,7 +10261,7 @@ void ScribusDoc::recalcPicturesRes(bool applyNewRes) currItem->setImageFlippedV(fvo); currItem->setImageXOffset(imgX); currItem->setImageYOffset(imgY); - currItem->AdjustPictScale(); + currItem->adjustPictScale(); ca++; m_ScMW->mainWindowProgressBar->setValue(ca); qApp->processEvents(QEventLoop::ExcludeUserInputEvents); @@ -10300,7 +10300,7 @@ void ScribusDoc::recalcPicturesRes(bool applyNewRes) currItem->setImageFlippedV(fvo); currItem->setImageXOffset(imgX); currItem->setImageYOffset(imgY); - currItem->AdjustPictScale(); + currItem->adjustPictScale(); ca++; m_ScMW->mainWindowProgressBar->setValue(ca); qApp->processEvents(QEventLoop::ExcludeUserInputEvents); @@ -14229,7 +14229,7 @@ bool ScribusDoc::sizeItem(double newX, double newY, PageItem *pi, bool fromMP, b } if ((currItem->asImageFrame()) && (!currItem->Sizing) && (appMode != modeEditClip)) { - currItem->AdjustPictScale(); + currItem->adjustPictScale(); } if (currItem->asLine()) { @@ -15248,7 +15248,7 @@ void ScribusDoc::removeFromGroup(PageItem* item) item->rotateBy(-gRot); item->setLineWidth(item->lineWidth() * qMax(grScXi, grScYi)); if (!item->ScaleType) - item->AdjustPictScale(); + item->adjustPictScale(); else { item->setImageXScale(item->imageXScale() * grScXi); diff --git a/scribus/scribusdoc.h b/scribus/scribusdoc.h index 88bbae4ee1..6d34ff73a8 100644 --- a/scribus/scribusdoc.h +++ b/scribus/scribusdoc.h @@ -1125,7 +1125,7 @@ class SCRIBUS_API ScribusDoc : public QObject, public UndoObject, public Observa item->loadImage(item->Pfile, true, -1, false); item->setImageFlippedH(fho); item->setImageFlippedV(fvo); - item->AdjustPictScale(); + item->adjustPictScale(); } } allItems.clear(); diff --git a/scribus/scribusview.cpp b/scribus/scribusview.cpp index 16748f9682..f3715ad39e 100644 --- a/scribus/scribusview.cpp +++ b/scribus/scribusview.cpp @@ -832,7 +832,7 @@ void ScribusView::contentsDropEvent(QDropEvent *e) item->OldB2 = item->width(); item->OldH2 = item->height(); item->updateClip(); - item->AdjustPictScale(); + item->adjustPictScale(); item->update(); dropOffsetX += Doc->opToolPrefs().dispX; dropOffsetY += Doc->opToolPrefs().dispY; @@ -1011,7 +1011,7 @@ void ScribusView::contentsDropEvent(QDropEvent *e) item->OldB2 = item->width(); item->OldH2 = item->height(); item->updateClip(); - item->AdjustPictScale(); + item->adjustPictScale(); item->update(); emit DocChanged(); update(); diff --git a/scribus/ui/propertiespalette_image.cpp b/scribus/ui/propertiespalette_image.cpp index 4f741bc0da..d319144cd1 100644 --- a/scribus/ui/propertiespalette_image.cpp +++ b/scribus/ui/propertiespalette_image.cpp @@ -587,7 +587,7 @@ void PropertiesPalette_Image::handleLocalRotation() { m_doc->itemSelection_SetImageRotation(360 - imageRotation->value()); if (frameScale->isChecked()) - m_item->AdjustPictScale(); + m_item->adjustPictScale(); } } diff --git a/scribus/ui/propertiespalette_xyz.cpp b/scribus/ui/propertiespalette_xyz.cpp index 437c4787a2..9432bb6a5a 100644 --- a/scribus/ui/propertiespalette_xyz.cpp +++ b/scribus/ui/propertiespalette_xyz.cpp @@ -1143,7 +1143,7 @@ void PropertiesPalette_XYZ::handleBasePoint(int m) // FIXME if (false /*!FreeScale->isChecked()*/) { - m_item->AdjustPictScale(); + m_item->adjustPictScale(); m_item->update(); } }