2020-12-16 14:11:21 +00:00
|
|
|
#ifndef DUST3D_BONE_DOCUMENT_H
|
|
|
|
#define DUST3D_BONE_DOCUMENT_H
|
|
|
|
#include "skeletondocument.h"
|
|
|
|
|
|
|
|
class BoneDocument : public SkeletonDocument
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void turnaroundChanged();
|
2020-12-19 02:29:24 +00:00
|
|
|
void editModeChanged();
|
2020-12-16 14:11:21 +00:00
|
|
|
public:
|
|
|
|
BoneDocument();
|
|
|
|
bool undoable(void) const;
|
|
|
|
bool redoable(void) const;
|
|
|
|
bool hasPastableNodesInClipboard(void) const;
|
|
|
|
bool originSettled(void) const;
|
|
|
|
bool isNodeEditable(QUuid) const;
|
|
|
|
bool isEdgeEditable(QUuid) const;
|
|
|
|
void copyNodes(std::set<QUuid> nodeIdSet) const;
|
2020-12-19 02:29:24 +00:00
|
|
|
public slots:
|
2020-12-16 14:11:21 +00:00
|
|
|
void undo(void);
|
|
|
|
void redo(void);
|
|
|
|
void paste(void);
|
|
|
|
void updateTurnaround(const QImage &image);
|
2020-12-19 02:29:24 +00:00
|
|
|
void setEditMode(SkeletonDocumentEditMode mode);
|
2020-12-16 14:11:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|