keyframes: implemented copying/pasting
This commit is contained in:
@@ -55,6 +55,7 @@ public:
|
||||
};
|
||||
|
||||
using SerializedProperties = QHash<Node*, QMap<QString, QString> >;
|
||||
using SerializedKeyframes = QHash<QString, QVector<NodeKeyframe*> >;
|
||||
|
||||
class LoadData
|
||||
{
|
||||
@@ -65,6 +66,8 @@ public:
|
||||
|
||||
std::vector<TimelineMarker*> markers;
|
||||
|
||||
SerializedKeyframes keyframes;
|
||||
|
||||
};
|
||||
|
||||
class Result
|
||||
@@ -105,7 +108,7 @@ public:
|
||||
class SaveData
|
||||
{
|
||||
public:
|
||||
SaveData(Project *project, const QString &filename = QString())
|
||||
SaveData(Project *project = nullptr, const QString &filename = QString())
|
||||
{
|
||||
project_ = project;
|
||||
filename_ = filename;
|
||||
@@ -128,6 +131,9 @@ public:
|
||||
const std::vector<TimelineMarker*> &GetOnlySerializeMarkers() const { return only_serialize_markers_; }
|
||||
void SetOnlySerializeMarkers(const std::vector<TimelineMarker*> &only) { only_serialize_markers_ = only; }
|
||||
|
||||
const std::vector<NodeKeyframe*> &GetOnlySerializeKeyframes() const { return only_serialize_keyframes_; }
|
||||
void SetOnlySerializeKeyframes(const std::vector<NodeKeyframe*> &only) { only_serialize_keyframes_ = only; }
|
||||
|
||||
const SerializedProperties &GetProperties() const { return properties_; }
|
||||
void SetProperties(const SerializedProperties &p) { properties_ = p; }
|
||||
|
||||
@@ -142,6 +148,8 @@ public:
|
||||
|
||||
std::vector<TimelineMarker*> only_serialize_markers_;
|
||||
|
||||
std::vector<NodeKeyframe*> only_serialize_keyframes_;
|
||||
|
||||
};
|
||||
|
||||
static void Initialize();
|
||||
|
||||
Reference in New Issue
Block a user