diff --git a/app/node/CMakeLists.txt b/app/node/CMakeLists.txt index bb8f9a42f..89780c8dc 100644 --- a/app/node/CMakeLists.txt +++ b/app/node/CMakeLists.txt @@ -18,6 +18,7 @@ add_subdirectory(audio) add_subdirectory(block) add_subdirectory(distort) add_subdirectory(input) +add_subdirectory(math) add_subdirectory(output) set(OLIVE_SOURCES diff --git a/app/node/math/CMakeLists.txt b/app/node/math/CMakeLists.txt new file mode 100644 index 000000000..9c2e5c534 --- /dev/null +++ b/app/node/math/CMakeLists.txt @@ -0,0 +1,22 @@ +# Olive - Non-Linear Video Editor +# Copyright (C) 2019 Olive Team +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +set(OLIVE_SOURCES + ${OLIVE_SOURCES} + node/math/math.h + node/math/math.cpp + PARENT_SCOPE +) diff --git a/app/node/math/math.cpp b/app/node/math/math.cpp new file mode 100644 index 000000000..695822c95 --- /dev/null +++ b/app/node/math/math.cpp @@ -0,0 +1,31 @@ +#include "math.h" + +MathNode::MathNode() +{ + +} + +Node *MathNode::copy() const +{ + return new MathNode(); +} + +QString MathNode::Name() const +{ + return tr("Math"); +} + +QString MathNode::id() const +{ + return QStringLiteral("org.olivevideoeditor.Olive.math"); +} + +QString MathNode::Category() const +{ + return tr("Math"); +} + +QString MathNode::Description() const +{ + return tr("Perform a mathematical operation between two."); +} diff --git a/app/node/math/math.h b/app/node/math/math.h new file mode 100644 index 000000000..70bb39a10 --- /dev/null +++ b/app/node/math/math.h @@ -0,0 +1,22 @@ +#ifndef MATHNODE_H +#define MATHNODE_H + +#include "node/node.h" + +class MathNode : public Node +{ +public: + MathNode(); + + virtual Node* copy() const override; + + virtual QString Name() const override; + virtual QString id() const override; + virtual QString Category() const override; + virtual QString Description() const override; + + virtual void Retranslate() override; + +}; + +#endif // MATHNODE_H