21#include "../ElementsCollection/elementslocation.h"
25#include <QGraphicsView>
67 QString
title()
const;
82 bool event(QEvent *)
override;
128 void zoom(
const qreal zoom_factor);
134 void paste(
const QPointF & = QPointF(), QClipboard::Mode = QClipboard::Clipboard);
Definition conductor.h:44
The DVEventInterface class This class is the main interface for manage event of a Diagram View....
Definition dveventinterface.h:43
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
DVEventInterface * m_event_interface
Definition diagramview.h:53
void paste(const QPointF &=QPointF(), QClipboard::Mode=QClipboard::Clipboard)
DiagramView::paste Import the element stored in the clipboard to the diagram.
Definition diagramview.cpp:421
void editSelection()
DiagramView::editSelection Edit the selected item if he can be edited and if only one item is selecte...
Definition diagramview.cpp:1145
~DiagramView() override
Definition diagramview.cpp:154
void mouseReleaseEvent(QMouseEvent *) override
DiagramView::mouseReleaseEvent Manage event release click mouse.
Definition diagramview.cpp:574
void dragEnterEvent(QDragEnterEvent *) override
Definition diagramview.cpp:161
void contextMenuEvent(QContextMenuEvent *) override
DiagramView::contextMenuEvent.
Definition diagramview.cpp:1223
bool mustIntegrateTitleBlockTemplate(const TitleBlockTemplateLocation &) const
Definition diagramview.cpp:973
void showDiagram(Diagram *)
Signal emitted when diagram must be show.
void cut()
Definition diagramview.cpp:395
void resetConductors()
Definition diagramview.cpp:998
Diagram * m_diagram
Definition diagramview.h:52
void zoomReset()
Definition diagramview.cpp:385
void zoomContent()
Definition diagramview.cpp:376
void createTemplateFromSelection()
DiagramView::createTemplateFromSelection Triggered from the context menu to create a new template (ma...
Definition diagramview.cpp:1266
void wheelEvent(QWheelEvent *) override
DiagramView::wheelEvent Manage wheel event of mouse.
Definition diagramview.cpp:647
void zoomFit()
Definition diagramview.cpp:366
QPolygonF m_free_rubberband
Definition diagramview.h:62
bool gestureEvent(QGestureEvent *event)
DiagramView::gestureEvent Use the pinch of the trackpad for zoom.
Definition diagramview.cpp:682
void adjustGridToZoom()
Definition diagramview.cpp:939
Diagram * diagram()
Definition diagramview.h:69
void editDiagramProperties()
DiagramView::editDiagramProperties Edit the properties of the viewed digram.
Definition diagramview.cpp:902
bool m_fresh_focus_in
Definition diagramview.h:59
QList< QAction * > m_separators
Definition diagramview.h:61
QAction * m_paste_here
Definition diagramview.h:54
bool m_first_activation
Definition diagramview.h:60
void copy()
Definition diagramview.cpp:407
void pasteHere()
Definition diagramview.cpp:446
virtual bool switchToVisualisationModeIfNeeded(QInputEvent *e)
Definition diagramview.cpp:1087
static constexpr qreal m_min_zoom
Definition diagramview.h:109
QList< QAction * > contextMenuActions() const
DiagramView::contextMenuActions.
Definition diagramview.cpp:1180
QPointF m_drag_last_pos
Definition diagramview.h:58
QETDiagramEditor * diagramEditor() const
Definition diagramview.cpp:1362
void handleTitleBlockDrop(QDropEvent *)
DiagramView::handleTitleBlockDrop Handle the dropEvent that contain data of a titleblock.
Definition diagramview.cpp:235
bool gestures() const
DiagramView::gestures.
Definition diagramview.cpp:636
void scrollOnMovement(QKeyEvent *)
Definition diagramview.cpp:812
void paintEvent(QPaintEvent *event) override
DiagramView::paintEvent Reimplemented from QGraphicsView.
Definition diagramview.cpp:1063
void modeChanged()
Signal emitted after the selection mode changed.
virtual bool selectedItemHasFocus()
Definition diagramview.cpp:1132
QPoint m_paste_here_pos
Definition diagramview.h:57
QAction * m_create_template
Definition diagramview.h:56
void titleChanged(DiagramView *, const QString &)
Signal emitted after the diagram title changed.
virtual bool switchToSelectionModeIfNeeded(QInputEvent *e)
Definition diagramview.cpp:1102
void mouseMoveEvent(QMouseEvent *) override
DiagramView::mouseMoveEvent Manage the event move mouse.
Definition diagramview.cpp:512
void setVisualisationMode()
Definition diagramview.cpp:309
DiagramView(const DiagramView &)
void updateWindowTitle()
Definition diagramview.cpp:931
QString title() const
Definition diagramview.cpp:886
void adjustSceneRect()
DiagramView::adjustSceneRect Calcul and set the area of the scene visualized by this view.
Definition diagramview.cpp:911
void mousePressEvent(QMouseEvent *) override
Definition diagramview.cpp:455
void mouseDoubleClickEvent(QMouseEvent *) override
DiagramView::mouseDoubleClickEvent.
Definition diagramview.cpp:1377
DiagramView(Diagram *diagram, QWidget *=nullptr)
Definition diagramview.cpp:48
void focusInEvent(QFocusEvent *) override
Definition diagramview.cpp:703
QRectF viewedSceneRect() const
Definition diagramview.cpp:951
void dropEvent(QDropEvent *) override
Definition diagramview.cpp:186
bool event(QEvent *) override
DiagramView::event Manage the event on this diagram view. -At first activation (QEvent::WindowActivat...
Definition diagramview.cpp:1032
void handleElementDrop(QDropEvent *)
DiagramView::handleElementDrop Handle the drop of an element.
Definition diagramview.cpp:202
void handleTextDrop(QDropEvent *)
Definition diagramview.cpp:284
void keyReleaseEvent(QKeyEvent *) override
Definition diagramview.cpp:800
void dragMoveEvent(QDragMoveEvent *) override
Definition diagramview.cpp:177
bool m_free_rubberbanding
Definition diagramview.h:63
void keyPressEvent(QKeyEvent *) override
DiagramView::keyPressEvent Handles "key press" events. Reimplemented here to switch to visualisation ...
Definition diagramview.cpp:715
void applyReadOnly()
Definition diagramview.cpp:986
void setEventInterface(DVEventInterface *event_interface)
DiagramView::setEventInterface Set an event interface to diagram view. If diagram view already have a...
Definition diagramview.cpp:1168
virtual bool isCtrlShifting(QInputEvent *)
Definition diagramview.cpp:1113
void setSelectionMode()
Definition diagramview.cpp:320
void findElementRequired(const ElementsLocation &)
Signal emitted when users wish to locate an element from the diagram within elements collection.
static constexpr qreal m_max_zoom
Definition diagramview.h:110
QAction * m_multi_paste
Definition diagramview.h:55
void freeRubberBandChanged(QPolygonF polygon)
void zoom(const qreal zoom_factor)
DiagramView::zoom Zomm the view. A zoom_factor > 1 zoom in. A zoom_factor < 1 zoom out.
Definition diagramview.cpp:335
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47
Definition qetdiagrameditor.h:53
Definition templatelocation.h:29