style: unify identifier naming per updated conventions
Automated with clang-tidy readability-identifier-naming (config added to .clang-tidy) plus scripted passes, per the updated rules now documented in CONTRIBUTING.md: - types (class/struct/enum/alias/template params): PascalCase - functions, variables, members: snake_case (incl. rational -> Rational) - private/protected members: trailing underscore; static member variables likewise (instance_, available_themes_) - constants and enum values: snake_case (kLinear -> k_linear, F32P -> f32p); ALL_CAPS reserved for macros - macros: OAK_ prefix (OLIVE_ADD_TEST/OLIVE_ASSERT/OLIVE_CONFIG -> OAK_ADD_TEST/OAK_ASSERT/OAK_CONFIG, GL_PREAMBLE -> OAK_GL_PREAMBLE, include guards -> OAK_*) - file names: all lowercase (Current/Plugin/OliveHost/OliveClip/ OlivePluginInstance -> current/plugin/olivehost/oliveclip/ oliveplugininstance) - getters share the member name sans underscore, setters set_foo() - Qt and third-party (OpenFX) virtual overrides and framework callbacks keep their original names (exempt in .clang-tidy) Manual follow-ups required where automation could not reach: - string-based QMetaObject/SIGNAL/SLOT references updated to renamed methods (AddTask, CreatedFile, DeleteSpecificFile, moveSelectionUp, ...) - macro bodies referencing renamed methods (OLIVE_CONFIG, NODE_DEFAULT_DESTRUCTOR, MANAGEDDISPLAYWIDGET_*) - self-shadowing locals renamed where signals/methods became same-named (size_changed, worker_count, selected_items, import param, filters) - third_party OFX member/namespace usages restored (OFX::Host::*, _created, _clipPrefsDirty, createInstance, clearPersistentMessage) - STL protocol aliases restored (const_iterator) with .clang-tidy ignore rules; qHash overloads restored Full build and test suite pass: ctest 4/4, ~1960 gtest cases green.
This commit is contained in:
@@ -25,29 +25,29 @@ namespace olive
|
||||
|
||||
#define super Node
|
||||
|
||||
const QString MultiCamNode::kCurrentInput = QStringLiteral("current_in");
|
||||
const QString MultiCamNode::kSourcesInput = QStringLiteral("sources_in");
|
||||
const QString MultiCamNode::kSequenceInput = QStringLiteral("sequence_in");
|
||||
const QString MultiCamNode::kSequenceTypeInput =
|
||||
const QString MultiCamNode::k_current_input = QStringLiteral("current_in");
|
||||
const QString MultiCamNode::k_sources_input = QStringLiteral("sources_in");
|
||||
const QString MultiCamNode::k_sequence_input = QStringLiteral("sequence_in");
|
||||
const QString MultiCamNode::k_sequence_type_input =
|
||||
QStringLiteral("sequence_type_in");
|
||||
|
||||
MultiCamNode::MultiCamNode()
|
||||
{
|
||||
AddInput(kCurrentInput, NodeValue::kCombo, InputFlags(kInputFlagStatic));
|
||||
add_input(k_current_input, NodeValue::k_combo, InputFlags(k_input_flag_static));
|
||||
|
||||
AddInput(kSourcesInput, NodeValue::kNone,
|
||||
InputFlags(kInputFlagNotKeyframable | kInputFlagArray));
|
||||
SetInputProperty(kSourcesInput, QStringLiteral("arraystart"), 1);
|
||||
add_input(k_sources_input, NodeValue::k_none,
|
||||
InputFlags(k_input_flag_not_keyframable | k_input_flag_array));
|
||||
set_input_property(k_sources_input, QStringLiteral("arraystart"), 1);
|
||||
|
||||
AddInput(kSequenceInput, NodeValue::kNone,
|
||||
InputFlags(kInputFlagNotKeyframable));
|
||||
AddInput(kSequenceTypeInput, NodeValue::kCombo,
|
||||
InputFlags(kInputFlagStatic | kInputFlagHidden));
|
||||
add_input(k_sequence_input, NodeValue::k_none,
|
||||
InputFlags(k_input_flag_not_keyframable));
|
||||
add_input(k_sequence_type_input, NodeValue::k_combo,
|
||||
InputFlags(k_input_flag_static | k_input_flag_hidden));
|
||||
|
||||
sequence_ = nullptr;
|
||||
}
|
||||
|
||||
QString MultiCamNode::Name() const
|
||||
QString MultiCamNode::name() const
|
||||
{
|
||||
return tr("Multi-Cam");
|
||||
}
|
||||
@@ -57,44 +57,44 @@ QString MultiCamNode::id() const
|
||||
return QStringLiteral("org.olivevideoeditor.Olive.multicam");
|
||||
}
|
||||
|
||||
QVector<Node::CategoryID> MultiCamNode::Category() const
|
||||
QVector<Node::CategoryID> MultiCamNode::category() const
|
||||
{
|
||||
return { kCategoryTimeline };
|
||||
return { k_category_timeline };
|
||||
}
|
||||
|
||||
QString MultiCamNode::Description() const
|
||||
QString MultiCamNode::description() const
|
||||
{
|
||||
return tr("Allows easy switching between multiple sources.");
|
||||
}
|
||||
|
||||
Node::ActiveElements
|
||||
MultiCamNode::GetActiveElementsAtTime(const QString &input,
|
||||
MultiCamNode::get_active_elements_at_time(const QString &input,
|
||||
const TimeRange &r) const
|
||||
{
|
||||
if (input == kSourcesInput) {
|
||||
int src = GetCurrentSource();
|
||||
if (src >= 0 && src < GetSourceCount()) {
|
||||
if (input == k_sources_input) {
|
||||
int src = get_current_source();
|
||||
if (src >= 0 && src < get_source_count()) {
|
||||
Node::ActiveElements a;
|
||||
a.add(src);
|
||||
return a;
|
||||
} else {
|
||||
return ActiveElements::kNoElements;
|
||||
return ActiveElements::k_no_elements;
|
||||
}
|
||||
} else {
|
||||
return super::GetActiveElementsAtTime(input, r);
|
||||
return super::get_active_elements_at_time(input, r);
|
||||
}
|
||||
}
|
||||
|
||||
void MultiCamNode::Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
void MultiCamNode::value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const
|
||||
{
|
||||
NodeValueArray arr = value[kSourcesInput].toArray();
|
||||
NodeValueArray arr = value[k_sources_input].to_array();
|
||||
if (!arr.empty()) {
|
||||
table->Push(arr.begin()->second);
|
||||
table->push(arr.begin()->second);
|
||||
}
|
||||
}
|
||||
|
||||
void MultiCamNode::IndexToRowCols(int index, int total_rows, int total_cols,
|
||||
void MultiCamNode::index_to_row_cols(int index, int total_rows, int total_cols,
|
||||
int *row, int *col)
|
||||
{
|
||||
Q_UNUSED(total_rows)
|
||||
@@ -103,39 +103,39 @@ void MultiCamNode::IndexToRowCols(int index, int total_rows, int total_cols,
|
||||
*row = index / total_cols;
|
||||
}
|
||||
|
||||
Node *MultiCamNode::GetConnectedRenderOutput(const QString &input,
|
||||
Node *MultiCamNode::get_connected_render_output(const QString &input,
|
||||
int element) const
|
||||
{
|
||||
if (sequence_ && input == kSourcesInput && element >= 0 &&
|
||||
element < GetSourceCount()) {
|
||||
return GetTrackList()->GetTrackAt(element);
|
||||
if (sequence_ && input == k_sources_input && element >= 0 &&
|
||||
element < get_source_count()) {
|
||||
return get_track_list()->get_track_at(element);
|
||||
} else {
|
||||
return Node::GetConnectedRenderOutput(input, element);
|
||||
return Node::get_connected_render_output(input, element);
|
||||
}
|
||||
}
|
||||
|
||||
bool MultiCamNode::IsInputConnectedForRender(const QString &input,
|
||||
bool MultiCamNode::is_input_connected_for_render(const QString &input,
|
||||
int element) const
|
||||
{
|
||||
if (sequence_ && input == kSourcesInput && element >= 0 &&
|
||||
element < GetSourceCount()) {
|
||||
if (sequence_ && input == k_sources_input && element >= 0 &&
|
||||
element < get_source_count()) {
|
||||
return true;
|
||||
} else {
|
||||
return Node::IsInputConnectedForRender(input, element);
|
||||
return Node::is_input_connected_for_render(input, element);
|
||||
}
|
||||
}
|
||||
|
||||
QVector<QString> MultiCamNode::IgnoreInputsForRendering() const
|
||||
QVector<QString> MultiCamNode::ignore_inputs_for_rendering() const
|
||||
{
|
||||
return { kSequenceInput };
|
||||
return { k_sequence_input };
|
||||
}
|
||||
|
||||
void MultiCamNode::InputConnectedEvent(const QString &input, int element,
|
||||
Node *output)
|
||||
{
|
||||
if (input == kSequenceInput) {
|
||||
if (input == k_sequence_input) {
|
||||
if (Sequence *s = dynamic_cast<Sequence *>(output)) {
|
||||
SetInputFlag(kSequenceTypeInput, kInputFlagHidden, false);
|
||||
set_input_flag(k_sequence_type_input, k_input_flag_hidden, false);
|
||||
sequence_ = s;
|
||||
}
|
||||
}
|
||||
@@ -144,51 +144,51 @@ void MultiCamNode::InputConnectedEvent(const QString &input, int element,
|
||||
void MultiCamNode::InputDisconnectedEvent(const QString &input, int element,
|
||||
Node *output)
|
||||
{
|
||||
if (input == kSequenceInput) {
|
||||
SetInputFlag(kSequenceTypeInput, kInputFlagHidden, true);
|
||||
if (input == k_sequence_input) {
|
||||
set_input_flag(k_sequence_type_input, k_input_flag_hidden, true);
|
||||
sequence_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
TrackList *MultiCamNode::GetTrackList() const
|
||||
TrackList *MultiCamNode::get_track_list() const
|
||||
{
|
||||
return sequence_->track_list(
|
||||
static_cast<Track::Type>(GetStandardValue(kSequenceTypeInput).toInt()));
|
||||
static_cast<Track::Type>(get_standard_value(k_sequence_type_input).toInt()));
|
||||
}
|
||||
|
||||
void MultiCamNode::Retranslate()
|
||||
void MultiCamNode::retranslate()
|
||||
{
|
||||
super::Retranslate();
|
||||
super::retranslate();
|
||||
|
||||
SetInputName(kCurrentInput, tr("Current"));
|
||||
SetInputName(kSourcesInput, tr("Sources"));
|
||||
SetInputName(kSequenceInput, tr("Sequence"));
|
||||
SetInputName(kSequenceTypeInput, tr("Sequence Type"));
|
||||
SetComboBoxStrings(kSequenceTypeInput, { tr("Video"), tr("Audio") });
|
||||
set_input_name(k_current_input, tr("Current"));
|
||||
set_input_name(k_sources_input, tr("Sources"));
|
||||
set_input_name(k_sequence_input, tr("Sequence"));
|
||||
set_input_name(k_sequence_type_input, tr("Sequence Type"));
|
||||
set_combo_box_strings(k_sequence_type_input, { tr("Video"), tr("Audio") });
|
||||
|
||||
QStringList names;
|
||||
int name_count = GetSourceCount();
|
||||
int name_count = get_source_count();
|
||||
names.reserve(name_count);
|
||||
for (int i = 0; i < name_count; i++) {
|
||||
QString src_name;
|
||||
if (Node *n = GetConnectedRenderOutput(kSourcesInput, i)) {
|
||||
src_name = n->Name();
|
||||
if (Node *n = get_connected_render_output(k_sources_input, i)) {
|
||||
src_name = n->name();
|
||||
}
|
||||
names.append(tr("%1: %2").arg(QString::number(i + 1), src_name));
|
||||
}
|
||||
SetComboBoxStrings(kCurrentInput, names);
|
||||
set_combo_box_strings(k_current_input, names);
|
||||
}
|
||||
|
||||
int MultiCamNode::GetSourceCount() const
|
||||
int MultiCamNode::get_source_count() const
|
||||
{
|
||||
if (sequence_) {
|
||||
return GetTrackList()->GetTrackCount();
|
||||
return get_track_list()->get_track_count();
|
||||
} else {
|
||||
return InputArraySize(kSourcesInput);
|
||||
return input_array_size(k_sources_input);
|
||||
}
|
||||
}
|
||||
|
||||
void MultiCamNode::GetRowsAndColumns(int sources, int *rows_in, int *cols_in)
|
||||
void MultiCamNode::get_rows_and_columns(int sources, int *rows_in, int *cols_in)
|
||||
{
|
||||
int &rows = *rows_in;
|
||||
int &cols = *cols_in;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef MULTICAMNODE_H
|
||||
#define MULTICAMNODE_H
|
||||
#ifndef OAK_MULTICAMNODE_H
|
||||
#define OAK_MULTICAMNODE_H
|
||||
|
||||
#include "node/node.h"
|
||||
#include "node/output/track/tracklist.h"
|
||||
@@ -34,57 +34,57 @@ public:
|
||||
|
||||
NODE_DEFAULT_FUNCTIONS(MultiCamNode)
|
||||
|
||||
virtual QString Name() const override;
|
||||
virtual QString name() const override;
|
||||
virtual QString id() const override;
|
||||
virtual QVector<CategoryID> Category() const override;
|
||||
virtual QString Description() const override;
|
||||
virtual QVector<CategoryID> category() const override;
|
||||
virtual QString description() const override;
|
||||
|
||||
virtual ActiveElements
|
||||
GetActiveElementsAtTime(const QString &input,
|
||||
get_active_elements_at_time(const QString &input,
|
||||
const TimeRange &r) const override;
|
||||
|
||||
virtual void Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
virtual void value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const override;
|
||||
|
||||
virtual void Retranslate() override;
|
||||
virtual void retranslate() override;
|
||||
|
||||
static const QString kCurrentInput;
|
||||
static const QString kSourcesInput;
|
||||
static const QString kSequenceInput;
|
||||
static const QString kSequenceTypeInput;
|
||||
static const QString k_current_input;
|
||||
static const QString k_sources_input;
|
||||
static const QString k_sequence_input;
|
||||
static const QString k_sequence_type_input;
|
||||
|
||||
int GetCurrentSource() const
|
||||
int get_current_source() const
|
||||
{
|
||||
return GetStandardValue(kCurrentInput).toInt();
|
||||
return get_standard_value(k_current_input).toInt();
|
||||
}
|
||||
|
||||
int GetSourceCount() const;
|
||||
int get_source_count() const;
|
||||
|
||||
static void GetRowsAndColumns(int sources, int *rows, int *cols);
|
||||
void GetRowsAndColumns(int *rows, int *cols) const
|
||||
static void get_rows_and_columns(int sources, int *rows, int *cols);
|
||||
void get_rows_and_columns(int *rows, int *cols) const
|
||||
{
|
||||
return GetRowsAndColumns(GetSourceCount(), rows, cols);
|
||||
return get_rows_and_columns(get_source_count(), rows, cols);
|
||||
}
|
||||
|
||||
void SetSequenceType(Track::Type t)
|
||||
void set_sequence_type(Track::Type t)
|
||||
{
|
||||
SetStandardValue(kSequenceTypeInput, t);
|
||||
set_standard_value(k_sequence_type_input, t);
|
||||
}
|
||||
|
||||
static void IndexToRowCols(int index, int total_rows, int total_cols,
|
||||
static void index_to_row_cols(int index, int total_rows, int total_cols,
|
||||
int *row, int *col);
|
||||
|
||||
static int RowsColsToIndex(int row, int col, int total_rows, int total_cols)
|
||||
static int rows_cols_to_index(int row, int col, int total_rows, int total_cols)
|
||||
{
|
||||
return col + row * total_cols;
|
||||
}
|
||||
|
||||
virtual Node *GetConnectedRenderOutput(const QString &input,
|
||||
virtual Node *get_connected_render_output(const QString &input,
|
||||
int element = -1) const override;
|
||||
virtual bool IsInputConnectedForRender(const QString &input,
|
||||
virtual bool is_input_connected_for_render(const QString &input,
|
||||
int element = -1) const override;
|
||||
|
||||
virtual QVector<QString> IgnoreInputsForRendering() const override;
|
||||
virtual QVector<QString> ignore_inputs_for_rendering() const override;
|
||||
|
||||
protected:
|
||||
virtual void InputConnectedEvent(const QString &input, int element,
|
||||
@@ -93,11 +93,11 @@ protected:
|
||||
Node *output) override;
|
||||
|
||||
private:
|
||||
TrackList *GetTrackList() const;
|
||||
TrackList *get_track_list() const;
|
||||
|
||||
Sequence *sequence_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // MULTICAMNODE_H
|
||||
#endif // OAK_MULTICAMNODE_H
|
||||
|
||||
@@ -30,7 +30,7 @@ TimeInput::TimeInput()
|
||||
{
|
||||
}
|
||||
|
||||
QString TimeInput::Name() const
|
||||
QString TimeInput::name() const
|
||||
{
|
||||
return tr("Time");
|
||||
}
|
||||
@@ -40,20 +40,20 @@ QString TimeInput::id() const
|
||||
return QStringLiteral("org.olivevideoeditor.Olive.time");
|
||||
}
|
||||
|
||||
QVector<Node::CategoryID> TimeInput::Category() const
|
||||
QVector<Node::CategoryID> TimeInput::category() const
|
||||
{
|
||||
return { kCategoryTime };
|
||||
return { k_category_time };
|
||||
}
|
||||
|
||||
QString TimeInput::Description() const
|
||||
QString TimeInput::description() const
|
||||
{
|
||||
return tr("Generates the time (in seconds) at this frame.");
|
||||
}
|
||||
|
||||
void TimeInput::Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
void TimeInput::value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const
|
||||
{
|
||||
table->Push(NodeValue::kFloat, globals.time().in().toDouble(), this, false,
|
||||
table->push(NodeValue::k_float, globals.time().in().to_double(), this, false,
|
||||
QStringLiteral("time"));
|
||||
}
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
***/
|
||||
|
||||
#ifndef TIMEINPUT_H
|
||||
#define TIMEINPUT_H
|
||||
#ifndef OAK_TIMEINPUT_H
|
||||
#define OAK_TIMEINPUT_H
|
||||
|
||||
#include "node/node.h"
|
||||
|
||||
@@ -34,15 +34,15 @@ public:
|
||||
|
||||
NODE_DEFAULT_FUNCTIONS(TimeInput)
|
||||
|
||||
virtual QString Name() const override;
|
||||
virtual QString name() const override;
|
||||
virtual QString id() const override;
|
||||
virtual QVector<CategoryID> Category() const override;
|
||||
virtual QString Description() const override;
|
||||
virtual QVector<CategoryID> category() const override;
|
||||
virtual QString description() const override;
|
||||
|
||||
virtual void Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
virtual void value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // TIMEINPUT_H
|
||||
#endif // OAK_TIMEINPUT_H
|
||||
|
||||
@@ -24,56 +24,56 @@
|
||||
namespace olive
|
||||
{
|
||||
|
||||
const QString ValueNode::kTypeInput = QStringLiteral("type_in");
|
||||
const QString ValueNode::kValueInput = QStringLiteral("value_in");
|
||||
const QVector<NodeValue::Type> ValueNode::kSupportedTypes = {
|
||||
NodeValue::kFloat, NodeValue::kInt, NodeValue::kRational,
|
||||
NodeValue::kVec2, NodeValue::kVec3, NodeValue::kVec4,
|
||||
NodeValue::kColor, NodeValue::kText, NodeValue::kMatrix,
|
||||
NodeValue::kFont, NodeValue::kBoolean,
|
||||
const QString ValueNode::k_type_input = QStringLiteral("type_in");
|
||||
const QString ValueNode::k_value_input = QStringLiteral("value_in");
|
||||
const QVector<NodeValue::Type> ValueNode::k_supported_types = {
|
||||
NodeValue::k_float, NodeValue::k_int, NodeValue::k_rational,
|
||||
NodeValue::k_vec2, NodeValue::k_vec3, NodeValue::k_vec4,
|
||||
NodeValue::k_color, NodeValue::k_text, NodeValue::k_matrix,
|
||||
NodeValue::k_font, NodeValue::k_boolean,
|
||||
};
|
||||
|
||||
#define super Node
|
||||
|
||||
ValueNode::ValueNode()
|
||||
{
|
||||
AddInput(kTypeInput, NodeValue::kCombo, 0,
|
||||
InputFlags(kInputFlagNotConnectable | kInputFlagNotKeyframable));
|
||||
add_input(k_type_input, NodeValue::k_combo, 0,
|
||||
InputFlags(k_input_flag_not_connectable | k_input_flag_not_keyframable));
|
||||
|
||||
AddInput(kValueInput, kSupportedTypes.first(), QVariant(),
|
||||
InputFlags(kInputFlagNotConnectable));
|
||||
add_input(k_value_input, k_supported_types.first(), QVariant(),
|
||||
InputFlags(k_input_flag_not_connectable));
|
||||
}
|
||||
|
||||
void ValueNode::Retranslate()
|
||||
void ValueNode::retranslate()
|
||||
{
|
||||
super::Retranslate();
|
||||
super::retranslate();
|
||||
|
||||
SetInputName(kTypeInput, QStringLiteral("Type"));
|
||||
SetInputName(kValueInput, QStringLiteral("Value"));
|
||||
set_input_name(k_type_input, QStringLiteral("Type"));
|
||||
set_input_name(k_value_input, QStringLiteral("Value"));
|
||||
|
||||
QStringList type_names;
|
||||
type_names.reserve(kSupportedTypes.size());
|
||||
foreach (NodeValue::Type type, kSupportedTypes) {
|
||||
type_names.append(NodeValue::GetPrettyDataTypeName(type));
|
||||
type_names.reserve(k_supported_types.size());
|
||||
foreach (NodeValue::Type type, k_supported_types) {
|
||||
type_names.append(NodeValue::get_pretty_data_type_name(type));
|
||||
}
|
||||
SetComboBoxStrings(kTypeInput, type_names);
|
||||
set_combo_box_strings(k_type_input, type_names);
|
||||
}
|
||||
|
||||
void ValueNode::Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
void ValueNode::value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const
|
||||
{
|
||||
Q_UNUSED(globals)
|
||||
|
||||
// Ensure value is pushed onto the table
|
||||
table->Push(value[kValueInput]);
|
||||
table->push(value[k_value_input]);
|
||||
}
|
||||
|
||||
void ValueNode::InputValueChangedEvent(const QString &input, int element)
|
||||
{
|
||||
if (input == kTypeInput) {
|
||||
SetInputDataType(
|
||||
kValueInput,
|
||||
kSupportedTypes.at(GetStandardValue(kTypeInput).toInt()));
|
||||
if (input == k_type_input) {
|
||||
set_input_data_type(
|
||||
k_value_input,
|
||||
k_supported_types.at(get_standard_value(k_type_input).toInt()));
|
||||
}
|
||||
|
||||
super::InputValueChangedEvent(input, element);
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
***/
|
||||
|
||||
#ifndef VALUENODE_H
|
||||
#define VALUENODE_H
|
||||
#ifndef OAK_VALUENODE_H
|
||||
#define OAK_VALUENODE_H
|
||||
|
||||
#include "node/node.h"
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
|
||||
NODE_DEFAULT_FUNCTIONS(ValueNode)
|
||||
|
||||
virtual QString Name() const override
|
||||
virtual QString name() const override
|
||||
{
|
||||
return tr("Value");
|
||||
}
|
||||
@@ -44,23 +44,23 @@ public:
|
||||
return QStringLiteral("org.olivevideoeditor.Olive.value");
|
||||
}
|
||||
|
||||
virtual QVector<CategoryID> Category() const override
|
||||
virtual QVector<CategoryID> category() const override
|
||||
{
|
||||
return { kCategoryGenerator };
|
||||
return { k_category_generator };
|
||||
}
|
||||
|
||||
virtual QString Description() const override
|
||||
virtual QString description() const override
|
||||
{
|
||||
return tr(
|
||||
"Create a single value that can be connected to various other inputs.");
|
||||
}
|
||||
|
||||
static const QString kTypeInput;
|
||||
static const QString kValueInput;
|
||||
static const QString k_type_input;
|
||||
static const QString k_value_input;
|
||||
|
||||
virtual void Retranslate() override;
|
||||
virtual void retranslate() override;
|
||||
|
||||
virtual void Value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
virtual void value(const NodeValueRow &value, const NodeGlobals &globals,
|
||||
NodeValueTable *table) const override;
|
||||
|
||||
protected:
|
||||
@@ -68,9 +68,9 @@ protected:
|
||||
int element) override;
|
||||
|
||||
private:
|
||||
static const QVector<NodeValue::Type> kSupportedTypes;
|
||||
static const QVector<NodeValue::Type> k_supported_types;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // VALUENODE_H
|
||||
#endif // OAK_VALUENODE_H
|
||||
|
||||
Reference in New Issue
Block a user