QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
DiagramEventAddMacro Class Reference

The DiagramEventAddMacro class. More...

#include <diagrameventaddmacro.h>

Inheritance diagram for DiagramEventAddMacro:
Inheritance graph
Collaboration diagram for DiagramEventAddMacro:
Collaboration graph

Public Member Functions

 DiagramEventAddMacro (const ElementsLocation &location, Diagram *diagram, QPointF pos=QPointF(0, 0))
 ~DiagramEventAddMacro () override
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
void keyPressEvent (QKeyEvent *event) override
 DiagramEventInterface::keyPressEvent By default, press escape key abort the current action.
void init () override
Public Member Functions inherited from DiagramEventInterface
 DiagramEventInterface (Diagram *diagram)
 ~DiagramEventInterface () override=0
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual bool isRunning () const

Private Member Functions

bool loadMacro ()
void addMacro (QPointF final_pos)

Private Attributes

ElementsLocation m_location
QDomDocument m_macro_doc
QGraphicsPixmapItem * m_preview_item
QPointer< QStatusBar > m_status_bar

Additional Inherited Members

Signals inherited from DiagramEventInterface
void finish ()
Protected Attributes inherited from DiagramEventInterface
QPointer< Diagramm_diagram
bool m_running {false}
bool m_abort {false}

Detailed Description

Constructor & Destructor Documentation

◆ DiagramEventAddMacro()

DiagramEventAddMacro::DiagramEventAddMacro ( const ElementsLocation & location,
Diagram * diagram,
QPointF pos = QPointF(0,0) )
Here is the call graph for this function:

◆ ~DiagramEventAddMacro()

DiagramEventAddMacro::~DiagramEventAddMacro ( )
override

Member Function Documentation

◆ addMacro()

void DiagramEventAddMacro::addMacro ( QPointF final_pos)
private
Here is the caller graph for this function:

◆ init()

void DiagramEventAddMacro::init ( )
overridevirtual

Reimplemented from DiagramEventInterface.

Here is the caller graph for this function:

◆ keyPressEvent()

void DiagramEventAddMacro::keyPressEvent ( QKeyEvent * event)
overridevirtual

DiagramEventInterface::keyPressEvent By default, press escape key abort the current action.

Parameters
event

Reimplemented from DiagramEventInterface.

Here is the call graph for this function:

◆ loadMacro()

bool DiagramEventAddMacro::loadMacro ( )
private
Here is the caller graph for this function:

◆ mouseDoubleClickEvent()

void DiagramEventAddMacro::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event)
overridevirtual

Reimplemented from DiagramEventInterface.

Here is the call graph for this function:

◆ mouseMoveEvent()

void DiagramEventAddMacro::mouseMoveEvent ( QGraphicsSceneMouseEvent * event)
overridevirtual

Reimplemented from DiagramEventInterface.

Here is the call graph for this function:

◆ mousePressEvent()

void DiagramEventAddMacro::mousePressEvent ( QGraphicsSceneMouseEvent * event)
overridevirtual

Reimplemented from DiagramEventInterface.

◆ mouseReleaseEvent()

void DiagramEventAddMacro::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overridevirtual

Reimplemented from DiagramEventInterface.

Here is the call graph for this function:

Member Data Documentation

◆ m_location

ElementsLocation DiagramEventAddMacro::m_location
private

◆ m_macro_doc

QDomDocument DiagramEventAddMacro::m_macro_doc
private

◆ m_preview_item

QGraphicsPixmapItem* DiagramEventAddMacro::m_preview_item
private

◆ m_status_bar

QPointer<QStatusBar> DiagramEventAddMacro::m_status_bar
private

The documentation for this class was generated from the following files: