Initial Commit

This commit is contained in:
xypwn
2020-03-24 20:18:39 +01:00
commit dfeb7de33c
70 changed files with 4920 additions and 0 deletions

30
UndoCommands/AddPart.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef ADDPART_H
#define ADDPART_H
#include <QUndoCommand>
#include <QPointF>
#include "../ePartType.h"
class Scene;
class Part;
class RemovePart;
class AddPart : public QUndoCommand
{
public:
AddPart(Scene* scene, PartType::PartType partType, QPointF pos, QString icFilename = "");
~AddPart();
void redo() override;
void undo() override;
private:
Scene* m_scene;
Part* m_part = nullptr;
PartType::PartType m_partType;
QPointF m_pos;
QString m_icFilename;
};
#endif // ADDPART_H