use hardcoded namespace

The macro defined namespaces confused the hell out of lupdate and more or less broke translations permanently. Looks like the only way we can do it is to have a hardcoded namespace, which goes against my instinct, but honestly how likely is it that we'll change the namespace anyway (I guess forks might want to do it, but that's their problem ;) )
This commit is contained in:
itsmattkc
2020-11-17 20:24:42 +11:00
parent d241090a9f
commit 75d4cd899b
626 changed files with 1971 additions and 1972 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
#include "pan.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
PanNode::PanNode()
{
@@ -114,4 +114,4 @@ void PanNode::Retranslate()
panning_input_->set_name(tr("Pan"));
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class PanNode : public Node
{
@@ -50,6 +50,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // PANNODE_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "volume.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
VolumeNode::VolumeNode()
{
@@ -81,4 +81,4 @@ void VolumeNode::Retranslate()
volume_input_->set_name(tr("Volume"));
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/math/math/mathbase.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class VolumeNode : public MathNodeBase
{
@@ -55,6 +55,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // VOLUMENODE_H
+2 -2
View File
@@ -25,7 +25,7 @@
#include "node/output/track/track.h"
#include "transition/transition.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
Block::Block() :
previous_(nullptr),
@@ -375,4 +375,4 @@ void Block::Hash(QCryptographicHash &, const rational &) const
// A block does nothing by default, so we hash nothing
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -24,7 +24,7 @@
#include "node/node.h"
#include "timeline/timelinecommon.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A Node that represents a block of time, also displayable on a Timeline
@@ -137,6 +137,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // BLOCK_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "clip.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
ClipBlock::ClipBlock()
{
@@ -120,4 +120,4 @@ void ClipBlock::Hash(QCryptographicHash &hash, const rational &time) const
}
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/block/block.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief Node that represents a block of Media
@@ -61,6 +61,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEBLOCK_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "gap.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
GapBlock::GapBlock()
{
@@ -51,4 +51,4 @@ QString GapBlock::Description() const
return tr("A time-based node that represents an empty space.");
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/block/block.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief Node that represents nothing in its respective track for a certain period of time
@@ -46,6 +46,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEBLOCK_H
@@ -20,7 +20,7 @@
#include "crossdissolvetransition.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
CrossDissolveTransition::CrossDissolveTransition()
{
@@ -86,4 +86,4 @@ void CrossDissolveTransition::SampleJobEvent(SampleBufferPtr from_samples, Sampl
}
}
OLIVE_NAMESPACE_EXIT
}
@@ -23,7 +23,7 @@
#include "node/block/transition/transition.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class CrossDissolveTransition : public TransitionBlock
{
@@ -47,6 +47,6 @@ protected:
};
OLIVE_NAMESPACE_EXIT
}
#endif // CROSSDISSOLVETRANSITION_H
@@ -20,7 +20,7 @@
#include "diptocolortransition.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
DipToColorTransition::DipToColorTransition()
{
@@ -65,4 +65,4 @@ void DipToColorTransition::ShaderJobEvent(NodeValueDatabase &value, ShaderJob &j
job.InsertValue(color_input_, value);
}
OLIVE_NAMESPACE_EXIT
}
@@ -23,7 +23,7 @@
#include "node/block/transition/transition.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class DipToColorTransition : public TransitionBlock
{
@@ -48,6 +48,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // DIPTOCOLORTRANSITION_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include "common/clamp.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TransitionBlock::TransitionBlock() :
connected_out_block_(nullptr),
@@ -319,4 +319,4 @@ double TransitionBlock::TransformCurve(double linear) const
return linear;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/block/block.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TransitionBlock : public Block
{
@@ -91,6 +91,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TRANSITIONBLOCK_H
+2 -2
View File
@@ -24,7 +24,7 @@
#include "node.h"
#include "output.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeEdge::NodeEdge(NodeOutput *output, NodeInput *input)
{
@@ -47,4 +47,4 @@ NodeEdge::Connection NodeEdge::ParamToConnection(NodeParam *param)
return {param->parentNode(), param->id()};
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -26,7 +26,7 @@
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class Node;
class NodeInput;
@@ -82,6 +82,6 @@ private:
using NodeEdgePtr = std::shared_ptr<NodeEdge>;
OLIVE_NAMESPACE_EXIT
}
#endif // EDGE_H
+2 -2
View File
@@ -41,7 +41,7 @@
#include "output/track/track.h"
#include "output/viewer/viewer.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
QList<Node*> NodeFactory::library_;
void NodeFactory::Initialize()
@@ -224,4 +224,4 @@ Node *NodeFactory::CreateFromFactoryIndex(const NodeFactory::InternalID &id)
abort();
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -26,7 +26,7 @@
#include "node.h"
#include "widget/menu/menu.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeFactory
{
@@ -80,6 +80,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEFACTORY_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "blur.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
BlurFilterNode::BlurFilterNode()
{
@@ -128,4 +128,4 @@ NodeValueTable BlurFilterNode::Value(NodeValueDatabase &value) const
return table;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class BlurFilterNode : public Node
{
@@ -58,6 +58,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // BLURFILTERNODE_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include "render/color.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
StrokeFilterNode::StrokeFilterNode()
{
@@ -113,4 +113,4 @@ ShaderCode StrokeFilterNode::GetShaderCode(const QString &shader_id) const
return ShaderCode(FileFunctions::ReadFileAsString(":/shaders/stroke.frag"), QString());
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class StrokeFilterNode : public Node
{
@@ -56,6 +56,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // STROKEFILTERNODE_H
+2 -2
View File
@@ -26,7 +26,7 @@
#include "common/range.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
MatrixGenerator::MatrixGenerator()
{
@@ -294,4 +294,4 @@ MatrixGenerator::GizmoSharedData::GizmoSharedData(const QSize &viewport, const Q
inverted_half_scale = QVector2D(1.0f / half_scale.x(), 1.0f / half_scale.y());
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -26,7 +26,7 @@
#include "node/node.h"
#include "node/inputdragger.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class MatrixGenerator : public Node
{
@@ -97,6 +97,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TRANSFORMDISTORT_H
+2 -2
View File
@@ -23,7 +23,7 @@
#include <QGuiApplication>
#include <QVector2D>
OLIVE_NAMESPACE_ENTER
namespace olive {
PolygonGenerator::PolygonGenerator()
{
@@ -204,4 +204,4 @@ QVector<QRectF> PolygonGenerator::GetGizmoRects(const QVector<QPointF> &points)
return rects;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -24,7 +24,7 @@
#include "node/node.h"
#include "node/inputdragger.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class PolygonGenerator : public Node
{
@@ -68,6 +68,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // POLYGONGENERATOR_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include "render/color.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
SolidGenerator::SolidGenerator()
{
@@ -80,4 +80,4 @@ ShaderCode SolidGenerator::GetShaderCode(const QString &shader_id) const
return ShaderCode(FileFunctions::ReadFileAsString(":/shaders/solid.frag"), QString());
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class SolidGenerator : public Node
{
@@ -48,6 +48,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // SOLIDGENERATOR_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include <QTextDocument>
OLIVE_NAMESPACE_ENTER
namespace olive {
enum TextVerticalAlign {
kVerticalAlignTop,
@@ -176,4 +176,4 @@ void TextGenerator::GenerateFrame(FramePtr frame, const GenerateJob& job) const
}
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TextGenerator : public Node
{
@@ -57,6 +57,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TEXTGENERATOR_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "graph.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeGraph::NodeGraph() :
operation_stack_(0)
@@ -164,4 +164,4 @@ bool NodeGraph::ContainsNode(Node *n) const
return (n->parent() == this);
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -25,7 +25,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A collection of nodes
@@ -110,6 +110,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEGRAPH_H
+2 -2
View File
@@ -35,7 +35,7 @@
#include "project/item/footage/stream.h"
#include "render/color.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeInput::NodeInput(const QString& id, const DataType &type, const QVector<QVariant> &default_value) :
NodeParam(id)
@@ -1215,4 +1215,4 @@ void NodeInput::set_combobox_strings(const QStringList &strings)
set_property(QStringLiteral("combo_str"), strings);
}
OLIVE_NAMESPACE_EXIT
}
+3 -3
View File
@@ -25,7 +25,7 @@
#include "keyframe.h"
#include "param.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A node parameter designed to take either user input or data from another node
@@ -295,7 +295,7 @@ public:
QVector<Node*> GetImmediateDependencies() const;
signals:
void ValueChanged(const OLIVE_NAMESPACE::TimeRange& range);
void ValueChanged(const olive::TimeRange& range);
void KeyframeEnableChanged(bool);
@@ -431,6 +431,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEINPUT_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "audio.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
Node *AudioInput::copy() const
{
@@ -52,4 +52,4 @@ QString AudioInput::Description() const
return tr("Import an audio footage stream.");
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "../media.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class AudioInput : public MediaInput
{
@@ -42,6 +42,6 @@ public:
};
OLIVE_NAMESPACE_EXIT
}
#endif // AUDIOINPUT_H
+2 -2
View File
@@ -23,7 +23,7 @@
#include "common/timecodefunctions.h"
#include "common/tohex.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
MediaInput::MediaInput() :
connected_footage_(nullptr)
@@ -98,4 +98,4 @@ void MediaInput::FootageParametersChanged()
InvalidateCache(TimeRange(0, RATIONAL_MAX), footage_input_, footage_input_);
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -25,7 +25,7 @@
#include "node/node.h"
#include "project/item/footage/stream.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A node that imports an image
@@ -62,6 +62,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // MEDIAINPUT_H
+2 -2
View File
@@ -28,7 +28,7 @@
#include "core.h"
#include "project/item/footage/footage.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
Node *VideoInput::copy() const
{
@@ -60,4 +60,4 @@ QString VideoInput::Description() const
return tr("Import a video footage stream.");
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -26,7 +26,7 @@
#include "../media.h"
#include "render/colormanager.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class VideoInput : public MediaInput
{
@@ -45,6 +45,6 @@ public:
};
OLIVE_NAMESPACE_EXIT
}
#endif // VIDEOINPUT_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "timeinput.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TimeInput::TimeInput()
{
@@ -71,4 +71,4 @@ void TimeInput::Hash(QCryptographicHash &hash, const rational &time) const
hash.addData(NodeParam::ValueToBytes(NodeParam::kRational, QVariant::fromValue(time)));
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TimeInput : public Node
{
@@ -44,6 +44,6 @@ public:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMEINPUT_H
+2 -2
View File
@@ -25,7 +25,7 @@
#include "common/xmlutils.h"
#include "node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeInputArray::NodeInputArray(const QString &id, const DataType &type, const QVariant &default_value) :
NodeInput(id, type, default_value),
@@ -235,4 +235,4 @@ void NodeInputArray::SaveInternal(QXmlStreamWriter *writer) const
writer->writeEndElement(); // subparameters
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "input.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeInputArray : public NodeInput
{
@@ -74,6 +74,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // INPUTARRAY_H
+2 -2
View File
@@ -24,7 +24,7 @@
#include "node.h"
#include "widget/nodeparamview/nodeparamviewundo.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeInputDragger::NodeInputDragger() :
input_(nullptr)
@@ -115,4 +115,4 @@ void NodeInputDragger::End()
input_ = nullptr;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/input.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeInputDragger
{
@@ -55,6 +55,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEINPUTDRAGGER_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "keyframe.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
const NodeKeyframe::Type NodeKeyframe::kDefaultType = kLinear;
@@ -145,4 +145,4 @@ void NodeKeyframe::set_parent(NodeInput *parent)
parent_ = parent;
}
OLIVE_NAMESPACE_EXIT
}
+3 -3
View File
@@ -27,7 +27,7 @@
#include "common/rational.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeInput;
@@ -164,8 +164,8 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
Q_DECLARE_METATYPE(OLIVE_NAMESPACE::NodeKeyframe::Type)
Q_DECLARE_METATYPE(olive::NodeKeyframe::Type)
#endif // NODEKEYFRAME_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "math.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
MathNode::MathNode()
{
@@ -119,4 +119,4 @@ void MathNode::ProcessSamples(NodeValueDatabase &values, const SampleBufferPtr i
return ProcessSamplesInternal(values, GetOperation(), param_a_in_, param_b_in_, input, output, index);
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "mathbase.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class MathNode : public MathNodeBase
{
@@ -75,6 +75,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // MATHNODE_H
+2 -2
View File
@@ -26,7 +26,7 @@
#include "common/tohex.h"
#include "render/color.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
ShaderCode MathNodeBase::GetShaderCodeInternal(const QString &shader_id, NodeInput *param_a_in, olive::NodeInput *param_b_in) const
{
@@ -611,4 +611,4 @@ T MathNodeBase::PerformAddSubMultDiv(Operation operation, T a, U b)
return a;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class MathNodeBase : public Node
{
@@ -119,6 +119,6 @@ protected:
};
OLIVE_NAMESPACE_EXIT
}
#endif // MATHNODEBASE_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "merge.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
MergeNode::MergeNode()
{
@@ -117,4 +117,4 @@ void MergeNode::Hash(QCryptographicHash &hash, const rational &time) const
}
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class MergeNode : public Node
{
@@ -55,6 +55,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // MERGENODE_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "trigonometry.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TrigonometryNode::TrigonometryNode()
{
@@ -118,4 +118,4 @@ NodeValueTable TrigonometryNode::Value(NodeValueDatabase &value) const
return table;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -23,7 +23,7 @@
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TrigonometryNode : public Node
{
@@ -61,6 +61,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TRIGNODE_H
+2 -2
View File
@@ -31,7 +31,7 @@
#include "project/item/footage/videostream.h"
#include "widget/nodeview/nodeviewundo.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
Node::Node() :
can_be_deleted_(true)
@@ -933,4 +933,4 @@ void Node::InputConnectionChanged(NodeEdgePtr edge)
InvalidateCache(TimeRange(RATIONAL_MIN, RATIONAL_MAX), edge->input(), edge->input());
}
OLIVE_NAMESPACE_EXIT
}
+3 -3
View File
@@ -41,7 +41,7 @@
#include "render/job/shaderjob.h"
#include "render/shadercode.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A single processing unit that can be connected with others to create intricate processing systems
@@ -444,7 +444,7 @@ protected:
virtual QVector<NodeInput*> GetInputsToHash() const;
protected slots:
void InputChanged(const OLIVE_NAMESPACE::TimeRange &range);
void InputChanged(const olive::TimeRange &range);
void InputConnectionChanged(NodeEdgePtr edge);
@@ -586,6 +586,6 @@ QVector<T *> Node::FindOutputNode()
using NodePtr = std::shared_ptr<Node>;
OLIVE_NAMESPACE_EXIT
}
#endif // NODE_H
+2 -2
View File
@@ -23,7 +23,7 @@
#include "common/xmlutils.h"
#include "node/node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeOutput::NodeOutput(const QString &id) :
NodeParam(id)
@@ -68,4 +68,4 @@ void NodeOutput::Save(QXmlStreamWriter *writer) const
writer->writeAttribute("ptr", QString::number(reinterpret_cast<quintptr>(this)));
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -24,7 +24,7 @@
#include "common/timerange.h"
#include "param.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A node parameter designed to serve data to the input of another node
@@ -53,6 +53,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEOUTPUT_H
+2 -2
View File
@@ -27,7 +27,7 @@
#include "node/block/gap/gap.h"
#include "node/graph.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
const double TrackOutput::kTrackHeightDefault = 3.0;
const double TrackOutput::kTrackHeightMinimum = 1.5;
@@ -602,4 +602,4 @@ void TrackOutput::MutedInputValueChanged()
emit MutedChanged(IsMuted());
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -25,7 +25,7 @@
#include "node/block/block.h"
#include "timeline/timelinecommon.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A time traversal Node for sorting through one channel/track of Blocks
@@ -304,6 +304,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TRACKOUTPUT_H
+2 -2
View File
@@ -25,7 +25,7 @@
#include "node/math/merge/merge.h"
#include "node/output/viewer/viewer.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TrackList::TrackList(ViewerOutput *parent, const Timeline::TrackType &type, NodeInputArray *track_input) :
QObject(parent),
@@ -274,4 +274,4 @@ void TrackList::TrackHeightChangedSlot(int height)
emit TrackHeightChanged(static_cast<TrackOutput*>(sender())->Index(), height);
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -27,7 +27,7 @@
#include "node/output/track/track.h"
#include "timeline/timelinecommon.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class ViewerOutput;
@@ -114,6 +114,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TRACKLIST_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include "node/traverser.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
ViewerOutput::ViewerOutput() :
video_frame_cache_(this),
@@ -345,4 +345,4 @@ void ViewerOutput::TrackHeightChangedSlot(int index, int height)
emit TrackHeightChanged(static_cast<TrackList*>(sender())->type(), index, height);
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -34,7 +34,7 @@
#include "timeline/timelinecommon.h"
#include "timeline/trackreference.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A bridge between a node system and a ViewerPanel
@@ -196,6 +196,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // VIEWER_H
+2 -2
View File
@@ -31,7 +31,7 @@
#include "node/output.h"
#include "render/color.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeParam::NodeParam(const QString &id) :
id_(id),
@@ -286,4 +286,4 @@ QByteArray NodeParam::ValueToBytesInternal(const QVariant &v)
return bytes;
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -30,7 +30,7 @@
#include "common/xmlutils.h"
#include "node/edge.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class Node;
@@ -432,6 +432,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODEPARAM_H
+2 -2
View File
@@ -22,7 +22,7 @@
#include "node.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeValueDatabase NodeTraverser::GenerateDatabase(const Node* node, const TimeRange &range)
{
@@ -265,4 +265,4 @@ void NodeTraverser::PostProcessTable(const Node *node, const TimeRange &range, N
}
}
OLIVE_NAMESPACE_EXIT
}
+2 -2
View File
@@ -27,7 +27,7 @@
#include "project/item/footage/stream.h"
#include "value.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeTraverser : public CancelableObject
{
@@ -63,6 +63,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // NODETRAVERSER_H
+2 -2
View File
@@ -20,7 +20,7 @@
#include "value.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
NodeValueTable NodeValueDatabase::Merge() const
{
@@ -153,4 +153,4 @@ int NodeValueTable::GetInternal(const NodeParam::DataType &type, const QString &
return index;
}
OLIVE_NAMESPACE_EXIT
}
+5 -5
View File
@@ -26,7 +26,7 @@
#include "input.h"
#include "render/shadervalue.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class NodeValue
{
@@ -184,10 +184,10 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
Q_DECLARE_METATYPE(OLIVE_NAMESPACE::NodeValue)
Q_DECLARE_METATYPE(OLIVE_NAMESPACE::NodeValueTable)
Q_DECLARE_METATYPE(OLIVE_NAMESPACE::NodeValueDatabase)
Q_DECLARE_METATYPE(olive::NodeValue)
Q_DECLARE_METATYPE(olive::NodeValueTable)
Q_DECLARE_METATYPE(olive::NodeValueDatabase)
#endif // VALUE_H