timeline: implemented adding objects in the timeline (e.g. solid, title)

This commit is contained in:
itsmattkc
2020-04-06 00:05:09 +10:00
parent 0acad08887
commit edc38ad8a2
7 changed files with 186 additions and 19 deletions
+46
View File
@@ -21,6 +21,9 @@
#ifndef TOOL_H
#define TOOL_H
#include <QCoreApplication>
#include <QString>
class Tool {
public:
/**
@@ -69,6 +72,49 @@ public:
kCount
};
/**
* @brief Tools that can be added using the kAdd tool
*/
enum AddableObject {
/// An empty clip
kAddableEmpty,
/// A video clip showing a generic video placeholder
kAddableBars,
/// A video clip with a solid connected
kAddableSolid,
/// A video clip with a title connected
kAddableTitle,
/// An audio clip with a sine connected to it
kAddableTone,
kAddableCount
};
static QString GetAddableObjectName(const AddableObject& a)
{
switch (a) {
case kAddableEmpty:
return QCoreApplication::translate("Tool", "Empty");
case kAddableBars:
return QCoreApplication::translate("Tool", "Bars");
case kAddableSolid:
return QCoreApplication::translate("Tool", "Solid");
case kAddableTitle:
return QCoreApplication::translate("Tool", "Title");
case kAddableTone:
return QCoreApplication::translate("Tool", "Tone");
case kAddableCount:
break;
}
return QCoreApplication::translate("Tool", "Unknown");
}
};
#endif // TOOL_H