various: encapsulate all code in the olive namespace to avoid name collisions

Large-scale code cleanup. Also adds a license to the top of all files that were
missing it.
This commit is contained in:
itsmattkc
2020-04-06 15:29:53 +10:00
parent 82b6ddccc8
commit 1aa87cbda6
519 changed files with 7939 additions and 158 deletions
+4
View File
@@ -27,6 +27,8 @@
#include "node/block/gap/gap.h"
#include "node/graph.h"
OLIVE_NAMESPACE_ENTER
TrackOutput::TrackOutput() :
track_type_(Timeline::kTrackTypeNone),
block_invalidate_cache_stack_(0),
@@ -560,3 +562,5 @@ void TrackOutput::BlockLengthChanged()
UpdateInOutFrom(index);
}
OLIVE_NAMESPACE_EXIT
+4
View File
@@ -24,6 +24,8 @@
#include "common/timelinecommon.h"
#include "node/block/block.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief A time traversal Node for sorting through one channel/track of Blocks
*/
@@ -214,4 +216,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // TRACKOUTPUT_H
+4
View File
@@ -24,6 +24,8 @@
#include "node/math/math.h"
#include "node/output/viewer/viewer.h"
OLIVE_NAMESPACE_ENTER
TrackList::TrackList(ViewerOutput *parent, const Timeline::TrackType &type, NodeInputArray *track_input) :
QObject(parent),
track_input_(track_input),
@@ -243,3 +245,5 @@ void TrackList::TrackHeightChangedSlot(int height)
{
emit TrackHeightChanged(static_cast<TrackOutput*>(sender())->Index(), height);
}
OLIVE_NAMESPACE_EXIT
+4
View File
@@ -27,6 +27,8 @@
#include "node/graph.h"
#include "node/output/track/track.h"
OLIVE_NAMESPACE_ENTER
class ViewerOutput;
class TrackList : public QObject {
@@ -115,4 +117,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // TRACKLIST_H
+4
View File
@@ -22,6 +22,8 @@
#include "node/traverser.h"
OLIVE_NAMESPACE_ENTER
ViewerOutput::ViewerOutput()
{
texture_input_ = new NodeInput("tex_in", NodeInput::kTexture);
@@ -281,3 +283,5 @@ void ViewerOutput::TrackHeightChangedSlot(int index, int height)
{
emit TrackHeightChanged(static_cast<TrackList*>(sender())->type(), index, height);
}
OLIVE_NAMESPACE_EXIT
+4
View File
@@ -32,6 +32,8 @@
#include "render/audioparams.h"
#include "timeline/trackreference.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief A bridge between a node system and a ViewerPanel
*
@@ -143,4 +145,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // VIEWER_H