18#ifndef MOVEDIAGRAMCOMMAND_H
19#define MOVEDIAGRAMCOMMAND_H
21#include <QUndoCommand>
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
MoveDiagramCommand(ProjectView *project_view, Diagram *diagram, int new_position, QUndoCommand *parent=nullptr)
MoveDiagramCommand::MoveDiagramCommand.
Definition movediagramcommand.cpp:32
int m_old_position
Definition movediagramcommand.h:45
void undo() override
Definition movediagramcommand.cpp:50
QPointer< ProjectView > m_project_view
Definition movediagramcommand.h:43
int m_new_position
Definition movediagramcommand.h:46
void redo() override
Definition movediagramcommand.cpp:42
Diagram * m_diagram
Definition movediagramcommand.h:44
The ProjectView class This class provides a widget displaying the diagrams of a particular project us...
Definition projectview.h:80