2021-04-30 20:12:10 +02:00
|
|
|
// Copyright (C) 2020-2021 Jakub Melka
|
2020-11-19 19:54:33 +01:00
|
|
|
//
|
2020-12-20 19:03:58 +01:00
|
|
|
// This file is part of Pdf4Qt.
|
2020-11-19 19:54:33 +01:00
|
|
|
//
|
2020-12-20 19:03:58 +01:00
|
|
|
// Pdf4Qt is free software: you can redistribute it and/or modify
|
2020-11-19 19:54:33 +01:00
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
2021-04-30 20:12:10 +02:00
|
|
|
// with the written consent of the copyright owner, any later version.
|
2020-11-19 19:54:33 +01:00
|
|
|
//
|
2020-12-20 19:03:58 +01:00
|
|
|
// Pdf4Qt is distributed in the hope that it will be useful,
|
2020-11-19 19:54:33 +01:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
2020-12-20 19:03:58 +01:00
|
|
|
// along with Pdf4Qt. If not, see <https://www.gnu.org/licenses/>.
|
2020-11-19 19:54:33 +01:00
|
|
|
|
2020-11-17 18:28:34 +01:00
|
|
|
#include "dimensionsplugin.h"
|
2020-11-19 19:54:33 +01:00
|
|
|
#include "pdfdrawwidget.h"
|
2020-11-21 18:47:25 +01:00
|
|
|
#include "pdfwidgetutils.h"
|
2020-11-21 16:56:10 +01:00
|
|
|
#include "settingsdialog.h"
|
2020-11-17 18:28:34 +01:00
|
|
|
|
2020-11-21 18:47:25 +01:00
|
|
|
#include <QPainter>
|
|
|
|
#include <QFontMetricsF>
|
|
|
|
|
2020-11-17 18:28:34 +01:00
|
|
|
namespace pdfplugin
|
|
|
|
{
|
|
|
|
|
|
|
|
DimensionsPlugin::DimensionsPlugin() :
|
2020-11-19 19:54:33 +01:00
|
|
|
pdf::PDFPlugin(nullptr),
|
2020-11-21 16:56:10 +01:00
|
|
|
m_dimensionTools(),
|
|
|
|
m_showDimensionsAction(nullptr),
|
|
|
|
m_clearDimensionsAction(nullptr),
|
|
|
|
m_settingsAction(nullptr)
|
2020-11-19 19:54:33 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::setWidget(pdf::PDFWidget* widget)
|
2020-11-17 18:28:34 +01:00
|
|
|
{
|
2020-11-19 19:54:33 +01:00
|
|
|
Q_ASSERT(!m_widget);
|
|
|
|
|
|
|
|
BaseClass::setWidget(widget);
|
|
|
|
|
|
|
|
QAction* horizontalDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/linear-horizontal.svg"), tr("Horizontal Dimension"), this);
|
|
|
|
QAction* verticalDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/linear-vertical.svg"), tr("Vertical Dimension"), this);
|
|
|
|
QAction* linearDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/linear.svg"), tr("Linear Dimension"), this);
|
|
|
|
QAction* perimeterDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/perimeter.svg"), tr("Perimeter"), this);
|
2020-11-22 18:43:11 +01:00
|
|
|
QAction* rectanglePerimeterDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/rectangle-perimeter.svg"), tr("Rectangle Perimeter"), this);
|
2020-11-19 19:54:33 +01:00
|
|
|
QAction* areaDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/area.svg"), tr("Area"), this);
|
2020-11-22 18:43:11 +01:00
|
|
|
QAction* rectangleAreaDimensionAction = new QAction(QIcon(":/pdfplugins/dimensiontool/rectangle-area.svg"), tr("Rectangle Area"), this);
|
|
|
|
QAction* angleAction = new QAction(QIcon(":/pdfplugins/dimensiontool/angle.svg"), tr("Angle"), this);
|
2020-11-19 19:54:33 +01:00
|
|
|
|
|
|
|
horizontalDimensionAction->setObjectName("dimensiontool_LinearHorizontalAction");
|
|
|
|
verticalDimensionAction->setObjectName("dimensiontool_LinearVerticalAction");
|
|
|
|
linearDimensionAction->setObjectName("dimensiontool_LinearAction");
|
|
|
|
perimeterDimensionAction->setObjectName("dimensiontool_PerimeterAction");
|
2020-11-22 18:43:11 +01:00
|
|
|
rectanglePerimeterDimensionAction->setObjectName("dimensiontool_RectanglePerimeterAction");
|
2020-11-19 19:54:33 +01:00
|
|
|
areaDimensionAction->setObjectName("dimensiontool_AreaAction");
|
2020-11-22 18:43:11 +01:00
|
|
|
rectangleAreaDimensionAction->setObjectName("dimensiontool_RectangleAreaAction");
|
|
|
|
angleAction->setObjectName("dimensiontool_AngleAction");
|
2020-11-19 19:54:33 +01:00
|
|
|
|
2020-11-21 16:56:10 +01:00
|
|
|
horizontalDimensionAction->setCheckable(true);
|
|
|
|
verticalDimensionAction->setCheckable(true);
|
|
|
|
linearDimensionAction->setCheckable(true);
|
|
|
|
perimeterDimensionAction->setCheckable(true);
|
2020-11-22 18:43:11 +01:00
|
|
|
rectanglePerimeterDimensionAction->setCheckable(true);
|
2020-11-21 16:56:10 +01:00
|
|
|
areaDimensionAction->setCheckable(true);
|
2020-11-22 18:43:11 +01:00
|
|
|
rectangleAreaDimensionAction->setCheckable(true);
|
|
|
|
angleAction->setCheckable(true);
|
2020-11-21 16:56:10 +01:00
|
|
|
|
2020-11-19 19:54:33 +01:00
|
|
|
m_dimensionTools[DimensionTool::LinearHorizontal] = new DimensionTool(DimensionTool::LinearHorizontal, widget->getDrawWidgetProxy(), horizontalDimensionAction, this);
|
|
|
|
m_dimensionTools[DimensionTool::LinearVertical] = new DimensionTool(DimensionTool::LinearVertical, widget->getDrawWidgetProxy(), verticalDimensionAction, this);
|
|
|
|
m_dimensionTools[DimensionTool::Linear] = new DimensionTool(DimensionTool::Linear, widget->getDrawWidgetProxy(), linearDimensionAction, this);
|
|
|
|
m_dimensionTools[DimensionTool::Perimeter] = new DimensionTool(DimensionTool::Perimeter, widget->getDrawWidgetProxy(), perimeterDimensionAction, this);
|
2020-11-22 18:43:11 +01:00
|
|
|
m_dimensionTools[DimensionTool::RectanglePerimeter] = new DimensionTool(DimensionTool::RectanglePerimeter, widget->getDrawWidgetProxy(), rectanglePerimeterDimensionAction, this);
|
2020-11-19 19:54:33 +01:00
|
|
|
m_dimensionTools[DimensionTool::Area] = new DimensionTool(DimensionTool::Area, widget->getDrawWidgetProxy(), areaDimensionAction, this);
|
2020-11-22 18:43:11 +01:00
|
|
|
m_dimensionTools[DimensionTool::RectangleArea] = new DimensionTool(DimensionTool::RectangleArea, widget->getDrawWidgetProxy(), rectangleAreaDimensionAction, this);
|
|
|
|
m_dimensionTools[DimensionTool::Angle] = new DimensionTool(DimensionTool::Angle, widget->getDrawWidgetProxy(), angleAction, this);
|
2020-11-21 16:56:10 +01:00
|
|
|
|
|
|
|
pdf::PDFToolManager* toolManager = widget->getToolManager();
|
|
|
|
for (DimensionTool* tool : m_dimensionTools)
|
|
|
|
{
|
|
|
|
toolManager->addTool(tool);
|
|
|
|
connect(tool, &DimensionTool::dimensionCreated, this, &DimensionsPlugin::onDimensionCreated);
|
|
|
|
}
|
|
|
|
|
|
|
|
m_showDimensionsAction = new QAction(QIcon(":/pdfplugins/dimensiontool/show-dimensions.svg"), tr("Show Dimensions"), this);
|
|
|
|
m_clearDimensionsAction = new QAction(QIcon(":/pdfplugins/dimensiontool/clear-dimensions.svg"), tr("Clear Dimensions"), this);
|
|
|
|
m_settingsAction = new QAction(QIcon(":/pdfplugins/dimensiontool/settings.svg"), tr("Settings"), this);
|
|
|
|
|
|
|
|
m_showDimensionsAction->setCheckable(true);
|
|
|
|
m_showDimensionsAction->setChecked(true);
|
|
|
|
|
|
|
|
connect(m_showDimensionsAction, &QAction::triggered, this, &DimensionsPlugin::onShowDimensionsTriggered);
|
|
|
|
connect(m_clearDimensionsAction, &QAction::triggered, this, &DimensionsPlugin::onClearDimensionsTriggered);
|
|
|
|
connect(m_settingsAction, &QAction::triggered, this, &DimensionsPlugin::onSettingsTriggered);
|
|
|
|
|
|
|
|
m_lengthUnit = DimensionUnit::getLengthUnits().front();
|
|
|
|
m_areaUnit = DimensionUnit::getAreaUnits().front();
|
|
|
|
m_angleUnit = DimensionUnit::getAngleUnits().front();
|
|
|
|
|
|
|
|
m_widget->getDrawWidgetProxy()->registerDrawInterface(this);
|
|
|
|
|
|
|
|
updateActions();
|
2020-11-19 19:54:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::setDocument(const pdf::PDFModifiedDocument& document)
|
|
|
|
{
|
|
|
|
BaseClass::setDocument(document);
|
|
|
|
|
2020-11-21 16:56:10 +01:00
|
|
|
if (document.hasReset())
|
2020-11-19 19:54:33 +01:00
|
|
|
{
|
2020-11-21 16:56:10 +01:00
|
|
|
m_dimensions.clear();
|
|
|
|
updateActions();
|
2020-11-19 19:54:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<QAction*> DimensionsPlugin::getActions() const
|
|
|
|
{
|
|
|
|
std::vector<QAction*> result;
|
|
|
|
|
|
|
|
for (DimensionTool* tool : m_dimensionTools)
|
|
|
|
{
|
|
|
|
if (tool)
|
|
|
|
{
|
|
|
|
result.push_back(tool->getAction());
|
|
|
|
}
|
|
|
|
}
|
2020-11-17 18:28:34 +01:00
|
|
|
|
2020-11-21 16:56:10 +01:00
|
|
|
if (!result.empty())
|
|
|
|
{
|
|
|
|
result.push_back(nullptr);
|
|
|
|
result.push_back(m_showDimensionsAction);
|
|
|
|
result.push_back(m_clearDimensionsAction);
|
|
|
|
result.push_back(m_settingsAction);
|
|
|
|
}
|
|
|
|
|
2020-11-19 19:54:33 +01:00
|
|
|
return result;
|
2020-11-17 18:28:34 +01:00
|
|
|
}
|
|
|
|
|
2020-11-21 16:56:10 +01:00
|
|
|
|
|
|
|
void DimensionsPlugin::drawPage(QPainter* painter,
|
|
|
|
pdf::PDFInteger pageIndex,
|
|
|
|
const pdf::PDFPrecompiledPage* compiledPage,
|
|
|
|
pdf::PDFTextLayoutGetter& layoutGetter,
|
|
|
|
const QMatrix& pagePointToDevicePointMatrix,
|
|
|
|
QList<pdf::PDFRenderError>& errors) const
|
|
|
|
{
|
2020-11-21 18:47:25 +01:00
|
|
|
Q_UNUSED(compiledPage);
|
|
|
|
Q_UNUSED(layoutGetter);
|
|
|
|
Q_UNUSED(errors);
|
|
|
|
|
|
|
|
if (!m_showDimensionsAction || !m_showDimensionsAction->isChecked() || m_dimensions.empty())
|
2020-11-21 16:56:10 +01:00
|
|
|
{
|
|
|
|
// Nothing to draw
|
|
|
|
return;
|
|
|
|
}
|
2020-11-21 18:47:25 +01:00
|
|
|
|
|
|
|
QLocale locale;
|
2020-11-22 18:43:11 +01:00
|
|
|
painter->setRenderHint(QPainter::Antialiasing, true);
|
|
|
|
|
2020-11-21 18:47:25 +01:00
|
|
|
for (const Dimension& dimension : m_dimensions)
|
|
|
|
{
|
|
|
|
if (pageIndex != dimension.getPageIndex())
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (dimension.getType())
|
|
|
|
{
|
|
|
|
case Dimension::Linear:
|
|
|
|
{
|
|
|
|
QPointF p1 = pagePointToDevicePointMatrix.map(dimension.getPolygon().front());
|
|
|
|
QPointF p2 = pagePointToDevicePointMatrix.map(dimension.getPolygon().back());
|
|
|
|
|
|
|
|
// Swap so p1 is to the left of the page, before p2 (for correct determination of angle)
|
|
|
|
if (p1.x() > p2.x())
|
|
|
|
{
|
|
|
|
qSwap(p1, p2);
|
|
|
|
}
|
|
|
|
|
|
|
|
QLineF line(p1, p2);
|
|
|
|
|
|
|
|
if (qFuzzyIsNull(line.length()))
|
|
|
|
{
|
|
|
|
// If we have zero line, then do nothing
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLineF unitVectorLine = line.normalVector().unitVector();
|
|
|
|
QPointF unitVector = unitVectorLine.p2() - unitVectorLine.p1();
|
|
|
|
qreal extensionLineSize = pdf::PDFWidgetUtils::scaleDPI_y(painter->device(), 5);
|
|
|
|
|
|
|
|
painter->setPen(Qt::black);
|
|
|
|
painter->drawLine(line);
|
|
|
|
|
|
|
|
QLineF extensionLineLeft(p1 - unitVector * extensionLineSize, p1 + unitVector * extensionLineSize);
|
|
|
|
QLineF extensionLineRight(p2 - unitVector * extensionLineSize, p2 + unitVector * extensionLineSize);
|
|
|
|
|
|
|
|
painter->drawLine(extensionLineLeft);
|
|
|
|
painter->drawLine(extensionLineRight);
|
|
|
|
|
|
|
|
QPointF textPoint = line.center();
|
|
|
|
qreal angle = line.angle();
|
|
|
|
QFontMetricsF fontMetrics(painter->font());
|
|
|
|
QRectF textRect(-line.length() * 0.5, -fontMetrics.lineSpacing(), line.length(), fontMetrics.lineSpacing());
|
|
|
|
|
|
|
|
QString text = QString("%1 %2").arg(locale.toString(dimension.getMeasuredValue() * m_lengthUnit.scale, 'f', 2), m_lengthUnit.symbol);
|
|
|
|
|
|
|
|
painter->save();
|
|
|
|
painter->translate(textPoint);
|
|
|
|
painter->rotate(-angle);
|
|
|
|
painter->drawText(textRect, Qt::AlignCenter | Qt::TextDontClip, text);
|
|
|
|
painter->restore();
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case Dimension::Perimeter:
|
2020-11-22 18:43:11 +01:00
|
|
|
case Dimension::Area:
|
|
|
|
{
|
|
|
|
const bool isArea = dimension.getType() == Dimension::Type::Area;
|
|
|
|
const std::vector<QPointF>& polygon = dimension.getPolygon();
|
|
|
|
|
|
|
|
qreal lineSize = pdf::PDFWidgetUtils::scaleDPI_x(painter->device(), 1);
|
|
|
|
qreal pointSize = pdf::PDFWidgetUtils::scaleDPI_x(painter->device(), 5);
|
|
|
|
|
|
|
|
painter->save();
|
|
|
|
QPen pen(Qt::black);
|
|
|
|
pen.setWidthF(lineSize);
|
|
|
|
pen.setCosmetic(true);
|
|
|
|
|
|
|
|
QColor brushColor = Qt::black;
|
|
|
|
brushColor.setAlphaF(0.1);
|
|
|
|
painter->setPen(qMove(pen));
|
|
|
|
painter->setBrush(QBrush(brushColor, isArea ? Qt::SolidPattern : Qt::DiagCrossPattern));
|
|
|
|
|
|
|
|
painter->setMatrix(pagePointToDevicePointMatrix, true);
|
|
|
|
painter->drawPolygon(polygon.data(), int(polygon.size()), Qt::OddEvenFill);
|
|
|
|
painter->restore();
|
|
|
|
|
|
|
|
QPen penPoint(Qt::black);
|
|
|
|
penPoint.setCapStyle(Qt::RoundCap);
|
|
|
|
penPoint.setWidthF(pointSize);
|
|
|
|
painter->setPen(penPoint);
|
|
|
|
|
|
|
|
QPointF centerPoint(0, 0);
|
|
|
|
for (const QPointF& point : polygon)
|
|
|
|
{
|
|
|
|
QPointF mappedPoint = pagePointToDevicePointMatrix.map(point);
|
|
|
|
centerPoint += mappedPoint;
|
|
|
|
painter->drawPoint(mappedPoint);
|
|
|
|
}
|
|
|
|
|
|
|
|
centerPoint *= 1.0 / qreal(polygon.size());
|
|
|
|
|
|
|
|
QString text;
|
|
|
|
|
|
|
|
if (isArea)
|
|
|
|
{
|
|
|
|
text = tr("A = %1 %2").arg(locale.toString(dimension.getMeasuredValue() * m_areaUnit.scale, 'f', 2), m_areaUnit.symbol);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
text = tr("p = %1 %2").arg(locale.toString(dimension.getMeasuredValue() * m_lengthUnit.scale, 'f', 2), m_lengthUnit.symbol);
|
|
|
|
}
|
|
|
|
painter->drawText(centerPoint, text);
|
|
|
|
|
2020-11-21 18:47:25 +01:00
|
|
|
break;
|
2020-11-22 18:43:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
case Dimension::Angular:
|
|
|
|
{
|
|
|
|
const std::vector<QPointF>& polygon = dimension.getPolygon();
|
|
|
|
QLineF line1(pagePointToDevicePointMatrix.map(polygon[1]), pagePointToDevicePointMatrix.map(polygon.front()));
|
|
|
|
QLineF line2(pagePointToDevicePointMatrix.map(polygon[1]), pagePointToDevicePointMatrix.map(polygon.back()));
|
|
|
|
|
|
|
|
qreal lineSize = pdf::PDFWidgetUtils::scaleDPI_x(painter->device(), 1);
|
|
|
|
qreal pointSize = pdf::PDFWidgetUtils::scaleDPI_x(painter->device(), 5);
|
|
|
|
|
|
|
|
qreal maxLength = qMax(line1.length(), line2.length());
|
|
|
|
line1.setLength(maxLength);
|
|
|
|
line2.setLength(maxLength);
|
|
|
|
|
|
|
|
QPen pen(Qt::black);
|
|
|
|
pen.setWidthF(lineSize);
|
|
|
|
painter->setPen(qMove(pen));
|
|
|
|
|
|
|
|
painter->drawLine(line1);
|
|
|
|
painter->drawLine(line2);
|
|
|
|
|
2020-11-23 19:06:33 +01:00
|
|
|
qreal startAngle = line1.angle() * 16;
|
|
|
|
qreal angleLength = dimension.getMeasuredValue() * 16;
|
|
|
|
|
|
|
|
QRectF rect(-maxLength * 0.5, -maxLength * 0.5, maxLength, maxLength);
|
|
|
|
rect.translate(line1.p1());
|
|
|
|
painter->drawArc(rect, startAngle - angleLength, angleLength);
|
|
|
|
|
2020-11-22 18:43:11 +01:00
|
|
|
QPen penPoint(Qt::black);
|
|
|
|
penPoint.setCapStyle(Qt::RoundCap);
|
|
|
|
penPoint.setWidthF(pointSize);
|
|
|
|
painter->setPen(penPoint);
|
|
|
|
|
|
|
|
painter->drawPoint(line1.p1());
|
|
|
|
painter->drawPoint(line1.p2());
|
|
|
|
painter->drawPoint(line2.p2());
|
2020-11-21 18:47:25 +01:00
|
|
|
|
2020-11-23 19:06:33 +01:00
|
|
|
QMatrix textMatrix;
|
|
|
|
textMatrix.translate(line1.x1(), line1.y1());
|
|
|
|
textMatrix.rotate(-line1.angle() + dimension.getMeasuredValue() * 0.5);
|
|
|
|
|
|
|
|
QPointF textPoint = textMatrix.map(QPointF(maxLength * 0.25, 0.0));
|
|
|
|
QString text = QString("%1 %2").arg(locale.toString(dimension.getMeasuredValue() * m_angleUnit.scale, 'f', 2), m_angleUnit.symbol);
|
|
|
|
painter->drawText(textPoint, text);
|
|
|
|
|
2020-11-21 18:47:25 +01:00
|
|
|
break;
|
2020-11-22 18:43:11 +01:00
|
|
|
}
|
2020-11-21 18:47:25 +01:00
|
|
|
|
|
|
|
default:
|
|
|
|
Q_ASSERT(false);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2020-11-21 16:56:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::onShowDimensionsTriggered()
|
|
|
|
{
|
2020-11-21 18:47:25 +01:00
|
|
|
updateGraphics();
|
2020-11-21 16:56:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::onClearDimensionsTriggered()
|
|
|
|
{
|
|
|
|
m_dimensions.clear();
|
|
|
|
updateActions();
|
2020-11-21 18:47:25 +01:00
|
|
|
updateGraphics();
|
2020-11-21 16:56:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::onSettingsTriggered()
|
|
|
|
{
|
|
|
|
SettingsDialog dialog(m_widget, m_lengthUnit, m_areaUnit, m_angleUnit);
|
|
|
|
dialog.exec();
|
2020-11-21 18:47:25 +01:00
|
|
|
|
|
|
|
updateGraphics();
|
2020-11-21 16:56:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::onDimensionCreated(Dimension dimension)
|
|
|
|
{
|
|
|
|
m_dimensions.emplace_back(qMove(dimension));
|
|
|
|
updateActions();
|
2020-11-21 18:47:25 +01:00
|
|
|
updateGraphics();
|
2020-11-21 16:56:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DimensionsPlugin::updateActions()
|
|
|
|
{
|
|
|
|
if (m_showDimensionsAction)
|
|
|
|
{
|
|
|
|
m_showDimensionsAction->setEnabled(!m_dimensions.empty());
|
|
|
|
}
|
|
|
|
if (m_clearDimensionsAction)
|
|
|
|
{
|
|
|
|
m_clearDimensionsAction->setEnabled(!m_dimensions.empty());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-21 18:47:25 +01:00
|
|
|
void DimensionsPlugin::updateGraphics()
|
|
|
|
{
|
|
|
|
if (m_widget)
|
|
|
|
{
|
|
|
|
m_widget->getDrawWidget()->getWidget()->update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-17 18:28:34 +01:00
|
|
|
}
|