mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Dimension plugins - basic tools
This commit is contained in:
@ -323,6 +323,12 @@ public:
|
||||
virtual void mouseReleaseEvent(QWidget* widget, QMouseEvent* event) override;
|
||||
virtual void mouseMoveEvent(QWidget* widget, QMouseEvent* event) override;
|
||||
|
||||
QPointF getSnappedPoint() const;
|
||||
PDFInteger getPageIndex() const { return m_pageIndex; }
|
||||
const std::vector<QPointF>& getPickedPoints() const { return m_pickedPoints; }
|
||||
|
||||
void resetTool();
|
||||
|
||||
signals:
|
||||
void pointPicked(PDFInteger pageIndex, QPointF pagePoint);
|
||||
void rectanglePicked(PDFInteger pageIndex, QRectF pageRectangle);
|
||||
@ -332,7 +338,6 @@ protected:
|
||||
virtual void setActiveImpl(bool active) override;
|
||||
|
||||
private:
|
||||
void resetTool();
|
||||
void buildSnapData();
|
||||
|
||||
Mode m_mode;
|
||||
@ -437,6 +442,9 @@ public:
|
||||
/// Sets active tool
|
||||
void setActiveTool(PDFWidgetTool* tool);
|
||||
|
||||
/// Adds a new tool to tool manager
|
||||
void addTool(PDFWidgetTool* tool);
|
||||
|
||||
/// Returns first active tool from tool set. If no tool is active,
|
||||
/// then nullptr is returned.
|
||||
PDFWidgetTool* getActiveTool() const;
|
||||
|
Reference in New Issue
Block a user