documentation and folded item delegates from old code back in
This commit is contained in:
@@ -77,6 +77,16 @@ void Footage::set_timestamp(const QDateTime &t)
|
||||
timestamp_ = t;
|
||||
}
|
||||
|
||||
const rational &Footage::duration()
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void Footage::set_duration(const rational &duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
}
|
||||
|
||||
void Footage::add_stream(Stream *s)
|
||||
{
|
||||
// Add a copy of this stream to the list
|
||||
@@ -170,7 +180,7 @@ void Footage::UpdateTooltip()
|
||||
break;
|
||||
case kReady:
|
||||
{
|
||||
QString tip = QCoreApplication::translate("Footage", "Filename: %1");
|
||||
QString tip = QCoreApplication::translate("Footage", "Filename: %1").arg(filename());
|
||||
|
||||
if (!streams_.isEmpty()) {
|
||||
tip.append("\n");
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "project/item/item.h"
|
||||
#include "project/item/footage/audiostream.h"
|
||||
#include "project/item/footage/videostream.h"
|
||||
#include "rational.h"
|
||||
|
||||
class Footage : public Item
|
||||
{
|
||||
@@ -137,6 +138,10 @@ public:
|
||||
*/
|
||||
void set_timestamp(const QDateTime& t);
|
||||
|
||||
const rational& duration();
|
||||
|
||||
void set_duration(const rational& duration);
|
||||
|
||||
/**
|
||||
* @brief Add a stream metadata object to this footage
|
||||
*
|
||||
@@ -226,6 +231,11 @@ private:
|
||||
* @brief Internal ready setting
|
||||
*/
|
||||
Status status_;
|
||||
|
||||
/**
|
||||
* @brief Media duration
|
||||
*/
|
||||
rational duration_;
|
||||
};
|
||||
|
||||
#endif // FOOTAGE_H
|
||||
|
||||
@@ -25,6 +25,15 @@
|
||||
|
||||
class Footage;
|
||||
|
||||
/**
|
||||
* @brief The Stream class
|
||||
*
|
||||
* A base class for keeping metadata about a media stream. A Stream can contain video data, audio data, subtitle data,
|
||||
* etc. and a Stream object stores metadata about it.
|
||||
*
|
||||
* The Stream class is fairly simple and is intended to be subclassed for data that pertains specifically to one
|
||||
* Stream::Type. \see VideoStream and \see AudioStream.
|
||||
*/
|
||||
class Stream
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user